﻿/*
 * Reference OTT theme
 *
 * This file intentionally loads after the legacy OTT stylesheet. Keep the
 * homepage rules scoped so account, checkout, admin and player screens retain
 * their existing layouts.
 */

body.reference-theme {
    --reference-bg: #070606;
    --reference-bg-deep: #0E0B0B;
    --reference-header: #070606;
    --reference-red: #E3201B;
    --reference-red-hover: #FF3B2F;
    --reference-red-link: #FF6B4A;
    --reference-red-deep: #8E120E;
    --reference-accent-ink: var(--text-on-primary);
    --reference-text: #F3F3F4;
    --reference-muted: #B9BBC1;
    --reference-content: 1240px;
    --accent: var(--reference-red) !important;
    --accent-2: var(--reference-red-deep) !important;
    --accent-soft: rgba(227, 32, 27, .16) !important;
    --border: #2C201F !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) {
    padding-top: 64px !important;
    color: var(--reference-text) !important;
    background:
        radial-gradient(circle at 50% -18%, rgba(149, 6, 14, .16), transparent 38rem),
        linear-gradient(
            180deg,
            #180307 0%,
            #0e0204 48%,
            var(--bg-primary) 100%
        ) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Header */
body.reference-theme:not(.auth-only):not(.checkout-only) .topbar {
    position: fixed !important;
    inset: 0 0 auto !important;
    z-index: 1000 !important;
    display: flex !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    align-items: center !important;
    gap: 26px !important;
    margin: 0 !important;
    padding: 0 max(24px, calc((100vw - var(--reference-content)) / 2)) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .055) !important;
    background: rgba(7, 7, 7, .97) !important;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .62) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

