:root {
    --bg-dark: #050505;
    --text-primary: #ffffff;
    --text-muted: #8a8f9a;
    --cine-orange: #FF7B00;
    /* Deep cinematic orange */
    --cine-teal: #00D4FF;
    /* Crisp cinematic teal */
    --glass-bg: rgba(10, 10, 15, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);

    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-tech: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: auto !important;
}

html,
body {
    max-width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-tech);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Landing Page Specific Structure (Resolves Scrolls & Bottom Air) */
body.body-landing {
    height: auto;
    min-height: auto;
    overflow: visible !important;
}

/* Hard Web3 Elements */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.glow-orb {
    position: absolute;
    width: 2400px;
    height: 2400px;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
    transform: translateZ(0);
}

.arri-container {
    position: absolute;
    top: 40px;
    right: -100px;
    width: 800px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle closest-side, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 95%);
    mask-image: radial-gradient(circle closest-side, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 95%);
}

.arri-bg {
    width: 100%;
    height: auto;
    opacity: 0.6;
}

.cinematic-orange {
    background: radial-gradient(circle closest-side,
            rgba(255, 123, 0, 0.3) 0%,
            rgba(255, 123, 0, 0.2) 30%,
            rgba(255, 123, 0, 0.08) 60%,
            transparent 100%);
    top: -1200px;
    right: -1200px;
}

.cinematic-teal {
    background: radial-gradient(circle closest-side,
            rgba(0, 180, 216, 0.3) 0%,
            rgba(0, 180, 216, 0.2) 30%,
            rgba(0, 180, 216, 0.08) 60%,
            transparent 100%);
    top: -800px;
    left: -1200px;
}

/* Compact Glass Navigation */
.navbar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    width: 100%;
    overflow: hidden;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-image {
    height: 28px;
    /* Increased to make the monkey decal more prominent */
    width: auto;
    filter: invert(1);
    /* Ensure it's visible on dark background if it's a dark logo, or adjust as needed */
    margin-left: 6px;
    /* Pushes the logo rightward, keeping the text mostly anchored */
}

.logo {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* Cleanest possible corporate font */
    font-size: 13px;
    font-weight: 300;
    /* Ultra thin */
    letter-spacing: 0.5px;
    /* Practically zero, just enough to not touch */
    color: rgba(255, 255, 255, 0.85);
    /* Slightly muted white for elegance */

    /* Frosted glass web3 pill */
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.version-tag {
    font-family: var(--font-tech);
    font-size: 9px;
    color: var(--cine-teal);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    background: rgba(0, 212, 255, 0.05);
    display: inline-block;
    width: fit-content;
}

/* Compact Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    /* Compacting the huge padding from earlier */
    flex-shrink: 1;
}

