/* BullTV palette, taken from the logo: bull red, flame orange, chrome silver on near-black.
   Loaded last so it wins over legacy theme rules. */
:root {
    /* Surfaces: warm near-black, so the red reads hot rather than muddy */
    --bg-primary: #070606;
    --bg-secondary: #0E0B0B;
    --bg-tertiary: #181010;
    --surface: #121010;
    --surface-hover: #1F1513;
    --surface-active: #2B1A17;

    /* Brand */
    --primary: #E3201B;          /* logo red */
    --primary-hover: #FF3B2F;
    --card-hover: #C81A15;
    --primary-dark: #8E120E;
    --accent: #FF8A1F;           /* horn/flame highlight */
    --accent-gold: #FFB531;
    --silver: #D9DCE1;           /* "ULL" chrome */
    --link: #FF6B4A;             /* red text on dark: lighter tint keeps contrast */

    /* Text */
    --text-primary: #F3F3F4;
    --text-secondary: #B9BBC1;
    --text-muted: #7A7C83;
    --text-disabled: #4E5057;
    --text-on-primary: #FFFFFF;

    /* Lines */
    --border-color: #2C201F;
    --border-hover: #6B2A22;

    /* Content tags and status */
    --content-red: #EF3340;
    --content-purple: #C026D3;
    --content-orange: #F59E0B;
    --content-pink: #EC4899;
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #F87171;

    --glow-subtle: 0 0 12px rgba(227, 32, 27, .18);
    --glow-medium: 0 0 20px rgba(227, 32, 27, .30);
    --glow-strong: 0 0 15px rgba(227, 32, 27, .50), 0 0 40px rgba(255, 138, 31, .20);
    --brand-gradient: linear-gradient(135deg, #B3120E 0%, #E3201B 55%, #FF6A1F 100%);
}

html body.reference-theme {
    color: var(--text-primary) !important;
    background: var(--bg-primary) !important;
}

html body.reference-theme.auth-only,
html body.reference-theme.auth-only .auth-screen {
    color: var(--text-primary) !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;
}

html body.reference-theme:not(.auth-only):not(.checkout-only) main {
    background: var(--bg-primary) !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: transparent !important;
}

html body.reference-theme .nf-header,
html body.reference-theme .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;
}

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,
html body.reference-theme .topbar .main-nav a {
    color: var(--text-secondary) !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,
html body.reference-theme .topbar .main-nav a:hover,
html body.reference-theme .topbar .main-nav a.active {
    color: var(--link) !important;
    background: var(--surface-hover) !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,
html body.reference-theme .topbar .circle-btn,
html body.reference-theme .topbar .plan-btn,
html body.reference-theme .topbar .login-btn {
    color: #FFFFFF !important;
    background: var(--brand-gradient) !important;
    border-color: var(--primary) !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,
html body.reference-theme .topbar .login-btn:hover,
html body.reference-theme .topbar .circle-btn:hover {
    background: var(--primary-hover) !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: var(--surface) !important;
    border: 1px solid var(--border-color) !important;
    border-color: var(--border-color) !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: var(--surface-hover) !important;
    border: 1px solid var(--border-hover) !important;
    border-color: var(--border-hover) !important;
}

html body.reference-theme .plan-card.popular {
    border-color: var(--border-hover) !important;
    box-shadow: var(--glow-medium) !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: var(--text-primary) !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: var(--link) !important;
}

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

html body.reference-theme .progress-track { background: #2E2626 !important; }
html body.reference-theme .progress-fill { background: linear-gradient(90deg, #E3201B, #FF8A1F) !important; }

/* Detail page and card surfaces */
html body.reference-theme .content-detail-card {
    background: var(--surface) !important;
    border-color: var(--border-color) !important;
}

html body.reference-theme .content-detail-info {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 58%, var(--bg-primary) 100%) !important;
    border-top-color: var(--border-color) !important;
}

html body.reference-theme .poster-card-info,
html body.reference-theme .poster-card-title {
    background: var(--surface) !important;
}

html body.reference-theme .poster-card:hover .poster-card-info,
html body.reference-theme .poster-card:hover .poster-card-title {
    background: var(--surface-hover) !important;
}

html body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card-title,
html body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card .poster-card-title:hover {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    background: transparent !important;
}

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

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

/* Play buttons use the BullTV red-to-flame glow. */
html body.reference-theme .content-detail-play,
html body.reference-theme .large-play-btn {
    color: var(--text-on-primary) !important;
    background: var(--brand-gradient) !important;
    box-shadow: var(--glow-strong) !important;
}

html body.reference-theme .content-detail-play::before,
html body.reference-theme .content-detail-play::after,
html body.reference-theme .large-play-btn::before,
html body.reference-theme .large-play-btn::after {
    border-color: rgba(255, 138, 31, .72) !important;
    box-shadow: 0 0 18px rgba(227, 32, 27, .35) !important;
}

html body.reference-theme .detail-watchlist-btn {
    background: var(--primary) !important;
}

html body.reference-theme .detail-watchlist-btn.active,
html body.reference-theme .detail-share-btn,
html body.reference-theme .detail-share-btn.is-copied {
    background: var(--primary-dark) !important;
}

html body.reference-theme .content-detail-description,
html body.reference-theme .content-detail-extra {
    color: var(--text-secondary) !important;
}

.actual-price { display: none; }

@media (max-width: 580px) {
    html body.reference-theme .plans-page {
        padding-inline: 14px !important;
    }

    html body.reference-theme .plans-page .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        margin-top: 42px !important;
    }

    html body.reference-theme .plans-page .plan-card {
        min-height: 224px !important;
        height: auto !important;
        padding: 20px 16px 16px !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 22px !important;
        background: linear-gradient(145deg, var(--surface), var(--bg-tertiary)) !important;
        box-shadow: 0 12px 26px rgba(0, 0, 0, .22) !important;
        transform: none !important;
        display: block !important;
    }

    html body.reference-theme .plans-page .plan-card::after {
        content: "";
        position: absolute;
        top: 22px;
        right: 18px;
        width: 42px;
        height: 42px;
        border: 4px solid rgba(170, 180, 199, .42);
        border-radius: 50%;
        box-sizing: border-box;
    }

    html body.reference-theme .plans-page .plan-card.popular {
        border-color: var(--primary) !important;
        box-shadow: var(--glow-medium) !important;
    }

    html body.reference-theme .plans-page .plan-card h2 {
        min-height: 0 !important;
        margin: 8px 0 8px !important;
        padding-right: 46px !important;
        color: var(--text-primary) !important;
        font-size: clamp(15px, 4vw, 20px) !important;
        line-height: 1.05 !important;
        text-transform: uppercase !important;
        text-align: left !important;
    }

    html body.reference-theme .plans-page .price {
        position: absolute !important;
        top: 68px !important;
        left: 16px !important;
        right: auto !important;
        margin: 0 !important;
        text-align: left !important;
        color: var(--text-primary) !important;
        font-size: clamp(22px, 6vw, 30px) !important;
        line-height: 1 !important;
    }

    html body.reference-theme .plans-page .old-price {
        position: absolute !important;
        top: 76px !important;
        left: 112px !important;
        right: auto !important;
        margin: 0 !important;
        color: var(--text-secondary) !important;
        font-size: clamp(12px, 3vw, 16px) !important;
    }

    html body.reference-theme .plans-page .actual-price {
        position: absolute !important;
        top: 112px !important;
        left: 16px !important;
        right: auto !important;
        margin: 0 !important;
        text-align: left !important;
        color: var(--text-secondary) !important;
        font-size: clamp(12px, 3vw, 16px) !important;
        line-height: 1.2 !important;
    }

    html body.reference-theme .plans-page .plan-card ul,
    html body.reference-theme .plans-page .discount-badge,
    html body.reference-theme .plans-page .plan-status {
        display: none !important;
    }

    html body.reference-theme .plans-page .plan-duration {
        position: absolute !important;
        top: 142px !important;
        left: 16px !important;
        right: auto !important;
        display: block !important;
        margin: 0 !important;
        color: var(--text-secondary) !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }

    html body.reference-theme .plans-page .plan-card .wide-btn {
        position: absolute !important;
        right: 16px !important;
        bottom: 14px !important;
        left: 16px !important;
        width: auto !important;
        max-width: calc(100% - 32px) !important;
        box-sizing: border-box !important;
        display: flex !important;
        min-height: 34px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 8px !important;
        border-radius: 999px !important;
        color: var(--text-on-primary) !important;
        background: var(--brand-gradient) !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        text-align: center !important;
    }

    html body.reference-theme .plans-page .popular-tag {
        top: 0% !important;
        right: 8px !important;
        left: auto !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 5px 10px !important;
        border: 0 !important;
        border-radius: 999px !important;
        color: var(--text-on-primary) !important;
        background: var(--brand-gradient) !important;
        font-size: 8px !important;
        letter-spacing: .04em !important;
    }
}

/* Keep the page section/card shell transparent; inner content surfaces define their own backgrounds. */
html body.reference-theme:not(.auth-only):not(.checkout-only) .row-section,
html body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card,
html body.reference-theme:not(.auth-only):not(.checkout-only) .plan-card,
html body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-card {
    background: transparent !important;
}


