/**
 * NTV TV Hub - Vibrant Purple/Pink/Red Theme
 */

/* CSS Variables */
:root {
    /* Brand Gradient Colors */
    --ntv-purple: #a83d9e;
    --ntv-pink: #f72d9c;
    --ntv-red: #f83831;
    
    /* Primary gradient for buttons and accents */
    --ntv-gradient: linear-gradient(135deg, #a83d9e 0%, #a83d9e 60%, #f72d9c 85%, #f83831 100%);
    --ntv-gradient-hover: linear-gradient(135deg, #b84aae 0%, #b84aae 60%, #f84dac 85%, #f95a54 100%);
    
    --ntv-primary: #a83d9e;
    --ntv-primary-hover: #b84aae;
    
    /* Light/transparent backgrounds */
    --ntv-bg-dark: transparent;
    --ntv-bg-card: rgba(168, 61, 158, 0.08);
    --ntv-bg-card-hover: rgba(168, 61, 158, 0.15);
    --ntv-bg-glass: rgba(255, 255, 255, 0.95);
    
    /* Text colors */
    --ntv-text-primary: #1a1a2e;
    --ntv-text-secondary: #4a4a6a;
    --ntv-text-muted: #7a7a9a;
    --ntv-text-light: #ffffff;
    
    /* Status colors */
    --ntv-live-green: #e0111c;
    --ntv-badge-soon: #8c1667;
    --ntv-badge-new: #961189;
    
    --ntv-border-radius: 12px;
    --ntv-transition: 0.25s ease;
    --ntv-font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Shadows */
    --ntv-shadow: 0 4px 20px rgba(168, 61, 158, 0.15);
    --ntv-shadow-hover: 0 8px 30px rgba(168, 61, 158, 0.25);
}

/* Base Reset */
.ntv-live-hero,
.ntv-schedule-wrapper,
.ntv-carousel-section,
.ntv-hero-slider,
.ntv-show-detail,
.ntv-categories-grid,
.ntv-upcoming-list {
    font-family: var(--ntv-font-family);
    box-sizing: border-box;
    color: var(--ntv-text-primary);
}

.ntv-live-hero *,
.ntv-schedule-wrapper *,
.ntv-carousel-section *,
.ntv-hero-slider *,
.ntv-show-detail *,
.ntv-categories-grid *,
.ntv-upcoming-list * {
    box-sizing: border-box;
}

/* ==========================================
   LIVE HERO SECTION
   ========================================== */
.ntv-live-hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 60px 5%;
    overflow: hidden;
    border-radius: var(--ntv-border-radius);
}

.ntv-live-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(58, 18, 54, 0.95) 0%, rgba(14, 7, 13, 0.7) 50%, rgba(11, 7, 9, 0.4) 100%);
}

.ntv-live-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.ntv-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ntv-gradient);
    color: var(--ntv-text-light);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: var(--ntv-shadow);
}

.ntv-live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: ntv-pulse 1.5s ease-in-out infinite;
}

@keyframes ntv-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.ntv-live-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 15px;
    line-height: 1.1;
    color: var(--ntv-text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.ntv-live-description {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 15px;
    line-height: 1.5;
}

.ntv-live-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin-bottom: 25px;
}

.ntv-live-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.ntv-upcoming-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--ntv-border-radius);
    font-size: 14px;
}

.ntv-upcoming-label {
    color: var(--ntv-text-muted);
}

.ntv-upcoming-title {
    font-weight: 600;
}

.ntv-upcoming-time {
    color: var(--ntv-primary);
    font-weight: 600;
}

/* Live Player Container */
.ntv-live-player-container {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.ntv-close-player {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--ntv-transition);
}

.ntv-close-player:hover {
    opacity: 1;
}

.ntv-live-player {
    width: 100%;
    max-width: 1200px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.ntv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ntv-transition);
    text-decoration: none;
}

.ntv-btn-primary {
    background: var(--ntv-gradient);
    color: var(--ntv-text-light);
    box-shadow: var(--ntv-shadow);
}

.ntv-btn-primary:hover {
    background: var(--ntv-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--ntv-shadow-hover);
}

.ntv-btn-secondary {
    background: rgba(255,255,255,0.25);
    color: var(--ntv-text-light);
    backdrop-filter: blur(10px);
}

