/* ═══════════════════════════════════════════════════════════
   AV CINEMA — Full-Screen Solution Carousel
   ═══════════════════════════════════════════════════════════ */

/* ── Section wrapper ─────────────────────────────────────── */
.av-cinema {
    background: transparent;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    /* Subtle pink radial from top-right */
    background-image:
        radial-gradient(ellipse at 80% 0%, rgba(255, 61, 138,0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 100%, rgba(255, 61, 138,0.05) 0%, transparent 55%);
}

/* ── Section Header ─────────────────────────────────────── */
.av-cinema__head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 56px;
    padding: 0 24px;
}

.av-cinema__eyebrow {
    display: inline-block;
    font-family: var(--font-primary) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 28px;
    box-shadow: none !important;
}

.av-cinema__title {
    font-family: var(--font-primary);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0 0 20px;
}

.av-cinema__title em {
    font-style: normal;
    background: var(--gradient-primary, linear-gradient(135deg,var(--pink) 0%,var(--amber) 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
}

.av-cinema__sub {
    font-family: var(--font-primary);
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0;
}

/* ── Label Pills Row ────────────────────────────────────── */
.av-cinema__labels-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 24px 32px;
}
.av-cinema__labels-wrap::-webkit-scrollbar { display: none; }

.av-cinema__labels {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.av-label-pill {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.av-label-pill:hover {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.av-label-pill.active {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(255, 61, 138, 0.15) !important;
}

/* ── Stage (outer container) ────────────────────────────── */
.av-cinema__stage {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Nav Arrows ─────────────────────────────────────────── */
.av-nav {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--ink);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.av-nav--prev { left: 0px; }
.av-nav--next { right: 0px; }

.av-nav:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: var(--ink-dark);
}

/* ── Slides ─────────────────────────────────────────────── */
.av-cinema__track {
    position: relative;
}

.av-slide {
    display: none;
    flex-direction: column;
    animation: avFadeIn 0.5s ease;
}

.av-slide.is-active {
    display: flex;
}

@keyframes avFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Video Wrapper ──────────────────────────────────────── */
.av-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 61, 138,0.20);
    border-radius: 16px;
    cursor: pointer;
}

.av-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Vignette — always present but subtle */
.av-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom,
            rgba(0,0,0,0.20) 0%,
            transparent 25%,
            transparent 65%,
            rgba(0,0,0,0.75) 100%);
    z-index: 1;
}

/* ── Center play / pause button ─────────────────────────── */
.av-play-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: 20;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 2px solid rgba(255,255,255,0.35);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* Visible by default with some transparency */
    opacity: 0.75;
    pointer-events: auto;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(8px);
    animation: avPlayPulse 3s infinite ease-in-out;
}

@keyframes avPlayPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 61, 138, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(255, 61, 138, 0);
    }
}

/* Enlarge and brighten on video-wrap hover */
.av-video-wrap:hover .av-play-center:not(.is-playing) {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.av-play-center:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: var(--ink-dark);
    transform: translate(-50%, -50%) scale(1.08) !important;
}

.av-play-center.is-playing {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate(-50%, -50%) scale(0.8) !important;
}

/* ── Bottom Controls Bar ─────────────────────────────────── */
.av-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    background: linear-gradient(to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.45) 65%,
        transparent 100%);
    padding: 28px 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    /* Hidden by default */
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Reveal controls on hover */
.av-video-wrap:hover .av-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Timeline scrubber */
.av-timeline {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.20);
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
    flex-shrink: 0;
}

.av-timeline:hover { height: 5px; }

.av-timeline__fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    background: var(--gradient-primary, linear-gradient(to right, var(--pink), var(--amber)));
    pointer-events: none;
    transition: width 0.1s linear;
}

/* Control row */
.av-controls__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.av-controls__left,
.av-controls__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.av-controls__right { justify-content: flex-end; }

/* Small round play/pause in the bottom bar */
.av-play-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    border: 1.5px solid rgba(255,255,255,0.28);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.av-play-btn:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: var(--ink-dark);
    transform: scale(1.1);
}

/* Time display */
.av-time {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: rgba(255,255,255,0.50);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* Domain (center) */
.av-domain {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    text-align: center;
    flex: 1;
}

/* Metric badge */
.av-metric {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--pink);
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255, 61, 138,0.38);
    padding: 4px 10px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

/* Round mute button */
.av-mute-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.60);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.av-mute-btn:hover {
    background: rgba(255,255,255,0.18);
    color: var(--ink);
}

.av-share-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.60);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.av-share-btn:hover {
    background: rgba(255,255,255,0.18);
    color: var(--ink);
}


/* ── Info Panel ─────────────────────────────────────────── */
.av-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: start;
    padding: 40px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 2px;
}

.av-info__title {
    font-family: var(--font-primary);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 16px;
    line-height: 1.2;
}

.av-info__problem {
    font-family: var(--font-primary);
    font-size: 16px;
    color: rgba(255,255,255,0.60);
    line-height: 1.65;
    margin: 0 0 24px;
    max-width: 620px;
}

.av-info__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.av-info__bullets li {
    font-family: var(--font-primary);
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    padding-left: 18px;
    position: relative;
}

.av-info__bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--pink);
    clip-path: polygon(50% 0%,100% 50%,50% 100%,0% 50%); /* diamond */
}

/* Right column */
.av-info__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    padding-top: 4px;
}

.av-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pink);
    background: transparent;
    border: 1.5px solid var(--pink);
    padding: 14px 28px;
    border-radius: 16px !important;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    white-space: nowrap;
}

.av-cta-btn:hover {
    background: var(--pink);
    color: #050510;
    box-shadow: 0 0 30px rgba(255, 61, 138,0.40);
}

.av-cta-btn span {
    transition: transform 0.3s ease;
}

.av-cta-btn:hover span {
    transform: translateX(4px);
}

.av-slide-count {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.05em;
}

/* ── Progress Dots ──────────────────────────────────────── */
.av-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 36px;
}

.av-dot {
    width: 24px;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.av-dot.active,
.av-dot:hover {
    background: var(--pink);
    width: 40px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .av-cinema {
        padding: 80px 0 60px;
    }

    .av-cinema__labels {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .av-video-wrap {
        aspect-ratio: 16 / 9;
    }

    .av-info {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .av-info__right {
        align-items: flex-start;
    }

    .av-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .av-cinema__stage {
        padding: 0 16px;
    }

    .av-cinema__labels-wrap {
        padding: 0 16px 24px;
    }
}
