/*  ═══════════════════════════════════════════════════
    Inspenet TV Archive — v2.4
    Eventos con dropdown por familia y año
    ═══════════════════════════════════════════════════ */

/* ─── DEFAULT: BRAND CORPORATE (Inspenet Blue) ─── */
.tv-main {
    --tv-bg: #071224;
    --tv-surface: #0c1a33;
    --tv-card: #0f2040;
    --tv-border: rgba(0, 102, 255, .15);
    --tv-text: #f1f5f9;
    --tv-text-muted: #8da4c0;
    --tv-accent: #0066ff;
    --tv-accent-hover: #3388ff;
    --tv-accent-2: #f59e0b;
    --tv-white: #ffffff;
    --tv-hero-overlay: linear-gradient(160deg, rgba(7, 18, 36, .95) 0%, rgba(0, 50, 120, .75) 50%, rgba(0, 102, 255, .3) 100%);
    --tv-card-shadow: 0 4px 24px rgba(0, 40, 120, .25);
    --tv-search-bg: rgba(0, 40, 100, .5);
    --tv-badge-bg: rgba(0, 102, 255, .2);
    --tv-card-radius: 12px;
    --tv-card-border: 1px solid rgba(0, 102, 255, .1);
    --tv-section-sep: 1px solid rgba(0, 102, 255, .12);
    --tv-program-bg: #0f2040;
    --tv-event-overlay-bg: linear-gradient(to top, rgba(7, 18, 36, .8) 0%, transparent 50%);
}

/* ─── DARK MODE ─── */
.tv-main[data-theme="dark"] {
    --tv-bg: #0a1628;
    --tv-surface: #0f1f35;
    --tv-card: #132742;
    --tv-border: rgba(255, 255, 255, .06);
    --tv-text: #e2e8f0;
    --tv-text-muted: #7a8ea3;
    --tv-accent: #070d84;
    --tv-accent-hover: #60a5fa;
    --tv-accent-2: #0e0980;
    --tv-white: #ffffff;
    --tv-hero-overlay: linear-gradient(135deg, rgba(10, 22, 40, .92) 0%, rgba(10, 22, 40, .75) 100%);
    --tv-card-shadow: 0 8px 32px rgba(0, 0, 0, .3);
    --tv-search-bg: rgba(0, 0, 0, .35);
    --tv-badge-bg: rgba(59, 130, 246, .15);
    --tv-card-radius: 10px;
    --tv-card-border: none;
    --tv-section-sep: 1px solid rgba(255, 255, 255, .06);
    --tv-program-bg: #132742;
    --tv-event-overlay-bg: linear-gradient(to top, rgba(10, 22, 40, .7) 0%, transparent 60%);
}

/* ─── LIGHT MODE ─── */
.tv-main[data-theme="light"] {
    --tv-bg: #f8fafc;
    --tv-surface: #f1f5f9;
    --tv-card: #ffffff;
    --tv-border: rgba(0, 0, 0, .1);
    --tv-text: #1e293b;
    --tv-text-muted: #64748b;
    --tv-accent: #0066ff;
    --tv-accent-hover: #0052cc;
    --tv-accent-2: #f59e0b;
    --tv-white: #0f172a;
    --tv-hero-overlay: linear-gradient(135deg, rgba(10, 22, 40, .88) 0%, rgba(0, 50, 120, .72) 100%);
    --tv-card-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .04);
    --tv-search-bg: rgba(0, 0, 0, .3);
    --tv-badge-bg: rgba(0, 102, 255, .08);
    --tv-card-radius: 14px;
    --tv-card-border: 1px solid rgba(0, 0, 0, .08);
    --tv-section-sep: 1px solid rgba(0, 0, 0, .06);
    --tv-program-bg: #ffffff;
    --tv-event-overlay-bg: linear-gradient(to top, rgba(0, 0, 0, .5) 0%, transparent 60%);
}

/* ─── Shared Tokens ─── */
.tv-main {
    --tv-radius: 10px;
    --tv-radius-sm: 6px;
    --tv-shadow: var(--tv-card-shadow);
    --tv-transition: .3s cubic-bezier(.4, 0, .2, 1);
    --tv-container: 1200px;
    --tv-gap: 20px;
    transition: background var(--tv-transition), color var(--tv-transition);
}

/* ─── Global Reset for TV ─── */
.tv-main {
    background: var(--tv-bg);
    color: var(--tv-text);
}

.tv-main *,
.tv-main *::before,
.tv-main *::after {
    box-sizing: border-box;
}

.tv-main a {
    text-decoration: none;
    color: inherit;
}

.tv-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-container {
    max-width: var(--tv-container);
    margin: 0 auto;
    padding: 0 var(--tv-gap);
    position: relative;
}

/* ─── Section Base ─── */
.tv-section {
    padding: 36px 0;
}

.tv-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--tv-text-muted);
    margin: 0 0 24px;
    padding-bottom: 10px;
    border-bottom: var(--tv-section-sep);
}

/* ═══════════════ 1. HERO ═══════════════ */
.tv-hero {
    position: relative;
    overflow: hidden;
    min-height: 480px;
}

.tv-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tv-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.tv-hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--tv-hero-overlay);
}

.tv-hero-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--tv-accent) 30%, var(--tv-accent-2, var(--tv-accent)) 70%, transparent 100%);
    z-index: 2;
    opacity: .6;
}