.ntv-btn-secondary:hover {
    background: rgba(255,255,255,0.35);
}

.ntv-btn-sm {
    padding: 8px 18px;
    font-size: 12px;
    border-radius: 20px;
}

/* ==========================================
   BADGES
   ========================================== */
.ntv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ntv-badge-live {
    padding: 4px 10px 4px 10px;
    background: var(--ntv-gradient);
    color: var(--ntv-text-light);
    box-shadow: 0 2px 8px rgba(168,61,158,0.3);
    font-size:8px;
}

.ntv-badge-soon {
    padding: 4px 10px 4px 10px;
    background: var(--ntv-badge-soon);
    color: var(--ntv-text-light);
    font-size:8px;
}

.ntv-badge-new {
    padding: 4px 10px 4px 10px;
    background: var(--ntv-pink);
    color: var(--ntv-text-light);
    font-size:8px;
}

.ntv-badge-broadcast {
    background: rgba(168,61,158,0.15);
    color: var(--ntv-purple);
}

.ntv-badge-category {
    padding: 4px 10px 4px 10px;
    background: rgba(168,61,158,0.1);
    border: none;
    color: var(--ntv-purple);
    font-size:8px;
}

/* ==========================================
   SCHEDULE TIMELINE
   ========================================== */
.ntv-schedule-wrapper {
    padding: 40px 5%;
}

.ntv-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.ntv-schedule-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--ntv-text-primary);
}

.ntv-schedule-title svg {
    color: var(--ntv-purple);
}

.ntv-current-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ntv-text-secondary);
    background: var(--ntv-bg-card);
    padding: 8px 16px;
    border-radius: 20px;
}

.ntv-time-dot {
    width: 8px;
    height: 8px;
    background: var(--ntv-gradient);
    border-radius: 50%;
    animation: ntv-pulse 1.5s ease-in-out infinite;
}

.ntv-schedule-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ntv-schedule-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--ntv-bg-card);
    border-radius: var(--ntv-border-radius);
    transition: all var(--ntv-transition);
    border: 1px solid rgba(168,61,158,0.1);
}

.ntv-schedule-item:hover {
    background: var(--ntv-bg-card-hover);
    box-shadow: var(--ntv-shadow);
    transform: translateX(5px);
}

.ntv-schedule-live {
    border-left: 4px solid var(--ntv-purple);
    background: rgba(168,61,158,0.08);
}

.ntv-schedule-ended {
    opacity: 0.5;
}

.ntv-schedule-time {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}

.ntv-schedule-start {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--ntv-text-primary);
}

.ntv-schedule-end {
    display: block;
    font-size: 12px;
    color: var(--ntv-text-muted);
}

.ntv-schedule-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
}

.ntv-schedule-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntv-schedule-info {
    flex: 1;
    min-width: 0;
}

.ntv-schedule-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.ntv-schedule-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px;
    color: var(--ntv-text-primary);
}

.ntv-schedule-desc {
    font-size: 14px;
    color: var(--ntv-text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ntv-schedule-action {
    flex-shrink: 0;
}

.ntv-schedule-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--ntv-text-muted);
}

/* ==========================================
   CAROUSEL
   ========================================== */
.ntv-carousel-section {
    padding: 30px 0;
}

.ntv-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    margin-bottom: 15px;
}

.ntv-carousel-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--ntv-text-primary);
}

/* Nav controls in header */
.ntv-carousel-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ntv-carousel-see-all {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--ntv-purple);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color var(--ntv-transition);
    margin-right: 12px;
}

.ntv-carousel-see-all:hover {
    color: var(--ntv-pink);
}

.ntv-carousel-container {
    position: relative;
    padding: 0 5%;
}

.ntv-carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.ntv-carousel-track::-webkit-scrollbar {
    display: none;
}