.nav-item {
    font-family: var(--font-tech);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    display: flex;
    gap: 5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav-item span {
    color: var(--cine-orange);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
}

.nav-item:hover span,
.nav-item.active span {
    opacity: 1;
}

.nav-item .studio-text {
    opacity: 1 !important;
    transform: none !important;
    background: linear-gradient(90deg, var(--cine-orange) 0%, var(--cine-teal) 50%, var(--cine-orange) 100%);
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 12s linear infinite;
    display: inline-block;
}

@keyframes gradientShift {
    to {
        background-position: 200% center;
    }
}

/* Hero Content */
.hero {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 80px;
    min-height: calc(100vh - 140px);
}

body.body-landing .hero {
    flex: 0 0 auto;
    /* Stop stretching on Landing */
    min-height: 85vh;
}

.hero-content {
    max-width: 800px;
    margin-top: -4vh;
    /* Pulled up slightly to reduce space from navbar */
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-family: var(--font-tech);
    color: var(--cine-orange);
    letter-spacing: 2px;
    border: 1px solid rgba(255, 123, 0, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 25px;
    background: rgba(255, 123, 0, 0.05);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cine-orange);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cine-orange);
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.headline {
    font-family: var(--font-heading);
    font-size: 75px;
    /* Reduced from 100px to avoid 1 word per line */
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.gradient-text {
    background: linear-gradient(90deg, var(--cine-orange) 0%, var(--cine-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(255, 123, 0, 0.3));
}

.data-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid var(--cine-orange);
    max-width: 600px;
}

.manifesto-teaser {
    font-size: 12px;
    font-family: var(--font-tech);
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    /* Fixed min-height avoids layout jump during typing animation */
    min-height: 72px;
    /* Tightened to fit the 3 lines of text */
}

/* News Ticker Panel */
.news-panel {
    margin-top: 15px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 3px solid var(--cine-orange);
    /* Matching the box above */
}

.news-content-area {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 18px;
    /* Strict height for 1 line */
}

.news-text {
    font-family: var(--font-tech);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 18px;
    margin: 0;
    position: absolute;
    width: 100%;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-text.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.news-text.fade-in {
    opacity: 0;
    transform: translateY(10px);
}

.news-link {
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 700;
    color: var(--cine-orange);
    text-decoration: none;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: color 0.3s;
}

.news-link:hover {
    color: #fff;
}

/* Hard Tech Button */
.action-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.enter-studio-btn {
    position: relative;
    background: var(--cine-orange);
    color: #000;
    border: none;
    padding: 15px 35px;
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(255, 123, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-scanline {
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    /* Toned down from 0.8 */
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.enter-studio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 123, 0, 0.4);
}

.enter-studio-btn:hover .btn-scanline {
    left: 100%;
}

.tech-specs {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: var(--font-tech);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #030303;
    /* Deep black/vignette */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out, backdrop-filter 3s ease-in-out;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.cinematic-unit {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    opacity: 0;
}

.page-transition-overlay.active .cinematic-unit {
    animation: unitMasterFade 3.5s forwards linear;
}

@keyframes unitMasterFade {
    0% {
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.transition-logo {
    width: 140px;
    /* Increased massively to accommodate the photo dimensions and mask */
    height: auto;
    position: relative;
    z-index: 10001;
    mix-blend-mode: screen;
}

.page-transition-overlay.active .transition-logo {
    animation: unitLogoFocus 3.5s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes unitLogoFocus {
    0% {
        filter: blur(10px);
        transform: scale(0.9);
        opacity: 0;
    }

    15% {
        opacity: 0.4;
        /* Faint and cinematic */
        filter: blur(4px);
    }

    100% {
        opacity: 0.9;
        transform: scale(1.05);
        filter: blur(0px) drop-shadow(0 0 20px rgba(0, 212, 255, 0.2));
    }
}

/* Anamorphic Flare Brackets (Curved) */
.flare-top,
.flare-bottom {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0px;
    height: 0px;
    border-radius: 50%;
    z-index: 10000;
    opacity: 0;
}

.flare-top {
    border: 1px solid rgba(255, 123, 0, 0);
    /* Base invisible border */
    border-top: 2px solid rgba(255, 123, 0, 0.9);
    box-shadow: 0 -5px 15px 2px rgba(255, 123, 0, 0.4);
}

.flare-bottom {
    border: 1px solid rgba(0, 212, 255, 0);
    border-bottom: 2px solid rgba(0, 212, 255, 0.9);
    box-shadow: 0 5px 15px 2px rgba(0, 212, 255, 0.4);
}

.page-transition-overlay.active .flare-top {
    animation: curveStretch 3.5s forwards cubic-bezier(0.19, 1, 0.22, 1);
}

.page-transition-overlay.active .flare-bottom {
    animation: curveStretch 3.5s forwards cubic-bezier(0.19, 1, 0.22, 1);
    animation-delay: 0.1s;
}

@keyframes curveStretch {
    0% {
        width: 60px;
        height: 60px;
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    15% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        width: 130px;
        /* Expands outwards encapsulating logo */
        height: 130px;
        opacity: 0;
        transform: translate(-50%, -50%) rotate(45deg);
    }
}

/* Ape Background Styles for Placeholder Pages */
.ape-bg-container {
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    /* Above the grid, below the orbs */
    pointer-events: none;
}

.ape-bg {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    filter: drop-shadow(-20px 20px 50px rgba(0, 0, 0, 0.8)) brightness(0.6) contrast(1.2);
}

/* Make sure the hero content on placeholder pages sits above the ape */
.placeholder-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-top: 15vh;
}

.placeholder-content .data-panel {
    background: rgba(10, 10, 15, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--cine-orange);
}

/* Final Cinematic Snap at 100% Load */
.page-transition-overlay.active.lens-snap-active .transition-logo {
    animation: lensSnap 0.8s forwards cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.page-transition-overlay.active.lens-snap-active {
    background-color: #000000;
}

@keyframes lensSnap {
    0% {
        opacity: 0.8;
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }

    10% {
        opacity: 1;
        transform: scale(1.02);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
        filter: drop-shadow(0 0 50px rgba(255, 255, 255, 1)) blur(5px);
    }
}

/* ------------- INTERMEDIATE BREAKPOINT OPTIMIZATION ------------- */
/* Fixes the "squish" zone between iPad portrait and desktop */
@media (min-width: 769px) and (max-width: 1050px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        gap: 15px;
        /* Less space between menus */
    }

    .version-tag {
        font-size: 8px;
        /* Slightly smaller text */
        padding: 2px 4px;
        margin-left: 6px;
    }
}

/* ------------- MOBILE OPTIMIZATION ------------- */
/* ------------- MOBILE OPTIMIZATION ------------- */
@media (max-width: 768px) {
    html {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-bottom: 50px;
    }

    body.body-landing {
        min-height: auto;
        padding-bottom: 20px;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .page-transition-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .page-transition-overlay.active {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background-color: #050505 !important;
    }

    .navbar {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 10px 10px;
        gap: 5px;
        align-items: center;
        justify-content: space-between;
    }

    .logo-container {
        flex-direction: row;
        align-items: center;
        width: auto;
        margin-bottom: 0;
        gap: 5px;
        flex: 0 0 auto;
    }

    .logo-image {
        height: 18px;
        flex-shrink: 0;
        margin-left: 0;
    }

    .version-tag {
        display: inline-block;
        font-size: 5px;
        padding: 3px 6px;
        line-height: 1.2;
        white-space: normal;
        letter-spacing: 0.5px;
        margin-left: 0;
        border: 1px solid rgba(0, 212, 255, 0.2);
        width: auto;
        max-width: 80px;
    }

    .nav-links {
        width: auto;
        flex: 1 1 auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 4px;
        margin-top: 0;
        overflow-x: auto;
        padding-bottom: 0px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .nav-item {
        font-size: 9px;
        letter-spacing: 0px;
        padding: 4px 1px;
        gap: 2px;
    }

    .wallet-btn {
        padding: 6px 10px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    .hero {
        padding-left: 15px;
        padding-right: 15px;
        align-items: flex-start;
        padding-top: 25px;
        padding-bottom: 25px;
        min-height: calc(100vh - 80px);
        /* Restore Mobile Center for subpages */
    }

    body.body-landing .hero {
        padding-bottom: 0px;
        min-height: auto;
    }

    .hero-content {
        margin-top: 0;
        width: 100%;
        position: relative;
        z-index: 2;
    }

    .status-badge {
        font-size: 8px;
        padding: 5px 10px;
        margin-bottom: 30px;
        text-align: left;
        letter-spacing: 1px;
        width: max-content;
        max-width: 100%;
    }

    .headline {
        font-size: clamp(20px, 6vw, 24px) !important;
        line-height: 1.05;
        margin-bottom: 25px;
        letter-spacing: -0.5px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        word-break: break-word;
        max-width: 100%;
    }

    .word-span {
        display: block;
        margin-bottom: 0px;
    }

    .headline .line-1 .word-span:first-child,
    .headline .line-2 .word-span:first-child {
        margin-right: 0;
    }

    .data-panel {
        padding: 20px;
        width: 65%;
        min-width: 200px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        margin-bottom: 20px;
    }

    .manifesto-teaser {
        font-size: 10px;
        min-height: 75px !important;
        line-height: 1.6;
        margin-bottom: 0px;
    }

    .action-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-top: 0;
    }

    .enter-studio-btn {
        padding: 12px 25px;
        font-size: 10px;
    }

    .tech-specs {
        font-size: 8px;
        gap: 8px;
        flex-direction: column;
    }

    .arri-container {
        width: 550px;
        top: -40px;
        -webkit-transform: none;
        transform: none;
        bottom: auto;
        right: -100px;
        opacity: 1 !important;
        z-index: 1;
        pointer-events: none;
    }

    .ape-bg-container {
        width: 400px;
        height: auto;
        top: auto;
        bottom: 12vh;
        right: -40px;
        opacity: 1 !important;
        z-index: 1;
        pointer-events: none;
        display: block;
    }

    .ape-bg {
        max-height: none;
        width: 100%;
        height: auto;
        transform: scale(1.2);
        -webkit-filter: drop-shadow(-20px 20px 50px rgba(0, 0, 0, 0.8)) brightness(0.9) contrast(1.2);
        filter: drop-shadow(-20px 20px 50px rgba(0, 0, 0, 0.8)) brightness(0.9) contrast(1.2);
        -webkit-mask-image: radial-gradient(circle closest-side, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 95%);
        mask-image: radial-gradient(circle closest-side, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 95%);
    }

    .glow-orb {
        width: 600px;
        height: 600px;
        -webkit-filter: blur(120px);
        filter: blur(120px);
        opacity: 0.15;
    }

    .cinematic-orange {
        top: -300px;
        right: -300px;
    }

    .cinematic-teal {
        top: -400px;
        /* Adjusted scale for mobile */
        left: -300px;
        opacity: 0.15;
    }

    .news-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 20px;
        margin-bottom: 0px;
    }

    .news-text {
        font-size: 10px;
        line-height: 1.4;
        position: static;
        white-space: normal;
        overflow: visible;
    }

    .news-content-area {
        height: auto;
    }

    .news-link {
        font-size: 9px;
    }

    .placeholder-content {
        margin-top: 5vh;
        margin-bottom: 50px;
    }

    .placeholder-content .data-panel {
        width: 55%;
        background: rgba(10, 10, 15, 0.05);
    }
}

/* ------------- COOKIE BANNER ------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-content {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    border-left: 3px solid var(--cine-orange);
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-text {
    font-family: var(--font-tech);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    line-height: 1.6;
    margin: 0;
}

.cookie-muted {
    color: rgba(138, 143, 154, 0.6);
    font-size: 10px;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 10px 24px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn-accept {
    background: var(--cine-orange);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 123, 0, 0.2);
}

.cookie-btn-accept:hover {
    box-shadow: 0 0 25px rgba(255, 123, 0, 0.4);
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

.cookie-btn-decline:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        gap: 14px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-start;
    }

    /* Push cookie banner above Safari's bottom browser chrome */
    /* NOTE: Removed from here — now only applied on actual iOS Safari below */
}

/* Landscape mobile: version-tag sits on one row, no wrapping */
@media (max-width: 900px) and (orientation: landscape) {
    .version-tag {
        white-space: nowrap;
        max-width: none;
    }

    /* Cookie banner back to bottom in landscape since browser chrome moves to top */
    .cookie-banner {
        bottom: 0;
    }
}

/* iOS Safari ONLY — push cookie banner above the browser chrome at the bottom.
   -webkit-touch-callout is only supported by iOS Safari, so this will not
   affect desktop browsers or Chrome on Android. */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 900px) and (orientation: portrait) {
        .cookie-banner {
            bottom: 84px;
        }
    }
}

/* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
   BACKPORTED: KREAKONG VIDEO MODULE (REEL)
   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ */
.st-module--reel {
    margin: -80px 0 20px 0;
    width: 100%;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
}

.reel-outer-wrapper {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    background: var(--bg-dark);
}

.reel-outer-wrapper.is-collapsed {
    grid-template-rows: 0fr;
}

.reel-inner-wrapper {
    overflow: hidden;
}

.reel-container {
    width: 100%;
    aspect-ratio: 1920 / 640;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
}

/* Toggle Banner Common */
.reel-toggle-banner {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: var(--font-tech);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0;
}

.reel-toggle-banner--top {
    border-bottom: none;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.reel-toggle-banner--bottom {
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.reel-toggle-banner:hover {
    background: rgba(255, 255, 255, 0.04);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}

.reel-toggle-banner .toggle-arrow {
    color: var(--cine-orange);
    font-size: 8px;
    transition: transform 0.4s ease;
}

/* Standalone Pill State (Both variants) */
.reel-outer-wrapper.is-collapsed+.reel-toggle-banner--bottom {
    display: none !important;
}

.reel-toggle-banner--top:has(+ .reel-outer-wrapper.is-collapsed) {
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-bottom: 5px;
    /* Tiny gap when collapsed */
}

/* Mobile Overrides (Ensuring they win the cascade) */
@media (max-width: 768px) {
    .st-module--reel {
        margin: 10px 0 20px 0 !important;
    }
}