.tv-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    max-width: var(--tv-container);
    margin: 0 auto;
    padding: 36px var(--tv-gap) 44px;
    align-items: stretch;
    min-height: 480px;
}

.tv-hero-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.tv-hero-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}

.tv-brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
}

.tv-brand-accent {
    color: var(--tv-accent);
    transition: color var(--tv-transition);
}

.tv-brand-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
    letter-spacing: .5px;
}

.tv-hero-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 4px;
    background: rgba(0, 102, 255, .2);
    border: 1px solid rgba(0, 102, 255, .4);
    color: #60a5fa;
    margin-bottom: 4px;
}

.tv-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.05;
    margin: 0;
    color: #ffffff;
    letter-spacing: -1px;
}

.tv-hero-desc {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .7);
    margin: 6px 0 18px;
    max-width: 420px;
}

.tv-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 20px;
}

.tv-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all var(--tv-transition);
    cursor: pointer;
    text-decoration: none;
}

.tv-cta--primary {
    background: var(--tv-accent);
    color: #ffffff;
}

.tv-cta--primary:hover {
    background: var(--tv-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, .35);
}

.tv-cta--secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .3);
}

.tv-cta--secondary:hover {
    border-color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .06);
}

.video-hero-search-wrapper {
    margin-top: 0;
    padding-top: 20px;
    width: 100%;
    min-width: 320px;
}

.video-hero-search-form {
    display: flex;
    background: rgba(10, 22, 40, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.4);
    backdrop-filter: blur(16px);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--tv-transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-hero-search-form:focus-within {
    border-color: var(--tv-accent);
    background: rgba(10, 22, 40, 0.95);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.video-hero-search-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 14px 20px;
    font-size: 15px;
    outline: none;
}

.video-hero-search-form input::placeholder {
    color: rgba(255, 255, 255, .6);
}

.video-hero-search-form button {
    background: #ffffff;
    color: #032A53;
    border: none;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: background var(--tv-transition), color var(--tv-transition);
}

.video-hero-search-form button:hover {
    background: #f0f4f8;
}

.tv-hero-right {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    min-width: 0;
}

.tv-hero-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    height: 100%;
    width: 100%;
}

.tv-shortcuts-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin: auto 0;
}

.tv-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #ffffff;
    transition: all var(--tv-transition);
    white-space: nowrap;
    width: fit-content;
}

.tv-shortcut:hover {
    background: rgba(0, 0, 0, .6);
    border-color: var(--tv-accent);
    transform: translateY(-2px);
}

.tv-shortcut svg {
    opacity: .7;
}

.tv-shortcut--accent {
    background: rgba(0, 102, 255, .25);
    border-color: rgba(0, 102, 255, .5);
    color: #60a5fa;
}

.tv-shortcut--accent:hover {
    background: rgba(0, 102, 255, .4);
}

.tv-main[data-theme="light"] .tv-brand-name,
.tv-main[data-theme="light"] .tv-hero-title {
    color: #ffffff;
}

.tv-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--tv-text-muted);
}

/* ═══════════════ 2. EVENTOS: NUEVO DROPDOWN ═══════════════ */

.tv-events-section {
    background: var(--tv-surface);
    transition: background var(--tv-transition);
}

.tv-events-shell {
    position: relative;
    max-width: 85vw;
    margin: 0 auto;
}

.tv-events-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 2px 10px;
    align-items: flex-start;
}

.tv-events-scroll::-webkit-scrollbar {
    display: none;
}

.tv-event-card-shell {
    flex: 0 0 320px;
    scroll-snap-align: start;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Imagen siempre visible */
.tv-event-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0b1220;
    border-radius: calc(var(--tv-card-radius) + 4px) calc(var(--tv-card-radius) + 4px) 0 0;
    box-shadow: var(--tv-shadow);
}

.tv-event-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
    background-color: #fff;
}

.tv-event-card-shell:hover .tv-event-cover img {
    transform: scale(1.05);
}

.tv-event-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tv-event-cover-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(10, 22, 40, .58);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.tv-event-cover-title {
    width: 100%;
    background: var(--tv-card);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding-left: 1rem;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: 1.22rem;
    line-height: 1.1;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

/* Panel desplegable debajo de la imagen */
.tv-event-card-panel {
    background: var(--tv-card);
    border: var(--tv-card-border);
    border-top: none;
    border-radius: 0 0 calc(var(--tv-card-radius) + 4px) calc(var(--tv-card-radius) + 4px);
    overflow: hidden;
    box-shadow: var(--tv-shadow);
    transition:
        box-shadow .4s cubic-bezier(.4, 0, .2, 1),
        background .3s ease;
}

.tv-event-card-shell:hover .tv-event-card-panel {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.tv-event-card-panel[open] {
    box-shadow: 0 16px 38px rgba(0, 0, 0, .26);
}

/* ── Smooth open/close animation for details ── */
.tv-event-years {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .45s cubic-bezier(.4, 0, .2, 1),
                padding .45s cubic-bezier(.4, 0, .2, 1),
                opacity .35s ease;
    opacity: 0;
    padding: 0 14px;
    overflow: hidden;
}

.tv-event-years > * {
    overflow: hidden;
}

.tv-event-card-panel[open] .tv-event-years {
    grid-template-rows: 1fr;
    opacity: 1;
    padding: 14px;
}

.tv-event-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 14px;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(255, 255, 255, .02) 0%, rgba(255, 255, 255, 0) 100%);
    user-select: none;
}

.tv-event-summary::-webkit-details-marker {
    display: none;
}

