﻿/* Cinimashow blue cinematic palette. Loaded last so it wins over legacy theme rules. */
:root {
    --bg-primary: #02060F;
    --bg-secondary: #030E20;
    --bg-tertiary: #071A33;
    --surface: #061426;
    --surface-hover: #0A2342;
    --surface-active: #0B2E57;
    --primary: #0088F8;
    --primary-hover: #1B9BF2;
    --card-hover: #0075FC;
    --primary-dark: #063D78;
    --accent: #00D9FF;
    --text-primary: #E8ECF1;
    --text-secondary: #AAB4C7;
    --text-muted: #64748B;
    --text-disabled: #475569;
    --border-blue: #16365B;
    --border-hover-blue: #24629A;
    --text-on-primary: #FFFFFF;
    --content-red: #EF3340;
    --content-purple: #C026D3;
    --content-orange: #F59E0B;
    --content-pink: #EC4899;
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --glow-subtle: 0 0 12px rgba(0, 136, 248, .18);
    --glow-medium: 0 0 20px rgba(0, 136, 248, .30);
    --glow-strong: 0 0 15px rgba(0, 136, 248, .50), 0 0 40px rgba(0, 217, 255, .20);
    --brand-gradient: linear-gradient(135deg, #0066FF 0%, #0088F8 55%, #00D9FF 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(0, 136, 248, .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(22, 54, 91, .55) !important;
    background: rgba(2, 6, 15, .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: #5CC7FF !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(0, 136, 248, .45), 0 0 35px rgba(0, 136, 248, .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-blue) !important;
    border-color: var(--border-blue) !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-blue) !important;
    border-color: var(--border-hover-blue) !important;
}

html body.reference-theme .plan-card.popular {
    border-color: var(--border-hover-blue) !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: #5CC7FF !important;
}

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

html body.reference-theme .progress-track { background: #25354A !important; }
html body.reference-theme .progress-fill { background: linear-gradient(90deg, #0088F8, #00D9FF) !important; }

/* Detail page and card surfaces */
html body.reference-theme .content-detail-card {
    background: var(--surface) !important;
    border-color: var(--border-blue) !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-blue) !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;
}

/* Replace the old red play-wave blink with a cyan/blue brand 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(0, 217, 255, .72) !important;
    box-shadow: 0 0 18px rgba(0, 136, 248, .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-blue) !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;
}


