/* AP Euro vertical swipe reels — scroll-snap, full viewport */

.ap-euro-reel-root {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    background: #0a0a0c;
    color: #f1f5f9;
}

.ap-euro-reel-topbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    padding-top: max(0.65rem, env(safe-area-inset-top));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(10px);
}

.ap-euro-reel-back {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.ap-euro-reel-back:hover {
    background: rgba(255, 255, 255, 0.12);
}

.ap-euro-reel-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.ap-euro-reel-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* Embedded static HTML vertical shorts (Unit 1.5+) — swipe between full-screen iframes */
.ap-euro-reel-slide--iframe-embed {
    padding: 0 !important;
    padding-bottom: 0 !important;
    align-items: stretch;
    justify-content: stretch;
    background: #000;
    /* Fill the snap slot so the iframe gets a real height (flex % height alone often collapses). */
    position: relative;
}

.ap-euro-reel-slide--iframe-embed .ap-euro-reel-iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    /* Allow parent scroll-snap to receive wheel; content is non-interactive CSS playback */
    pointer-events: none;
}

.ap-euro-reel-slide {
    height: calc(100vh - 7.25rem);
    height: calc(100dvh - 7.25rem);
    min-height: calc(100vh - 7.25rem);
    min-height: calc(100dvh - 7.25rem);
    max-height: calc(100vh - 7.25rem);
    max-height: calc(100dvh - 7.25rem);
    flex-shrink: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0.75rem 1.35rem 2rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.ap-euro-reel-slide-inner {
    max-width: 28rem;
    width: 100%;
    margin: 0 auto;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ap-euro-reel-slide-head {
    flex-shrink: 0;
}

.ap-euro-reel-text-scroller {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

.ap-euro-reel-text-scroller--snap {
    scroll-snap-type: y mandatory;
}

.ap-euro-reel-text-scene {
    min-height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ap-euro-reel-text-scene .ap-euro-reel-scene-read {
    flex: 1 1 auto;
}

.ap-euro-reel-text-scene .ap-euro-reel-slide-body {
    flex: 1 1 auto;
}

.ap-euro-reel-scene-read {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.ap-euro-reel-what-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 0.35rem;
}

.ap-euro-reel-what-label--sub {
    color: rgba(148, 163, 184, 0.65);
}

.ap-euro-reel-slide-lead {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
    color: #f8fafc;
    text-wrap: balance;
}

.ap-euro-reel-text-scene .ap-euro-reel-hint {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 1rem;
}

.ap-euro-reel-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
}

.ap-euro-reel-slide-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 4.5vw, 1.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.ap-euro-reel-slide-body {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

/* autoplay slides: center and enlarge scene body text after title fades */
.ap-euro-reel-slide--autoplay-scenes .ap-euro-reel-slide-body {
    font-size: clamp(1.18rem, 4vw, 1.55rem);
    line-height: 1.65;
    text-align: center;
}

.ap-euro-reel-slide--autoplay-scenes .ap-euro-reel-text-scene {
    justify-content: center;
    padding: 0.5rem 0;
}

.ap-euro-reel-slide--autoplay-scenes .ap-euro-reel-scene-read {
    align-items: center;
}

/* shrink graphic on autoplay so text gets more room */
.ap-euro-reel-slide--autoplay-scenes .ap-euro-reel-graphic-wrap {
    flex: 0 0 auto;
    max-height: min(22vh, 160px);
    min-height: 80px;
}

/* let the text scroller fill available space */
.ap-euro-reel-slide--autoplay-scenes .ap-euro-reel-text-scroller {
    flex: 1 1 auto;
}

.ap-euro-reel-slide--compact .ap-euro-reel-slide-title {
    font-size: clamp(1.1rem, 3.6vw, 1.4rem);
}

.ap-euro-reel-slide--compact .ap-euro-reel-slide-body {
    font-size: 0.86rem;
    line-height: 1.48;
}

.ap-euro-reel-hint {
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

/* Themes — neutral dark (no pastel washes) */
.ap-euro-reel-slide--ember {
    background: linear-gradient(165deg, #101010 0%, #181818 45%, #0a0a0a 100%);
}
.ap-euro-reel-slide--dusk {
    background: linear-gradient(165deg, #0c0d10 0%, #141820 50%, #08090c 100%);
}
.ap-euro-reel-slide--wine {
    background: linear-gradient(165deg, #101010 0%, #1a1518 48%, #0a0809 100%);
}
.ap-euro-reel-slide--forest {
    background: linear-gradient(165deg, #0c0e0d 0%, #121a16 50%, #070807 100%);
}
.ap-euro-reel-slide--slate {
    background: linear-gradient(165deg, #0e0f11 0%, #181c22 48%, #08090a 100%);
}

.ap-euro-reel-progress {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem 0.75rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    background: rgba(10, 10, 12, 0.85);
}

.ap-euro-reel-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ap-euro-reel-dot.is-active {
    background: #e2e8f0;
    transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
    .ap-euro-reel-scroll {
        scroll-snap-type: none;
    }
    .ap-euro-reel-text-scroller--snap {
        scroll-snap-type: none;
    }
    .ap-euro-reel-dot {
        transition: none;
    }
}