.tv-event-summary-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tv-event-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--tv-text-muted);
}

.tv-event-editions {
    font-size: 12px;
    font-weight: 600;
    color: var(--tv-text-muted);
}

.tv-event-chevron {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    color: var(--tv-white);
    transition:
        transform .4s cubic-bezier(.34, 1.56, .64, 1),
        background .3s ease,
        border-color .3s ease,
        color .3s ease;
}

.tv-event-card-panel[open] .tv-event-chevron {
    transform: rotate(180deg);
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .3);
    color: #ffffff;
}

.tv-event-year-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid transparent;
    transition:
        transform var(--tv-transition),
        background var(--tv-transition),
        border-color var(--tv-transition),
        box-shadow var(--tv-transition);
}

.tv-event-year-link:hover {
    transform: translateX(4px);
    background: rgba(59, 130, 246, .08);
    border-color: rgba(59, 130, 246, .24);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
}

.tv-event-year-badge {
    flex: 0 0 64px;
    min-width: 64px;
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tv-accent), var(--tv-accent-2));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
}

.tv-event-year-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tv-event-year-name {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--tv-white);
}

.tv-event-year-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--tv-text-muted);
}

/* Light theme */
.tv-main[data-theme="light"] .tv-event-card-panel {
    border: 1px solid rgba(15, 23, 42, .06);
    border-top: none;
}

.tv-main[data-theme="light"] .tv-event-year-link {
    background: rgba(15, 23, 42, .02);
}

.tv-main[data-theme="light"] .tv-event-year-link:hover {
    background: rgba(0, 102, 255, .05);
}

.tv-main[data-theme="light"] .tv-event-chevron {
    background: rgba(15, 23, 42, .05);
    border-color: rgba(15, 23, 42, .07);
}

/* Responsive */
@media (max-width: 600px) {
    .tv-event-card-shell {
        flex-basis: 280px;
    }

    .tv-event-cover-title {
        font-size: 1.05rem;
    }

    .tv-event-year-link {
        align-items: flex-start;
    }
}

/* ═══════════════ 3. PLAYLIST STRIP ═══════════════ */
.tv-playlist-section {
    padding: 28px 0 36px;
    border-bottom: 1px solid var(--tv-border);
}

.tv-playlist-section .tv-container {
    position: relative;
}

.tv-playlist-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.tv-playlist-scroll::-webkit-scrollbar {
    display: none;
}

.tv-playlist-scroll .tv-card-sm {
    flex: 0 0 240px;
    scroll-snap-align: start;
}

.tv-playlist-scroll .tv-card-sm a {
    display: block;
}

.tv-playlist-scroll .tv-card-sm .tv-card-thumb {
    margin-bottom: 8px;
}

.tv-playlist-scroll .tv-card-sm .tv-card-body h3 {
    font-size: 13px;
}

/* ─── Small card ─── */
.tv-card-sm a {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    align-items: start;
}

.tv-card-sm .tv-card-thumb {
    position: relative;
    border-radius: var(--tv-card-radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.tv-card-sm .tv-card-thumb img {
    height: 100%;
}

.tv-card-sm .tv-card-body h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--tv-white);
    margin: 4px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--tv-transition);
}

.tv-time {
    font-size: 11px;
    color: var(--tv-text-muted);
}

.tv-card-sm .tv-card-body h3,
.tv-playlist-scroll .tv-card-sm .tv-card-body h3,
.tv-latest-grid .tv-card-sm .tv-card-body h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Shared card elements ─── */
.tv-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, .55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--tv-transition);
}

.tv-play svg {
    width: 16px;
    height: 16px;
    fill: var(--tv-white);
}

.tv-play--lg {
    width: 56px;
    height: 56px;
    opacity: .7;
}

.tv-play--lg svg {
    width: 24px;
    height: 24px;
}

.tv-card-sm:hover .tv-play,
.tv-card-featured:hover .tv-play {
    opacity: 1;
}

.tv-card-featured:hover .tv-play--lg {
    opacity: 1;
    background: var(--tv-accent);
}

.tv-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, .75);
    color: var(--tv-white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

.tv-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 3px;
    background: var(--tv-accent);
    color: var(--tv-white);
    transition: background var(--tv-transition);
}

/* Scroll Arrows (playlist) */
.tv-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tv-card);
    border: 1px solid var(--tv-border);
    color: var(--tv-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: .8;
    transition: opacity var(--tv-transition), background var(--tv-transition);
}

.tv-scroll-arrow:hover {
    opacity: 1;
    background: var(--tv-accent);
}

.tv-scroll-arrow--left {
    left: -40px;
}

.tv-scroll-arrow--right {
    right: -40px;
}


/* ═══════════════ 4. PROGRAMS ═══════════════ */
.tv-programs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tv-program-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--tv-card-radius);
    background: var(--tv-program-bg);
    border: var(--tv-card-border);
    border-left: 4px solid transparent;
    min-width: 200px;
    flex: 1 1 calc(25% - 12px);
    transition: transform var(--tv-transition), box-shadow var(--tv-transition), background var(--tv-transition);
}

.tv-program-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tv-shadow);
}

.tv-program-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--tv-white);
    transition: color var(--tv-transition);
}

.tv-program-count {
    font-size: 11px;
    color: var(--tv-text-muted);
    white-space: nowrap;
}

/* Color variants */
.tv-program-card--navy {
    border-left-color: #0066ff;
}