/* Extra small nav buttons - positioned in header area */
.ntv-carousel-nav {
    min-width: 28px;
    height: 28px;
    background: var(--ntv-bg-card);
    border: 1px solid rgba(168,61,158,0.2);
    border-radius: 50%;
    color: var(--ntv-purple);
    cursor: pointer;
    transition: all var(--ntv-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    transform: none;
}

.ntv-carousel-nav:hover {
    background: var(--ntv-gradient);
    color: var(--ntv-text-light);
    border-color: transparent;
    box-shadow: var(--ntv-shadow);
}

.ntv-carousel-prev,
.ntv-carousel-next {
    border-radius: 50%;
}

.ntv-carousel-nav svg {
    width: 14px;
    height: 14px;
}

/* Show Card */
.ntv-show-card {
    flex-shrink: 0;
    width: 200px;
    cursor: pointer;
    transition: all var(--ntv-transition);
}

.ntv-show-card:hover {
    transform: translateY(-8px);
    z-index: 5;
}

.ntv-show-card-image {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--ntv-border-radius);
    overflow: hidden;
    background: var(--ntv-bg-card);
    box-shadow: var(--ntv-shadow);
}

.ntv-show-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ntv-transition);
}

.ntv-show-card:hover .ntv-show-card-image img {
    transform: scale(1.08);
}

.ntv-show-card:hover .ntv-show-card-image {
    box-shadow: var(--ntv-shadow-hover);
}

.ntv-show-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168,61,158,0.7) 0%, rgba(247,45,156,0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--ntv-transition);
}

.ntv-show-card:hover .ntv-show-card-overlay {
    opacity: 1;
}

.ntv-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    background: var(--ntv-primary);
    color: var(--ntv-text-light);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: opacity var(--ntv-transition), transform var(--ntv-transition);
}

.ntv-play-btn:hover {
    opacity: 0.95;
}

.ntv-play-btn svg {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Optional small-box variant: add class `small-box` to make play button a compact square */
/* small-box variant removed — play button is flat by default */

.ntv-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
}

.ntv-show-card-info {
    padding: 12px 4px 0;
}

.ntv-show-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px;
    color: var(--ntv-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ntv-show-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 11px;
    color: var(--ntv-text-muted);
    margin-bottom: 6px;
    align-items: center;
}

.ntv-show-category {
    color: var(--ntv-purple);
    font-weight: 500;
}

.ntv-show-episodes-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(168, 61, 158, 0.1);
    color: var(--ntv-purple);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.ntv-show-episodes-badge svg {
    width: 12px;
    height: 12px;
    opacity: 0.8;
}

/* Time and Duration display */
.ntv-show-time-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--ntv-text-muted);
}

.ntv-show-time,
.ntv-show-duration {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ntv-show-time svg,
.ntv-show-duration svg {
    width: 12px;
    height: 12px;
    color: var(--ntv-purple);
    flex-shrink: 0;
}

.ntv-show-time {
    color: var(--ntv-text-secondary);
}

.ntv-show-duration {
    color: var(--ntv-text-muted);
}

/* ==========================================
   HERO SLIDER
   ========================================== */
.ntv-hero-slider {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.ntv-hero-slides {
    position: relative;
    height: 100%;
}

.ntv-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.ntv-hero-slide.active {
    opacity: 1;
}

.ntv-hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(58, 18, 54, 0.95) 0%, rgba(14, 7, 13, 0.7) 50%, rgba(11, 7, 9, 0.4) 100%);
}

.ntv-hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    padding: 100px 5%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ntv-hero-category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--ntv-text-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.ntv-hero-title {
    font-size: 52px;
    font-weight: 800;
    margin: 0 0 15px;
    line-height: 1.1;
    color: var(--ntv-text-light);
}

.ntv-hero-description {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 15px;
    line-height: 1.6;
}

.ntv-hero-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--ntv-text-muted);
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.ntv-hero-episodes-badge,
.ntv-hero-time,
.ntv-hero-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.ntv-hero-episodes-badge svg,
.ntv-hero-time svg,
.ntv-hero-duration svg {
    opacity: 0.85;
}

.ntv-hero-actions {
    display: flex;
    gap: 12px;
}

.ntv-hero-indicators {
    position: absolute;
    bottom: 40px;
    right: 5%;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.ntv-hero-indicator {
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
}

.ntv-hero-indicator.active {
    background: rgba(255,255,255,0.5);
}

.ntv-indicator-progress {
    display: block;
    width: 0;
    height: 100%;
    background: var(--ntv-primary);
}

.ntv-hero-indicator.active .ntv-indicator-progress {
    animation: ntv-progress 5s linear forwards;
}

@keyframes ntv-progress {
    from { width: 0; }
    to { width: 100%; }
}

/* ==========================================
   SHOW DETAIL PAGE
   ========================================== */
.ntv-show-detail {
    min-height: 100vh;
}

.ntv-show-hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: flex-end;
    padding: 60px 5%;
    border-radius: var(--ntv-border-radius);
    overflow: hidden;
}