body.reference-theme .topbar .site-brand {
    order: 1 !important;
    display: flex !important;
    width: 152px !important;
    min-width: 152px !important;
    height: 58px !important;
    flex: 0 0 152px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.reference-theme .topbar .site-brand img {
    display: block !important;
    width: 142px !important;
    max-width: 142px !important;
    height: auto !important;
    max-height: 50px !important;
    object-fit: contain !important;
}

body.reference-theme .topbar .main-nav {
    order: 2 !important;
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: 64px !important;
    flex: 0 0 auto !important;
    align-items: stretch !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

body.reference-theme .topbar .main-nav a {
    position: absolute !important;
    display: flex !important;
    width: auto !important;
    height: 64px !important;
    align-items: center !important;
    padding: 0 16px !important;
    color: rgba(255, 255, 255, .88) !important;
    background: transparent !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .01em !important;
    text-transform: uppercase !important;
}

body.reference-theme .topbar .main-nav a:hover,
body.reference-theme .topbar .main-nav a.active {
    color: var(--reference-red-link) !important;
    background: transparent !important;
}

body.reference-theme .topbar .main-nav a.active::after {
    content: "" !important;
    position: absolute !important;
    right: 4px !important;
    bottom: 0 !important;
    left: 4px !important;
    display: block !important;
    height: 4px !important;
    border-radius: 4px 4px 0 0 !important;
    background: var(--reference-red) !important;
}

body.reference-theme .topbar .actions {
    order: 3 !important;
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
}

body.reference-theme .topbar .top-search {
    position: relative !important;
    display: flex !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 270px !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
}

body.reference-theme .topbar .top-search input {
    position: absolute !important;
    right: 0 !important;
    width: 38px !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    padding: 0 !important;
    color: var(--text-on-primary) !important;
    background: var(--reference-red) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: width .22s ease, opacity .18s ease, padding .22s ease !important;
}

body.reference-theme .topbar .top-search.open {
    width: min(270px, 30vw) !important;
}

body.reference-theme .topbar .top-search.open input {
    width: min(270px, 30vw) !important;
    border-color: rgba(255, 255, 255, .12) !important;
    padding: 0 48px 0 16px !important;
    background: #181818 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.reference-theme .topbar .top-search .circle-btn {
    position: relative !important;
    z-index: 2 !important;
    display: grid !important;
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: var(--reference-accent-ink) !important;
    background: var(--reference-red) !important;
    box-shadow: 0 8px 20px rgba(178, 7, 16, .24) !important;
}

body.reference-theme .topbar .circle-btn svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.25 !important;
    stroke-linecap: round !important;
}

body.reference-theme.home-page .topbar .user-notification-bell {
    display: none !important;
}

body.reference-theme .topbar .plan-btn {
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    flex: 0 0 38px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: var(--reference-red) !important;
    box-shadow: 0 8px 20px rgba(178, 7, 16, .16) !important;
}

body.reference-theme .topbar .plan-btn img {
    width: 23px !important;
    max-width: 23px !important;
    height: 23px !important;
    max-height: 23px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
}

body.reference-theme .topbar .login-btn {
    display: inline-flex !important;
    width: auto !important;
    min-width: 88px !important;
    height: 38px !important;
    min-height: 38px !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    border-radius: 4px !important;
    color: var(--reference-accent-ink) !important;
    background: var(--reference-red) !important;
    box-shadow: 0 8px 20px rgba(178, 7, 16, .22) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
}

body.reference-theme .topbar .login-btn:hover,
body.reference-theme .topbar .circle-btn:hover {
    color: var(--reference-accent-ink) !important;
    background: var(--reference-red-hover) !important;
    transform: translateY(-1px) !important;
}

body.reference-theme .login-user-icon {
    width: 17px !important;
    height: 17px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

body.reference-theme .mobile-header-home,
body.reference-theme .mobile-header-movies {
    display: none !important;
}

/* Shared customer-facing red accents */
body.reference-theme:not(.auth-only):not(.checkout-only) .watch-btn,
body.reference-theme:not(.auth-only):not(.checkout-only) .card-watch-btn,
body.reference-theme:not(.auth-only):not(.checkout-only) .wide-btn,
body.reference-theme:not(.auth-only):not(.checkout-only) .pagination-link.active {
    border-color: var(--reference-red) !important;
    color: var(--reference-accent-ink) !important;
    background: var(--reference-red) !important;
    box-shadow: 0 10px 24px rgba(178, 7, 16, .2) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .watch-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .card-watch-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .wide-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .pagination-link.active:hover {
    border-color: var(--reference-red-hover) !important;
    color: var(--reference-accent-ink) !important;
    background: var(--reference-red-hover) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .buy-btn,
body.reference-theme:not(.auth-only):not(.checkout-only) .card-buy-btn {
    border-color: rgba(178, 7, 16, .62) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .buy-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .card-buy-btn:hover {
    border-color: var(--reference-red-link) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .section-head a,
body.reference-theme:not(.auth-only):not(.checkout-only) .view-all {
    color: var(--reference-red-link) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card:hover {
    border-color: rgba(178, 7, 16, .72) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card .heart-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card .heart-btn.active {
    border-color: var(--reference-red) !important;
    color: var(--reference-red-link) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .user-notification-bell:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .user-notification-bell.ringing {
    border-color: var(--reference-red) !important;
    color: var(--reference-accent-ink) !important;
    background: var(--reference-red) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .profile-dropdown {
    border-color: rgba(178, 7, 16, .7) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .profile-dropdown button {
    color: var(--reference-accent-ink) !important;
    background: var(--reference-red) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .user-bell-count,
body.reference-theme:not(.auth-only):not(.checkout-only) .discount-badge,
body.reference-theme:not(.auth-only):not(.checkout-only) .popular-tag {
    border-color: var(--reference-bg) !important;
    color: var(--reference-accent-ink) !important;
    background: var(--reference-red) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card-title:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .price,
body.reference-theme:not(.auth-only):not(.checkout-only) .plans-eyebrow {
    color: var(--reference-red-link) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card .premium-badge {
    border-color: var(--reference-red) !important;
    background: linear-gradient(145deg, var(--reference-red), var(--reference-red-deep)) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card .premium-crown-icon {
    background: transparent !important;
    border-radius: 0 !important;
    filter: brightness(0) invert(1) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .plan-card:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .plan-card:focus-within,
body.reference-theme:not(.auth-only):not(.checkout-only) .plan-card.popular {
    border-color: var(--border-hover) !important;
    box-shadow: var(--glow-medium) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-play,
body.reference-theme:not(.auth-only):not(.checkout-only) .large-play-btn {
    isolation: isolate !important;
    overflow: visible !important;
    color: var(--reference-accent-ink) !important;
    background: linear-gradient(135deg, var(--reference-red), var(--reference-red-deep)) !important;
    box-shadow: 0 16px 38px rgba(155, 6, 22, .26) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-play::before,
body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-play::after,
body.reference-theme:not(.auth-only):not(.checkout-only) .large-play-btn::before,
body.reference-theme:not(.auth-only):not(.checkout-only) .large-play-btn::after {
    content: "" !important;
    position: absolute !important;
    inset: -3px !important;
    z-index: -1 !important;
    display: block !important;
    border: 2px solid rgba(255, 90, 100, .82) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    animation: reference-play-wave 1.65s ease-out infinite;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-play::after,
body.reference-theme:not(.auth-only):not(.checkout-only) .large-play-btn::after {
    animation-delay: .82s;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-play > span,
body.reference-theme:not(.auth-only):not(.checkout-only) .large-play-btn > span {
    position: relative !important;
    z-index: 1 !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions form {
    display: flex !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-watchlist-btn,
body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-share-btn {
    display: inline-grid !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    flex: 0 0 48px !important;
    place-items: center !important;
    gap: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: var(--text-on-primary) !important;
    font-size: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 9px 22px rgba(0, 0, 0, .3) !important;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-watchlist-btn {
    background: #d6091b !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-watchlist-btn.active {
    background: #930613 !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-share-btn {
    background: #0aaa2c !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-share-btn.is-copied {
    background: #087f22 !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-watchlist-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-share-btn:hover {
    filter: brightness(.88) !important;
    box-shadow: 0 11px 26px rgba(0, 0, 0, .38) !important;
    transform: translateY(-2px) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-watchlist-btn:focus-visible,
body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-share-btn:focus-visible {
    outline: 3px solid var(--text-on-primary) !important;
    outline-offset: 3px !important;
}

body.reference-theme .detail-action-icon {
    display: block !important;
    width: 27px !important;
    height: 27px !important;
    overflow: visible !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.3 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

body.reference-theme .detail-action-icon[hidden] {
    display: none !important;
}

body.reference-theme .detail-share-icon circle {
    fill: currentColor !important;
    stroke: none !important;
}

body.reference-theme .detail-action-feedback {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

@keyframes reference-play-wave {
    0% {
        opacity: .92;
        transform: scale(.76);
    }

    100% {
        opacity: 0;
        transform: scale(1.36);
    }
}

/* Homepage canvas */
body.reference-theme.home-page,
body.reference-theme.home-page main {
    background:
        radial-gradient(circle at 52% 8%, rgba(149, 6, 14, .16), transparent 40rem),
        linear-gradient(
            180deg,
            #180307 0%,
            #0e0204 48%,
            var(--bg-primary) 100%
        ) !important;
}

body.reference-theme.home-page .hero-carousel-frame {
    --hero-peek: 84px;
    position: relative !important;
    width: min(var(--reference-content), calc(100% - 32px)) !important;
    max-width: var(--reference-content) !important;
    height: 512px !important;
    margin: 14px auto 0 !important;
}

body.reference-theme.home-page .hero-shell {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 var(--hero-peek) !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
}

body.reference-theme.home-page .hero-shell::before {
    content: "" !important;
    position: absolute !important;
    inset: -28px !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .56)),
        var(--hero-active-bg, none) !important;
    background-position: center !important;
    background-size: cover !important;
    filter: blur(10px) saturate(1.15) brightness(1.08) !important;
    opacity: .94 !important;
    transform: scale(1.06) !important;
    transition: opacity .35s ease !important;
}

body.reference-theme.home-page .hero-slide {
    position: absolute !important;
    display: flex !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    margin: 0 !important;
    width: clamp(256px, 21vw, 320px) !important;
    min-width: 0 !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    min-height: 0 !important;
    align-items: flex-end !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .055) !important;
    border-radius: 8px !important;
    background-color: var(--bg-primary) !important;
    background-size: cover !important;
    will-change: transform, opacity !important;
    filter: brightness(.58) saturate(.9) !important;
    opacity: 1 !important;
    transition: filter .35s ease, opacity .2s ease !important;
}

body.reference-theme.home-page .hero-arrow,
body.reference-theme.home-page .banner-dots {
    display: none !important;
}

body.reference-theme.home-page .hero-slide.is-active {
    z-index: 200 !important;
    filter: brightness(1) saturate(1) !important;
    opacity: 1 !important;
}

body.reference-theme.home-page .hero-video-shade {
    z-index: 2 !important;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .76) 0%, rgba(0, 0, 0, .18) 43%, rgba(0, 0, 0, .08) 70%, rgba(0, 0, 0, .42) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, .48), transparent 45%) !important;
}

body.reference-theme.home-page .hero-slide:not(:has(.hero-video))::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .7), transparent 48%),
        linear-gradient(0deg, rgba(0, 0, 0, .48), transparent 42%) !important;
}

body.reference-theme.home-page .hero-copy,
body.reference-theme.home-page .home-banner-copy {
    position: absolute !important;
    top: auto !important;
    right: auto !important;
    bottom: 34px !important;
    left: 38px !important;
    z-index: 4 !important;
    width: min(520px, calc(100% - 76px)) !important;
    max-width: 520px !important;
    padding: 0 !important;
    transform: none !important;
}

body.reference-theme.home-page .hero-copy .eyebrow,
body.reference-theme.home-page .hero-copy > p:not(.eyebrow) {
    display: none !important;
}

body.reference-theme.home-page .hero-content-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    margin-bottom: 14px !important;
}

body.reference-theme.home-page .hero-content-row h1 {
    flex: 0 0 auto !important;
    width: 100% !important;
    margin: 0 !important;
}

body.reference-theme.home-page .hero-content-row .hero-description {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, .86) !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

body.reference-theme.home-page .hero-copy h1 {
    margin: 0 0 14px !important;
    color: var(--text-on-primary) !important;
    font-size: clamp(27px, 2.3vw, 35px) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: -.025em !important;
    text-transform: none !important;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .8) !important;
}

body.reference-theme.home-page .hero-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 !important;
}

body.reference-theme.home-page .watch-btn,
body.reference-theme.home-page .buy-btn {
    display: inline-flex !important;
    min-height: 36px !important;
    height: 36px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 13px !important;
    border: 0 !important;
    border-radius: 3px !important;
    color: var(--reference-accent-ink) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body.reference-theme.home-page .watch-btn {
    background: var(--reference-red) !important;
}

body.reference-theme.home-page .buy-btn {
    border: 1px solid var(--reference-red) !important;
    color: var(--text-on-primary) !important;
    background: var(--surface) !important;
}

body.reference-theme.home-page .watch-btn:hover {
    background: var(--reference-red-hover) !important;
}

body.reference-theme.home-page .buy-btn:hover {
    border-color: var(--reference-red-link) !important;
    color: var(--text-on-primary) !important;
    background: #1b1b1b !important;
}

body.reference-theme.home-page .play-wave,
body.reference-theme .card-watch-btn .play-wave {
    position: relative !important;
    z-index: 0 !important;
    display: inline-grid !important;
    width: 16px !important;
    height: 16px !important;
    place-items: center !important;
    margin: 0 !important;
    border-radius: 50% !important;
    font-size: 13px !important;
    line-height: 1 !important;
    isolation: isolate !important;
}

body.reference-theme.home-page .play-wave::before,
body.reference-theme.home-page .play-wave::after,
body.reference-theme .card-watch-btn .play-wave::before,
body.reference-theme .card-watch-btn .play-wave::after {
    content: "" !important;
    position: absolute !important;
    inset: -2px !important;
    z-index: -1 !important;
    display: block !important;
    border: 1px solid rgba(255, 255, 255, .78) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    animation: reference-play-wave 1.5s ease-out infinite;
}

body.reference-theme.home-page .play-wave::after,
body.reference-theme .card-watch-btn .play-wave::after {
    animation-delay: .75s;
}

body.reference-theme.home-page .diamond-icon {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
    filter: brightness(0) invert(1) !important;
}

body.reference-theme.home-page .hero-arrow {
    position: absolute !important;
    top: 50% !important;
    z-index: 12 !important;
    display: grid !important;
    width: 36px !important;
    height: 36px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 0 3px !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: #131313 !important;
    background: var(--text-on-primary) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .4) !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transform: translateY(-50%) !important;
    transition: transform .18s ease, background .18s ease !important;
}

body.reference-theme.home-page .hero-arrow:hover {
    color: var(--reference-accent-ink) !important;
    color: var(--text-on-primary) !important;
    background: var(--reference-red) !important;
    transform: translateY(-50%) scale(1.07) !important;
}

body.reference-theme.home-page .hero-arrow-prev {
    left: calc(var(--hero-peek) - 18px) !important;
}

body.reference-theme.home-page .hero-arrow-next {
    right: calc(var(--hero-peek) - 18px) !important;
}

body.reference-theme.home-page .banner-dots,
body.reference-theme.home-page .platform-benefits {
    display: none !important;
}

/* Poster rows */
body.reference-theme.home-page .row-section {
    width: min(var(--reference-content), calc(100% - 32px)) !important;
    max-width: var(--reference-content) !important;
    margin: 14px auto 28px !important;
}

body.reference-theme.home-page .section-head {
    display: flex !important;
    min-height: 30px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 0 10px !important;
    padding: 0 10px !important;
}

body.reference-theme.home-page .section-head h2 {
    margin: 0 !important;
    color: var(--text-on-primary) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

body.reference-theme.home-page .section-head a {
    color: var(--reference-red-link) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

body.reference-theme.home-page .section-head a:hover {
    color: #ff8a92 !important;
}

body.reference-theme .poster-row-shell {
    position: relative !important;
    width: 100% !important;
}

body.reference-theme.home-page .poster-row {
    display: grid !important;
    width: 100% !important;
    grid-auto-flow: column !important;
    grid-auto-columns: calc((100% - 108px) / 7) !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 10px 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-sizing: border-box !important;
    scroll-behavior: smooth !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: none !important;
}

body.reference-theme.home-page .poster-row::-webkit-scrollbar {
    display: none !important;
}

body.reference-theme.home-page .poster-card-wrap {
    width: 100% !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
}

body.reference-theme.home-page .poster-card {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 7px !important;
    background: var(--surface) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .3) !important;
    transform: none !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
}

body.reference-theme.home-page .poster-card:hover {
    border-color: var(--border-hover) !important;
    box-shadow: 0 15px 34px rgba(0, 0, 0, .48) !important;
    transform: translateY(-3px) !important;
}

body.reference-theme.home-page .poster-card-image-link {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
}

body.reference-theme.home-page .poster-card-image,
body.reference-theme.home-page .poster-card img.poster-card-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    object-fit: cover !important;
    transition: transform .25s ease !important;
}

body.reference-theme.home-page .poster-card:hover .poster-card-image {
    transform: scale(1.035) !important;
}

body.reference-theme.home-page .poster-card .favorite-form,
body.reference-theme.home-page .poster-card > .heart-btn {
    display: none !important;
}

body.reference-theme.home-page .poster-card .premium-badge {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    z-index: 5 !important;
    display: flex !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, var(--reference-red), var(--reference-red-deep)) !important;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .32) !important;
}

body.reference-theme.home-page .poster-card .premium-crown-icon {
    width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    max-height: 18px !important;
    aspect-ratio: 1 !important;
    object-fit: contain !important;
    background: transparent !important;
    border-radius: 0 !important;
    filter: brightness(0) invert(1) !important;
}

body.reference-theme .row-arrow {
    position: absolute !important;
    top: 50% !important;
    z-index: 8 !important;
    display: grid !important;
    width: 36px !important;
    height: 36px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 0 3px !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: var(--reference-accent-ink) !important;
    background: var(--reference-red) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .38) !important;
    font-size: 31px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transform: translateY(-50%) !important;
    transition: transform .18s ease, background .18s ease !important;
}

body.reference-theme .row-arrow:hover {
    background: var(--reference-red-hover) !important;
    transform: translateY(-50%) scale(1.08) !important;
}

body.reference-theme .row-arrow-prev {
    left: 0 !important;
}

body.reference-theme .row-arrow-next {
    right: 0 !important;
}

body.reference-theme .row-arrow[hidden] {
    display: none !important;
}

body.reference-theme.home-page .site-footer {
    width: 100% !important;
    margin: 36px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .06) !important;
    background: var(--bg-primary) !important;
}

body.reference-theme.home-page .footer-inner {
    width: min(var(--reference-content), calc(100% - 32px)) !important;
    background: transparent !important;
}

body.reference-theme .hero-arrow:focus-visible,
body.reference-theme .row-arrow:focus-visible,
body.reference-theme .circle-btn:focus-visible,
body.reference-theme .plan-btn:focus-visible,
body.reference-theme .login-btn:focus-visible,
body.reference-theme .mobile-nav-toggle:focus-visible {
    outline: 3px solid var(--text-on-primary) !important;
    outline-offset: 3px !important;
}

@media (max-width: 1280px) {
    body.reference-theme.home-page .hero-carousel-frame {
        --hero-peek: 68px;
        width: calc(100% - 28px) !important;
    }

    body.reference-theme.home-page .row-section {
        width: calc(100% - 36px) !important;
    }

    body.reference-theme.home-page .poster-row {
        grid-auto-columns: calc((100% - 90px) / 6) !important;
    }
}

@media (max-width: 900px) {
    body.reference-theme:not(.auth-only):not(.checkout-only) {
        padding-top: 64px !important;
    }

    body.reference-theme:not(.auth-only):not(.checkout-only) .topbar {
        position: fixed !important;
        inset: 0 0 auto !important;
        display: flex !important;
        width: 100% !important;
        height: 64px !important;
        min-height: 64px !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 10px !important;
        padding: 0 10px !important;
        overflow: visible !important;
        border-bottom: 2px solid rgba(178, 7, 16, .2) !important;
        background: rgba(8, 8, 8, .98) !important;
        box-shadow: 0 8px 22px rgba(0, 0, 0, .48) !important;
        box-sizing: border-box !important;
    }

    body.reference-theme .topbar .site-brand {
        order: 1 !important;
        display: flex !important;
        width: auto !important;
        min-width: 64px !important;
        height: 52px !important;
        flex: 1 1 auto !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
    }

    body.reference-theme .topbar .site-brand img {
        width: 100px !important;
        max-width: 100% !important;
        max-height: 40px !important;
    }

    body.reference-theme .topbar .main-nav {
        display: none !important;
    }

    body.reference-theme .topbar .actions {
        order: 2 !important;
        width: auto !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 10px !important;
        margin: 0 !important;
    }

    body.reference-theme .topbar .user-notification-bell {
        display: none !important;
    }

    body.reference-theme .topbar .top-search {
        order: 1 !important;
        display: flex !important;
        width: 34px !important;
        min-width: 34px !important;
        align-self: center !important;
    }

    body.reference-theme .topbar .top-search input {
        width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
    }

    body.reference-theme .topbar .top-search .circle-btn {
        width: 34px !important;
        height: 34px !important;
        flex-basis: 34px !important;
    }

    body.reference-theme .topbar .circle-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    body.reference-theme .topbar .top-search.open {
        width: min(220px, 28vw) !important;
    }

    body.reference-theme .topbar .top-search.open input {
        top: 50% !important;
        width: min(220px, 28vw) !important;
        padding: 0 40px 0 12px !important;
        font-size: 13px !important;
        transform: translateY(-50%) !important;
    }

    body.reference-theme .mobile-header-home,
    body.reference-theme .mobile-header-movies {
        display: inline-flex !important;
        height: 34px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        color: var(--text-on-primary) !important;
        background: transparent !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        text-transform: none !important;
    }

    body.reference-theme .mobile-header-home {
        order: 2 !important;
    }

    body.reference-theme .mobile-header-movies {
        order: 3 !important;
    }

    body.reference-theme .mobile-header-home:hover,
    body.reference-theme .mobile-header-home.active,
    body.reference-theme .mobile-header-movies:hover,
    body.reference-theme .mobile-header-movies.active {
        color: var(--reference-red-link) !important;
    }

    body.reference-theme .topbar .plan-btn {
        display: none !important;
    }

    body.reference-theme .topbar .guest-login-btn {
        order: 4 !important;
        display: inline-flex !important;
        width: auto !important;
        min-width: 0 !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 10px !important;
        border: 1px solid var(--reference-red) !important;
        border-radius: 5px !important;
        color: var(--text-on-primary) !important;
        background: var(--reference-red) !important;
        box-shadow: 0 8px 20px rgba(178, 7, 16, .22) !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        text-transform: none !important;
    }

    body.reference-theme .topbar .guest-login-btn:hover {
        border-color: var(--reference-red-hover) !important;
        color: var(--text-on-primary) !important;
        background: var(--reference-red-hover) !important;
        transform: translateY(-1px) !important;
    }

    body.reference-theme .topbar .guest-login-btn .login-user-icon {
        display: none !important;
    }

    body.reference-theme .topbar .user-profile-menu .profile-toggle {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }

    body.reference-theme .topbar .user-profile-menu {
        order: 4 !important;
    }

    body.reference-theme .mobile-nav-toggle {
        order: 3 !important;
        display: none !important;
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px !important;
        place-content: center !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: #2a0a10 !important;
        box-shadow: inset 0 0 0 1px rgba(255, 90, 100, .12) !important;
    }

    body.reference-theme .mobile-nav-toggle span {
        display: block !important;
        width: 22px !important;
        height: 3px !important;
        margin: 0 !important;
        border-radius: 2px !important;
        background: var(--text-on-primary) !important;
        transition: opacity .18s ease, transform .18s ease !important;
    }

    body.reference-theme.mobile-menu-open .mobile-nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }

    body.reference-theme.mobile-menu-open .mobile-nav-toggle span:nth-child(2) {
        opacity: 0 !important;
    }

    body.reference-theme.mobile-menu-open .mobile-nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }

    body.reference-theme .mobile-quick-nav {
        position: fixed !important;
        top: 64px !important;
        right: 12px !important;
        left: 12px !important;
        z-index: 1200 !important;
        display: none !important;
        width: auto !important;
        height: auto !important;
        grid-template-columns: 1fr !important;
        margin: 0 !important;
        padding: 6px !important;
        overflow: hidden !important;
        border: 1px solid rgba(255, 255, 255, .1) !important;
        border-radius: 0 0 8px 8px !important;
        background: rgba(8, 8, 8, .98) !important;
        box-shadow: 0 18px 42px rgba(0, 0, 0, .5) !important;
    }

    body.reference-theme.mobile-menu-open .mobile-quick-nav {
        display: grid !important;
    }

    body.reference-theme .mobile-quick-nav a {
        display: flex !important;
        width: 100% !important;
        height: 50px !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
        color: var(--text-on-primary) !important;
        background: transparent !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
    }

    body.reference-theme .mobile-quick-nav a:last-child {
        border-bottom: 0 !important;
    }

    body.reference-theme .mobile-quick-nav a.active {
        color: var(--reference-red-link) !important;
    }

    body.reference-theme .mobile-nav-overlay {
        position: fixed !important;
        inset: 64px 0 0 !important;
        z-index: 1100 !important;
        display: none !important;
        width: 100vw !important;
        height: calc(100vh - 64px) !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: rgba(0, 0, 0, .76) !important;
    }

    body.reference-theme.mobile-menu-open .mobile-nav-overlay {
        display: block !important;
    }

    body.reference-theme.home-page .hero-carousel-frame {
        --hero-peek: 0px;
        width: calc(100% - 24px) !important;
        height: 448px !important;
        margin-top: 12px !important;
    }

    body.reference-theme.home-page .hero-shell {
        height: 448px !important;
    }

    body.reference-theme.home-page .hero-shell {
        padding: 0 !important;
    }

    body.reference-theme.home-page .hero-slide {
        width: 224px !important;
        height: 320px !important;
    }

    body.reference-theme.home-page .hero-copy,
    body.reference-theme.home-page .home-banner-copy {
        bottom: 24px !important;
        left: 24px !important;
        width: calc(100% - 48px) !important;
    }

    body.reference-theme.home-page .hero-copy h1 {
        font-size: clamp(25px, 5vw, 32px) !important;
    }

    body.reference-theme.home-page .hero-arrow-prev {
        left: 10px !important;
    }

    body.reference-theme.home-page .hero-arrow-next {
        right: 10px !important;
    }

    body.reference-theme.home-page .row-section {
        width: calc(100% - 24px) !important;
        margin-top: 18px !important;
    }

    body.reference-theme.home-page .poster-row {
        grid-auto-columns: 22.5% !important;
        gap: 14px !important;
    }
}

@media (max-width: 600px) {
    body.reference-theme:not(.auth-only):not(.checkout-only) {
        padding-top: 56px !important;
    }

    body.reference-theme:not(.auth-only):not(.checkout-only) .topbar {
        height: 56px !important;
        min-height: 56px !important;
        gap: 6px !important;
        padding: 0 8px !important;
    }

    body.reference-theme .topbar .site-brand {
        min-width: 52px !important;
        height: 46px !important;
    }

    body.reference-theme .topbar .site-brand img {
        width: 84px !important;
        max-height: 34px !important;
    }

    body.reference-theme .topbar .actions {
        gap: 6px !important;
    }

    body.reference-theme .topbar .top-search {
        width: 30px !important;
        min-width: 30px !important;
    }

    body.reference-theme .topbar .top-search input {
        width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        font-size: 12px !important;
    }

    body.reference-theme .topbar .top-search.open input {
        padding: 0 38px 0 11px !important;
    }

    body.reference-theme .topbar .top-search.open,
    body.reference-theme .topbar .top-search.open input {
        width: min(150px, 26vw) !important;
    }

    body.reference-theme .topbar .top-search .circle-btn {
        width: 30px !important;
        height: 30px !important;
        flex-basis: 30px !important;
    }

    body.reference-theme .topbar .circle-btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    body.reference-theme .mobile-header-home,
    body.reference-theme .mobile-header-movies,
    body.reference-theme .topbar .guest-login-btn {
        font-size: 13px !important;
    }

    body.reference-theme .mobile-header-home,
    body.reference-theme .mobile-header-movies {
        height: 30px !important;
    }

    body.reference-theme .mobile-nav-toggle {
        width: 40px !important;
        height: 40px !important;
        flex-basis: 40px !important;
    }

    body.reference-theme .topbar .guest-login-btn {
        min-width: 0 !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 8px !important;
    }

    body.reference-theme .topbar .guest-login-btn span {
        display: inline !important;
    }

    body.reference-theme .topbar .guest-login-btn .login-user-icon {
        display: none !important;
    }

    body.reference-theme .topbar .user-profile-menu .profile-toggle {
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
    }

    body.reference-theme .mobile-quick-nav {
        top: 56px !important;
    }

    body.reference-theme .mobile-nav-overlay {
        inset: 56px 0 0 !important;
        height: calc(100vh - 56px) !important;
    }

    body.reference-theme .content-detail-play {
        top: 12px !important;
        right: 12px !important;
        width: 40px !important;
        height: 40px !important;
    }

    body.reference-theme .content-detail-play span {
        margin-left: 2px !important;
        font-size: 15px !important;
    }

    body.reference-theme .content-detail-views {
        bottom: 50px !important;
        left: 10px !important;
        gap: 4px !important;
        font-size: 11px !important;
    }

    body.reference-theme .content-detail-views svg {
        width: 14px !important;
        height: 14px !important;
    }

    body.reference-theme .content-detail-actions {
        right: 10px !important;
        bottom: 9px !important;
        left: 10px !important;
        gap: 6px !important;
    }

    body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-watchlist-btn,
    body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-share-btn {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        flex-basis: 34px !important;
        gap: 0 !important;
        padding: 0 !important;
        border-radius: 50% !important;
        font-size: 0 !important;
        line-height: 1 !important;
    }

    body.reference-theme .detail-action-icon {
        width: 20px !important;
        height: 20px !important;
    }

    body.reference-theme .detail-share-icon {
        width: 18px !important;
        height: 18px !important;
    }

    body.reference-theme.home-page .hero-carousel-frame,
    body.reference-theme.home-page .hero-shell {
        height: clamp(300px, 88vw, 380px) !important;
    }

    body.reference-theme.home-page .hero-carousel-frame {
        width: calc(100% - 12px) !important;
        margin-top: 8px !important;
    }

    body.reference-theme.home-page .hero-slide {
        width: clamp(176px, 58vw, 226px) !important;
        height: auto !important;
        aspect-ratio: 226 / 284 !important;
    }

    body.reference-theme.home-page .hero-copy,
    body.reference-theme.home-page .home-banner-copy {
        bottom: 12px !important;
        left: 10px !important;
        width: calc(100% - 20px) !important;
    }

    body.reference-theme.home-page .hero-copy h1 {
        margin-bottom: 8px !important;
        font-size: 17px !important;
        line-height: 1.08 !important;
    }

body.reference-theme.home-page .hero-content-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 5px !important;
        margin-bottom: 8px !important;
    }

    body.reference-theme.home-page .hero-content-row h1,
    body.reference-theme.home-page .hero-content-row .hero-description {
        flex: 0 0 auto !important;
        width: 100% !important;
    }

    body.reference-theme.home-page .hero-content-row .hero-description {
        font-size: 10px !important;
        line-height: 1.25 !important;
    }

    body.reference-theme.home-page .watch-btn,
    body.reference-theme.home-page .buy-btn {
        height: 29px !important;
        min-height: 29px !important;
        padding: 0 8px !important;
        font-size: 9px !important;
    }

    body.reference-theme.home-page .hero-arrow {
        width: 32px !important;
        height: 32px !important;
        font-size: 29px !important;
    }

    body.reference-theme.home-page .section-head {
        padding: 0 5px !important;
    }

    body.reference-theme.home-page .section-head h2 {
        font-size: 18px !important;
    }

    body.reference-theme.home-page .poster-row {
        grid-auto-columns: calc((100% - 10px) / 2) !important;
        gap: 10px !important;
        padding-inline: 2px !important;
    }

    body.reference-theme .row-section .poster-row {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: calc((100% - 10px) / 3) !important;
        grid-template-columns: none !important;
        gap: 10px !important;
        padding: 5px 2px 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x proximity !important;
    }

    body.reference-theme .row-section .poster-row > .poster-card-wrap {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        scroll-snap-align: start !important;
    }

    body.reference-theme .grid-list {
        display: grid !important;
        width: 100% !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: clamp(6px, 2vw, 10px) !important;
        padding-inline: 2px !important;
    }

    body.reference-theme .grid-list > .poster-card-wrap {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body.reference-theme .row-arrow {
        width: 34px !important;
        height: 34px !important;
        font-size: 29px !important;
    }
}

/* The carousel is intentionally gesture/autoplay driven. */
body.reference-theme.home-page .hero-arrow,
body.reference-theme.home-page .banner-dots {
    display: none !important;
}

@media (max-width: 480px) {
    body.reference-theme .topbar .top-search.open,
    body.reference-theme .topbar .top-search.open input {
        width: clamp(82px, 24vw, 108px) !important;
    }
}

/* Header layout: centered branding, search left, navigation/actions right. */
@media (min-width: 901px) {
    body.reference-theme:not(.auth-only):not(.checkout-only) {
        padding-top: 78px !important;
    }

    body.reference-theme:not(.auth-only):not(.checkout-only) .topbar {
        height: 78px !important;
        min-height: 78px !important;
        padding: 0 max(24px, calc((100vw - var(--reference-content)) / 2)) !important;
        display: block !important;
    }

    body.reference-theme .topbar .site-brand {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        z-index: 2 !important;
        width: 210px !important;
        min-width: 210px !important;
        height: 72px !important;
        justify-content: center !important;
        transform: translate(-50%, -50%) !important;
    }

    body.reference-theme .topbar .site-brand img {
        width: 190px !important;
        max-width: 190px !important;
        max-height: 64px !important;
    }

    body.reference-theme .topbar .main-nav {
        position: absolute !important;
        top: 0 !important;
        right: max(190px, calc((100vw - var(--reference-content)) / 2 + 170px)) !important;
        z-index: 3 !important;
        height: 78px !important;
    }

    body.reference-theme .topbar .main-nav a {
        position: relative !important;
        width: auto !important;
        height: 78px !important;
    }

    body.reference-theme .topbar .actions {
        position: absolute !important;
        inset: 0 max(24px, calc((100vw - var(--reference-content)) / 2)) 0 0 !important;
        z-index: 3 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        pointer-events: none !important;
    }

    body.reference-theme .topbar .actions > * {
        pointer-events: auto !important;
    }

    body.reference-theme .topbar .actions .top-search {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        right: auto !important;
        transform: translateY(-50%) !important;
    }

    body.reference-theme .topbar .actions .top-search input {
        right: auto !important;
        left: 0 !important;
    }

    body.reference-theme .topbar .mobile-header-home,
    body.reference-theme .topbar .mobile-header-movies,
    body.reference-theme .topbar .user-notification-bell {
        display: none !important;
    }
}

/* Mobile shared navigation: keep both links visible around the centered logo. */
@media (max-width: 900px) {
    body.reference-theme .topbar > .main-nav {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: 60px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        pointer-events: none !important;
        background: transparent !important;
        border: 0 !important;
    }

    body.reference-theme .topbar > .main-nav a {
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        z-index: 8 !important;
        display: inline-flex !important;
        width: auto !important;
        min-width: 0 !important;
        height: 60px !important;
        align-items: center !important;
        padding: 0 3px !important;
        pointer-events: auto !important;
        font-size: clamp(10px, 2.8vw, 13px) !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    /* Blade order is Home, Movies; render Movies left and Home right. */
    body.reference-theme .topbar > .main-nav a:first-child {
        right: 48px !important;
        left: auto !important;
    }

    body.reference-theme .topbar > .main-nav a:last-child {
        right: auto !important;
        left: 45px !important;
    }

    body.reference-theme .topbar > .mobile-nav-toggle,
    body.reference-theme .mobile-quick-nav,
    body.reference-theme .mobile-nav-overlay {
        display: none !important;
    }
}

@media (max-width: 360px) {
    body.reference-theme .topbar > .main-nav a {
        font-size: 9px !important;
    }

    body.reference-theme .topbar > .main-nav a:last-child {
        left: 40px !important;
    }
}

/* Final brand palette override: keep legacy theme rules below from changing the BullTV palette. */
html body.reference-theme {
    --reference-bg: #070606;
    --reference-bg-deep: #0E0B0B;
    --reference-header: #070606;
    --reference-red: #E3201B;
    --reference-red-hover: #FF3B2F;
    --reference-red-link: #FF6B4A;
    --reference-red-deep: #8E120E;
    --reference-accent-ink: var(--text-on-primary);
    --reference-text: #F3F3F4;
    --reference-muted: #B9BBC1;
    --accent: #E3201B !important;
    --accent-2: #8E120E !important;
    --accent-soft: rgba(227, 32, 27, .16) !important;
    --border: #2C201F !important;
    color: #F3F3F4 !important;
    background: #070606 !important;
}

html body.reference-theme:not(.auth-only):not(.checkout-only),
html body.reference-theme.home-page,
html body.reference-theme.home-page main {
    background:
        radial-gradient(circle at 50% -18%, rgba(227, 32, 27, .12), transparent 38rem),
        linear-gradient(180deg, #181010 0%, #0E0B0B 38%, #070606 100%) !important;
}

html body.reference-theme .topbar,
html body.reference-theme .nf-header {
    border-bottom-color: rgba(44, 32, 31, .55) !important;
    background: rgba(7, 6, 6, .86) !important;
}

html body.reference-theme .nf-nav-link,
html body.reference-theme .nf-icon-link,
html body.reference-theme .nf-login,
html body.reference-theme .nf-profile-menu a,
html body.reference-theme .nf-profile-menu button {
    color: #B9BBC1 !important;
}

html body.reference-theme .nf-nav-link:hover,
html body.reference-theme .nf-nav-link.is-active,
html body.reference-theme .nf-icon-link:hover {
    color: #FF6B4A !important;
    background: #1F1513 !important;
}

html body.reference-theme .nf-login,
html body.reference-theme .nf-logout-btn,
html body.reference-theme .normal-hero-cta,
html body.reference-theme .watch-btn,
html body.reference-theme .card-watch-btn,
html body.reference-theme .wide-btn,
html body.reference-theme .pagination-link.active {
    color: var(--text-on-primary) !important;
    background: linear-gradient(135deg, #B3120E 0%, #E3201B 55%, #FF8A1F 100%) !important;
    border-color: #E3201B !important;
    box-shadow: 0 0 15px rgba(227, 32, 27, .45), 0 0 35px rgba(227, 32, 27, .20) !important;
}

html body.reference-theme .nf-login:hover,
html body.reference-theme .nf-logout-btn:hover,
html body.reference-theme .normal-hero-cta:hover,
html body.reference-theme .watch-btn:hover,
html body.reference-theme .card-watch-btn:hover,
html body.reference-theme .wide-btn:hover {
    background: #FF3B2F !important;
}

html body.reference-theme .nf-search,
html body.reference-theme .nf-search.is-open,
html body.reference-theme .nf-profile-menu,
html body.reference-theme .poster-card,
html body.reference-theme .plan-card,
html body.reference-theme .content-detail-card {
    background: #121010 !important;
    border-color: #2C201F !important;
}

html body.reference-theme .poster-card:hover,
html body.reference-theme .plan-card:hover,
html body.reference-theme .plan-card:focus-within,
html body.reference-theme .plan-card.popular {
    background: #1F1513 !important;
    border-color: #6B2A22 !important;
}

html body.reference-theme .nf-search input,
html body.reference-theme .poster-card-title,
html body.reference-theme .section-head h2,
html body.reference-theme .hero-copy h1 {
    color: #F3F3F4 !important;
}

html body.reference-theme .section-head a,
html body.reference-theme .view-all,
html body.reference-theme .poster-card-title:hover,
html body.reference-theme .price,
html body.reference-theme .plans-eyebrow {
    color: #FF6B4A !important;
}

html body.reference-theme .site-footer {
    background: #0E0B0B !important;
    border-top-color: #2C201F !important;
    color: #B9BBC1 !important;
}

/* BullTV red/black palette */
body.reference-theme {
    --bg-primary: #070606;
    --bg-secondary: #0E0B0B;
    --bg-tertiary: #181010;
    --surface: #121010;
    --surface-hover: #1F1513;
    --surface-active: #2B1A17;
    --primary: #E3201B;
    --primary-hover: #FF3B2F;
    --primary-dark: #8E120E;
    --accent: #FF8A1F;
    --text-primary: #F3F3F4;
    --text-secondary: #B9BBC1;
    --text-muted: #7A7C83;
    --text-disabled: #4e5057;
    --border-color: #2C201F;
    --border-hover: #6B2A22;
    color: var(--text-primary) !important;
    background: var(--bg-primary) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only),
body.reference-theme.home-page,
body.reference-theme.home-page main {
    background:
        radial-gradient(circle at 50% -18%, rgba(227, 32, 27, .12), transparent 38rem),
        linear-gradient(180deg, #181010 0%, #0E0B0B 38%, #070606 100%) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .topbar {
    border-bottom: 1px solid rgba(44, 32, 31, .55) !important;
    background: rgba(7, 6, 6, .86) !important;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .42) !important;
}

body.reference-theme .topbar .main-nav a,
body.reference-theme .topbar .main-nav a:hover,
body.reference-theme .topbar .main-nav a.active {
    color: var(--text-secondary) !important;
}

body.reference-theme .topbar .main-nav a:hover,
body.reference-theme .topbar .main-nav a.active {
    color: #FF6B4A !important;
}

body.reference-theme .topbar .main-nav a.active::after {
    background: var(--primary) !important;
    box-shadow: 0 0 12px rgba(227, 32, 27, .5) !important;
}

body.reference-theme .topbar .top-search input,
body.reference-theme .topbar .circle-btn,
body.reference-theme .topbar .plan-btn,
body.reference-theme .topbar .login-btn,
body.reference-theme:not(.auth-only):not(.checkout-only) .watch-btn,
body.reference-theme:not(.auth-only):not(.checkout-only) .card-watch-btn,
body.reference-theme:not(.auth-only):not(.checkout-only) .wide-btn,
body.reference-theme:not(.auth-only):not(.checkout-only) .pagination-link.active {
    border-color: var(--primary) !important;
    background: linear-gradient(135deg, #B3120E 0%, #E3201B 55%, #FF8A1F 100%) !important;
    box-shadow: 0 0 15px rgba(227, 32, 27, .45), 0 0 35px rgba(227, 32, 27, .20) !important;
}

body.reference-theme .topbar .top-search.open input {
    color: var(--text-primary) !important;
    background: var(--surface) !important;
    border-color: var(--border-hover) !important;
}

body.reference-theme .topbar .login-btn:hover,
body.reference-theme .topbar .circle-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .watch-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .card-watch-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .wide-btn:hover {
    background: var(--primary-hover) !important;
}

body.reference-theme.home-page .row-section,
body.reference-theme .poster-card,
body.reference-theme .plan-card,
body.reference-theme .content-detail-card {
    background: var(--surface) !important;
    border-color: var(--border-color) !important;
}

body.reference-theme .poster-card:hover,
body.reference-theme .plan-card:hover,
body.reference-theme .plan-card:focus-within,
body.reference-theme .plan-card.popular {
    background: var(--surface-hover) !important;
    border-color: var(--border-hover) !important;
}

body.reference-theme .section-head h2,
body.reference-theme .poster-card-title,
body.reference-theme .hero-copy h1 {
    color: var(--text-primary) !important;
}

body.reference-theme .section-head a,
body.reference-theme .view-all,
body.reference-theme .poster-card-title:hover,
body.reference-theme .price,
body.reference-theme .plans-eyebrow {
    color: #FF6B4A !important;
}

body.reference-theme .hero-slide::after,
body.reference-theme .poster-card-image-link::after {
    background: linear-gradient(to top, rgba(7, 6, 6, .95), rgba(7, 6, 6, .15), transparent) !important;
}

body.reference-theme .site-footer {
    background: var(--bg-secondary) !important;
    border-top-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

body.reference-theme.auth-only,
body.reference-theme.auth-only .auth-screen {
    color: var(--reference-text) !important;
    background:
        radial-gradient(circle at 50% -18%, rgba(227, 32, 27, .12), transparent 38rem),
        linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 48%, var(--bg-primary) 100%) !important;
}

/* Simple dynamic 16:9 home banner carousel. */
html body.reference-theme.home-page .normal-hero-carousel {
    position: relative !important;
    width: min(1180px, calc(100% - 32px)) !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    margin: 18px auto 28px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: #120000 !important;
}
html body.reference-theme.home-page .normal-hero-track,
html body.reference-theme.home-page .normal-hero-slide,
html body.reference-theme.home-page .normal-hero-link {
    width: 100% !important;
    height: 100% !important;
}
html body.reference-theme.home-page .normal-hero-track { position: relative !important; }
html body.reference-theme.home-page .normal-hero-slide { position: absolute !important; inset: 0 !important; opacity: 0 !important; transition: opacity .35s ease !important; pointer-events: none !important; }
html body.reference-theme.home-page .normal-hero-slide.is-active { opacity: 1 !important; pointer-events: auto !important; z-index: 1 !important; }
html body.reference-theme.home-page .normal-hero-slide img { display: block !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }
html body.reference-theme.home-page .normal-hero-link { position: relative !important; display: block !important; text-decoration: none !important; }
html body.reference-theme.home-page .normal-hero-overlay { position: absolute !important; inset: 0 !important; display: flex !important; align-items: flex-end !important; padding: clamp(18px, 4vw, 52px) !important; background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .55) 42%, transparent 78%), linear-gradient(0deg, rgba(0, 0, 0, .78), transparent 55%) !important; }
html body.reference-theme.home-page .normal-hero-details { max-width: min(620px, 85%) !important; color: var(--text-on-primary) !important; text-align: left !important; }
html body.reference-theme.home-page .normal-hero-details h1 { margin: 8px 0 10px !important; color: var(--text-on-primary) !important; font-size: clamp(22px, 4vw, 48px) !important; line-height: 1.05 !important; }
html body.reference-theme.home-page .normal-hero-badge { display: inline-block !important; padding: 5px 10px !important; border-radius: 999px !important; color: var(--text-on-primary) !important; background: var(--primary) !important; font-size: 11px !important; font-weight: 800 !important; text-transform: uppercase !important; }
html body.reference-theme.home-page .normal-hero-meta { display: flex !important; flex-wrap: wrap !important; gap: 7px 14px !important; color: rgba(255,255,255,.85) !important; font-size: clamp(11px, 1.3vw, 14px) !important; font-weight: 700 !important; }
html body.reference-theme.home-page .normal-hero-meta span + span::before { content: 'â€¢' !important; margin-right: 14px !important; color: #d10a18 !important; }
html body.reference-theme.home-page .normal-hero-details p { max-width: 560px !important; margin: 12px 0 16px !important; color: rgba(255,255,255,.82) !important; font-size: clamp(12px, 1.5vw, 16px) !important; line-height: 1.5 !important; }
html body.reference-theme.home-page .normal-hero-cta { display: inline-block !important; padding: 10px 18px !important; border-radius: 8px !important; color: var(--text-on-primary) !important; background: var(--primary) !important; font-size: 13px !important; font-weight: 800 !important; text-decoration: none !important; transition: background-color .2s ease, transform .2s ease !important; }
html body.reference-theme.home-page .normal-hero-cta:hover { color: var(--text-on-primary) !important; background: var(--primary) !important; transform: translateY(-2px) !important; }
html body.reference-theme.home-page .normal-hero-dots { position: absolute !important; right: 0 !important; bottom: 14px !important; left: 0 !important; z-index: 3 !important; display: flex !important; justify-content: center !important; gap: 7px !important; }
html body.reference-theme.home-page .normal-hero-dots button { width: 8px !important; height: 8px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: rgba(232, 236, 241, .03) !important; cursor: pointer !important; }
html body.reference-theme.home-page .normal-hero-dots button.is-active { background: var(--text-on-primary) !important; transform: scale(1.25) !important; }
@media (max-width: 600px) { html body.reference-theme.home-page .normal-hero-carousel { width: calc(100% - 20px) !important; margin-top: 12px !important; margin-bottom: 20px !important; border-radius: 12px !important; } }

/* Reserve space for the rebuilt shared header. */
html body.reference-theme:not(.auth-only):not(.checkout-only) {
    padding-top: 78px !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
}

/* Keep the public page on one document scrollbar; nested scrolling belongs only to dialogs. */
html body.reference-theme:not(.auth-only):not(.checkout-only) main,
html body.reference-theme:not(.auth-only):not(.checkout-only) .site-footer {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

@media (max-width: 900px) {
    html body.reference-theme:not(.auth-only):not(.checkout-only) {
        padding-top: 64px !important;
    }
}

/* Header rebuild: one stable DOM for desktop and mobile. */
html body.reference-theme .topbar {
    position: sticky !important;
    inset: 0 0 auto !important;
    z-index: 1000 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 78px !important;
    height: 78px !important;
    padding: 0 clamp(16px, 3vw, 48px) !important;
    box-sizing: border-box !important;
    background: rgba(8, 8, 8, .97) !important;
    border-bottom: 1px solid rgba(149, 6, 14, .55) !important;
}

html body.reference-theme .topbar > .top-search {
    position: relative !important;
    inset: auto !important;
    z-index: 3 !important;
    display: flex !important;
    justify-self: start !important;
    align-items: center !important;
    width: 42px !important;
    height: 44px !important;
    margin: 0 !important;
    transform: none !important;
    transition: width .25s ease !important;
}

html body.reference-theme .topbar > .top-search.open {
    width: clamp(220px, 28vw, 360px) !important;
}

html body.reference-theme .topbar > .top-search input {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 52px 0 16px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 24px !important;
    background: #171719 !important;
    color: var(--text-on-primary) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .2s ease !important;
}

html body.reference-theme .topbar > .top-search.open input {
    opacity: 1 !important;
    pointer-events: auto !important;
}

html body.reference-theme .topbar > .top-search .circle-btn {
    position: absolute !important;
    top: 2px !important;
    right: 0 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    margin: 0 !important;
    z-index: 2 !important;
}

html body.reference-theme .topbar > .site-brand {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    display: flex !important;
    justify-self: center !important;
    align-items: center !important;
    justify-content: center !important;
    width: clamp(170px, 18vw, 250px) !important;
    height: 70px !important;
    margin: 0 !important;
    transform: none !important;
}

html body.reference-theme .topbar > .site-brand img {
    display: block !important;
    width: clamp(160px, 17vw, 235px) !important;
    max-width: 100% !important;
    max-height: 62px !important;
    object-fit: contain !important;
}

html body.reference-theme .topbar > .main-nav {
    position: relative !important;
    inset: auto !important;
    z-index: 4 !important;
    display: flex !important;
    justify-self: end !important;
    align-items: center !important;
    width: auto !important;
    height: 100% !important;
    margin: 0 110px 0 0 !important;
    padding: 0 !important;
    gap: clamp(8px, 1.5vw, 24px) !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: 0 !important;
}

html body.reference-theme .topbar > .main-nav a {
    position: relative !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 4px !important;
    color: #f4f4f4 !important;
    font-size: clamp(12px, 1.1vw, 16px) !important;
    white-space: nowrap !important;
}

html body.reference-theme .topbar > .actions {
    position: absolute !important;
    inset: 0 clamp(16px, 3vw, 48px) 0 auto !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 10px !important;
    pointer-events: auto !important;
}

html body.reference-theme .topbar > .actions .user-notification-bell,
html body.reference-theme .topbar > .actions .plan-btn {
    display: inline-flex !important;
}

html body.reference-theme .topbar > .actions .user-profile-menu,
html body.reference-theme .topbar > .actions .guest-login-btn {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
}

html body.reference-theme .topbar > .mobile-nav-toggle,
html body.reference-theme .mobile-quick-nav,
html body.reference-theme .mobile-nav-overlay {
    display: none !important;
}

@media (max-width: 900px) {
    html body.reference-theme .topbar {
        grid-template-columns: 1fr auto 1fr !important;
        min-height: 64px !important;
        height: 64px !important;
        padding: 0 8px !important;
    }

    html body.reference-theme .topbar > .top-search {
        width: 36px !important;
        height: 38px !important;
    }

    html body.reference-theme .topbar > .top-search.open {
        position: absolute !important;
        left: 8px !important;
        width: min(calc(100vw - 16px), 300px) !important;
    }

    html body.reference-theme .topbar > .site-brand {
        width: clamp(128px, 36vw, 175px) !important;
        height: 58px !important;
    }

    html body.reference-theme .topbar > .site-brand img {
        width: clamp(124px, 35vw, 170px) !important;
        max-height: 50px !important;
    }

    html body.reference-theme .topbar > .main-nav {
        position: absolute !important;
        top: 0 !important;
        right: 48px !important;
        justify-self: auto !important;
        margin: 0 !important;
        gap: 3px !important;
    }

    html body.reference-theme .topbar > .main-nav a {
        height: 64px !important;
        padding: 0 2px !important;
        font-size: clamp(9px, 2.6vw, 12px) !important;
    }

    html body.reference-theme .topbar > .actions {
        right: 8px !important;
        gap: 4px !important;
    }

    html body.reference-theme .topbar > .actions .user-notification-bell,
    html body.reference-theme .topbar > .actions .plan-btn {
        display: none !important;
    }

    html body.reference-theme .topbar > .actions .login-btn,
    html body.reference-theme .topbar > .actions .guest-login-btn {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
    }

    html body.reference-theme .topbar > .actions .login-btn span:not(.profile-avatar),
    html body.reference-theme .topbar > .actions .guest-login-btn > span {
        display: none !important;
    }
}

@media (max-width: 380px) {
    html body.reference-theme .topbar > .site-brand,
    html body.reference-theme .topbar > .site-brand img {
        width: 104px !important;
    }

    html body.reference-theme .topbar > .main-nav {
        right: 46px !important;
    }

    html body.reference-theme .topbar > .main-nav a {
        font-size: 9px !important;
    }
}

/* Compact mobile hero controls and supplied circular play icon. */
html body.reference-theme.home-page .play-wave {
    display: inline-block !important;
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
     background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.5' fill='none' stroke='%23fff' stroke-width='1.7'/%3E%3Cpath d='M8.3 6.8 13.5 10l-5.2 3.2Z' fill='%23fff'/%3E%3C/svg%3E") !important;
    border-radius: 50% !important;
}

html body.reference-theme.home-page .play-wave::before,
html body.reference-theme.home-page .play-wave::after {
    display: none !important;
    animation: none !important;
}

@media (max-width: 600px) {
    html body.reference-theme.home-page .hero-copy h1,
    html body.reference-theme.home-page .hero-content-row h1 {
        font-size: clamp(12px, 3.8vw, 17px) !important;
        line-height: 1.05 !important;
        margin-bottom: 4px !important;
    }

    html body.reference-theme.home-page .hero-content-row .hero-description {
        display: -webkit-box !important;
        overflow: hidden !important;
        font-size: 8px !important;
        line-height: 1.2 !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    html body.reference-theme.home-page .watch-btn,
    html body.reference-theme.home-page .buy-btn {
        min-height: 25px !important;
        height: 25px !important;
        padding: 0 6px !important;
        gap: 3px !important;
        font-size: 6px !important;
        letter-spacing: .02em !important;
    }

    html body.reference-theme.home-page .watch-btn .play-wave,
    html body.reference-theme.home-page .buy-btn .diamond-icon {
        width: 11px !important;
        height: 11px !important;
        min-width: 11px !important;
    }
}

/* Restore the original header presentation. */
/* Centered four-part header: Search, Logo, Navigation, Profile. */
html body.reference-theme .topbar {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    z-index: 1000 !important;
    display: flex !important;
    width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 max(24px, calc((100vw - var(--reference-content)) / 2)) !important;
    box-sizing: border-box !important;
    background: var(--bg-primary) !important;
}

html body.reference-theme .topbar > .site-brand {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 3 !important;
    display: flex !important;
    width: 190px !important;
    height: 60px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
}

html body.reference-theme .topbar > .site-brand img {
    width: 180px !important;
    max-width: 180px !important;
    max-height: 52px !important;
}

html body.reference-theme .topbar > .main-nav {
    position: absolute !important;
    top: 0 !important;
    right: max(150px, calc((100vw - var(--reference-content)) / 2 + 126px)) !important;
    left: auto !important;
    z-index: 4 !important;
    display: flex !important;
    width: auto !important;
    height: 68px !important;
    align-items: center !important;
    gap: 2px !important;
    margin: 0 !important;
    transform: none !important;
}

html body.reference-theme .topbar > .main-nav a {
    position: relative !important;
    display: inline-flex !important;
    height: 68px !important;
    align-items: center !important;
    padding: 0 12px !important;
    color: rgba(255, 255, 255, .9) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

html body.reference-theme .topbar > .actions {
    position: absolute !important;
    top: 0 !important;
    left: max(24px, calc((100vw - var(--reference-content)) / 2)) !important;
    right: max(24px, calc((100vw - var(--reference-content)) / 2)) !important;
    bottom: 0 !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

html body.reference-theme .topbar > .actions > .top-search {
    position: absolute !important;
    top: 50% !important;
    right: auto !important;
    left: 0 !important;
    width: 38px !important;
    min-width: 38px !important;
    transform: translateY(-50%) !important;
}

html body.reference-theme .topbar > .actions > .user-notification-bell,
html body.reference-theme .topbar > .actions > .plan-btn {
    display: none !important;
}

html body.reference-theme .topbar > .actions .user-profile-menu,
html body.reference-theme .topbar > .actions .guest-login-btn {
    position: static !important;
    margin: 0 !important;
    transform: none !important;
}

@media (max-width: 900px) {
    html body.reference-theme:not(.auth-only):not(.checkout-only) {
        padding-top: 56px !important;
    }

    html body.reference-theme .topbar {
        height: 56px !important;
        min-height: 56px !important;
        padding: 0 8px !important;
    }

    html body.reference-theme .topbar > .site-brand {
        width: 100px !important;
        height: 50px !important;
    }

    html body.reference-theme .topbar > .site-brand img {
        width: 96px !important;
        max-width: 96px !important;
        max-height: 38px !important;
    }

    html body.reference-theme .topbar > .main-nav {
        right: 48px !important;
        height: 56px !important;
    }

    html body.reference-theme .topbar > .main-nav a {
        height: 56px !important;
        padding: 0 3px !important;
        font-size: clamp(9px, 2.7vw, 12px) !important;
    }

    html body.reference-theme .topbar > .actions {
        left: 8px !important;
        right: 8px !important;
    }

    html body.reference-theme .topbar > .actions > .top-search {
        left: 0 !important;
        width: 30px !important;
        min-width: 30px !important;
    }

    html body.reference-theme .topbar > .actions > .top-search .circle-btn {
        width: 30px !important;
        height: 30px !important;
    }
}

@media (max-width: 360px) {
    html body.reference-theme .topbar > .main-nav a {
        padding-inline: 2px !important;
        font-size: 9px !important;
    }
}
html body.reference-theme .topbar {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    display: flex !important;
    height: 64px !important;
    min-height: 64px !important;
    align-items: center !important;
    gap: 26px !important;
    padding: 0 max(24px, calc((100vw - var(--reference-content)) / 2)) !important;
    background: rgba(7, 7, 7, .97) !important;
}

html body.reference-theme .topbar > .site-brand {
    position: static !important;
    width: 152px !important;
    min-width: 152px !important;
    height: 58px !important;
    flex: 0 0 152px !important;
    transform: none !important;
}

html body.reference-theme .topbar > .main-nav {
    position: static !important;
    display: flex !important;
    width: auto !important;
    height: 64px !important;
    align-items: stretch !important;
    pointer-events: auto !important;
    transform: none !important;
}

html body.reference-theme .topbar > .actions {
    position: static !important;
    display: flex !important;
    width: auto !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    margin: 0 0 0 auto !important;
    pointer-events: auto !important;
    transform: none !important;
}

@media (max-width: 900px) {
    html body.reference-theme:not(.auth-only):not(.checkout-only) {
        padding-top: 56px !important;
    }

    html body.reference-theme .topbar {
        height: 56px !important;
        min-height: 56px !important;
        gap: 6px !important;
        padding: 0 8px !important;
    }

    html body.reference-theme .topbar > .site-brand {
        width: auto !important;
        min-width: 52px !important;
        height: 46px !important;
        flex: 1 1 auto !important;
    }

    html body.reference-theme .topbar > .site-brand img {
        width: 100px !important;
        max-width: 100px !important;
        max-height: 40px !important;
    }

    html body.reference-theme .topbar > .main-nav {
        display: none !important;
    }

    html body.reference-theme .topbar > .actions {
        gap: 6px !important;
        margin-left: auto !important;
    }

    html body.reference-theme .topbar > .actions .mobile-header-home,
    html body.reference-theme .topbar > .actions .mobile-header-movies {
        display: inline-flex !important;
        height: 30px !important;
        align-items: center !important;
        padding: 0 2px !important;
        color: var(--text-on-primary) !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
    }
}

body.reference-theme:not(.auth-only):not(.checkout-only) {
    padding-top: 64px !important;
}

body.reference-theme .topbar {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    z-index: 1000 !important;
    display: flex !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    align-items: center !important;
    gap: 26px !important;
    margin: 0 !important;
    padding: 0 max(24px, calc((100vw - var(--reference-content)) / 2)) !important;
    box-sizing: border-box !important;
    background: rgba(7, 7, 7, .97) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .055) !important;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .62) !important;
}

body.reference-theme .topbar > .site-brand {
    position: static !important;
    order: 1 !important;
    display: flex !important;
    width: 152px !important;
    min-width: 152px !important;
    height: 58px !important;
    flex: 0 0 152px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    transform: none !important;
}

body.reference-theme .topbar > .site-brand img {
    width: 142px !important;
    max-width: 142px !important;
    max-height: 50px !important;
}

body.reference-theme .topbar > .main-nav {
    position: static !important;
    order: 2 !important;
    display: flex !important;
    width: auto !important;
    height: 64px !important;
    align-items: stretch !important;
    gap: 2px !important;
    margin: 0 !important;
    pointer-events: auto !important;
    transform: none !important;
}

body.reference-theme .topbar > .main-nav a {
    position: relative !important;
    display: flex !important;
    width: auto !important;
    height: 64px !important;
    align-items: center !important;
    padding: 0 16px !important;
}

body.reference-theme .topbar > .actions {
    position: static !important;
    order: 3 !important;
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    pointer-events: auto !important;
    transform: none !important;
}

body.reference-theme .topbar > .actions .top-search {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 38px !important;
    min-width: 38px !important;
    transform: none !important;
}

body.reference-theme .topbar > .actions .mobile-header-home,
body.reference-theme .topbar > .actions .mobile-header-movies {
    display: none !important;
}

body.reference-theme .topbar > .mobile-nav-toggle {
    display: none !important;
}

@media (max-width: 900px) {
    body.reference-theme:not(.auth-only):not(.checkout-only) {
        padding-top: 56px !important;
    }

    body.reference-theme .topbar {
        height: 56px !important;
        min-height: 56px !important;
        gap: 6px !important;
        padding: 0 8px !important;
    }

    body.reference-theme .topbar > .site-brand {
        width: auto !important;
        min-width: 52px !important;
        height: 46px !important;
        flex: 1 1 auto !important;
    }

    body.reference-theme .topbar > .site-brand img {
        width: 100px !important;
        max-width: 100px !important;
        max-height: 40px !important;
    }

    body.reference-theme .topbar > .main-nav {
        display: none !important;
    }

    body.reference-theme .topbar > .actions {
        gap: 6px !important;
        margin-left: auto !important;
    }

    body.reference-theme .topbar > .actions .mobile-header-home,
    body.reference-theme .topbar > .actions .mobile-header-movies {
        display: inline-flex !important;
        height: 30px !important;
        align-items: center !important;
        padding: 0 2px !important;
        color: var(--text-on-primary) !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
    }

    body.reference-theme .topbar > .actions .top-search {
        width: 30px !important;
        min-width: 30px !important;
    }

    body.reference-theme .topbar > .actions .top-search .circle-btn {
        width: 30px !important;
        height: 30px !important;
    }

    body.reference-theme .topbar > .actions .user-profile-menu,
    body.reference-theme .topbar > .actions .guest-login-btn {
        position: static !important;
        transform: none !important;
    }
}

/* Lucide-compatible header icon system for the rebuilt Blade header. */
body.reference-theme .nf-header .nf-icon {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

body.reference-theme .nf-header .nf-plan-icon {
    width: 22px !important;
    height: 22px !important;
    color: var(--text-on-primary) !important;
}

body.reference-theme .nf-header .user-bell-icon {
    display: grid !important;
    width: 22px !important;
    height: 22px !important;
    place-items: center !important;
    font-size: 0 !important;
}

body.reference-theme .nf-header .user-bell-icon .nf-icon {
    width: 18px !important;
    height: 18px !important;
}

/* Rebuilt header: isolated from the legacy .topbar cascade. */
body.reference-theme:not(.auth-only):not(.checkout-only) {
    padding-top: 76px !important;
}

body.reference-theme .nf-header {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    z-index: 1000 !important;
    display: flex !important;
    width: 100% !important;
    height: 76px !important;
    min-height: 76px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 max(24px, calc((100vw - var(--reference-content)) / 2)) !important;
    box-sizing: border-box !important;
    background: var(--bg-primary) !important;
    border-bottom: 1px solid rgba(149, 6, 14, .42) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .58) !important;
}

body.reference-theme .nf-header-actions {
    position: absolute !important;
    top: 0 !important;
    right: max(24px, calc((100vw - var(--reference-content)) / 2)) !important;
    bottom: 0 !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.reference-theme .nf-header-actions .user-profile-menu {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin: 0 !important;
    transform: none !important;
}

@media (max-width: 900px) {
    body.reference-theme:not(.auth-only):not(.checkout-only) {
        padding-top: 60px !important;
    }

    body.reference-theme .nf-header {
        height: 60px !important;
        min-height: 60px !important;
        padding: 0 8px !important;
    }

    body.reference-theme .nf-header-actions {
        top: 0 !important;
        right: 8px !important;
        bottom: 0 !important;
        gap: 0 !important;
    }

    body.reference-theme .nf-header-actions .plan-btn,
    body.reference-theme .nf-header-actions .user-notification-bell {
        display: none !important;
    }
}

@media (max-width: 900px) {
    body.reference-theme:not(.auth-only):not(.checkout-only) {
        padding-top: 60px !important;
    }

    body.reference-theme:not(.auth-only):not(.checkout-only) .topbar {
        height: 60px !important;
        min-height: 60px !important;
        display: block !important;
        padding: 0 8px !important;
    }

    body.reference-theme .topbar .site-brand {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        z-index: 2 !important;
        width: clamp(96px, 30vw, 132px) !important;
        min-width: 0 !important;
        height: 54px !important;
        justify-content: center !important;
        transform: translate(-50%, -50%) !important;
    }

    body.reference-theme .topbar .site-brand img {
        width: clamp(96px, 30vw, 132px) !important;
        max-width: 132px !important;
        max-height: 44px !important;
    }

    body.reference-theme .topbar .main-nav,
    body.reference-theme .topbar .plan-btn,
    body.reference-theme .topbar .user-notification-bell {
        display: none !important;
    }

    body.reference-theme .topbar .actions {
        position: absolute !important;
        inset: 0 8px 0 8px !important;
        z-index: 3 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 5px !important;
        pointer-events: none !important;
    }

    body.reference-theme .topbar .actions > * {
        pointer-events: auto !important;
    }

    body.reference-theme .topbar .actions .top-search {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        right: auto !important;
        transform: translateY(-50%) !important;
    }

    body.reference-theme .topbar .actions .top-search input {
        right: auto !important;
        left: 0 !important;
    }

    body.reference-theme .topbar .mobile-header-home,
    body.reference-theme .topbar .mobile-header-movies {
        position: relative !important;
        z-index: 4 !important;
        display: inline-flex !important;
        width: auto !important;
        min-width: 0 !important;
        height: 32px !important;
        padding: 0 3px !important;
        font-size: clamp(10px, 3vw, 13px) !important;
    }

    body.reference-theme .topbar .guest-login-btn,
    body.reference-theme .topbar .user-profile-menu .profile-toggle {
        position: relative !important;
        z-index: 4 !important;
    }
}

/* Final header alignment: actions left, centered logo, main navigation right. */
@media (min-width: 901px) {
    body.reference-theme .topbar .actions {
        right: auto !important;
        left: max(24px, calc((100vw - var(--reference-content)) / 2)) !important;
        justify-content: flex-start !important;
        margin: 0 !important;
    }

    body.reference-theme .topbar .actions .top-search {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }

    body.reference-theme .topbar .main-nav {
        right: max(24px, calc((100vw - var(--reference-content)) / 2)) !important;
    }
}

@media (max-width: 900px) {
    body.reference-theme:not(.auth-only):not(.checkout-only) .topbar {
        height: 60px !important;
        min-height: 60px !important;
        padding: 0 8px !important;
        background: var(--bg-primary) !important;
        border-bottom: 2px solid rgba(149, 6, 14, .55) !important;
    }

    body.reference-theme .topbar .site-brand {
        width: clamp(96px, 30vw, 132px) !important;
        height: 54px !important;
    }

    body.reference-theme .topbar .site-brand img {
        width: clamp(96px, 30vw, 132px) !important;
        max-width: 132px !important;
        max-height: 44px !important;
    }

    body.reference-theme .topbar .actions {
        right: 8px !important;
        left: 8px !important;
        padding-right: 38px !important;
    }

    body.reference-theme .topbar .actions .top-search {
        left: 0 !important;
    }

    body.reference-theme .topbar .mobile-header-home,
    body.reference-theme .topbar .mobile-header-movies {
        position: absolute !important;
        top: 50% !important;
        z-index: 5 !important;
        transform: translateY(-50%) !important;
    }

    body.reference-theme .topbar .mobile-header-home {
        right: 84px !important;
    }

    body.reference-theme .topbar .mobile-header-movies {
        right: 42px !important;
    }
}

/* Keep the authenticated profile control pinned to the right edge. */
body.reference-theme .topbar .user-profile-menu {
    position: absolute !important;
    z-index: 8 !important;
    margin: 0 !important;
}

@media (min-width: 901px) {
    body.reference-theme .topbar .user-profile-menu {
        top: 50% !important;
        right: max(24px, calc((100vw - var(--reference-content)) / 2)) !important;
        transform: translateY(-50%) !important;
    }

    body.reference-theme .topbar .main-nav {
        right: max(150px, calc((100vw - var(--reference-content)) / 2 + 126px)) !important;
    }
}

@media (max-width: 900px) {
    body.reference-theme .topbar .user-profile-menu {
        top: 50% !important;
        right: 8px !important;
        transform: translateY(-50%) !important;
    }
}

/* Keep inner customer pages on the same dark red-to-black canvas as Home. */
body.reference-theme:not(.auth-only):not(.checkout-only) .page-wrap,
body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-page,
body.reference-theme:not(.auth-only):not(.checkout-only) .watch-page,
body.reference-theme:not(.auth-only):not(.checkout-only) .payment-thank-you-page,
body.reference-theme:not(.auth-only):not(.checkout-only) .site-footer {
    background: transparent !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .site-footer {
    border-top-color: rgba(149, 6, 14, .24) !important;
}

/* Keep every customer-facing hover state within the dark red theme. */
body.reference-theme:not(.auth-only):not(.checkout-only) a:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) button:hover {
    accent-color: var(--reference-red) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card:hover .poster-card-title,
body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card .poster-card-title:hover {
    color: var(--text-on-primary) !important;
    background: var(--surface-hover) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card .heart-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card .heart-btn.active {
    border-color: var(--reference-red) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .watch-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .card-watch-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .wide-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .login-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .circle-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .guest-login-btn:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .row-arrow:hover {
    color: var(--text-on-primary) !important;
    background: var(--reference-red-hover) !important;
    border-color: var(--reference-red-hover) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .section-head a:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .view-all:hover,
body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card-title:hover {
    color: var(--reference-red-link) !important;
}

/* Final mobile header lock: keep the logo centered and controls in fixed zones. */
@media (max-width: 900px) {
    body.reference-theme:not(.auth-only):not(.checkout-only) {
        padding-top: 60px !important;
        background-color: var(--bg-primary) !important;
    }

    body.reference-theme:not(.auth-only):not(.checkout-only) .topbar {
        position: fixed !important;
        inset: 0 0 auto 0 !important;
        display: block !important;
        width: 100% !important;
        height: 60px !important;
        min-height: 60px !important;
        margin: 0 !important;
        padding: 0 8px !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        background: var(--bg-primary) !important;
        border-top: 0 !important;
        border-bottom: 2px solid rgba(149, 6, 14, .55) !important;
        box-shadow: 0 5px 18px rgba(0, 0, 0, .65) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.reference-theme .topbar .site-brand {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        z-index: 2 !important;
        display: flex !important;
        width: clamp(104px, 34vw, 144px) !important;
        min-width: 0 !important;
        height: 54px !important;
        margin: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        transform: translate(-50%, -50%) !important;
    }

    body.reference-theme .topbar .site-brand img {
        width: clamp(104px, 34vw, 144px) !important;
        max-width: 144px !important;
        max-height: 46px !important;
        object-fit: contain !important;
    }

    body.reference-theme .topbar .main-nav,
    body.reference-theme .topbar .plan-btn,
    body.reference-theme .topbar .user-notification-bell,
    body.reference-theme .topbar .mobile-nav-toggle {
        display: none !important;
    }

    body.reference-theme .topbar .actions {
        position: absolute !important;
        inset: 0 8px !important;
        z-index: 3 !important;
        display: block !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
    }

    body.reference-theme .topbar .actions > * {
        pointer-events: auto !important;
    }

    body.reference-theme .topbar .actions .top-search {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        width: 32px !important;
        min-width: 32px !important;
        margin: 0 !important;
        transform: translateY(-50%) !important;
    }

    body.reference-theme .topbar .actions .top-search input {
        left: 0 !important;
        right: auto !important;
    }

    body.reference-theme .topbar .mobile-header-home,
    body.reference-theme .topbar .mobile-header-movies {
        position: absolute !important;
        top: 50% !important;
        z-index: 4 !important;
        display: inline-flex !important;
        width: auto !important;
        min-width: 0 !important;
        height: 30px !important;
        margin: 0 !important;
        padding: 0 3px !important;
        font-size: clamp(10px, 3vw, 13px) !important;
        transform: translateY(-50%) !important;
    }

    body.reference-theme .topbar .mobile-header-home { right: 82px !important; }
    body.reference-theme .topbar .mobile-header-movies { right: 40px !important; }

    body.reference-theme .topbar .user-profile-menu,
    body.reference-theme .topbar .guest-login-btn {
        position: absolute !important;
        top: 50% !important;
        right: 0 !important;
        z-index: 5 !important;
        margin: 0 !important;
        transform: translateY(-50%) !important;
    }

    body.reference-theme .topbar .user-profile-menu .profile-toggle {
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
    }
}

/* Smooth carousel state changes without delaying pointer-drag updates. */
body.reference-theme.home-page .hero-slide {
    transition: filter .42s ease, opacity .32s ease, box-shadow .42s ease !important;
}

body.reference-theme.home-page .hero-slide.is-active {
    box-shadow: 0 18px 42px rgba(0, 0, 0, .42) !important;
}

/* Shared reveal animation for page sections and reusable content cards. */
body.reference-theme .reference-reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity .58s ease var(--reference-reveal-delay, 0ms),
                transform .58s cubic-bezier(.22, .75, .25, 1) var(--reference-reveal-delay, 0ms);
}

body.reference-theme .reference-reveal.reference-reveal-visible {
    opacity: 1;
    transform: none;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-info {
    background:
        linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 48%, var(--bg-primary) 100%) !important;
    border-top: 1px solid var(--border-color) !important;
}

@media (max-width: 700px) {
    body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-info {
        padding: clamp(22px, 6vw, 34px) clamp(16px, 5vw, 28px) clamp(28px, 8vw, 40px) !important;
        background:
            linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 58%, var(--bg-primary) 100%) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.reference-theme .reference-reveal,
    body.reference-theme .reference-reveal.reference-reveal-visible,
    body.reference-theme.home-page .hero-slide {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Final navigation layout: Movies left of the logo, Home right of the logo. */
body.reference-theme .topbar > .main-nav {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    pointer-events: none !important;
    background: transparent !important;
    border: 0 !important;
}

body.reference-theme .topbar > .main-nav a {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 6 !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: 100% !important;
    align-items: center !important;
    padding: 0 10px !important;
    pointer-events: auto !important;
    white-space: nowrap !important;
}

/* The Blade order is Home, Movies; place them visually around the logo. */
body.reference-theme .topbar > .main-nav a:first-child {
    right: max(290px, calc((100vw - var(--reference-content)) / 2 + 290px)) !important;
    left: auto !important;
}

body.reference-theme .topbar > .main-nav a:last-child {
    right: auto !important;
    left: max(82px, calc((100vw - var(--reference-content)) / 2 + 58px)) !important;
}

@media (min-width: 901px) {
    body.reference-theme .topbar:has(> .top-search.open) > .main-nav a:last-child {
        left: max(350px, calc((100vw - var(--reference-content)) / 2 + 330px)) !important;
    }
}

/* Mobile final override: keep the shared navigation visible beside the logo. */
@media (max-width: 900px) {
    body.reference-theme .topbar > .main-nav {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: 60px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        pointer-events: none !important;
        background: transparent !important;
        border: 0 !important;
    }

    body.reference-theme .topbar > .main-nav a {
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        z-index: 8 !important;
        display: inline-flex !important;
        width: auto !important;
        min-width: 0 !important;
        height: 60px !important;
        align-items: center !important;
        padding: 0 3px !important;
        pointer-events: auto !important;
        color: var(--text-on-primary) !important;
        font-size: clamp(10px, 2.8vw, 13px) !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.reference-theme .topbar > .main-nav a:first-child {
        right: 48px !important;
        left: auto !important;
    }

    body.reference-theme .topbar > .main-nav a:last-child {
        right: auto !important;
        left: 45px !important;
    }
}

@media (max-width: 360px) {
    body.reference-theme .topbar > .main-nav a {
        font-size: 9px !important;
    }

    body.reference-theme .topbar > .main-nav a:last-child {
        left: 40px !important;
    }
}

/* Final mobile cascade: show the shared nav without the removed hamburger menu. */
@media (max-width: 900px) {
    body.reference-theme .topbar > .main-nav {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: 60px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        pointer-events: none !important;
        background: transparent !important;
        border: 0 !important;
    }

    body.reference-theme .topbar > .main-nav a {
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        z-index: 8 !important;
        display: inline-flex !important;
        width: auto !important;
        min-width: 0 !important;
        height: 60px !important;
        align-items: center !important;
        padding: 0 3px !important;
        pointer-events: auto !important;
        font-size: clamp(10px, 2.8vw, 13px) !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.reference-theme .topbar > .main-nav a:first-child {
        right: 48px !important;
        left: auto !important;
    }

    body.reference-theme .topbar > .main-nav a:last-child {
        right: auto !important;
        left: 45px !important;
    }

    body.reference-theme .topbar > .mobile-nav-toggle,
    body.reference-theme .mobile-quick-nav,
    body.reference-theme .mobile-nav-overlay {
        display: none !important;
    }
}

@media (max-width: 360px) {
    body.reference-theme .topbar > .main-nav a {
        font-size: 9px !important;
    }

    body.reference-theme .topbar > .main-nav a:last-child {
        left: 40px !important;
    }
}

@media (max-width: 900px) {
    body.reference-theme .topbar > .main-nav {
        display: block !important;
        height: 60px !important;
    }

    body.reference-theme .topbar > .main-nav a {
        height: 60px !important;
        padding-inline: 3px !important;
        font-size: clamp(10px, 2.8vw, 13px) !important;
    }

    body.reference-theme .topbar > .main-nav a:first-child {
        right: 48px !important;
        left: auto !important;
        z-index: 8 !important;
    }

    body.reference-theme .topbar > .main-nav a:last-child {
        right: auto !important;
        left: 45px !important;
        z-index: 8 !important;
    }

    body.reference-theme .topbar > .mobile-nav-toggle,
    body.reference-theme .mobile-quick-nav,
    body.reference-theme .mobile-nav-overlay {
        display: none !important;
    }
}

@media (max-width: 360px) {
    body.reference-theme .topbar > .main-nav a {
        font-size: 9px !important;
    }

    body.reference-theme .topbar > .main-nav a:last-child {
        left: 40px !important;
    }
}

/* Responsive desktop nav container: keep link offsets relative to the viewport. */
@media (min-width: 901px) {
    body.reference-theme .topbar > .main-nav {
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    body.reference-theme .topbar > .main-nav a:last-child {
        right: auto !important;
        left: max(82px, calc((100vw - var(--reference-content)) / 2 + 58px)) !important;
    }

    body.reference-theme .topbar > .main-nav a:first-child {
        right: max(290px, calc((100vw - var(--reference-content)) / 2 + 290px)) !important;
        left: auto !important;
    }

    body.reference-theme .topbar:has(> .top-search.open) > .main-nav a:last-child {
        left: max(350px, calc((100vw - var(--reference-content)) / 2 + 330px)) !important;
    }
}

/* Poster card labels use the same dark-red surface across Home and inner pages. */
/* Three-card mobile carousel sizing. */
/* Blade implementation of the shared stacked carousel design. */
html body.reference-theme.home-page .hero-shell {
    isolation: isolate !important;
    cursor: grab !important;
}

html body.reference-theme.home-page .hero-shell:active {
    cursor: grabbing !important;
}

html body.reference-theme.home-page .hero-slide {
    width: clamp(220px, 22vw, 300px) !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .42) !important;
    transition: filter .35s ease, opacity .35s ease, box-shadow .35s ease !important;
}

html body.reference-theme.home-page .hero-slide.is-active {
    box-shadow: 0 24px 48px rgba(0, 0, 0, .55) !important;
}

html body.reference-theme.home-page .hero-slide .hero-copy {
    right: 14px !important;
    bottom: 18px !important;
    left: 14px !important;
    width: auto !important;
    max-width: none !important;
}

html body.reference-theme.home-page .hero-slide .hero-content-row {
    gap: 4px !important;
    margin-bottom: 10px !important;
}

html body.reference-theme.home-page .hero-slide .hero-copy h1 {
    font-size: clamp(17px, 2vw, 24px) !important;
    line-height: 1.08 !important;
}

html body.reference-theme.home-page .hero-slide .hero-description {
    color: rgba(255, 255, 255, .78) !important;
    font-size: 12px !important;
    font-style: italic !important;
    line-height: 1.35 !important;
}

html body.reference-theme.home-page .hero-slide .watch-btn {
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    padding: 0 14px !important;
}

@media (max-width: 600px) {
    html body.reference-theme.home-page .hero-slide:not(.is-active) {
        filter: brightness(.58) saturate(.9) !important;
    }

html body.reference-theme.home-page .hero-slide.is-active {
        filter: brightness(1) saturate(1) !important;
    }
}

body.reference-theme:not(.auth-only):not(.checkout-only) .section-head a,
body.reference-theme:not(.auth-only):not(.checkout-only) .view-all {
    color: var(--text-primary) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card-info {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px !important;
    background: var(--surface) !important;
    transition: background-color .2s ease, color .2s ease !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card:hover .poster-card-info {
    background: var(--surface-hover) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card:hover .poster-card-title {
    background: var(--surface-hover) !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card-title,
body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card .poster-card-title:hover {
    margin: 0 !important;
    color: var(--text-on-primary) !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    transition: background-color .2s ease, color .2s ease, transform .2s ease !important;
}

body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card:hover .poster-card-title,
body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card .poster-card-title:hover {
    color: var(--text-on-primary) !important;
    background: transparent !important;
    transform: translateY(-1px) !important;
}

/* Unified header: Search - centered Logo - Navigation - Profile. */
body.reference-theme:not(.auth-only):not(.checkout-only) .topbar {
    display: block !important;
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    box-sizing: border-box !important;
}

body.reference-theme .topbar > .top-search {
    position: absolute !important;
    top: 50% !important;
    left: max(24px, calc((100vw - var(--reference-content)) / 2)) !important;
    z-index: 6 !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
}

body.reference-theme .topbar > .site-brand {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 5 !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
}

body.reference-theme .topbar > .main-nav {
    position: absolute !important;
    top: 0 !important;
    right: max(150px, calc((100vw - var(--reference-content)) / 2 + 126px)) !important;
    z-index: 6 !important;
    display: flex !important;
    height: 100% !important;
    align-items: stretch !important;
}

body.reference-theme .topbar > .actions {
    position: absolute !important;
    top: 0 !important;
    right: max(24px, calc((100vw - var(--reference-content)) / 2)) !important;
    bottom: 0 !important;
    z-index: 7 !important;
    display: flex !important;
    width: auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

body.reference-theme .topbar > .actions > * {
    pointer-events: auto !important;
}

body.reference-theme .topbar > .actions .top-search,
body.reference-theme .topbar > .actions .mobile-header-home,
body.reference-theme .topbar > .actions .mobile-header-movies {
    display: none !important;
}

@media (max-width: 900px) {
    body.reference-theme:not(.auth-only):not(.checkout-only) .topbar {
        height: 60px !important;
        min-height: 60px !important;
        padding: 0 8px !important;
    }

    body.reference-theme .topbar > .top-search {
        left: 8px !important;
        width: 32px !important;
        min-width: 32px !important;
    }

    body.reference-theme .topbar > .site-brand {
        width: clamp(90px, 29vw, 132px) !important;
        min-width: 0 !important;
        height: 52px !important;
    }

    body.reference-theme .topbar > .site-brand img {
        width: clamp(90px, 29vw, 132px) !important;
        max-width: 132px !important;
        max-height: 44px !important;
    }

    body.reference-theme .topbar > .main-nav {
        top: 0 !important;
        right: 43px !important;
        height: 60px !important;
        gap: 0 !important;
    }

    body.reference-theme .topbar > .main-nav a {
        position: relative !important;
        height: 60px !important;
        padding: 0 clamp(2px, 1.2vw, 7px) !important;
        font-size: clamp(9px, 2.8vw, 12px) !important;
    }

    body.reference-theme .topbar > .actions {
        top: 0 !important;
        right: 8px !important;
        bottom: 0 !important;
    }

    body.reference-theme .topbar > .actions .plan-btn,
    body.reference-theme .topbar > .actions .user-notification-bell {
        display: none !important;
    }

    body.reference-theme .topbar > .actions .user-profile-menu,
    body.reference-theme .topbar > .actions .guest-login-btn {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
    }
}

@media (max-width: 360px) {
    body.reference-theme .topbar > .site-brand,
    body.reference-theme .topbar > .site-brand img {
        width: 90px !important;
    }

    body.reference-theme .topbar > .main-nav a {
        padding-inline: 2px !important;
        font-size: 9px !important;
    }
}

/* Mobile navigation: one hamburger control and a left sliding sidebar. */
@media (max-width: 900px) {
    body.reference-theme .topbar > .main-nav {
        display: none !important;
    }

    body.reference-theme .topbar > .mobile-nav-toggle {
        position: absolute !important;
        top: 50% !important;
        right: 46px !important;
        z-index: 9 !important;
        display: grid !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        place-content: center !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid rgba(255, 255, 255, .16) !important;
        border-radius: 6px !important;
        background: rgba(149, 6, 14, .9) !important;
        transform: translateY(-50%) !important;
    }

    body.reference-theme .topbar > .mobile-nav-toggle span {
        display: block !important;
        width: 17px !important;
        height: 2px !important;
        border-radius: 2px !important;
        background: var(--text-on-primary) !important;
        transition: transform .22s ease, opacity .18s ease !important;
    }

    body.reference-theme.mobile-menu-open .topbar > .mobile-nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg) !important;
    }

    body.reference-theme.mobile-menu-open .topbar > .mobile-nav-toggle span:nth-child(2) {
        opacity: 0 !important;
    }

    body.reference-theme.mobile-menu-open .topbar > .mobile-nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg) !important;
    }

    body.reference-theme .mobile-quick-nav {
        position: fixed !important;
        top: 60px !important;
        right: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 1201 !important;
        display: grid !important;
        width: min(82vw, 310px) !important;
        height: calc(100dvh - 60px) !important;
        max-height: none !important;
        grid-template-columns: 1fr !important;
        margin: 0 !important;
        padding: 12px 0 !important;
        overflow-y: auto !important;
        border: 1px solid rgba(149, 6, 14, .45) !important;
        border-left: 0 !important;
        border-radius: 0 12px 12px 0 !important;
        background: linear-gradient(180deg, #180307 0%, #0b0204 48%, var(--bg-primary) 100%) !important;
        box-shadow: 14px 0 38px rgba(0, 0, 0, .58) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translate3d(-105%, 0, 0) !important;
        transition: transform .28s cubic-bezier(.22, .75, .25, 1), opacity .2s ease, visibility 0s linear .28s !important;
    }

    body.reference-theme.mobile-menu-open .mobile-quick-nav {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translate3d(0, 0, 0) !important;
        transition-delay: 0s !important;
    }

    body.reference-theme .mobile-quick-nav a {
        display: flex !important;
        width: 100% !important;
        min-height: 54px !important;
        height: auto !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 24px !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
        color: rgba(255, 255, 255, .88) !important;
        background: transparent !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
    }

    body.reference-theme .mobile-quick-nav a:hover,
    body.reference-theme .mobile-quick-nav a:focus-visible,
    body.reference-theme .mobile-quick-nav a.active,
    body.reference-theme .mobile-quick-nav a[aria-current="page"] {
        color: var(--text-on-primary) !important;
        background: rgba(149, 6, 14, .32) !important;
    }

    body.reference-theme .mobile-nav-overlay {
        position: fixed !important;
        inset: 60px 0 0 0 !important;
        z-index: 1200 !important;
        display: block !important;
        width: 100vw !important;
        height: calc(100dvh - 60px) !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: rgba(0, 0, 0, .7) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity .22s ease, visibility 0s linear .22s !important;
    }

    body.reference-theme.mobile-menu-open .mobile-nav-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transition-delay: 0s !important;
    }

    body.reference-theme.mobile-menu-open {
        overflow: hidden !important;
    }
}

@media (max-width: 360px) {
    body.reference-theme .topbar > .mobile-nav-toggle {
        right: 43px !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
    }

    body.reference-theme .mobile-quick-nav {
        width: min(86vw, 290px) !important;
    }
}

/* Final header collision fix for both desktop and mobile. */
@media (min-width: 901px) {
    body.reference-theme .topbar > .actions {
        right: max(24px, calc((100vw - var(--reference-content)) / 2)) !important;
        display: flex !important;
        gap: 10px !important;
    }

    body.reference-theme .topbar > .actions .user-profile-menu {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin: 0 !important;
        transform: none !important;
    }

    body.reference-theme .topbar > .main-nav {
        right: auto !important;
        left: max(82px, calc((100vw - var(--reference-content)) / 2 + 58px)) !important;
    }

    /* Expanded search needs its own horizontal space before the nav begins. */
    body.reference-theme .topbar:has(> .top-search.open) > .main-nav {
        left: max(350px, calc((100vw - var(--reference-content)) / 2 + 330px)) !important;
    }
}

@media (max-width: 900px) {
    body.reference-theme .topbar > .site-brand {
        width: clamp(82px, 24vw, 110px) !important;
    }

    body.reference-theme .topbar > .site-brand img {
        width: clamp(82px, 24vw, 110px) !important;
        max-width: 110px !important;
        max-height: 38px !important;
    }

    body.reference-theme .topbar > .main-nav {
        right: 42px !important;
        left: auto !important;
        width: max-content !important;
        min-width: 0 !important;
        max-width: calc(100vw - 156px) !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        overflow: visible !important;
        background: transparent !important;
        border: 0 !important;
    }

    body.reference-theme .topbar > .main-nav a {
        position: relative !important;
        inset: auto !important;
        display: inline-flex !important;
        flex: 0 0 auto !important;
        padding-inline: clamp(2px, 1vw, 6px) !important;
        font-size: clamp(9px, 2.5vw, 12px) !important;
        white-space: nowrap !important;
    }

    body.reference-theme .topbar > .actions .user-profile-menu {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin: 0 !important;
        transform: none !important;
    }
}

@media (max-width: 360px) {
    body.reference-theme .topbar > .main-nav {
        right: 40px !important;
        max-width: 92px !important;
    }

    body.reference-theme .topbar > .main-nav a {
        font-size: 9px !important;
        padding-inline: 2px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.reference-theme .content-detail-play::before,
    body.reference-theme .content-detail-play::after,
    body.reference-theme .large-play-btn::before,
    body.reference-theme .large-play-btn::after,
    body.reference-theme .play-wave::before,
    body.reference-theme .play-wave::after {
        animation: none !important;
        opacity: 0 !important;
    }

    body.reference-theme *,
    body.reference-theme *::before,
    body.reference-theme *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Last cascade guard: the desktop nav container spans the header; links set their own offsets. */
@media (min-width: 901px) {
    body.reference-theme .topbar > .main-nav {
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    body.reference-theme .topbar > .main-nav a:last-child {
        right: auto !important;
        left: max(82px, calc((100vw - var(--reference-content)) / 2 + 58px)) !important;
    }

    body.reference-theme .topbar > .main-nav a:first-child {
        right: max(290px, calc((100vw - var(--reference-content)) / 2 + 290px)) !important;
        left: auto !important;
    }

    body.reference-theme .topbar:has(> .top-search.open) > .main-nav a:last-child {
        left: max(350px, calc((100vw - var(--reference-content)) / 2 + 330px)) !important;
    }
}

/* Mobile final override: keep the shared navigation visible beside the logo. */
@media (max-width: 900px) {
    body.reference-theme .topbar > .main-nav {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: 60px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        pointer-events: none !important;
        background: transparent !important;
        border: 0 !important;
    }

    body.reference-theme .topbar > .main-nav a {
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        z-index: 8 !important;
        display: inline-flex !important;
        width: auto !important;
        min-width: 0 !important;
        height: 60px !important;
        align-items: center !important;
        padding: 0 3px !important;
        pointer-events: auto !important;
        color: var(--text-on-primary) !important;
        font-size: clamp(10px, 2.8vw, 13px) !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.reference-theme .topbar > .main-nav a:first-child {
        right: 48px !important;
        left: auto !important;
    }

    body.reference-theme .topbar > .main-nav a:last-child {
        right: auto !important;
        left: 45px !important;
    }
}

@media (max-width: 360px) {
    body.reference-theme .topbar > .main-nav a {
        font-size: 9px !important;
    }

    body.reference-theme .topbar > .main-nav a:last-child {
        left: 40px !important;
    }
}