.tv-program-card--orange {
    border-left-color: #f59e0b;
}

.tv-program-card--teal {
    border-left-color: #06b6d4;
}

.tv-program-card--red {
    border-left-color: #dc2626;
}

.tv-program-card--purple {
    border-left-color: #8b5cf6;
}

.tv-program-card--green {
    border-left-color: #22c55e;
}

.tv-program-card--amber {
    border-left-color: #f59e0b;
}

.tv-program-card--cyan {
    border-left-color: #06b6d4;
}

/* ═══════════════ 5. PILLAR CARDS ═══════════════ */
.tv-pillars-section {
    background: var(--tv-surface);
    transition: background var(--tv-transition);
}

.tv-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--tv-gap);
}

.tv-pillar-card {
    border-radius: var(--tv-card-radius);
    overflow: hidden;
    background: var(--tv-card);
    box-shadow: var(--tv-shadow);
    border: var(--tv-card-border);
    transition: transform var(--tv-transition), background var(--tv-transition);
}

.tv-pillar-card:hover {
    transform: translateY(-4px);
}

.tv-pillar-link {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.tv-pillar-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform .5s ease;
}

.tv-pillar-card:hover .tv-pillar-bg {
    transform: scale(1.06);
}

.tv-pillar-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, .85) 10%, rgba(10, 22, 40, .3) 100%);
    z-index: 1;
}

.tv-pillar-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 16px;
}

.tv-pillar-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--tv-white);
    margin: 0 0 6px;
    transition: color var(--tv-transition);
}

.tv-pillar-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--tv-accent);
    background: #5174ff;
    padding: 3px 10px;
    border-radius: 20px;
    transition: color var(--tv-transition), background var(--tv-transition);
}

.tv-main[data-theme="light"] .tv-pillar-badge {
    color: #60a5fa;
    background: rgba(59, 130, 246, .2);
}

.tv-main[data-theme="light"] .tv-pillar-title {
    color: #ffffff;
}

/* ═══════════════ 6. LATEST VIDEOS GRID ═══════════════ */
.tv-latest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--tv-gap);
}

.tv-latest-grid .tv-card-sm a {
    display: block;
    grid-template-columns: none;
}

.tv-latest-grid .tv-card-sm .tv-card-thumb {
    aspect-ratio: 16 / 9;
    margin-bottom: 10px;
}

.tv-latest-grid .tv-card-sm .tv-card-body {
    padding: 0 2px;
}

.tv-latest-grid .tv-card-sm .tv-card-body h3 {
    font-size: 14px;
}

/* ═══════════════ THEME TOGGLE ═══════════════ */
.tv-theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(16px);
    padding: 10px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
}

.tv-theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, .08);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
}

.tv-theme-btn:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    transform: scale(1.1);
}

.tv-theme-btn--active {
    border-color: currentColor;
    transform: scale(1.1);
}

.tv-theme-btn[data-theme="dark"] {
    color: #3b82f6;
}

.tv-theme-btn[data-theme="light"] {
    color: #f8fafc;
}

.tv-theme-btn[data-theme="default"] {
    color: #0066ff;
}

.tv-theme-btn--active[data-theme="dark"] {
    background: rgba(59, 130, 246, .2);
}

.tv-theme-btn--active[data-theme="light"] {
    background: rgba(255, 255, 255, .25);
}

.tv-theme-btn--active[data-theme="default"] {
    background: rgba(0, 102, 255, .2);
}

.tv-theme-btn::after {
    content: attr(title);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .9);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.tv-theme-btn:hover::after {
    opacity: 1;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1100px) {
    .tv-hero-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 32px var(--tv-gap) 28px;
        min-height: auto;
    }

    .tv-hero {
        min-height: auto;
    }

    .tv-hero-left {
        text-align: center;
        align-items: center;
    }

    .tv-hero-desc {
        text-align: center;
    }

    .tv-hero-ctas {
        justify-content: center;
    }

    .tv-hero-right {
        justify-content: center;
    }

    .tv-hero-shortcuts {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .tv-shortcut:hover {
        transform: translateY(-2px);
    }

    .tv-events-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tv-latest-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .tv-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tv-latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tv-program-card {
        flex: 1 1 calc(50% - 12px);
    }

    .tv-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .tv-hero-inner {
        padding: 30px 16px 24px;
    }

    .tv-hero-title {
        font-size: 2rem;
    }

    .tv-section {
        padding: 32px 0;
    }

    .tv-pillars-grid {
        grid-template-columns: 1fr;
    }

    .tv-latest-grid {
        grid-template-columns: 1fr;
    }

    .tv-program-card {
        flex: 1 1 100%;
    }

    .tv-events-grid {
        grid-template-columns: 1fr;
    }

    .tv-playlist-scroll .tv-card-sm {
        flex: 0 0 170px;
    }

    .tv-scroll-arrow {
        display: none;
    }

    .tv-card-sm a {
        grid-template-columns: 120px 1fr;
    }

    .tv-event-summary {
        padding: 16px;
    }

    .tv-event-family {
        font-size: 18px;
    }

    .tv-event-year-link {
        align-items: flex-start;
    }

    .tv-theme-toggle {
        bottom: 12px;
        right: 12px;
        padding: 6px 8px;
    }

    .tv-theme-btn {
        width: 28px;
        height: 28px;
    }
}

/*======================================================
   USER REQUESTED DESIGN OVERRIDES (MARCH 2026)
======================================================*/

