
        :root {
            --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            --gold: #d4af37;
            --bg: #0a0a0f;
            --text: #e8e8e8;
            --text-dim: #888888;
            --text-soft: #CCCCCC;
            --text-quiet: #999999;
        }
            /* Light flip for the critical-CSS namespace above. It is inlined for
               first paint, so it wins over app.css for <body> - without this the
               page keeps a black body behind a light interface. Measured on white:
               text 17.05:1, muted 6.40:1, gold 4.92:1. */
            [data-theme="light"] {
                --bg: #FFFFFF;
                --bg-card: #F7F8FA;
                --bg-elevated: #EFF1F5;
                --surface: #F1F3F6;
                --text: #1A1C21;
                --text-dim: #5C5F66;
                --text-soft: #3F444C;
                --text-quiet: #5C5F66;
                --text-muted: #5C5F66;
                --gold: #8A6D00;
                --gold-dark: #6E5600;
                --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            }

        body {
            margin: 0;
            font-family: var(--font-body);
            background: var(--bg);
            color: var(--text);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            padding-top: env(safe-area-inset-top, 0)
        }

        @media(display-mode:standalone) {
            body {
                padding-top: 0
            }

            .app-header {
                padding-top: max(0.625rem, calc(0.625rem + env(safe-area-inset-top, 28px)));
                min-height: max(56px, calc(56px + env(safe-area-inset-top, 0px)))
            }
        }

        .outfit-loaded body {
            font-family: 'Outfit', var(--font-body)
        }

        * {
            box-sizing: border-box
        }

        img,
        video {
            max-width: 100%;
            height: auto
        }

    .app-container {
    min-height: 100vh
    }

    .app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.625rem 1rem;
    padding-top: calc(0.625rem + env(safe-area-inset-top, 0px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(var(--ink-rgb), 0.06);
    min-height: 56px
    }

    @supports(padding-top:env(safe-area-inset-top)) {
    .app-header {
    padding-top: calc(0.625rem + env(safe-area-inset-top))
    }
    }

    .header-left,
    .header-right {
    display: flex;
    align-items: center;
    gap: 0.625rem
    }

    .marketing-header-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-right: 0.35rem
    }

    .marketing-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 0.35rem;
    border: 1px solid var(--border-default);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--mh-nav, #b9b9b5);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s
    }

    .marketing-theme-toggle:hover,
    .marketing-theme-toggle:focus-visible {
    color: var(--gold);
    border-color: var(--gold)
    }

    .marketing-theme-toggle .theme-icon-light {
    display: none
    }

    [data-theme="light"] .marketing-theme-toggle .theme-icon-dark {
    display: none
    }

    [data-theme="light"] .marketing-theme-toggle .theme-icon-light {
    display: inline-block
    }

    .marketing-header-link {
    color: var(--mh-nav, #b9b9b5);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s
    }

    .marketing-header-link:hover,
    .marketing-header-link:focus-visible {
    color: var(--gold)
    }

    .app-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem
    }

    .logo-icon {
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold), #c9a227);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0f;
    flex-shrink: 0
    }

    .logo-text {
    display: inline;
    white-space: nowrap;
    font-size: 1rem
    }

    .header-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(var(--ink-rgb), 0.08);
    border: none;
    color: var(--text-quiet);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0
    }

    .header-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold)
    }

    @media(max-width:760px) {
    .marketing-header-nav {
    display: none
    }
    }

    @media(max-width:480px) {
    .app-header {
    padding: 0.5rem 0.75rem;
    padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
    min-height: 52px
    }

    .header-left,
    .header-right {
    gap: 0.375rem
    }

    .btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8rem
    }

    .header-btn {
    width: 34px;
    height: 34px
    }

    .logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px
    }
    }

    @media(display-mode:standalone) and (max-width:480px) {
    .app-header {
    padding-top: calc(0.5rem + env(safe-area-inset-top, 28px))
    }
    }

    .app-main {
    padding-bottom: 140px
    }

    .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none
    }

    .btn-primary {
    background: linear-gradient(135deg, var(--gold), #c9a227);
    color: #0a0a0f;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3)
    }

    .btn-outline {
    background: transparent;
    border: 1px solid rgba(var(--ink-rgb), 0.2);
    color: var(--text)
    }

    .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem
    }

    /* Hide elements until JS loads */
    .offline-indicator {
    display: none
    }

    .theme-toggle {
    display: none
    }

    .js-ready .theme-toggle {
    display: flex
    }

    /* User dropdown - hidden by default via visibility */
    .user-dropdown {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    }

    .user-menu.dropdown-open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    }

    /* Skeleton loading for perceived performance */
    .skeleton {
    background: linear-gradient(90deg, #1a1a1f 25%, #252530 50%, #1a1a1f 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite
    }

    @keyframes shimmer {
    0% {
    background-position: 200% 0
    }

    to {
    background-position: -200% 0
    }
    }

    /* Content visibility for faster render */
    .content-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px
    }

    /* Lazy image placeholder */
    img[loading="lazy"] {
    background: #1a1a1f
    }

    /* Premium Badge - Episode Cards */
    .ep-card-thumb,
    .card-thumbnail {
    position: relative;
    }

    .premium-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(201, 162, 39, 0.95));
    color: #0a0a0f;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .premium-badge i {
    font-size: 0.5rem;
    }

    .premium-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    border-radius: inherit;
    }

    .premium-lock-overlay i {
    font-size: 1.5rem;
    color: rgba(212, 175, 55, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    /* Premium Badge - Small (for list items) */
    .list-thumb-wrapper {
    position: relative;
    flex-shrink: 0;
    }

    .premium-badge-sm {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #d4af37, #c9a227);
    color: #0a0a0f;
    font-size: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .premium-badge-sm i {
    font-size: 0.5rem;
    }
