/* ── Floridian Future YouTube Feed Styles ──────────────────────────────────── */

/* Wrapper */
.ff-videos-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: inherit;
}

/* ── Featured Video ────────────────────────────────────────────────────────── */
.ff-featured {
    margin-bottom: 56px;
}

/* Title inherits your theme's H3 styles */
.ff-featured__title {
    margin: 0 0 16px;
}

/* 16:9 responsive embed */
.ff-featured__embed-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

.ff-featured__embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Descriptions (shared) ─────────────────────────────────────────────────── */

/* Featured description inherits your theme's H5 styles */
.ff-featured__desc {
    margin-top: 16px;
}

.ff-desc__toggle {
    display: inline-block;
    margin-top: 4px;
    margin-left: 4px;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    color: currentColor;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.65;
}

.ff-desc__toggle:hover {
    opacity: 1;
}

/* ── Carousel Section ──────────────────────────────────────────────────────── */
.ff-carousel-section {
    position: relative;
    padding: 0 44px; /* room for arrows on each side */
}

/* Scrollable row — shows 3 cards at a time */
.ff-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: none; /* hide scrollbar — arrows handle navigation */
}

.ff-carousel::-webkit-scrollbar {
    display: none;
}

/* Card — 3 per row with gaps accounted for */
.ff-carousel__item {
    flex: 0 0 calc(33.333% - 16px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 900px) {
    .ff-carousel__item {
        flex: 0 0 calc(50% - 12px);
    }
    .ff-carousel-section {
        padding: 0 36px;
    }
}

@media (max-width: 560px) {
    .ff-carousel__item {
        flex: 0 0 85%;
    }
    .ff-carousel-section {
        padding: 0 8px;
    }
}

/* Thumbnail */
.ff-carousel__thumb-link {
    display: block;
    text-decoration: none;
}

.ff-carousel__thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

.ff-carousel__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.ff-carousel__thumb-link:hover .ff-carousel__thumb {
    opacity: 0.8;
}

/* Play button overlay */
.ff-carousel__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ff-carousel__thumb-link:hover .ff-carousel__play {
    opacity: 1;
}

/* Card title — inherits your theme's H3 styles */
.ff-carousel__title {
    margin: 0;
}

.ff-carousel__title a {
    color: inherit;
    text-decoration: none;
}

.ff-carousel__title a:hover {
    text-decoration: underline;
}

/* Card description — inherits your theme's H5 styles */
.ff-carousel__desc {
    margin: 0;
}

/* ── Arrow Buttons ─────────────────────────────────────────────────────────── */
.ff-carousel__arrow {
    position: absolute;
    top: 28%; /* vertically center on the thumbnail area */
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.ff-carousel__arrow:hover {
    background: rgba(0,0,0,0.85);
}

.ff-carousel__arrow--prev {
    left: 0;
}

.ff-carousel__arrow--next {
    right: 0;
}

/* Error state */
.ff-error {
    color: #c00;
    padding: 16px;
    border: 1px solid #c00;
    border-radius: 4px;
}

    .ff-carousel__arrow--next { right: 0; }
}

/* Error state */
.ff-error {
    color: #c00;
    padding: 16px;
    border: 1px solid #c00;
    border-radius: 4px;
}