/* 1. Hero Updates */
.tv-hero-right {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
}

.tv-hero-card-container {
    width: 100%;
    max-width: 420px;
}

.tv-hero-featured-card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tv-hero-featured-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.tv-hero-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 42, 83, 0.95) 0%, rgba(3, 42, 83, 0.1) 100%);
}

.tv-hero-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tv-hero-card-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

.tv-hero-card-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.tv-hero-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.video-hero-search-wrapper {
    padding-top: 0;
    margin-top: 0;
    width: 100%;
    max-width: 420px;
}

/* White Buttons in Hero */
.tv-hero-ctas .tv-cta {
    background: #ffffff !important;
    color: #032A53 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tv-hero-ctas .tv-cta:hover {
    background: #f8fafc !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.tv-hero-ctas .tv-cta svg {
    fill: #032A53;
}

/* 2. Alternating Section Backgrounds */
.tv-section--grey {
    background-color: #9a9a9a !important;
    border-bottom: none !important;
}

.tv-section--blue {
    background-color: #032A53 !important;
    border-bottom: none !important;
}

/* 3. Force white text on alternating backgrounds for readability */
.tv-section--grey .tv-time,
.tv-section--blue .tv-time,
.tv-section--grey .tv-event-year-count,
.tv-section--blue .tv-event-year-count,
.tv-section--grey .tv-event-editions,
.tv-section--blue .tv-event-editions,
.tv-section--grey .tv-program-count,
.tv-section--blue .tv-program-count,
.tv-section--grey .tv-section-title,
.tv-section--blue .tv-section-title {
    color: #ffffff !important;
    opacity: 0.9;
}

/* White decorative line under titles on blue sections */
.tv-section--blue .tv-section-title {
    border-bottom-color: rgba(255, 255, 255, 0.3) !important;
}

/* Inspenet blue decorative line under titles on grey sections */
.tv-section--grey .tv-section-title {
    border-bottom-color: #032A53 !important;
}

.tv-section--grey .tv-card-sm .tv-card-body h3,
.tv-section--blue .tv-card-sm .tv-card-body h3,
.tv-section--grey .tv-program-name,
.tv-section--blue .tv-program-name,
.tv-section--grey .tv-event-year-name,
.tv-section--blue .tv-event-year-name,
.tv-section--grey .tv-event-kicker,
.tv-section--blue .tv-event-kicker,
.tv-section--grey .tv-event-cover-title,
.tv-section--blue .tv-event-cover-title {
    color: #ffffff !important;
}

