/*  ═══════════════════════════════════════════════════
    Inspenet TV Archive — v2.3 (5 Distinct CEO Themes)
    Each theme has its own visual identity
    ═══════════════════════════════════════════════════ */

/* ─── 1. DARK NAVY — Profundo y cinematográfico ─── */
.tv-main,
.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:       #3b82f6;
    --tv-accent-hover: #60a5fa;
    --tv-accent-2:     #06b6d4;
    --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%);
}

/* ─── 2. BRAND CORPORATE — Azul Inspenet + naranja vibrante ─── */
.tv-main[data-theme="brand"] {
    --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%);
}

/* ─── 3. LIGHT EXECUTIVE — Blanco limpio y corporativo ─── */
.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%);
}

/* ─── 4. WARM INDUSTRIAL — Petróleo y fuego ─── */
.tv-main[data-theme="warm"] {
    --tv-bg:           #1a1410;
    --tv-surface:      #221b14;
    --tv-card:         #2c2218;
    --tv-border:       rgba(245,158,11,.08);
    --tv-text:         #fef3c7;
    --tv-text-muted:   #a08c6a;
    --tv-accent:       #f59e0b;
    --tv-accent-hover: #fbbf24;
    --tv-accent-2:     #dc2626;
    --tv-white:        #fef3c7;
    --tv-hero-overlay: linear-gradient(135deg, rgba(26,20,16,.95) 0%, rgba(60,30,0,.7) 60%, rgba(245,158,11,.15) 100%);
    --tv-card-shadow:  0 6px 28px rgba(20,10,0,.35);
    --tv-search-bg:    rgba(40,25,10,.6);
    --tv-badge-bg:     rgba(245,158,11,.12);
    --tv-card-radius:  8px;
    --tv-card-border:  1px solid rgba(245,158,11,.06);
    --tv-section-sep:  1px solid rgba(245,158,11,.08);
    --tv-program-bg:   #2c2218;
    --tv-event-overlay-bg: linear-gradient(to top, rgba(26,20,16,.8) 0%, transparent 50%);
}

/* ─── 5. SLATE MINIMAL — Elegancia minimalista ─── */
.tv-main[data-theme="slate"] {
    --tv-bg:           #f8fafc;
    --tv-surface:      #f1f5f9;
    --tv-card:         #ffffff;
    --tv-border:       rgba(0,0,0,.05);
    --tv-text:         #0f172a;
    --tv-text-muted:   #475569;
    --tv-accent:       #334155;
    --tv-accent-hover: #1e293b;
    --tv-accent-2:     #06b6d4;
    --tv-white:        #0f172a;
    --tv-hero-overlay: linear-gradient(135deg, rgba(15,23,42,.93) 0%, rgba(51,65,85,.82) 100%);
    --tv-card-shadow:  0 1px 2px rgba(0,0,0,.04);
    --tv-search-bg:    rgba(15,23,42,.35);
    --tv-badge-bg:     rgba(51,65,85,.08);
    --tv-card-radius:  16px;
    --tv-card-border:  1px solid rgba(0,0,0,.04);
    --tv-section-sep:  1px solid rgba(0,0,0,.04);
    --tv-program-bg:   #ffffff;
    --tv-event-overlay-bg: linear-gradient(to top, rgba(15,23,42,.6) 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);
}

/* Light/Slate theme overrides for body content */

/* Light/Slate: event card text */
.tv-main[data-theme="light"] .tv-event-name,
.tv-main[data-theme="slate"] .tv-event-name { color: #1e293b; }
.tv-main[data-theme="light"] .tv-duration,
.tv-main[data-theme="slate"] .tv-duration { background: rgba(0,0,0,.65); color: #fff; }

/* Light pillar badge stays readable */
.tv-main[data-theme="light"] .tv-pillar-badge { color: #60a5fa; background: rgba(59,130,246,.2); }
.tv-main[data-theme="slate"] .tv-pillar-badge { color: #e2e8f0; background: rgba(255,255,255,.2); }
.tv-main[data-theme="light"] .tv-pillar-title,
.tv-main[data-theme="slate"] .tv-pillar-title { color: #ffffff; }

/* ─── 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: auto; 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: 48px 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 — VOCES DE LA INDUSTRIA ═══════════════ */
.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);
}
/* Horizontal glow line (like the mockup blue streak) */
.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: center;
    min-height: 480px;
}

/* ─── Hero Left: Branding + Voces + CTAs ─── */
.tv-hero-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.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: 0.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;
}

/* CTAs */
.tv-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.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);
}

/* ─── Hero Right: Shortcut Badges ─── */
.tv-hero-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.tv-hero-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.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);
    text-decoration: none;
    white-space: nowrap;
}
.tv-shortcut:hover {
    background: rgba(0,0,0,.6);
    border-color: var(--tv-accent);
    transform: translateX(-4px);
}
.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);
}

