:root {
    --peach: #ff6e3b;
    --peach-soft: rgba(255, 110, 59, 0.12);
    --bg-dark: #0a0a0c;
    --bg-card: rgba(22, 22, 28, 0.75);
    --border-glass: rgba(255, 255, 255, 0.07);
    --text-primary: #f0f0f2;
    --text-secondary: rgba(240, 240, 242, 0.55);
    --text-muted: rgba(240, 240, 242, 0.3);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.2s ease;
}

* { box-sizing: border-box; }

body.tv-page {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font);
}

/* ── Nav ── */
.tv-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 60px;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}
.tv-nav-brand { display: flex; align-items: center; text-decoration: none; }
.tv-nav-brand img { height: 28px; }
.tv-nav-links { display: flex; gap: 1.5rem; align-items: center; }
.tv-nav-links a { font-size: 0.875rem; color: var(--text-secondary); text-decoration: none; transition: color var(--transition); }
.tv-nav-links a:hover { color: var(--text-primary); }
.tv-nav-cta {
    font-size: 0.8rem; font-weight: 600; color: var(--peach) !important;
    border: 1px solid rgba(255, 110, 59, 0.3); border-radius: 6px;
    padding: 0.35rem 0.9rem;
}
.tv-nav-cta:hover { background: var(--peach-soft); }

/* ── Hero ── */
.tv-hero { padding: 3rem 2rem 2rem; max-width: 1200px; margin: 0 auto; text-align: center; }
.tv-hero-title { font-size: 2.25rem; font-weight: 800; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.tv-hero-sub { font-size: 1rem; color: var(--text-secondary); margin: 0; }

/* ── Masonry grid ── */
.tv-masonry {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    columns: 4 300px;
    column-gap: 1.25rem;
}
@media (max-width: 1100px) { .tv-masonry { columns: 3 280px; } }
@media (max-width: 700px)  { .tv-masonry { columns: 2 220px; } }
@media (max-width: 480px)  { .tv-masonry { columns: 1; } }

.tv-item {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.tv-item:hover {
    border-color: rgba(255, 110, 59, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.tv-video-wrap { background: #000; line-height: 0; }
.tv-video-wrap video { width: 100%; height: auto; max-height: 520px; display: block; }

.tv-caption { padding: 1rem 1.1rem 1.1rem; }
.tv-quote { font-size: 0.88rem; line-height: 1.5; color: var(--text-primary); margin: 0 0 0.85rem; }

.tv-person { display: flex; align-items: center; gap: 0.6rem; }
.tv-avatar {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    background: var(--peach-soft); color: var(--peach);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
}
.tv-person-info { min-width: 0; }
.tv-person-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.tv-person-sub { font-size: 0.75rem; color: var(--text-secondary); }

/* ── Infinite-scroll sentinel ── */
.tv-sentinel { display: flex; align-items: center; justify-content: center; padding: 2rem 0; break-inside: avoid; }
.tv-spinner {
    width: 28px; height: 28px; border-radius: 50%;
    border: 3px solid var(--border-glass); border-top-color: var(--peach);
    animation: tv-spin 0.8s linear infinite;
}
@keyframes tv-spin { to { transform: rotate(360deg); } }

/* ── Empty state ── */
.tv-empty { text-align: center; padding: 5rem 1rem; color: var(--text-muted); }
.tv-empty svg { width: 48px; height: 48px; margin-bottom: 1rem; opacity: 0.5; }

/* ── Footer ── */
.tv-footer { text-align: center; padding: 2rem; font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid var(--border-glass); }

@media (max-width: 700px) {
    .tv-nav { padding: 0 1rem; }
    .tv-hero { padding: 2rem 1rem 1.5rem; }
    .tv-hero-title { font-size: 1.6rem; }
}