.ntv-show-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(58, 18, 54, 0.95) 0%, rgba(14, 7, 13, 0.7) 50%, rgba(11, 7, 9, 0.4) 100%);
}

.ntv-show-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.ntv-show-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--ntv-text-light);
}

.ntv-show-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.ntv-show-genre {
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--ntv-text-light);
    backdrop-filter: blur(10px);
}

.ntv-show-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.ntv-status-active { background: var(--ntv-live-green); color: #000; }
.ntv-status-upcoming { background: var(--ntv-badge-soon); color: var(--ntv-text-light); }
.ntv-status-ended { background: rgba(255,255,255,0.3); color: var(--ntv-text-light); }

.ntv-show-seasons,
.ntv-show-episodes-count {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

.ntv-show-description {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    margin-bottom: 25px;
}

.ntv-show-actions {
    display: flex;
    gap: 12px;
}

/* Cast / Presenters */
.ntv-show-cast {
    padding: 20px 0 0;
}
.ntv-cast-list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.ntv-cast-member {
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--ntv-bg-card);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(168,61,158,0.08);
}
.ntv-cast-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}
.ntv-cast-meta { font-size: 14px; color: var(--ntv-text-primary); }
.ntv-cast-role { color: var(--ntv-text-muted); font-size: 13px; }

/* Section Titles */
.ntv-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ntv-text-primary);
    margin: 0 0 20px;
}

.ntv-section-title svg {
    color: var(--ntv-purple);
}

/* Broadcast Schedule */
.ntv-broadcast-schedule {
    padding: 30px 5%;
}

.ntv-broadcast-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--ntv-bg-card);
    border-radius: var(--ntv-border-radius);
    margin-bottom: 12px;
    border: 1px solid rgba(168,61,158,0.15);
}

.ntv-broadcast-live {
    background: rgba(168,61,158,0.1);
    border-left: 4px solid var(--ntv-purple);
}

.ntv-broadcast-upcoming {
    background: var(--ntv-bg-card);
}

.ntv-broadcast-status {
    margin-bottom: 8px;
}

.ntv-broadcast-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ntv-broadcast-time,
.ntv-broadcast-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ntv-text-secondary);
}

.ntv-broadcast-time svg {
    color: var(--ntv-purple);
}

/* Episodes Section */
.ntv-episodes-section {
    padding: 30px 5%;
}

.ntv-season-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.ntv-season-tab {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid rgba(168,61,158,0.3);
    border-radius: 25px;
    color: var(--ntv-text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--ntv-transition);
}

.ntv-season-tab:hover {
    border-color: var(--ntv-purple);
    color: var(--ntv-purple);
}

.ntv-season-tab.active {
    background: var(--ntv-gradient);
    border-color: transparent;
    color: var(--ntv-text-light);
    box-shadow: var(--ntv-shadow);
}

.ntv-season-episodes {
    display: none;
}

.ntv-season-episodes.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ntv-episode-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--ntv-bg-card);
    border-radius: var(--ntv-border-radius);
    cursor: pointer;
    transition: all var(--ntv-transition);
    border: 1px solid rgba(168,61,158,0.1);
}

.ntv-episode-card:hover {
    background: var(--ntv-bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--ntv-shadow);
}

.ntv-episode-thumb {
    position: relative;
    flex-shrink: 0;
    width: 160px;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
}

.ntv-episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntv-episode-play {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168,61,158,0.7) 0%, rgba(247,45,156,0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--ntv-transition);
}

.ntv-episode-card:hover .ntv-episode-play {
    opacity: 1;
}

.ntv-episode-play svg {
    width: 36px;
    height: 36px;
    color: var(--ntv-text-light);
}

.ntv-episode-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(168,61,158,0.9);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    color: var(--ntv-text-light);
}

.ntv-episode-info {
    flex: 1;
    min-width: 0;
}