/* Ensure the event panels and pillar cards don't blend into backgrounds */
.tv-section--blue .tv-event-card-panel,
.tv-section--grey .tv-pillar-card,
.tv-section--blue .tv-pillar-card {
    background-color: rgba(10, 22, 40, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Sharp contrast for Program Cards on Grey Background */
.tv-section--grey .tv-program-card {
    background-color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.tv-section--grey .tv-program-card .tv-program-name,
.tv-section--grey .tv-program-card .tv-program-count,
.tv-section--grey .tv-program-name,
.tv-section--grey .tv-program-count {
    color: #032A53 !important;
}

/* Sharp contrast for Program Cards on Blue Background */
.tv-section--blue .tv-program-card {
    background-color: #D5D5D5 !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.tv-section--blue .tv-program-card .tv-program-name,
.tv-section--blue .tv-program-name {
    color: #032A53 !important;
}

.tv-section--blue .tv-program-card .tv-program-count,
.tv-section--blue .tv-program-count {
    color: #032A53 !important;
    font-weight: 700 !important;
}

/* "Ver todos" CTA on blue sections */
.tv-section--blue .tv-cta--secondary {
    background: #ffffff !important;
    color: #032A53 !important;
    border: none !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.tv-section--blue .tv-cta--secondary:hover {
    background: #f0f4f8 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.tv-section--blue .tv-cta--secondary svg {
    fill: #032A53;
}

/* 4. Dynamic Carousel Arrows */
.tv-section--grey .tv-scroll-arrow {
    background: #032A53 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
}

.tv-section--blue .tv-scroll-arrow {
    background: #ffffff !important;
    color: #032A53 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
}

/* 5. Hover effects & shadows on carousel cards */
.tv-playlist-scroll .tv-card-sm,
.tv-events-scroll .tv-event-card-shell,
.tv-programs-grid .tv-program-card,
.tv-pillars-grid .tv-pillar-card,
.tv-latest-grid .tv-card-sm {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 12px;
}

.tv-playlist-scroll .tv-card-sm:hover,
.tv-events-scroll .tv-event-card-shell:hover,
.tv-programs-grid .tv-program-card:hover,
.tv-pillars-grid .tv-pillar-card:hover,
.tv-latest-grid .tv-card-sm:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35) !important;
}

/* Better contrast for video cards on dark blue background */
.tv-playlist-scroll .tv-card-sm,
.tv-latest-grid .tv-card-sm {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden;
}

.tv-playlist-scroll .tv-card-sm .tv-card-body,
.tv-latest-grid .tv-card-sm .tv-card-body {
    padding: 12px;
}

/* Event Cards — Default (Brand Blue) colors */
.tv-section--grey .tv-event-card-panel {
    background-color: #032A53 !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.tv-section--grey .tv-event-cover {
    background-color: #032A53 !important;
}

.tv-section--grey .tv-event-cover-title {
    background: #032A53 !important;
    color: #ffffff !important;
}

.tv-section--grey .tv-event-summary {
    background-color: #032A53 !important;
    border-top: none !important;
}

.tv-section--grey .tv-event-summary .tv-event-kicker,
.tv-section--grey .tv-event-summary .tv-event-editions {
    color: rgba(255, 255, 255, 0.7) !important;
}

.tv-section--grey .tv-event-summary .tv-event-chevron {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.tv-section--grey .tv-event-card-panel[open] .tv-event-chevron {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Dropdown internal — blue bg with white year badges */
.tv-section--grey .tv-event-years {
    background-color: #032A53 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.tv-section--grey .tv-event-card-panel[open] .tv-event-years {
    padding: 14px !important;
}

.tv-section--grey .tv-event-year-link {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 12px !important;
    display: flex !important;
    width: auto !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: background .25s ease, border-color .25s ease, transform .25s ease !important;
}

.tv-section--grey .tv-event-year-link:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateX(4px) !important;
}

.tv-section--grey .tv-event-year-badge {
    background: #ffffff !important;
    color: #032A53 !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
}

.tv-section--grey .tv-event-year-name {
    color: #ffffff !important;
}

.tv-section--grey .tv-event-year-count {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* Pillar Badge explicitly Greyish with White text */
.tv-pillars-grid .tv-pillar-badge {
    background-color: #58636e !important;
    color: #ffffff !important;
}

/* Card background on grey sections */
.tv-section--grey .tv-card-sm {
    background-color: #D5D5D5 !important;
}

.tv-section--grey .tv-card-sm .tv-card-body h3,
.tv-section--grey .tv-card-sm .tv-time {
    color: #032A53 !important;
}

/* Card background on blue sections */
.tv-section--blue .tv-card-sm {
    background-color: #D5D5D5 !important;
}

.tv-section--blue .tv-card-sm .tv-card-body h3,
.tv-section--blue .tv-card-sm .tv-time {
    color: #032A53 !important;
}

/* Taxonomy badge background */
.tv-section--grey .tv-cat,
.tv-section--blue .tv-cat {
    background-color: #032A53 !important;
    color: #ffffff !important;
}

/* Section titles: 30px, white */
.tv-section--grey .tv-section-title,
.tv-section--blue .tv-section-title {
    font-size: 30px !important;
    font-weight: bold !important;
    color: #ffffff !important;
}

/*======================================================
   COMPREHENSIVE DARK THEME
   Inspired by GitHub Dark / YouTube Dark
======================================================*/

/* ── Dark: Section Backgrounds ── */
.tv-main[data-theme="dark"] .tv-section--grey,
.tv-main[data-theme="dark"] .tv-section--blue {
    border-bottom: none !important;
}
.tv-main[data-theme="dark"] .tv-section--grey {
    background-color: #161b22 !important;
}
.tv-main[data-theme="dark"] .tv-section--blue {
    background-color: #0d1117 !important;
}

/* ── Dark: Section Titles ── */
.tv-main[data-theme="dark"] .tv-section--grey .tv-section-title,
.tv-main[data-theme="dark"] .tv-section--blue .tv-section-title {
    color: #e6edf3 !important;
    opacity: 1;
}

/* ── Dark: Video Cards (all sections) ── */
.tv-main[data-theme="dark"] .tv-section--grey .tv-card-sm,
.tv-main[data-theme="dark"] .tv-section--blue .tv-card-sm,
.tv-main[data-theme="dark"] .tv-playlist-scroll .tv-card-sm,
.tv-main[data-theme="dark"] .tv-latest-grid .tv-card-sm {
    background-color: #1c2433 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
.tv-main[data-theme="dark"] .tv-section--grey .tv-card-sm .tv-card-body h3,
.tv-main[data-theme="dark"] .tv-section--blue .tv-card-sm .tv-card-body h3,
.tv-main[data-theme="dark"] .tv-playlist-scroll .tv-card-sm .tv-card-body h3,
.tv-main[data-theme="dark"] .tv-latest-grid .tv-card-sm .tv-card-body h3 {
    color: #e6edf3 !important;
}
.tv-main[data-theme="dark"] .tv-section--grey .tv-card-sm .tv-time,
.tv-main[data-theme="dark"] .tv-section--blue .tv-card-sm .tv-time,
.tv-main[data-theme="dark"] .tv-playlist-scroll .tv-card-sm .tv-time,
.tv-main[data-theme="dark"] .tv-latest-grid .tv-card-sm .tv-time {
    color: #8b949e !important;
}

/* ── Dark: Taxonomy Badge ── */
.tv-main[data-theme="dark"] .tv-section--grey .tv-cat,
.tv-main[data-theme="dark"] .tv-section--blue .tv-cat {
    background-color: #1f6feb !important;
    color: #ffffff !important;
}

/* ── Dark: Program Cards ── */
.tv-main[data-theme="dark"] .tv-section--grey .tv-program-card {
    background-color: #1c2433 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}
.tv-main[data-theme="dark"] .tv-section--grey .tv-program-card .tv-program-name,
.tv-main[data-theme="dark"] .tv-section--grey .tv-program-name {
    color: #e6edf3 !important;
}
.tv-main[data-theme="dark"] .tv-section--grey .tv-program-card .tv-program-count,
.tv-main[data-theme="dark"] .tv-section--grey .tv-program-count {
    color: #8b949e !important;
}

/* ── Dark: Event Cards on Grey ── */
.tv-main[data-theme="dark"] .tv-section--grey .tv-event-card-panel {
    background-color: #1c2433 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
.tv-main[data-theme="dark"] .tv-section--grey .tv-event-cover {
    background-color: #1c2433 !important;
}
.tv-main[data-theme="dark"] .tv-section--grey .tv-event-cover-title {
    background: #1c2433 !important;
    color: #e6edf3 !important;
    text-shadow: none !important;
}
.tv-main[data-theme="dark"] .tv-section--grey .tv-event-summary {
    background-color: #1c2433 !important;
    border-top: none !important;
}
.tv-main[data-theme="dark"] .tv-section--grey .tv-event-summary .tv-event-kicker,
.tv-main[data-theme="dark"] .tv-section--grey .tv-event-summary .tv-event-editions {
    color: #8b949e !important;
}
.tv-main[data-theme="dark"] .tv-section--grey .tv-event-summary .tv-event-chevron {
    color: #e6edf3 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
.tv-main[data-theme="dark"] .tv-section--grey .tv-event-years {
    background-color: #1c2433 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.tv-main[data-theme="dark"] .tv-section--grey .tv-event-year-link {
    background-color: #30363d !important;
    color: #e6edf3 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.tv-main[data-theme="dark"] .tv-section--grey .tv-event-year-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e6edf3 !important;
}
.tv-main[data-theme="dark"] .tv-section--grey .tv-event-year-name {
    color: #e6edf3 !important;
}
.tv-main[data-theme="dark"] .tv-section--grey .tv-event-year-count {
    color: #8b949e !important;
}

/* ── Dark: Event Cards on Blue ── */
.tv-main[data-theme="dark"] .tv-section--blue .tv-event-card-panel {
    background-color: #1c2433 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ── Dark: Pillar Cards ── */
.tv-main[data-theme="dark"] .tv-section--grey .tv-pillar-card,
.tv-main[data-theme="dark"] .tv-section--blue .tv-pillar-card {
    background-color: #1c2433 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.tv-main[data-theme="dark"] .tv-pillars-grid .tv-pillar-badge {
    background-color: #30363d !important;
    color: #8b949e !important;
}

/* ── Dark: Carousel Arrows ── */
.tv-main[data-theme="dark"] .tv-section--grey .tv-scroll-arrow,
.tv-main[data-theme="dark"] .tv-section--blue .tv-scroll-arrow {
    background: #30363d !important;
    color: #e6edf3 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* ── Dark: Hero CTA Buttons ── */
.tv-main[data-theme="dark"] .tv-hero-ctas .tv-cta {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #e6edf3 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px);
    box-shadow: none;
}
.tv-main[data-theme="dark"] .tv-hero-ctas .tv-cta:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}
.tv-main[data-theme="dark"] .tv-hero-ctas .tv-cta svg {
    fill: #e6edf3;
}

/* ── Dark: Hero overlay & glow ── */
.tv-main[data-theme="dark"] .tv-hero-overlay {
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.95) 0%, rgba(13, 17, 23, 0.8) 100%) !important;
}
.tv-main[data-theme="dark"] .tv-hero-glow {
    background: linear-gradient(90deg, transparent 0%, #1f6feb 30%, #58a6ff 70%, transparent 100%) !important;
}

/* ── Dark: Search form ── */
.tv-main[data-theme="dark"] .video-hero-search-form {
    background: rgba(22, 27, 34, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
.tv-main[data-theme="dark"] .video-hero-search-form:focus-within {
    border-color: #1f6feb !important;
}

/* ── Dark: Hover effects ── */
.tv-main[data-theme="dark"] .tv-playlist-scroll .tv-card-sm:hover,
.tv-main[data-theme="dark"] .tv-events-scroll .tv-event-card-shell:hover,
.tv-main[data-theme="dark"] .tv-programs-grid .tv-program-card:hover,
.tv-main[data-theme="dark"] .tv-pillars-grid .tv-pillar-card:hover,
.tv-main[data-theme="dark"] .tv-latest-grid .tv-card-sm:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

/*======================================================
   COMPREHENSIVE LIGHT THEME
   Inspired by Apple / Linear / Notion
======================================================*/

/* ── Light: Section Backgrounds ── */
.tv-main[data-theme="light"] .tv-section--grey,
.tv-main[data-theme="light"] .tv-section--blue {
    border-bottom: none !important;
}
.tv-main[data-theme="light"] .tv-section--grey {
    background-color: #f5f7fa !important;
}
.tv-main[data-theme="light"] .tv-section--blue {
    background-color: #ffffff !important;
}

/* ── Light: Section Titles ── */
.tv-main[data-theme="light"] .tv-section--grey .tv-section-title,
.tv-main[data-theme="light"] .tv-section--blue .tv-section-title {
    color: #1a202c !important;
    opacity: 1;
}

/* ── Light: Video Cards (all sections) ── */
.tv-main[data-theme="light"] .tv-section--grey .tv-card-sm,
.tv-main[data-theme="light"] .tv-section--blue .tv-card-sm,
.tv-main[data-theme="light"] .tv-playlist-scroll .tv-card-sm,
.tv-main[data-theme="light"] .tv-latest-grid .tv-card-sm {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-card-sm .tv-card-body h3,
.tv-main[data-theme="light"] .tv-section--blue .tv-card-sm .tv-card-body h3,
.tv-main[data-theme="light"] .tv-playlist-scroll .tv-card-sm .tv-card-body h3,
.tv-main[data-theme="light"] .tv-latest-grid .tv-card-sm .tv-card-body h3 {
    color: #1a202c !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-card-sm .tv-time,
.tv-main[data-theme="light"] .tv-section--blue .tv-card-sm .tv-time,
.tv-main[data-theme="light"] .tv-playlist-scroll .tv-card-sm .tv-time,
.tv-main[data-theme="light"] .tv-latest-grid .tv-card-sm .tv-time {
    color: #64748b !important;
}

/* ── Light: Taxonomy Badge ── */
.tv-main[data-theme="light"] .tv-section--grey .tv-cat,
.tv-main[data-theme="light"] .tv-section--blue .tv-cat {
    background-color: #032A53 !important;
    color: #ffffff !important;
}

/* ── Light: Program Cards ── */
.tv-main[data-theme="light"] .tv-section--grey .tv-program-card {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-program-card .tv-program-name,
.tv-main[data-theme="light"] .tv-section--grey .tv-program-name {
    color: #1a202c !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-program-card .tv-program-count,
.tv-main[data-theme="light"] .tv-section--grey .tv-program-count {
    color: #64748b !important;
}

/* ── Light: Event Cards on Grey ── */
.tv-main[data-theme="light"] .tv-section--grey .tv-event-card-panel {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-event-cover {
    background-color: #ffffff !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-event-cover-title {
    background: #f5f7fa !important;
    color: #1a202c !important;
    text-shadow: none !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-event-summary {
    background-color: #f5f7fa !important;
    border-top: none !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-event-summary .tv-event-kicker,
.tv-main[data-theme="light"] .tv-section--grey .tv-event-summary .tv-event-editions {
    color: #57606a !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-event-summary .tv-event-chevron {
    color: #1a202c !important;
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-event-years {
    background-color: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-event-year-link {
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: #1a202c !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-event-year-link:hover {
    background-color: rgba(0, 102, 255, 0.06) !important;
    border-color: rgba(0, 102, 255, 0.15) !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-event-year-badge {
    background: #032A53 !important;
    color: #ffffff !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-event-year-name {
    color: #1a202c !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-event-year-count {
    color: #64748b !important;
}

/* ── Light: Event Cards on Blue (now white bg) ── */
.tv-main[data-theme="light"] .tv-section--blue .tv-event-card-panel {
    background-color: #f5f7fa !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* ── Light: Pillar Cards ── */
.tv-main[data-theme="light"] .tv-section--grey .tv-pillar-card,
.tv-main[data-theme="light"] .tv-section--blue .tv-pillar-card {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}
.tv-main[data-theme="light"] .tv-pillars-grid .tv-pillar-badge {
    background-color: rgba(3, 42, 83, 0.1) !important;
    color: #032A53 !important;
}

/* ── Light: Carousel Arrows ── */
.tv-main[data-theme="light"] .tv-section--grey .tv-scroll-arrow,
.tv-main[data-theme="light"] .tv-section--blue .tv-scroll-arrow {
    background: #ffffff !important;
    color: #1a202c !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* ── Light: Hero CTA Buttons ── */
.tv-main[data-theme="light"] .tv-hero-ctas .tv-cta {
    background: #032A53 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(3, 42, 83, 0.3);
}
.tv-main[data-theme="light"] .tv-hero-ctas .tv-cta:hover {
    background: #043d6e !important;
    box-shadow: 0 8px 25px rgba(3, 42, 83, 0.4) !important;
}
.tv-main[data-theme="light"] .tv-hero-ctas .tv-cta svg {
    fill: #ffffff;
}

/* ── Light: Hero overlay ── */
.tv-main[data-theme="light"] .tv-hero-overlay {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.82) 0%, rgba(0, 50, 120, 0.65) 100%) !important;
}

/* ── Light: Search form ── */
.tv-main[data-theme="light"] .video-hero-search-form {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}
.tv-main[data-theme="light"] .video-hero-search-form input {
    color: #1a202c !important;
}
.tv-main[data-theme="light"] .video-hero-search-form input::placeholder {
    color: #64748b !important;
}
.tv-main[data-theme="light"] .video-hero-search-form:focus-within {
    border-color: #032A53 !important;
    box-shadow: 0 0 20px rgba(3, 42, 83, 0.15) !important;
}

/* ── Light: Hover effects ── */
.tv-main[data-theme="light"] .tv-playlist-scroll .tv-card-sm:hover,
.tv-main[data-theme="light"] .tv-events-scroll .tv-event-card-shell:hover,
.tv-main[data-theme="light"] .tv-programs-grid .tv-program-card:hover,
.tv-main[data-theme="light"] .tv-pillars-grid .tv-pillar-card:hover,
.tv-main[data-theme="light"] .tv-latest-grid .tv-card-sm:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

/* ── Light: Various text elements ── */
.tv-main[data-theme="light"] .tv-section--grey .tv-event-year-name,
.tv-main[data-theme="light"] .tv-section--blue .tv-event-year-name {
    color: #1a202c !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-event-year-count,
.tv-main[data-theme="light"] .tv-section--blue .tv-event-year-count,
.tv-main[data-theme="light"] .tv-section--grey .tv-event-editions,
.tv-main[data-theme="light"] .tv-section--blue .tv-event-editions {
    color: #64748b !important;
    opacity: 1 !important;
}
.tv-main[data-theme="light"] .tv-section--grey .tv-event-kicker,
.tv-main[data-theme="light"] .tv-section--blue .tv-event-kicker {
    color: #57606a !important;
}