/* ─── Theme hero overrides (keep hero text white on all themes) ─── */
.tv-main[data-theme="light"] .tv-brand-name,
.tv-main[data-theme="light"] .tv-hero-title,
.tv-main[data-theme="slate"] .tv-brand-name,
.tv-main[data-theme="slate"] .tv-hero-title {
    color: #ffffff;
}
.tv-main[data-theme="warm"] .tv-hero-badge {
    background: rgba(245,158,11,.2);
    border-color: rgba(245,158,11,.4);
    color: #fbbf24;
}
.tv-main[data-theme="warm"] .tv-shortcut--accent {
    background: rgba(245,158,11,.25);
    border-color: rgba(245,158,11,.5);
    color: #fbbf24;
}
.tv-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--tv-text-muted);
}

/* ═══════════════ 2. 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;
    -webkit-line-clamp: 2;
}

/* ─── 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;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--tv-transition);
}

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

/* ─── 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);
}

/* ═══════════════ 3. EVENTS ═══════════════ */
.tv-events-section {
    background: var(--tv-surface);
    transition: background var(--tv-transition);
}
.tv-events-section .tv-container { position: relative; }

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

.tv-event-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    border-radius: var(--tv-card-radius);
    overflow: hidden;
    background: var(--tv-card);
    border: var(--tv-card-border);
    transition: transform var(--tv-transition), box-shadow var(--tv-transition), background var(--tv-transition);
}
.tv-event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tv-shadow);
}

.tv-event-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.tv-event-overlay {
    position: absolute; inset: 0;
    background: var(--tv-event-overlay-bg);
}

.tv-event-info {
    padding: 10px 12px;
}
.tv-event-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--tv-white);
    line-height: 1.3;
    margin-bottom: 4px;
    transition: color var(--tv-transition);
}
.tv-event-count {
    font-size: 11px;
    color: var(--tv-accent);
    font-weight: 600;
    transition: color var(--tv-transition);
}

/* Scroll Arrows (shared) */
.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: -4px; }
.tv-scroll-arrow--right { right: -4px; }

/* ═══════════════ 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: var(--tv-badge-bg);
    padding: 3px 10px;
    border-radius: 20px;
    transition: color var(--tv-transition), background var(--tv-transition);
}

/* Drawer */
.tv-pillar-drawer {
    border-top: 1px solid var(--tv-border);
}
.tv-drawer-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    padding: 10px 16px;
    color: var(--tv-text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--tv-transition);
}
.tv-drawer-trigger:hover { color: var(--tv-white); }
.tv-trigger-icon {
    transition: transform var(--tv-transition);
}
.tv-drawer-trigger[aria-expanded="true"] .tv-trigger-icon {
    transform: rotate(180deg);
}

.tv-drawer-list-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.tv-drawer-trigger[aria-expanded="true"] + .tv-drawer-list-wrapper {
    max-height: 300px;
}

.tv-specialties-list {
    list-style: none;
    margin: 0;
    padding: 0 16px 12px;
}
.tv-specialties-list li { margin-bottom: 4px; }
.tv-specialties-list a {
    display: block;
    padding: 5px 10px;
    font-size: 12px;
    color: var(--tv-text-muted);
    border-radius: 4px;
    transition: background var(--tv-transition), color var(--tv-transition);
}
.tv-specialties-list a:hover {
    background: rgba(59,130,246,.12);
    color: var(--tv-accent);
}

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

/* Override: In grid context, cards are vertical */
.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;
    -webkit-line-clamp: 2;
}

/* ═══════════════ THEME TOGGLE (floating widget — 5 themes) ═══════════════ */
.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);
}

/* Color dots inside buttons */
.tv-theme-btn[data-theme="dark"]  { color: #3b82f6; }
.tv-theme-btn[data-theme="brand"] { color: #0066ff; }
.tv-theme-btn[data-theme="light"] { color: #f8fafc; }
.tv-theme-btn[data-theme="warm"]  { color: #f59e0b; }
.tv-theme-btn[data-theme="slate"] { color: #94a3b8; }

.tv-theme-btn--active[data-theme="dark"]  { background: rgba(59,130,246,.2); }
.tv-theme-btn--active[data-theme="brand"] { background: rgba(0,102,255,.2); }
.tv-theme-btn--active[data-theme="light"] { background: rgba(255,255,255,.25); }
.tv-theme-btn--active[data-theme="warm"]  { background: rgba(245,158,11,.2); }
.tv-theme-btn--active[data-theme="slate"] { background: rgba(148,163,184,.2); }

/* Tooltip labels */
.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-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);
    }
}

@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-event-card,
    .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-theme-toggle {
        bottom: 12px; right: 12px;
        padding: 6px 8px;
    }
    .tv-theme-btn { width: 28px; height: 28px; }
}