.ntv-episode-number {
    font-size: 12px;
    color: var(--ntv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.ntv-episode-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--ntv-text-primary);
}

.ntv-episode-desc {
    font-size: 13px;
    color: var(--ntv-text-secondary);
    margin: 0 0 8px;
    line-height: 1.4;
}

.ntv-episode-date {
    font-size: 12px;
    color: var(--ntv-text-muted);
}

.ntv-no-episodes {
    text-align: center;
    padding: 60px 20px;
    color: var(--ntv-text-muted);
}

/* ==========================================
   CATEGORIES GRID
   ========================================== */
.ntv-categories-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 4), 1fr);
    gap: 20px;
    padding: 40px 5%;
    background: var(--ntv-bg-dark);
}

.ntv-category-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--ntv-border-radius);
    overflow: hidden;
    text-decoration: none;
}

.ntv-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ntv-transition);
}

.ntv-category-card:hover img {
    transform: scale(1.1);
}

.ntv-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.ntv-category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.ntv-category-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px;
    color: white;
}

.ntv-category-count {
    font-size: 13px;
    color: var(--ntv-text-secondary);
}
.ntv-category-show-episodes-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(168, 61, 157, 0.895);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* ==========================================
   UPCOMING PROGRAMS LIST
   ========================================== */
.ntv-upcoming-list {
    background: var(--ntv-bg-card);
    border-radius: var(--ntv-border-radius);
    padding: 20px;
}

.ntv-upcoming-list .ntv-upcoming-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px;
    color: var(--ntv-text-primary);
}

.ntv-upcoming-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ntv-upcoming-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(168,61,158,0.15);
    border-radius: 4px;
}

.ntv-upcoming-item .ntv-upcoming-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
}

.ntv-upcoming-item .ntv-upcoming-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntv-upcoming-item .ntv-upcoming-info {
    flex: 1;
    min-width: 0;
}

.ntv-upcoming-item .ntv-upcoming-time {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--ntv-primary);
}

.ntv-upcoming-item .ntv-upcoming-name {
    display: block;
    font-size: 13px;
    color: var(--ntv-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   VIDEO PLAYER MODAL
   ========================================== */
.ntv-video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.ntv-video-modal-content {
    width: 100%;
    max-width: 1000px;
}

.ntv-video-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    opacity: 0.7;
}

.ntv-video-modal-close:hover {
    opacity: 1;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .ntv-show-card {
        width: 180px;
    }
    
    .ntv-hero-title {
        font-size: 42px;
    }
    
    .ntv-live-title {
        font-size: 40px;
    }
}

@media (max-width: 992px) {
    .ntv-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ntv-season-episodes.active {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .ntv-live-hero {
        min-height: 400px;
        padding: 40px 5%;
    }
    
    .ntv-live-title {
        font-size: 32px;
    }
    
    .ntv-live-description {
        font-size: 15px;
    }
    
    .ntv-live-actions {
        flex-direction: column;
    }
    
    .ntv-hero-slider {
        height: 450px;
    }
    
    .ntv-hero-title {
        font-size: 32px;
    }
    
    .ntv-hero-slide-content {
        padding: 60px 5%;
    }
    
    .ntv-show-card {
        width: 150px;
    }
    
    .ntv-schedule-item {
        flex-wrap: wrap;
    }
    
    .ntv-schedule-thumb {
        width: 100px;
        height: 60px;
    }
    
    .ntv-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ntv-show-title {
        font-size: 36px;
    }
    
    .ntv-episode-card {
        flex-direction: column;
    }
    
    .ntv-episode-thumb {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ntv-live-title,
    .ntv-hero-title,
    .ntv-show-title {
        font-size: 26px;
    }
    
    .ntv-show-card {
        width: 130px;
    }
    
    .ntv-carousel-title,
    .ntv-schedule-title {
        font-size: 18px;
    }
    
    .ntv-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .ntv-schedule-time {
        width: 60px;
    }
    
    .ntv-schedule-start {
        font-size: 14px;
    }
    
    .ntv-schedule-name {
        font-size: 15px;
    }
    
    .ntv-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .ntv-hero-indicators {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }
    
    .ntv-hero-indicator {
        width: 40px;
    }
}
