/**
 * تلویزیون دانشگاه لرستان - استایل‌ها
 * Lorestan University TV - Netflix/YouTube Style
 * با پشتیبانی از تم دارک و روشن
 */

/* ==========================================================================
   CSS Variables - Theme System
   ========================================================================== */

/* Dark Theme (Default) - Netflix Inspired */
:root,
[data-theme="dark"] {
    /* Background Colors - Netflix Style */
    --tv-bg-primary: #141414;
    --tv-bg-secondary: #181818;
    --tv-bg-tertiary: #232323;
    --tv-bg-card: #1f1f1f;
    --tv-bg-card-hover: #2a2a2a;
    --tv-bg-elevated: #282828;

    /* University Blue as Primary Accent */
    --tv-accent: #4a6cf7;
    --tv-accent-hover: #6b8cff;
    --tv-accent-light: rgba(74, 108, 247, 0.15);
    --tv-accent-glow: rgba(74, 108, 247, 0.4);

    /* Secondary Colors */
    --tv-secondary: #e50914;  /* Netflix Red for highlights */
    --tv-secondary-hover: #ff1a27;
    --tv-success: #46d369;    /* Netflix Green */
    --tv-warning: #f5c518;    /* IMDb Yellow */

    /* Text Colors - Netflix Style */
    --tv-text-primary: #ffffff;
    --tv-text-secondary: #b3b3b3;
    --tv-text-muted: #8a8a8a;  /* WCAG AA: 4.54:1 ratio */
    --tv-text-inverse: #141414;

    /* Gradients */
    --tv-gradient-hero: linear-gradient(to right, var(--tv-bg-primary) 0%, transparent 50%);
    --tv-gradient-hero-bottom: linear-gradient(to top, var(--tv-bg-primary) 0%, transparent 50%);
    --tv-gradient-card: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);

    /* Effects */
    --tv-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --tv-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.7);
    --tv-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.4);
    --tv-glow: 0 0 20px var(--tv-accent-glow);
    --tv-border-color: rgba(255, 255, 255, 0.1);

    /* Header */
    --tv-header-bg: linear-gradient(180deg, rgba(20, 20, 20, 1) 0%, transparent 100%);
    --tv-header-bg-scrolled: rgba(20, 20, 20, 0.95);
}

/* Light Theme - YouTube Inspired */
[data-theme="light"] {
    /* Background Colors - YouTube Style */
    --tv-bg-primary: #ffffff;
    --tv-bg-secondary: #f9f9f9;
    --tv-bg-tertiary: #f1f1f1;
    --tv-bg-card: #ffffff;
    --tv-bg-card-hover: #f2f2f2;
    --tv-bg-elevated: #ffffff;

    /* Keep University Blue */
    --tv-accent: #4a6cf7;
    --tv-accent-hover: #3d5bd9;
    --tv-accent-light: rgba(74, 108, 247, 0.1);
    --tv-accent-glow: rgba(74, 108, 247, 0.2);

    /* Secondary Colors */
    --tv-secondary: #cc0000;
    --tv-secondary-hover: #990000;
    --tv-success: #2ba640;
    --tv-warning: #e6a100;

    /* Text Colors - YouTube Style */
    --tv-text-primary: #0f0f0f;
    --tv-text-secondary: #606060;
    --tv-text-muted: #767676;  /* WCAG AA: 4.54:1 ratio */
    --tv-text-inverse: #ffffff;

    /* Gradients */
    --tv-gradient-hero: linear-gradient(to right, rgba(255,255,255,0.9) 0%, transparent 50%);
    --tv-gradient-hero-bottom: linear-gradient(to top, var(--tv-bg-primary) 0%, transparent 50%);
    --tv-gradient-card: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 100%);

    /* Effects */
    --tv-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    --tv-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    --tv-shadow-card: 0 1px 4px rgba(0, 0, 0, 0.1);
    --tv-glow: none;
    --tv-border-color: rgba(0, 0, 0, 0.1);

    /* Header */
    --tv-header-bg: rgba(255, 255, 255, 0.97);
    --tv-header-bg-scrolled: rgba(255, 255, 255, 0.98);
}

/* Shared Variables (Both Themes) */
:root {
    /* Transitions */
    --tv-transition: all 0.2s ease;
    --tv-transition-slow: all 0.4s ease;

    /* Border Radius - YouTube Style (smaller) */
    --tv-radius: 8px;
    --tv-radius-lg: 12px;
    --tv-radius-xl: 16px;
    --tv-radius-full: 9999px;

    /* Fonts */
    --tv-font: 'Vazirmatn', 'IranSansWeb', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --tv-space-xs: 4px;
    --tv-space-sm: 8px;
    --tv-space-md: 16px;
    --tv-space-lg: 24px;
    --tv-space-xl: 32px;
    --tv-space-2xl: 48px;

    /* Category Colors - Harmonious Palette */
    --tv-cat-primary: #4a6cf7;
    --tv-cat-secondary: #e50914;
    --tv-cat-tertiary: #46d369;
    --tv-cat-quaternary: #f5c518;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
.tv-body {
    font-family: var(--tv-font);
    background: var(--tv-bg-primary);
    color: var(--tv-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.tv-main {
    min-height: calc(100vh - 200px);
    padding-bottom: 60px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.tv-header {
    background: var(--tv-header-bg-scrolled);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--tv-border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--tv-transition);
}

.tv-header .navbar {
    padding: 12px 0;
}

.tv-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tv-text-primary);
    text-decoration: none;
}

.tv-logo i {
    font-size: 2rem;
    color: var(--tv-accent);
    text-shadow: var(--tv-glow);
}

.tv-logo__text {
    display: flex;
    flex-direction: column;
}

.tv-logo__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.tv-logo__subtitle {
    font-size: 0.75rem;
    color: var(--tv-text-muted);
    letter-spacing: 1px;
}

.tv-header .nav-link {
    color: var(--tv-text-secondary);
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--tv-transition);
}

.tv-header .nav-link:hover,
.tv-header .nav-link:focus {
    color: var(--tv-text-primary);
    background: var(--tv-accent-light);
}

.tv-header .dropdown-menu {
    background: var(--tv-bg-tertiary);
    border: 1px solid var(--tv-border-color);
    border-radius: var(--tv-radius);
    box-shadow: var(--tv-shadow);
}

.tv-header .dropdown-item {
    color: var(--tv-text-secondary);
    padding: 10px 20px;
    transition: var(--tv-transition);
}

.tv-header .dropdown-item:hover {
    background: var(--tv-accent-light);
    color: var(--tv-text-primary);
}

.tv-search-form .form-control {
    background: var(--tv-bg-tertiary);
    border: 1px solid var(--tv-border-color);
    color: var(--tv-text-primary);
    border-radius: 8px 0 0 8px;
}

.tv-search-form .form-control:focus {
    background: var(--tv-bg-card);
    border-color: var(--tv-accent);
    box-shadow: 0 0 0 3px var(--tv-accent-light);
}

.tv-search-form .btn {
    border-radius: 0 8px 8px 0;
}

.btn-outline-accent {
    color: var(--tv-accent);
    border-color: var(--tv-accent);
}

.btn-outline-accent:hover {
    background: var(--tv-accent);
    color: var(--tv-text-primary);
}

.btn-accent {
    background: var(--tv-accent);
    border-color: var(--tv-accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--tv-accent-hover);
    border-color: var(--tv-accent-hover);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.tv-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

.tv-hero__slider {
    height: 100%;
}

.tv-hero__slide {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
}

.tv-hero__background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.tv-hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.tv-hero__background--gradient {
    background: var(--tv-gradient-hero);
}

.tv-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        var(--tv-gradient-hero),
        var(--tv-gradient-hero-bottom);
}

.tv-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 0 80px;
    z-index: 10;
}

.tv-hero__category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.tv-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tv-hero__description {
    font-size: 1.1rem;
    color: var(--tv-text-secondary);
    max-width: 600px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.tv-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
    color: var(--tv-text-secondary);
    font-size: 0.95rem;
}

.tv-hero__meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tv-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tv-hero__icon {
    font-size: 5rem;
    color: var(--tv-accent);
    margin-bottom: 24px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.tv-hero__controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 20;
}

.tv-hero__arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--tv-text-primary);
    cursor: pointer;
    transition: var(--tv-transition);
}

.tv-hero__arrow:hover {
    background: var(--tv-accent);
    border-color: var(--tv-accent);
}

.tv-hero__slide--default .tv-hero__content {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    padding: 40px 0;
}

/* ==========================================================================
   Categories Bar
   ========================================================================== */
/* OCD Fix: Premium category chips */
.tv-categories-bar {
    padding: 20px 0 32px;
    margin-bottom: 0;
    border-bottom: none; /* Remove any border */
}

.tv-categories-bar__scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0 16px;
}

.tv-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1.5px solid var(--tv-border-color);
    border-radius: 8px;
    color: var(--tv-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tv-category-chip:hover {
    background: var(--tv-bg-tertiary);
    border-color: var(--tv-accent);
    color: var(--tv-text-primary);
    transform: translateY(-1px);
}

.tv-category-chip.active,
.tv-category-chip:focus {
    background: var(--tv-accent);
    border-color: var(--tv-accent);
    color: #fff;
}

.tv-category-chip i {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================================================
   Video Card
   ========================================================================== */
.tv-video-card {
    background: var(--tv-bg-card);
    border-radius: var(--tv-radius-lg);
    overflow: hidden;
    transition: var(--tv-transition);
    height: 100%;
    box-shadow: var(--tv-shadow);
}

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

.tv-video-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.tv-video-card__thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--tv-bg-tertiary);
}

.tv-video-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--tv-transition-slow);
}

.tv-video-card:hover .tv-video-card__thumbnail img {
    transform: scale(1.08);
}

/* ==========================================================================
   PREMIUM PLACEHOLDER SYSTEM - Netflix/YouTube Style
   Each card gets unique gradient based on position
   ========================================================================== */

.tv-video-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Default gradient - will be overridden by nth-child */
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
}

/* Gradient Variety - 8 different color schemes */
.tv-video-card:nth-child(8n+1) .tv-video-card__placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1a1a2e 100%);
}
.tv-video-card:nth-child(8n+1) .tv-video-card__placeholder::before {
    background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.25) 0%, transparent 50%);
}

.tv-video-card:nth-child(8n+2) .tv-video-card__placeholder {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
}
.tv-video-card:nth-child(8n+2) .tv-video-card__placeholder::before {
    background: radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.25) 0%, transparent 50%);
}

.tv-video-card:nth-child(8n+3) .tv-video-card__placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #2e1a1a 50%, #1a1a2e 100%);
}
.tv-video-card:nth-child(8n+3) .tv-video-card__placeholder::before {
    background: radial-gradient(circle at 50% 70%, rgba(239, 68, 68, 0.2) 0%, transparent 50%);
}

.tv-video-card:nth-child(8n+4) .tv-video-card__placeholder {
    background: linear-gradient(135deg, #0f1f1a 0%, #134e3a 50%, #0f1f1a 100%);
}
.tv-video-card:nth-child(8n+4) .tv-video-card__placeholder::before {
    background: radial-gradient(circle at 30% 70%, rgba(16, 185, 129, 0.25) 0%, transparent 50%);
}

.tv-video-card:nth-child(8n+5) .tv-video-card__placeholder {
    background: linear-gradient(135deg, #1f1a0f 0%, #4e3a13 50%, #1f1a0f 100%);
}
.tv-video-card:nth-child(8n+5) .tv-video-card__placeholder::before {
    background: radial-gradient(circle at 70% 50%, rgba(245, 158, 11, 0.25) 0%, transparent 50%);
}

.tv-video-card:nth-child(8n+6) .tv-video-card__placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #3b1a4e 50%, #1a1a2e 100%);
}
.tv-video-card:nth-child(8n+6) .tv-video-card__placeholder::before {
    background: radial-gradient(circle at 50% 30%, rgba(168, 85, 247, 0.25) 0%, transparent 50%);
}

.tv-video-card:nth-child(8n+7) .tv-video-card__placeholder {
    background: linear-gradient(135deg, #0f172a 0%, #164e63 50%, #0f172a 100%);
}
.tv-video-card:nth-child(8n+7) .tv-video-card__placeholder::before {
    background: radial-gradient(circle at 30% 50%, rgba(6, 182, 212, 0.25) 0%, transparent 50%);
}

.tv-video-card:nth-child(8n+8) .tv-video-card__placeholder {
    background: linear-gradient(135deg, #1f0f1a 0%, #4e1340 50%, #1f0f1a 100%);
}
.tv-video-card:nth-child(8n+8) .tv-video-card__placeholder::before {
    background: radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.25) 0%, transparent 50%);
}

/* Shared pseudo-element styles */
.tv-video-card__placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.tv-video-card:hover .tv-video-card__placeholder::before {
    opacity: 1;
}

/* Animated glow effect */
.tv-video-card__placeholder::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 255, 255, 0.03) 60deg,
        transparent 120deg
    );
    animation: placeholderRotate 8s linear infinite;
    opacity: 0.5;
}

@keyframes placeholderRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Play icon styling */
.tv-video-card__placeholder i {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.4);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tv-video-card:hover .tv-video-card__placeholder i {
    color: rgba(255, 255, 255, 0.7);
    transform: scale(1.15);
    text-shadow: 0 0 60px rgba(74, 108, 247, 0.5);
}

.tv-video-card__play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: var(--tv-transition);
}

.tv-video-card:hover .tv-video-card__play-overlay {
    opacity: 1;
}

.tv-video-card__play-overlay i {
    font-size: 4rem;
    color: var(--tv-text-primary);
    text-shadow: var(--tv-glow);
    transform: scale(0.8);
    transition: var(--tv-transition);
}

.tv-video-card:hover .tv-video-card__play-overlay i {
    transform: scale(1);
}

.tv-video-card__duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--tv-text-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tv-video-card__source {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--tv-secondary);
    color: var(--tv-text-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tv-video-card__source--aparat {
    background: #ed145b;
}

.tv-video-card__source--youtube {
    background: #ff0000;
}

.tv-video-card__content {
    padding: 20px;
}

.tv-video-card__category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.tv-video-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tv-video-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--tv-text-muted);
}

.tv-video-card__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Video Grid
   ========================================================================== */
.tv-video-grid__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.tv-video-grid__title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tv-video-grid__title i {
    color: var(--tv-accent);
}

.tv-video-grid__more {
    color: var(--tv-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--tv-transition);
}

.tv-video-grid__more:hover {
    color: var(--tv-accent-hover);
    gap: 12px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.tv-section {
    padding: 50px 0;
}

.tv-section__header {
    margin-bottom: 32px;
}

.tv-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tv-section__title i {
    color: var(--tv-accent);
}

/* ==========================================================================
   Channel Cards
   ========================================================================== */
.tv-channel-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--tv-bg-card);
    border-radius: var(--tv-radius);
    border: 1px solid var(--tv-border-color);
    text-decoration: none;
    color: inherit;
    transition: var(--tv-transition);
}

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

.tv-channel-card__logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--tv-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.tv-channel-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-channel-card__logo i {
    font-size: 1.5rem;
    color: var(--tv-accent);
}

.tv-channel-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.tv-channel-card__count {
    font-size: 0.85rem;
    color: var(--tv-text-muted);
}

/* ==========================================================================
   Subscribe Section
   ========================================================================== */
.tv-subscribe-section {
    padding: 60px 0;
}

.tv-subscribe-card {
    background: var(--tv-gradient-card);
    border-radius: var(--tv-radius-xl);
    padding: 50px;
    border: 1px solid var(--tv-border-color);
    position: relative;
    overflow: hidden;
}

.tv-subscribe-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--tv-accent-light) 0%, transparent 70%);
    pointer-events: none;
}

.tv-subscribe-card__icon {
    font-size: 3rem;
    color: var(--tv-accent);
    margin-bottom: 16px;
}

.tv-subscribe-card__content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.tv-subscribe-card__content p {
    color: var(--tv-text-secondary);
    line-height: 1.7;
}

.tv-subscribe-card__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.tv-social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: var(--tv-transition);
}

.tv-social-btn i {
    font-size: 1.25rem;
}

.tv-social-btn--telegram {
    background: linear-gradient(135deg, #229ED9 0%, #1c8ac2 100%);
}

.tv-social-btn--instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.tv-social-btn--aparat {
    background: linear-gradient(135deg, #ed145b 0%, #c4104e 100%);
}

.tv-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* ==========================================================================
   Page Header
   ========================================================================== */
.tv-page-header,
.tv-channel-header {
    position: relative;
    padding: 100px 0 60px;
    overflow: hidden;
}

.tv-page-header__bg,
.tv-channel-header__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
}

.tv-page-header__overlay,
.tv-channel-header__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.7) 0%, var(--tv-bg-primary) 100%);
}

[data-theme="light"] .tv-page-header__overlay,
[data-theme="light"] .tv-channel-header__overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 0%, var(--tv-bg-primary) 100%);
}

.tv-page-header__content,
.tv-channel-header__content {
    position: relative;
    z-index: 10;
}

.tv-page-header .breadcrumb,
.tv-channel-header .breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 24px;
}

.tv-page-header .breadcrumb-item a,
.tv-channel-header .breadcrumb-item a {
    color: var(--tv-text-secondary);
    text-decoration: none;
}

.tv-page-header .breadcrumb-item a:hover,
.tv-channel-header .breadcrumb-item a:hover {
    color: var(--tv-accent);
}

.tv-page-header .breadcrumb-item.active,
.tv-channel-header .breadcrumb-item.active {
    color: var(--tv-text-muted);
}

.tv-page-header .breadcrumb-item + .breadcrumb-item::before,
.tv-channel-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--tv-text-muted);
    content: "←";
}

.tv-page-header__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: var(--tv-accent);
    color: #fff;
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.3);
}

.tv-page-header__badge i {
    color: inherit;
}

.tv-page-header__title,
.tv-channel-header__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.tv-page-header__description {
    color: var(--tv-text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
}

/* Channel Header Profile */
.tv-channel-header__profile {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tv-channel-header__logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--tv-bg-card);
    border: 4px solid var(--tv-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.tv-channel-header__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-channel-header__logo i {
    font-size: 2.5rem;
    color: var(--tv-accent);
}

.tv-channel-header__info {
    flex: 1;
}

.tv-channel-header__description {
    color: var(--tv-text-secondary);
    margin-bottom: 12px;
}

.tv-channel-header__stats {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--tv-text-secondary);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.tv-sidebar {
    position: sticky;
    top: 100px;
}

.tv-sidebar__section {
    background: var(--tv-bg-card) !important;
    background-color: var(--tv-bg-card) !important;
    border-radius: var(--tv-radius);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--tv-border-color);
    color: var(--tv-text-primary);
}

.tv-sidebar__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tv-sidebar__title i {
    color: var(--tv-accent);
}

.tv-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tv-sidebar__list li {
    margin-bottom: 8px;
}

.tv-sidebar__list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--tv-text-secondary);
    text-decoration: none;
    transition: var(--tv-transition);
}

.tv-sidebar__list a:hover,
.tv-sidebar__list a.active {
    background: var(--tv-accent-light);
    color: var(--tv-text-primary);
}

.tv-sidebar__list a.active {
    border-right: 3px solid var(--tv-accent);
}

.tv-sidebar__channels {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tv-sidebar__channels li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--tv-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.tv-sidebar__channels li a:hover {
    color: var(--tv-accent);
}

.tv-sidebar__channels img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.tv-stats-card {
    padding: 20px;
    background: var(--tv-bg-tertiary);
    border-radius: var(--tv-radius);
}

.tv-stats-card__item {
    text-align: center;
}

.tv-stats-card__value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--tv-accent);
}

.tv-stats-card__label {
    color: var(--tv-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Video Player
   ========================================================================== */
.tv-player-container {
    border-radius: var(--tv-radius-lg);
    overflow: hidden;
    box-shadow: var(--tv-shadow);
    margin-bottom: 30px;
}

.tv-player--aparat {
    position: relative;
    padding-top: 56.25%;
}

.tv-player--aparat iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.tv-player--unavailable {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    background: var(--tv-bg-card);
    text-align: center;
}

.tv-player--unavailable i {
    font-size: 4rem;
    color: var(--tv-text-muted);
    margin-bottom: 16px;
}

/* Plyr Customization */
.plyr {
    --plyr-color-main: var(--tv-accent);
    --plyr-video-background: var(--tv-bg-primary);
}

.plyr--video {
    border-radius: var(--tv-radius-lg);
}

/* ==========================================================================
   Video Info
   ========================================================================== */
.tv-breadcrumb {
    padding: 24px 0;
}

.tv-video-player-wrapper {
    margin-bottom: 30px;
}

.tv-video-info {
    background: var(--tv-bg-card);
    border-radius: var(--tv-radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--tv-border-color);
}

.tv-video-info__category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.tv-video-info__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.tv-video-info__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--tv-text-muted);
    font-size: 0.95rem;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tv-border-color);
    margin-bottom: 24px;
}

.tv-video-info__meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tv-video-info__channel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--tv-bg-tertiary);
    border-radius: var(--tv-radius);
    margin-bottom: 24px;
}

.tv-video-info__channel-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--tv-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.tv-video-info__channel-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-video-info__channel-logo i {
    font-size: 1.25rem;
    color: var(--tv-accent);
}

.tv-video-info__channel-name {
    flex: 1;
}

.tv-video-info__channel-name h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.tv-video-info__channel-name span {
    font-size: 0.85rem;
    color: var(--tv-text-muted);
}

.tv-video-info__share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.tv-video-info__share-label {
    color: var(--tv-text-muted);
    font-size: 0.9rem;
}

.tv-share-buttons {
    display: flex;
    gap: 10px;
}

.tv-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tv-text-primary);
    text-decoration: none;
    transition: var(--tv-transition);
    border: none;
    cursor: pointer;
}

.tv-share-btn--telegram { background: #229ED9; }
.tv-share-btn--twitter { background: #1DA1F2; }
.tv-share-btn--linkedin { background: #0A66C2; }
.tv-share-btn--copy { background: var(--tv-bg-tertiary); }

.tv-share-btn:hover {
    transform: scale(1.1);
    color: var(--tv-text-primary);
}

.tv-video-info__description h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tv-video-info__description h3 i {
    color: var(--tv-accent);
}

.tv-video-info__description-content {
    color: var(--tv-text-secondary);
    line-height: 1.8;
}

.tv-video-info__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--tv-border-color);
}

.tv-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--tv-bg-tertiary);
    border-radius: 20px;
    color: var(--tv-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--tv-transition);
}

.tv-tag:hover {
    background: var(--tv-accent-light);
    color: var(--tv-accent);
}

/* ==========================================================================
   Related Videos
   ========================================================================== */
.tv-related-videos {
    background: var(--tv-bg-card);
    border-radius: var(--tv-radius-lg);
    padding: 24px;
    border: 1px solid var(--tv-border-color);
}

.tv-related-videos__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tv-related-videos__title i {
    color: var(--tv-accent);
}

.tv-related-videos__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tv-related-card {
    background: var(--tv-bg-tertiary);
    border-radius: var(--tv-radius);
    overflow: hidden;
    transition: var(--tv-transition);
}

.tv-related-card:hover {
    background: var(--tv-bg-card-hover);
}

.tv-related-card__link {
    display: flex;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}

.tv-related-card__thumbnail {
    position: relative;
    width: 140px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.tv-related-card__thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.tv-related-card__placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tv-bg-card);
    color: var(--tv-text-muted);
}

.tv-related-card__duration {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
}

.tv-related-card__info {
    flex: 1;
    min-width: 0;
}

.tv-related-card__title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.tv-related-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--tv-text-muted);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.tv-pagination {
    padding: 40px 0;
}

.tv-pagination .pagination {
    gap: 8px;
}

.tv-pagination .page-link {
    background: var(--tv-bg-card);
    border: 1px solid var(--tv-border-color);
    color: var(--tv-text-secondary);
    padding: 10px 16px;
    border-radius: 8px;
    transition: var(--tv-transition);
}

.tv-pagination .page-link:hover {
    background: var(--tv-accent-light);
    color: var(--tv-accent);
    border-color: var(--tv-accent);
}

.tv-pagination .page-item.active .page-link {
    background: var(--tv-accent);
    border-color: var(--tv-accent);
    color: var(--tv-text-primary);
}

.tv-pagination .page-item.disabled .page-link {
    background: var(--tv-bg-secondary);
    color: var(--tv-text-muted);
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.tv-empty-state {
    text-align: center;
    padding: 80px 40px;
    color: var(--tv-text-muted);
}

.tv-empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.tv-empty-state p {
    font-size: 1.1rem;
}

.tv-empty-state--small {
    padding: 40px 20px;
}

.tv-empty-state--small i {
    font-size: 2.5rem;
}

/* Footer styles moved to Netflix-Style Footer section */

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
    .tv-hero {
        height: 60vh;
        min-height: 400px;
    }

    .tv-hero__slide {
        height: 60vh;
        min-height: 400px;
    }

    .tv-hero__title {
        font-size: 2rem;
    }

    .tv-channel-header__profile {
        flex-direction: column;
        text-align: center;
    }

    .tv-channel-header__stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .tv-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .tv-related-videos {
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {
    .tv-logo__subtitle {
        display: none;
    }

    .tv-hero {
        height: 50vh;
        min-height: 350px;
    }

    .tv-hero__slide {
        height: 50vh;
        min-height: 350px;
    }

    .tv-hero__content {
        padding: 40px 0 60px;
    }

    .tv-hero__actions .btn {
        width: 100%;
    }

    .tv-categories-bar__scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .tv-category-chip {
        flex-shrink: 0;
    }

    .tv-subscribe-card {
        padding: 30px 20px;
    }

    .tv-video-info {
        padding: 20px;
    }

    .tv-video-info__title {
        font-size: 1.4rem;
    }

    .tv-related-card__thumbnail {
        width: 100px;
    }

    .tv-footer {
        text-align: center;
    }

    .tv-footer__social {
        justify-content: center;
    }
}

/* Slick Slider Customization */
.slick-dots {
    bottom: 25px;
}

.slick-dots li button:before {
    color: var(--tv-text-secondary);
    font-size: 10px;
    opacity: 0.5;
}

.slick-dots li.slick-active button:before {
    color: var(--tv-accent);
    opacity: 1;
}

/* ============================================================================
   Video Modal
   ============================================================================ */
.tv-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tv-video-modal.active {
    opacity: 1;
    visibility: visible;
}

.tv-video-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.tv-video-modal__container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--tv-bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 1;
}

.tv-video-modal.active .tv-video-modal__container {
    transform: scale(1);
}

.tv-video-modal__close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.tv-video-modal__close:hover {
    background: var(--tv-accent);
    transform: rotate(90deg);
}

.tv-video-modal__content {
    display: flex;
    flex-direction: column;
}

.tv-video-modal__player {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.tv-video-modal__player iframe,
.tv-video-modal__player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.tv-video-modal__info {
    padding: 20px;
}

.tv-video-modal__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--tv-text-primary);
    margin-bottom: 10px;
}

.tv-video-modal__description {
    color: var(--tv-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Modal open body state */
body.modal-open {
    overflow: hidden;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .tv-video-modal__container {
        width: 95%;
        max-height: 95vh;
    }

    .tv-video-modal__close {
        top: 10px;
        left: 10px;
        width: 35px;
        height: 35px;
    }

    .tv-video-modal__info {
        padding: 15px;
    }

    .tv-video-modal__title {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Theme Toggle Button
   ========================================================================== */
.tv-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tv-bg-tertiary);
    border: 1px solid var(--tv-border-color);
    color: var(--tv-text-secondary);
    cursor: pointer;
    transition: var(--tv-transition);
    margin-right: 12px;
}

.tv-theme-toggle:hover {
    background: var(--tv-accent-light);
    color: var(--tv-accent);
    border-color: var(--tv-accent);
}

.tv-theme-toggle i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.tv-theme-toggle:hover i {
    transform: rotate(15deg);
}

/* Light theme icon visibility */
[data-theme="dark"] .tv-theme-toggle .fa-sun {
    display: block;
}
[data-theme="dark"] .tv-theme-toggle .fa-moon {
    display: none;
}
[data-theme="light"] .tv-theme-toggle .fa-sun {
    display: none;
}
[data-theme="light"] .tv-theme-toggle .fa-moon {
    display: block;
}

/* ==========================================================================
   Netflix-Style Play Button (Large)
   ========================================================================== */
.tv-play-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: var(--tv-text-primary);
    color: var(--tv-text-inverse);
    border: none;
    border-radius: var(--tv-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tv-transition);
}

.tv-play-btn-large:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.02);
}

.tv-play-btn-large i {
    font-size: 1.3rem;
}

/* More Info Button (Netflix style) */
.tv-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: rgba(109, 109, 110, 0.7);
    color: var(--tv-text-primary);
    border: none;
    border-radius: var(--tv-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tv-transition);
}

.tv-info-btn:hover {
    background: rgba(109, 109, 110, 0.4);
}

/* ==========================================================================
   YouTube-Style Video Card Enhancements
   ========================================================================== */
.tv-video-card--youtube {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.tv-video-card--youtube:hover {
    transform: none;
    box-shadow: none;
}

.tv-video-card--youtube .tv-video-card__thumbnail {
    border-radius: var(--tv-radius-lg);
}

.tv-video-card--youtube .tv-video-card__content {
    padding: 12px 4px;
}

.tv-video-card--youtube .tv-video-card__meta {
    flex-direction: column;
    gap: 4px;
}

/* Progress bar for partially watched (YouTube style) */
.tv-video-card__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
}

.tv-video-card__progress-bar {
    height: 100%;
    background: var(--tv-secondary);
}

/* ==========================================================================
   Netflix Horizontal Scroll Row
   ========================================================================== */
.tv-row {
    padding: var(--tv-space-lg) 0;
    position: relative;
}

.tv-row__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--tv-space-md);
}

.tv-row__title {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tv-row__title i {
    color: var(--tv-accent);
}

.tv-row__see-all {
    color: var(--tv-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: var(--tv-transition);
}

.tv-row:hover .tv-row__see-all {
    opacity: 1;
}

.tv-row__see-all:hover {
    color: var(--tv-accent-hover);
}

.tv-row__slider {
    display: flex;
    gap: var(--tv-space-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
    margin: 0 -12px;
    padding: 8px 12px;
}

.tv-row__slider::-webkit-scrollbar {
    display: none;
}

.tv-row__slider .tv-video-card {
    flex: 0 0 auto;
    width: calc(25% - 12px);
    min-width: 240px;
}

/* Scroll arrows for row */
.tv-row__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 100%;
    background: linear-gradient(to left, transparent, var(--tv-bg-primary) 80%);
    border: none;
    color: var(--tv-text-primary);
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: var(--tv-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.tv-row:hover .tv-row__arrow {
    opacity: 1;
}

.tv-row__arrow--right {
    right: 0;
    background: linear-gradient(to right, transparent, var(--tv-bg-primary) 80%);
}

.tv-row__arrow--left {
    left: 0;
}

/* ==========================================================================
   Loading Skeleton (YouTube style)
   ========================================================================== */
.tv-skeleton {
    background: var(--tv-bg-tertiary);
    border-radius: var(--tv-radius);
    position: relative;
    overflow: hidden;
}

.tv-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tv-skeleton--thumbnail {
    aspect-ratio: 16 / 9;
    border-radius: var(--tv-radius-lg);
}

.tv-skeleton--title {
    height: 20px;
    width: 80%;
    margin-bottom: 10px;
}

.tv-skeleton--text {
    height: 14px;
    width: 60%;
}

.tv-skeleton--avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* ==========================================================================
   Smooth Page Transitions
   ========================================================================== */
.tv-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tv-stagger > * {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.tv-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.tv-stagger > *:nth-child(2) { animation-delay: 0.15s; }
.tv-stagger > *:nth-child(3) { animation-delay: 0.2s; }
.tv-stagger > *:nth-child(4) { animation-delay: 0.25s; }
.tv-stagger > *:nth-child(5) { animation-delay: 0.3s; }
.tv-stagger > *:nth-child(6) { animation-delay: 0.35s; }
.tv-stagger > *:nth-child(7) { animation-delay: 0.4s; }
.tv-stagger > *:nth-child(8) { animation-delay: 0.45s; }

/* ==========================================================================
   Improved Placeholder (with gradient)
   ========================================================================== */
.tv-video-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--tv-bg-tertiary) 0%,
        var(--tv-bg-secondary) 100%
    );
    position: relative;
}

.tv-video-card__placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, var(--tv-accent-light) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, var(--tv-accent-light) 0%, transparent 50%);
    opacity: 0.5;
}

.tv-video-card__placeholder i {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    color: var(--tv-text-muted);
    opacity: 0.5;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.tv-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--tv-bg-elevated);
    color: var(--tv-text-primary);
    padding: 14px 24px;
    border-radius: var(--tv-radius);
    box-shadow: var(--tv-shadow-hover);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tv-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tv-toast--success {
    border-right: 4px solid var(--tv-success);
}

.tv-toast--error {
    border-right: 4px solid var(--tv-secondary);
}

.tv-toast--info {
    border-right: 4px solid var(--tv-accent);
}

/* ==========================================================================
   Enhanced Hero Section (Netflix Billboard)
   ========================================================================== */
.tv-hero__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tv-hero__background-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--tv-bg-secondary) 0%, var(--tv-bg-tertiary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-hero__background-placeholder i {
    font-size: 8rem;
    color: var(--tv-text-muted);
    opacity: 0.2;
}

/* Hero Progress Bar (Auto-advance indicator) */
/* OCD FIX: Hide progress bar when no slider active */
.tv-hero__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 30;
    display: none; /* Hidden by default */
}

/* Only show progress bar when slider is initialized */
.tv-hero__slider.slick-initialized + .tv-hero__controls + .tv-hero__progress {
    display: block;
}

.tv-hero__progress-bar {
    height: 100%;
    width: 0;
    background: var(--tv-accent);
    transition: width 0.1s linear;
}

.tv-hero__slider.slick-initialized ~ .tv-hero__progress .tv-hero__progress-bar {
    animation: heroProgress 6s linear infinite;
}

@keyframes heroProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Logo Large for empty state */
.tv-hero__logo-large {
    margin-bottom: 32px;
}

.tv-hero__logo-large i {
    font-size: 6rem;
    color: var(--tv-accent);
    text-shadow: var(--tv-glow);
    animation: pulse 2s ease-in-out infinite;
}

/* Particles for empty state */
.tv-hero__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.tv-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--tv-accent);
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.tv-particle--1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.tv-particle--2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 20%;
    animation-delay: -7s;
}

.tv-particle--3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(-50px, -30px) scale(1.05);
    }
}

/* Hero background gradient for empty state */
.tv-hero__background--gradient {
    background: linear-gradient(
        135deg,
        var(--tv-bg-primary) 0%,
        var(--tv-bg-secondary) 50%,
        var(--tv-bg-tertiary) 100%
    );
}

/* Make play button work on hero */
.tv-hero .tv-play-btn-large[data-video-id] {
    cursor: pointer;
}

/* Responsive hero improvements */
@media (max-width: 991.98px) {
    .tv-hero__logo-large i {
        font-size: 4rem;
    }

    .tv-hero__background-placeholder i {
        font-size: 5rem;
    }
}

@media (max-width: 767.98px) {
    .tv-hero__categories {
        justify-content: center;
    }

    .tv-hero__actions {
        flex-direction: column;
    }

    .tv-hero .tv-play-btn-large,
    .tv-hero .tv-info-btn {
        width: 100%;
        justify-content: center;
    }

    .tv-hero__logo-large i {
        font-size: 3rem;
    }
}

/* ==========================================================================
   YouTube-Style Video Card (Enhanced)
   ========================================================================== */
.tv-video-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tv-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 12px;
}

.tv-video-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-video-card__avatar i {
    font-size: 1rem;
    color: var(--tv-text-muted);
}

.tv-video-card__content {
    display: flex;
    gap: 12px;
    padding: 12px 4px;
}

.tv-video-card__details {
    flex: 1;
    min-width: 0;
}

.tv-video-card__stats {
    color: var(--tv-text-muted);
    font-size: 0.8rem;
}

.tv-video-card__channel {
    display: block;
    color: var(--tv-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.tv-video-card__category-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-top: 8px;
    background: var(--cat-color);
    color: #fff;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Play overlay improvements */
.tv-video-card__play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--tv-transition);
}

.tv-video-card__play-overlay i {
    width: 54px;
    height: 54px;
    background: var(--tv-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    transform: scale(0.9);
    transition: var(--tv-transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tv-video-card:hover .tv-video-card__play-overlay {
    opacity: 1;
}

.tv-video-card:hover .tv-video-card__play-overlay i {
    transform: scale(1);
}

/* Improved duration badge */
.tv-video-card__duration {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Source badge - smaller and less prominent */
.tv-video-card__source {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
}

.tv-video-card__source--aparat {
    background: rgba(237, 20, 91, 0.9);
}

.tv-video-card__source--youtube {
    background: rgba(255, 0, 0, 0.9);
}

/* Hover effects */
.tv-video-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.tv-video-card__thumbnail img {
    transition: transform 0.3s ease;
}

.tv-video-card:hover .tv-video-card__thumbnail img {
    transform: scale(1.03);
}

/* ==========================================================================
   YouTube-Style Search Bar
   ========================================================================== */
.tv-search {
    margin: 0 16px;
    flex: 1;
    max-width: 500px;
}

.tv-search__wrapper {
    display: flex;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--tv-border-color);
    background: var(--tv-bg-tertiary);
    transition: var(--tv-transition);
}

.tv-search__wrapper:focus-within {
    border-color: var(--tv-accent);
    box-shadow: 0 0 0 3px var(--tv-accent-light);
}

.tv-search__input {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--tv-text-primary);
    font-size: 0.95rem;
    outline: none;
}

.tv-search__input::placeholder {
    color: var(--tv-text-muted);
}

.tv-search__btn {
    padding: 10px 20px;
    background: var(--tv-bg-card);
    border: none;
    border-right: 1px solid var(--tv-border-color);
    color: var(--tv-text-secondary);
    cursor: pointer;
    transition: var(--tv-transition);
}

.tv-search__btn:hover {
    background: var(--tv-accent);
    color: #fff;
}

/* Header site link */
.tv-header__site-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--tv-radius);
    color: var(--tv-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--tv-transition);
    margin-right: 12px;
}

.tv-header__site-link:hover {
    color: var(--tv-accent);
    background: var(--tv-accent-light);
}

/* Updated header styles */
.tv-header .navbar {
    padding: 10px 0;
}

.tv-header .navbar-toggler {
    border: 1px solid var(--tv-border-color);
    padding: 8px 12px;
    color: var(--tv-text-primary);
}

.tv-header .nav-link {
    color: var(--tv-text-secondary);
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: var(--tv-transition);
    font-size: 0.9rem;
}

.tv-header .nav-link:hover,
.tv-header .nav-link:focus {
    color: var(--tv-text-primary);
    background: var(--tv-bg-tertiary);
}

.tv-header .dropdown-menu {
    background: var(--tv-bg-card);
    border: 1px solid var(--tv-border-color);
    border-radius: var(--tv-radius);
    box-shadow: var(--tv-shadow);
    padding: 8px;
    margin-top: 8px;
}

.tv-header .dropdown-item {
    color: var(--tv-text-secondary);
    padding: 10px 16px;
    border-radius: 6px;
    transition: var(--tv-transition);
}

.tv-header .dropdown-item:hover {
    background: var(--tv-accent-light);
    color: var(--tv-text-primary);
}

.tv-header .dropdown-item i {
    margin-left: 8px;
    color: var(--tv-accent);
}

/* Responsive search */
@media (max-width: 991.98px) {
    .tv-search {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 16px 0;
    }
}

/* ==========================================================================
   Typography Improvements
   ========================================================================== */
.tv-body {
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.tv-section__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tv-video-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
}

/* Increased spacing */
.tv-section {
    padding: 60px 0;
}

.tv-video-grid .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 2rem;
}

/* ==========================================================================
   Scroll Animations - Fade In
   ========================================================================== */
@keyframes tvFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tvFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tvSlideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.tv-animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tv-animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Card animations removed - elements visible by default */

/* Section title animation */
.tv-section__header {
    animation: tvFadeIn 0.6s ease;
}

/* ==========================================================================
   Skeleton Loading - Shimmer Effect
   ========================================================================== */
@keyframes tvShimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.tv-skeleton {
    background: linear-gradient(
        90deg,
        var(--tv-bg-tertiary) 0%,
        var(--tv-bg-card) 50%,
        var(--tv-bg-tertiary) 100%
    );
    background-size: 1000px 100%;
    animation: tvShimmer 2s infinite linear;
    border-radius: var(--tv-radius);
}

.tv-skeleton-card {
    display: block;
    height: 100%;
}

.tv-skeleton-card__thumbnail {
    aspect-ratio: 16/9;
    background: var(--tv-bg-tertiary);
    border-radius: var(--tv-radius);
    margin-bottom: 12px;
}

.tv-skeleton-card__title {
    height: 18px;
    width: 80%;
    margin-bottom: 8px;
}

.tv-skeleton-card__meta {
    height: 14px;
    width: 60%;
}

/* ==========================================================================
   Extended Skeleton Styles (Modal, Grid, Image Loading)
   ========================================================================== */

/* Modal Player Skeleton */
.tv-skeleton--player {
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: var(--tv-bg-tertiary);
    border-radius: 0;
    position: relative;
}

.tv-skeleton--player::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 1.5s infinite;
}

/* Modal Skeleton Container */
.tv-modal-skeleton {
    width: 100%;
}

.tv-modal-skeleton__info {
    padding: 20px;
}

/* Duration Badge Skeleton */
.tv-skeleton--duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 45px;
    height: 20px;
    border-radius: 4px;
    background: var(--tv-bg-tertiary);
}

/* Skeleton Card Modifier */
.tv-video-card--skeleton {
    pointer-events: none;
}

.tv-video-card--skeleton .tv-video-card__link {
    cursor: default;
}

/* Grid Loading State */
.tv-video-grid--loading .row.g-4 {
    opacity: 0;
    position: absolute;
    visibility: hidden;
}

.tv-video-grid--loading .tv-skeleton-grid {
    display: flex;
    flex-wrap: wrap;
}

/* Skeleton Grid Hidden by Default */
.tv-skeleton-grid {
    display: none;
}

.tv-skeleton-grid.active {
    display: flex !important;
    flex-wrap: wrap;
}

/* Image Loading Skeleton Overlay */
.tv-video-card__thumbnail--loading {
    position: relative;
}

.tv-video-card__thumbnail--loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tv-bg-tertiary);
    z-index: 1;
}

.tv-video-card__thumbnail--loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 1.5s infinite;
    z-index: 2;
}

/* Related Video Skeleton */
.tv-related-skeleton {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.tv-related-skeleton__thumb {
    width: 160px;
    height: 90px;
    flex-shrink: 0;
    background: var(--tv-bg-tertiary);
    border-radius: var(--tv-radius);
}

.tv-related-skeleton__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Channel Skeleton */
.tv-skeleton--channel-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--tv-bg-tertiary);
}

/* Loading Spinner (for modal) */
.tv-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.tv-loading-spinner__icon {
    width: 50px;
    height: 50px;
    border: 3px solid var(--tv-bg-tertiary);
    border-top-color: var(--tv-accent);
    border-radius: 50%;
    animation: tvSpin 1s linear infinite;
}

@keyframes tvSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Clean Footer (Netflix-inspired)
   ========================================================================== */
.tv-footer {
    background: var(--tv-bg-secondary);
    padding: 48px 0 0;
    margin-top: 0;
    border-top: 1px solid var(--tv-border-color);
}

.tv-footer__section {
    margin-bottom: 24px;
}

.tv-footer__title {
    color: var(--tv-text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tv-footer__title i {
    color: var(--tv-accent);
}

.tv-footer__text {
    color: var(--tv-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.tv-footer__social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tv-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tv-bg-tertiary);
    border-radius: 50%;
    color: var(--tv-text-secondary);
    font-size: 1.1rem;
    transition: var(--tv-transition);
    border: 1px solid transparent;
}

.tv-social-link:hover {
    background: var(--tv-accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.3);
}

.tv-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tv-footer__links li {
    margin-bottom: 12px;
}

.tv-footer__links a {
    color: var(--tv-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--tv-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tv-footer__links a::before {
    content: '›';
    opacity: 0;
    transition: var(--tv-transition);
    transform: translateX(5px);
}

.tv-footer__links a:hover {
    color: var(--tv-accent);
}

.tv-footer__links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.tv-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tv-footer__contact li {
    color: var(--tv-text-muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tv-footer__contact li i {
    color: var(--tv-accent);
    margin-top: 4px;
    min-width: 16px;
}

.tv-footer__bottom {
    border-top: 1px solid var(--tv-border-color);
    padding-top: 30px;
    margin-top: 40px;
}

.tv-footer__bottom p {
    color: var(--tv-text-muted);
    font-size: 0.85rem;
}

.tv-footer__brand-link {
    display: inline-block;
    opacity: 0.7;
    transition: var(--tv-transition);
}

.tv-footer__brand-link:hover {
    opacity: 1;
}

/* ==========================================================================
   Empty State - No Content
   ========================================================================== */
.tv-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--tv-bg-card);
    border-radius: var(--tv-radius-lg);
    border: 1px dashed var(--tv-border-color);
}

.tv-empty-state__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tv-accent-light), transparent);
    border-radius: 50%;
    animation: tvPulse 2s infinite;
}

@keyframes tvPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.tv-empty-state__icon i {
    font-size: 2.5rem;
    color: var(--tv-accent);
}

.tv-empty-state__title {
    color: var(--tv-text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.tv-empty-state__text {
    color: var(--tv-text-muted);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.tv-empty-state__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--tv-accent);
    color: #fff;
    border-radius: var(--tv-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--tv-transition);
}

.tv-empty-state__action:hover {
    background: var(--tv-accent-hover);
    transform: translateY(-2px);
    color: #fff;
}

/* ==========================================================================
   Improved Video Card Placeholders
   ========================================================================== */
.tv-video-card__placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--tv-bg-tertiary) 0%, var(--tv-bg-secondary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.tv-video-card__placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(74, 108, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(74, 108, 247, 0.05) 0%, transparent 50%);
}

.tv-video-card__placeholder i {
    font-size: 3rem;
    color: var(--tv-text-muted);
    opacity: 0.4;
    z-index: 1;
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */
.tv-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.tv-loading__spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--tv-bg-tertiary);
    border-top-color: var(--tv-accent);
    border-radius: 50%;
    animation: tvSpin 1s linear infinite;
}

@keyframes tvSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.tv-newsletter {
    background: linear-gradient(135deg, var(--tv-bg-secondary) 0%, var(--tv-bg-tertiary) 100%);
    border-radius: var(--tv-radius-lg);
    padding: 50px 40px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tv-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, var(--tv-accent-light) 0%, transparent 70%);
    opacity: 0.3;
}

.tv-newsletter__title {
    color: var(--tv-text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
}

.tv-newsletter__text {
    color: var(--tv-text-secondary);
    margin-bottom: 24px;
    position: relative;
}

.tv-newsletter__form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.tv-newsletter__input {
    flex: 1;
    padding: 14px 20px;
    background: var(--tv-bg-primary);
    border: 1px solid var(--tv-border-color);
    border-radius: var(--tv-radius);
    color: var(--tv-text-primary);
    font-family: inherit;
    outline: none;
    transition: var(--tv-transition);
}

.tv-newsletter__input:focus {
    border-color: var(--tv-accent);
    box-shadow: 0 0 0 3px var(--tv-accent-light);
}

.tv-newsletter__btn {
    padding: 14px 28px;
    background: var(--tv-accent);
    color: #fff;
    border: none;
    border-radius: var(--tv-radius);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: var(--tv-transition);
}

.tv-newsletter__btn:hover {
    background: var(--tv-accent-hover);
}

@media (max-width: 575.98px) {
    .tv-newsletter__form {
        flex-direction: column;
    }
}

/* ==========================================================================
   Smooth Hover Transitions
   ========================================================================== */
a, button {
    transition: var(--tv-transition);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--tv-accent);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   Channel Cards Enhancement
   ========================================================================== */
.tv-channel-card {
    background: var(--tv-bg-card);
    border-radius: var(--tv-radius);
    padding: 24px;
    text-align: center;
    transition: var(--tv-transition);
    border: 1px solid var(--tv-border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tv-channel-card:hover {
    transform: translateY(-5px);
    border-color: var(--tv-accent);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.tv-channel-card__logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--tv-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tv-channel-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-channel-card__logo i {
    font-size: 2rem;
    color: var(--tv-accent);
}

.tv-channel-card__name {
    color: var(--tv-text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.tv-channel-card__count {
    color: var(--tv-text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.tv-back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--tv-accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--tv-transition);
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(74, 108, 247, 0.3);
}

.tv-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tv-back-to-top:hover {
    background: var(--tv-accent-hover);
    transform: translateY(-5px);
}

/* ==========================================================================
   Improved Modal Styles
   ========================================================================== */
.tv-video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--tv-transition);
}

.tv-video-modal.active {
    opacity: 1;
    visibility: visible;
}

.tv-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.tv-video-modal__container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    background: var(--tv-bg-card);
    border-radius: var(--tv-radius-lg);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.tv-video-modal.active .tv-video-modal__container {
    transform: scale(1);
}

.tv-video-modal__close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--tv-transition);
}

.tv-video-modal__close:hover {
    background: var(--tv-accent);
}

.tv-video-modal__player {
    aspect-ratio: 16/9;
    background: #000;
}

.tv-video-modal__player iframe,
.tv-video-modal__player video {
    width: 100%;
    height: 100%;
}

.tv-video-modal__info {
    padding: 24px;
}

.tv-video-modal__title {
    color: var(--tv-text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.tv-video-modal__description {
    color: var(--tv-text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Bootstrap Dark Theme Overrides
   ========================================================================== */
.tv-body .card,
.tv-body .list-group-item,
.tv-body .dropdown-menu {
    background-color: var(--tv-bg-card);
    border-color: var(--tv-border-color);
    color: var(--tv-text-primary);
}

.tv-body .btn-outline-primary {
    color: var(--tv-accent);
    border-color: var(--tv-accent);
}

.tv-body .btn-outline-primary:hover {
    background-color: var(--tv-accent);
    border-color: var(--tv-accent);
    color: #fff;
}

.tv-body .form-control,
.tv-body .form-select {
    background-color: var(--tv-bg-secondary);
    border-color: var(--tv-border-color);
    color: var(--tv-text-primary);
}

.tv-body .form-control:focus,
.tv-body .form-select:focus {
    background-color: var(--tv-bg-secondary);
    border-color: var(--tv-accent);
    color: var(--tv-text-primary);
    box-shadow: 0 0 0 3px var(--tv-accent-light);
}

.tv-body .form-control::placeholder {
    color: var(--tv-text-muted);
}

/* ==========================================================================
   Mobile Navigation Improvements
   ========================================================================== */
@media (max-width: 991.98px) {
    .tv-header .navbar-collapse {
        background: var(--tv-bg-card);
        border-radius: var(--tv-radius);
        padding: 20px;
        margin-top: 16px;
        border: 1px solid var(--tv-border-color);
        box-shadow: var(--tv-shadow);
    }

    .tv-header .navbar-nav {
        gap: 8px;
    }

    .tv-header .nav-item {
        border-bottom: 1px solid var(--tv-border-color);
        padding-bottom: 8px;
    }

    .tv-header .nav-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .tv-header .dropdown-menu {
        position: static !important;
        transform: none !important;
        margin-top: 8px;
        border: none;
        background: var(--tv-bg-tertiary);
    }

    .tv-header__site-link {
        display: flex;
        justify-content: center;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--tv-border-color);
    }
}

/* ==========================================================================
   Category Page Specific Fixes
   ========================================================================== */
.tv-sidebar__list a.active {
    background: var(--tv-accent);
    color: #fff !important;
}

.tv-sidebar__list a.active i {
    color: #fff !important;
}

/* Video grid header styling */
.tv-video-grid__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tv-border-color);
}

.tv-video-grid__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--tv-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tv-video-grid__title i {
    color: var(--tv-accent);
}

.tv-video-grid__more {
    color: var(--tv-accent);
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--tv-transition);
}

.tv-video-grid__more:hover {
    color: var(--tv-accent-hover);
    gap: 10px;
}

/* ==========================================================================
   Breadcrumb Styling
   ========================================================================== */
.tv-body .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
}

.tv-body .breadcrumb-item a {
    color: var(--tv-text-secondary);
    text-decoration: none;
}

.tv-body .breadcrumb-item a:hover {
    color: var(--tv-accent);
}

.tv-body .breadcrumb-item.active {
    color: var(--tv-text-muted);
}

.tv-body .breadcrumb-item + .breadcrumb-item::before {
    color: var(--tv-text-muted);
}

/* ==========================================================================
   Video Card Link Fix (prevent flash of white)
   ========================================================================== */
.tv-video-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.tv-video-card__link:hover {
    color: inherit;
}

/* ==========================================================================
   Light Theme Specific Fixes
   ========================================================================== */
[data-theme="light"] .tv-sidebar__section {
    background: var(--tv-bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .tv-video-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tv-video-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .tv-stats-card {
    background: var(--tv-bg-secondary);
}

[data-theme="light"] .tv-page-header__badge {
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.2);
}

/* ==========================================================================
   OCD-LEVEL PRECISION FIXES
   Perfect pixel alignment, spacing, and visual polish
   ========================================================================== */

/* ----------------------------------------
   1. HEADER OCD FIXES
   ---------------------------------------- */

/* Premium Logo Styling */
.tv-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--tv-text-primary);
    text-decoration: none;
    padding: 4px 0;
}

.tv-logo i {
    font-size: 2.2rem;
    color: var(--tv-accent);
    text-shadow: 0 0 20px var(--tv-accent-glow);
    position: relative;
}

/* Add subtle glow animation to logo */
.tv-logo i::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: radial-gradient(circle, var(--tv-accent-glow) 0%, transparent 70%);
    border-radius: 8px;
    opacity: 0.5;
    animation: logoGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.tv-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.tv-logo__title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tv-logo__subtitle {
    font-size: 0.7rem;
    color: var(--tv-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Header Navigation Precise Spacing */
.tv-header .navbar {
    padding: 10px 0;
}

.tv-header .navbar-nav {
    gap: 4px;
}

.tv-header .nav-link {
    padding: 10px 16px !important;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tv-header .nav-link i {
    margin-left: 6px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Larger Theme Toggle */
.tv-theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.2rem;
}

/* Site Link Button Polish */
.tv-header__site-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--tv-bg-tertiary);
    border: 1px solid var(--tv-border-color);
    border-radius: 10px;
    color: var(--tv-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--tv-transition);
    margin-right: 8px;
}

.tv-header__site-link:hover {
    background: var(--tv-accent-light);
    border-color: var(--tv-accent);
    color: var(--tv-text-primary);
}

/* ----------------------------------------
   2. HERO SECTION OCD FIXES
   ---------------------------------------- */

/* Hide progress bar in default/empty state */
.tv-hero__slide--default ~ .tv-hero__progress,
.tv-hero:not(:has(.slick-initialized)) .tv-hero__progress {
    display: none;
}

/* Premium Hero Logo for Empty State */
.tv-hero__logo-large {
    margin-bottom: 40px;
    position: relative;
}

.tv-hero__logo-large i {
    font-size: 7rem;
    color: var(--tv-accent);
    text-shadow:
        0 0 40px var(--tv-accent-glow),
        0 0 80px rgba(74, 108, 247, 0.3);
    animation: heroLogoPulse 3s ease-in-out infinite;
    position: relative;
}

.tv-hero__logo-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--tv-accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.4;
    animation: heroLogoRing 3s ease-in-out infinite;
}

@keyframes heroLogoPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

@keyframes heroLogoRing {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.5;
    }
}

/* Hero Title Enhancement */
.tv-hero__slide--default .tv-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--tv-text-primary) 0%, var(--tv-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Description Polish */
.tv-hero__slide--default .tv-hero__description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--tv-text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Hero Background Placeholder - Premium Style */
.tv-hero__background-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(74, 108, 247, 0.1) 0%,
        rgba(20, 20, 20, 0.95) 50%,
        rgba(35, 35, 35, 0.9) 100%
    );
    position: relative;
}

.tv-hero__background-placeholder i {
    font-size: 8rem;
    color: var(--tv-accent);
    opacity: 0.15;
    text-shadow: 0 0 60px var(--tv-accent-glow);
}

/* ----------------------------------------
   3. CATEGORY CHIPS OCD FIXES
   ---------------------------------------- */

/* Ensure no borders or lines */
.tv-categories-bar {
    padding: 28px 0 36px;
    margin-bottom: 0;
    border: none !important;
    background: transparent;
}

.tv-categories-bar::after {
    display: none !important;
}

/* Premium Chip Styling */
.tv-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--tv-bg-secondary);
    border: 1px solid var(--tv-border-color);
    border-radius: 10px;
    color: var(--tv-text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.tv-category-chip:hover {
    background: var(--tv-bg-tertiary);
    border-color: var(--tv-accent);
    color: var(--tv-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tv-category-chip.active {
    background: var(--tv-accent);
    border-color: var(--tv-accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--tv-accent-glow);
}

.tv-category-chip i {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ----------------------------------------
   4. CHANNEL CARDS OCD FIXES
   ---------------------------------------- */

/* Dark theme consistent styling - Force dark background with max specificity */
.tv-body .tv-section .tv-channel-card,
.tv-body a.tv-channel-card,
a.tv-channel-card,
.tv-channel-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: #1f1f1f !important;
    background-color: #1f1f1f !important;
    border-radius: var(--tv-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-decoration: none !important;
    color: #ffffff !important;
    transition: all 0.25s ease;
}

.tv-body .tv-section .tv-channel-card:hover,
.tv-body a.tv-channel-card:hover,
a.tv-channel-card:hover,
.tv-channel-card:hover {
    background: #2a2a2a !important;
    background-color: #2a2a2a !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
    border-color: #4a6cf7 !important;
}

/* Light theme override */
[data-theme="light"] .tv-channel-card,
[data-theme="light"] a.tv-channel-card {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #0f0f0f !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .tv-channel-card:hover,
[data-theme="light"] a.tv-channel-card:hover {
    background: #f8f8f8 !important;
    background-color: #f8f8f8 !important;
}

[data-theme="light"] .tv-channel-card__logo {
    background: #f0f0f0 !important;
    border-color: #e0e0e0 !important;
}

[data-theme="light"] .tv-channel-card__name {
    color: #1a1a1a !important;
}

[data-theme="light"] .tv-channel-card__count {
    color: #666666 !important;
}

/* Channel cards grid - center items when row is not full */
.tv-section .row.g-4 {
    justify-content: flex-start;
}

/* Special handling for channels section - flex container */
.tv-section:has(.tv-channel-card) .row.g-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.tv-channel-card__logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--tv-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--tv-border-color);
    transition: var(--tv-transition);
}

.tv-channel-card:hover .tv-channel-card__logo {
    border-color: var(--tv-accent);
}

.tv-channel-card__logo i {
    font-size: 1.4rem;
    color: var(--tv-accent);
}

.tv-channel-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--tv-text-primary);
}

.tv-channel-card__count {
    font-size: 0.82rem;
    color: var(--tv-text-muted);
}

/* ----------------------------------------
   5. VIDEO CARDS OCD FIXES
   ---------------------------------------- */

/* Perfect Card Proportions */
.tv-video-card {
    background: var(--tv-bg-card);
    border-radius: var(--tv-radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tv-border-color);
}

.tv-video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border-color: rgba(74, 108, 247, 0.3);
}

/* ==========================================================================
   ENHANCED VIDEO CARD STYLING
   ========================================================================== */

/* Card Content Spacing */
.tv-video-card__content {
    padding: 16px 18px 18px;
}

.tv-video-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 12px;
    color: var(--tv-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tv-video-card__title:hover {
    color: var(--tv-accent);
}

/* Enhanced metadata styling */
.tv-video-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--tv-text-secondary);
}

.tv-video-card__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tv-video-card__meta i {
    color: var(--tv-accent);
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Enhanced Duration Badge - YouTube Style */
.tv-video-card__duration {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    z-index: 5;
}

/* Category badge on card */
.tv-video-card__category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--tv-accent-light);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--tv-accent);
    margin-bottom: 10px;
}

.tv-video-card__category i {
    font-size: 0.7rem;
}

/* ----------------------------------------
   6. NEWSLETTER/SUBSCRIBE SECTION - PREMIUM
   ---------------------------------------- */

.tv-subscribe-card {
    background: linear-gradient(135deg,
        rgba(74, 108, 247, 0.15) 0%,
        var(--tv-bg-secondary) 50%,
        rgba(99, 102, 241, 0.1) 100%
    );
    border-radius: var(--tv-radius-xl);
    padding: 56px 48px;
    border: 1px solid rgba(74, 108, 247, 0.2);
    position: relative;
    overflow: hidden;
}

/* Decorative gradient orb */
.tv-subscribe-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 108, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.tv-subscribe-card .row {
    align-items: center;
}

/* RTL Fix: Reverse the columns visually */
.tv-subscribe-card .col-lg-6:first-child {
    order: 2;
}

.tv-subscribe-card .col-lg-6:last-child {
    order: 1;
}

.tv-subscribe-card__icon {
    font-size: 3.5rem;
    color: var(--tv-accent);
    margin-bottom: 20px;
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(10deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(5deg); }
    40% { transform: rotate(-5deg); }
    50%, 100% { transform: rotate(0deg); }
}

.tv-subscribe-card__content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--tv-text-primary);
}

.tv-subscribe-card__content p {
    color: var(--tv-text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    max-width: 400px;
}

.tv-subscribe-card__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

.tv-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.25s ease;
}

.tv-social-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* ----------------------------------------
   7. SECTION HEADERS OCD FIXES
   ---------------------------------------- */

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

/* ==========================================================================
   PREMIUM SECTION HEADERS - Netflix Style
   ========================================================================== */

.tv-section {
    padding: 40px 0;
    position: relative;
}

/* Subtle section separator */
.tv-section + .tv-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--tv-border-color) 20%,
        var(--tv-border-color) 80%,
        transparent 100%
    );
}

.tv-section__header {
    margin-bottom: 28px;
    position: relative;
}

.tv-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--tv-text-primary);
}

.tv-section__title i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tv-accent) 0%, #6366f1 100%);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 15px var(--tv-accent-glow);
}

.tv-video-grid__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--tv-accent), transparent) 1;
}

.tv-video-grid__title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--tv-text-primary);
}

.tv-video-grid__title i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Different colors for different section types */
.tv-video-grid__title i.fa-clock {
    background: linear-gradient(135deg, #4a6cf7 0%, #6366f1 100%);
}

.tv-video-grid__title i.fa-fire {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
}

.tv-video-grid__title i.fa-star {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
}

.tv-video-grid__title i.fa-graduation-cap {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

.tv-video-grid__title i.fa-university {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

/* ==========================================================================
   SCROLL ANIMATIONS - Smooth fade-in effects
   ========================================================================== */

/* Elements visible by default - animation is progressive enhancement */
.tv-video-card,
.tv-channel-card,
.tv-section {
    opacity: 1;
    transform: translateY(0);
}

/* For users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tv-video-card,
    .tv-channel-card,
    .tv-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ----------------------------------------
   8. FOOTER & SPACING OCD FIXES
   ---------------------------------------- */

/* Subscribe section spacing */
section.tv-subscribe-section {
    padding: 48px 0;
    margin: 0;
}

/* ----------------------------------------
   9. MOBILE RESPONSIVE OCD FIXES
   ---------------------------------------- */

@media (max-width: 991.98px) {
    .tv-logo__title {
        font-size: 1rem;
    }

    .tv-logo__subtitle {
        font-size: 0.6rem;
    }

    .tv-logo i {
        font-size: 1.8rem;
    }

    .tv-header__site-link {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .tv-categories-bar {
        padding: 20px 0 28px;
    }

    .tv-category-chip {
        padding: 10px 16px;
        font-size: 0.82rem;
    }

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

    .tv-subscribe-card {
        padding: 36px 24px;
    }

    .tv-social-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .tv-hero__logo-large i {
        font-size: 4.5rem;
    }

    .tv-hero__logo-large::before {
        width: 120px;
        height: 120px;
    }

    .tv-hero__slide--default .tv-hero__title {
        font-size: 1.8rem;
    }

    .tv-categories-bar__scroll {
        gap: 8px;
        justify-content: flex-start;
        padding: 0 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tv-categories-bar__scroll::-webkit-scrollbar {
        display: none;
    }

    .tv-category-chip {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .tv-section__title,
    .tv-video-grid__title {
        font-size: 1.2rem;
    }

    .tv-channel-card {
        padding: 16px;
        gap: 14px;
    }

    .tv-channel-card__logo {
        width: 48px;
        height: 48px;
    }

    .tv-video-card__content {
        padding: 14px 16px 16px;
    }

    .tv-subscribe-card__socials {
        flex-direction: column;
        align-items: stretch;
    }

    .tv-social-btn {
        justify-content: center;
    }
}

/* ========================================
   10. PREMIUM MOBILE EXPERIENCE
   ======================================== */

/* Small phones (max 575px) */
@media (max-width: 575.98px) {
    /* Simpler header for mobile */
    .tv-header {
        padding: 10px 0;
    }

    .tv-header .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .tv-logo {
        gap: 10px;
    }

    .tv-logo i {
        font-size: 1.5rem;
    }

    .tv-logo__title {
        font-size: 0.85rem;
    }

    .tv-logo__subtitle {
        display: none; /* Hide subtitle on very small screens */
    }

    .tv-header__actions {
        gap: 8px;
    }

    .tv-header__site-link {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .tv-theme-toggle {
        width: 34px;
        height: 34px;
    }

    /* Hero section mobile */
    .tv-hero {
        min-height: 280px;
    }

    .tv-hero__logo-large i {
        font-size: 3rem;
    }

    .tv-hero__logo-large::before {
        width: 80px;
        height: 80px;
    }

    .tv-hero__slide--default .tv-hero__title {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .tv-hero__slide--default .tv-hero__subtitle {
        font-size: 0.85rem;
    }

    /* Category chips horizontal scroll */
    .tv-categories-bar {
        padding: 16px 0 20px;
    }

    .tv-categories-bar__scroll {
        gap: 6px;
        padding: 0 10px;
    }

    .tv-category-chip {
        padding: 7px 12px;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Section titles */
    .tv-section {
        padding: 28px 0;
    }

    .tv-section__title,
    .tv-video-grid__title {
        font-size: 1.05rem;
        margin-bottom: 16px;
    }

    .tv-section__title i,
    .tv-video-grid__title i {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    /* Video cards grid - larger gap */
    .tv-video-grid .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.2rem;
    }

    /* Single column on very small screens */
    .tv-video-grid .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tv-video-card__content {
        padding: 12px 14px 14px;
    }

    .tv-video-card__title {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }

    .tv-video-card__meta {
        font-size: 0.78rem;
        gap: 10px;
    }

    .tv-video-card__duration {
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    .tv-video-card__play {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    /* Channel cards - 2 per row */
    .tv-channel-card {
        padding: 12px;
        gap: 10px;
    }

    .tv-channel-card__logo {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .tv-channel-card__name {
        font-size: 0.85rem;
    }

    .tv-channel-card__count {
        font-size: 0.7rem;
    }

    /* Subscribe section mobile */
    .tv-subscribe-card {
        padding: 28px 16px;
        border-radius: 16px;
    }

    .tv-subscribe-card__icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .tv-subscribe-card__title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .tv-subscribe-card__text {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    /* Stack social buttons vertically with full width */
    .tv-subscribe-card__socials {
        gap: 10px;
    }

    .tv-social-btn {
        padding: 12px 16px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .tv-social-btn i {
        font-size: 1.1rem;
    }

    /* Footer mobile */
    .tv-footer {
        padding: 32px 0 0 !important;
    }

    .tv-footer__links {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .tv-footer__col {
        width: 100%;
        text-align: center;
    }

    .tv-footer__col h4 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .tv-footer__col ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }

    .tv-footer__col li {
        margin-bottom: 0;
    }

    .tv-footer__social {
        justify-content: center;
    }

    .tv-footer__bottom {
        padding: 16px 0;
        margin-top: 24px;
    }

    .tv-footer__bottom p {
        font-size: 0.75rem;
        text-align: center;
    }

    /* Scroll animations - reduce distance */
    .tv-video-card,
    .tv-channel-card {
        transform: translateY(20px);
    }
}

/* Medium phones (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Two cards per row */
    .tv-video-grid .row > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .tv-video-card__content {
        padding: 12px 14px 16px;
    }

    .tv-video-card__title {
        font-size: 0.92rem;
    }

    /* Channel cards - 3 per row */
    .tv-channels-grid .row > [class*="col-"] {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* Landscape phones */
@media (max-width: 767.98px) and (orientation: landscape) {
    .tv-hero {
        min-height: 220px;
    }

    .tv-hero__logo-large i {
        font-size: 2.5rem;
    }

    .tv-hero__logo-large::before {
        width: 70px;
        height: 70px;
    }

    .tv-hero__slide--default .tv-hero__title {
        font-size: 1.3rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects that don't work on touch */
    .tv-video-card:hover {
        transform: none;
    }

    .tv-video-card:hover .tv-video-card__thumbnail img {
        transform: none;
    }

    .tv-category-chip:hover {
        transform: none;
    }

    /* Add active states instead */
    .tv-video-card:active {
        transform: scale(0.98);
    }

    .tv-category-chip:active {
        transform: scale(0.95);
        background: var(--tv-accent);
        color: #fff;
    }

    .tv-social-btn:active {
        transform: scale(0.95);
    }

    /* Make touch targets larger */
    .tv-video-card__link {
        min-height: 44px;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .tv-header {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .tv-footer__bottom {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* ========================================
   11. FINAL POLISH - 10/10 IMPROVEMENTS
   ======================================== */

/* Premium "View All" Link */
.tv-video-grid__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--tv-border-color);
    border-radius: 25px;
    color: var(--tv-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tv-video-grid__more:hover {
    background: var(--tv-accent);
    border-color: var(--tv-accent);
    color: #fff;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px var(--tv-accent-glow);
}

.tv-video-grid__more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.tv-video-grid__more:hover i {
    transform: translateX(-4px);
}

/* Section header improvements */
.tv-video-grid__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tv-border-color);
}

/* Video Card Hover Preview Effect */
.tv-video-card {
    position: relative;
}

.tv-video-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--tv-accent), #6366f1, #ec4899);
    border-radius: calc(var(--tv-radius-lg) + 2px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.tv-video-card:hover::before {
    opacity: 1;
}

/* Card hover glow effect */
.tv-video-card:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px var(--tv-accent-glow);
}

/* Thumbnail zoom on hover */
.tv-video-card:hover .tv-video-card__thumbnail img,
.tv-video-card:hover .tv-video-card__placeholder {
    transform: scale(1.08);
}

/* Play button pulse on hover */
.tv-video-card:hover .tv-video-card__play {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 30px var(--tv-accent-glow);
}

/* Duration badge pop on hover */
.tv-video-card:hover .tv-video-card__duration {
    transform: scale(1.05);
    background: var(--tv-accent);
}

/* Category badge shine */
.tv-video-card__category {
    position: relative;
    overflow: hidden;
}

.tv-video-card__category::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.tv-video-card:hover .tv-video-card__category::after {
    left: 100%;
}

/* Channel Cards Premium Hover */
.tv-channel-card {
    position: relative;
    overflow: hidden;
}

.tv-channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--tv-accent), #6366f1, #ec4899);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.tv-channel-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.tv-channel-card:hover {
    border-color: var(--tv-accent);
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.2);
}

.tv-channel-card:hover .tv-channel-card__logo {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px var(--tv-accent-glow);
}

/* Category Chips Premium Styling */
.tv-category-chip {
    position: relative;
    overflow: hidden;
}

.tv-category-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.tv-category-chip:hover::before {
    transform: translateX(100%);
}

/* Limit visible categories with scroll indicator */
.tv-categories-bar__scroll {
    position: relative;
    max-width: 100%;
}

.tv-categories-bar__scroll::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, var(--tv-bg-primary), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tv-categories-bar__scroll.has-scroll::after {
    opacity: 1;
}

/* Subscribe Section Bell Ring Animation (Enhanced) */
@keyframes bellRingPremium {
    0%, 100% { transform: rotate(0deg) scale(1); }
    5% { transform: rotate(15deg) scale(1.1); }
    10% { transform: rotate(-15deg) scale(1.1); }
    15% { transform: rotate(12deg) scale(1.05); }
    20% { transform: rotate(-12deg) scale(1.05); }
    25% { transform: rotate(8deg) scale(1); }
    30% { transform: rotate(-8deg) scale(1); }
    35%, 100% { transform: rotate(0deg) scale(1); }
}

.tv-subscribe-card__icon {
    animation: bellRingPremium 3s ease-in-out infinite;
    display: inline-block;
}

/* Social Buttons Shine Effect */
.tv-social-btn {
    position: relative;
    overflow: hidden;
}

.tv-social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.tv-social-btn:hover::before {
    left: 100%;
}

/* Footer Social Icons Glow */
.tv-footer__social a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px var(--tv-accent-glow);
}

/* Smooth page load animation */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tv-body {
    animation: pageLoad 0.6s ease-out;
}

/* Hero section subtle parallax feel */
.tv-hero {
    transform-style: preserve-3d;
}

.tv-hero__content {
    transform: translateZ(20px);
}

/* Empty state improvements */
.tv-empty-state {
    padding: 60px 20px;
    text-align: center;
    background: var(--tv-bg-secondary);
    border-radius: var(--tv-radius-lg);
    border: 2px dashed var(--tv-border-color);
}

.tv-empty-state__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tv-bg-tertiary);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--tv-text-muted);
}

.tv-empty-state__title {
    font-size: 1.2rem;
    color: var(--tv-text-primary);
    margin-bottom: 8px;
}

.tv-empty-state__text {
    color: var(--tv-text-muted);
    font-size: 0.9rem;
}

/* Light theme refinements */
[data-theme="light"] .tv-video-card:hover::before {
    opacity: 0.7;
}

[data-theme="light"] .tv-video-card:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(74, 108, 247, 0.2);
}

[data-theme="light"] .tv-channel-card:hover {
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.15);
}

[data-theme="light"] .tv-subscribe-card {
    box-shadow: 0 20px 60px rgba(74, 108, 247, 0.15);
}

/* "More" category chip */
.tv-category-chip--more {
    background: var(--tv-bg-tertiary) !important;
    border: 2px dashed var(--tv-border-color) !important;
}

.tv-category-chip--more:hover {
    background: var(--tv-accent) !important;
    border-color: var(--tv-accent) !important;
    border-style: solid !important;
}

/* ==========================================================================
   LIGHT THEME - FINAL OVERRIDES
   These must be at the END of the file to have highest priority
   ========================================================================== */

/* Video Cards - Light Theme */
[data-theme="light"] .tv-video-card,
[data-theme="light"] a.tv-video-card,
[data-theme="light"] .tv-body .tv-video-card {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .tv-video-card:hover,
[data-theme="light"] a.tv-video-card:hover {
    background: #ffffff !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(74, 108, 247, 0.3) !important;
}

[data-theme="light"] .tv-video-card__content {
    background: #ffffff !important;
}

[data-theme="light"] .tv-video-card__title {
    color: #0f0f0f !important;
}

[data-theme="light"] .tv-video-card__title:hover {
    color: #4a6cf7 !important;
}

[data-theme="light"] .tv-video-card__meta {
    color: #606060 !important;
}

[data-theme="light"] .tv-video-card__meta span {
    color: #606060 !important;
}

[data-theme="light"] .tv-video-card__thumbnail {
    background: #f1f1f1 !important;
}

[data-theme="light"] .tv-video-card__placeholder {
    background: linear-gradient(145deg, #e8e8e8 0%, #f5f5f5 50%, #ffffff 100%) !important;
}

[data-theme="light"] .tv-video-card__placeholder i {
    color: #909090 !important;
}

/* Channel Cards - Light Theme */
[data-theme="light"] .tv-channel-card,
[data-theme="light"] a.tv-channel-card,
[data-theme="light"] .tv-body .tv-channel-card,
[data-theme="light"] .tv-body a.tv-channel-card {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #0f0f0f !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .tv-channel-card:hover,
[data-theme="light"] a.tv-channel-card:hover,
[data-theme="light"] .tv-body .tv-channel-card:hover {
    background: #f8f8f8 !important;
    background-color: #f8f8f8 !important;
    border-color: #4a6cf7 !important;
    box-shadow: 0 8px 30px rgba(74, 108, 247, 0.15) !important;
}

[data-theme="light"] .tv-channel-card__logo {
    background: #f0f0f0 !important;
    border-color: #e0e0e0 !important;
}

[data-theme="light"] .tv-channel-card__name {
    color: #1a1a1a !important;
}

[data-theme="light"] .tv-channel-card__count {
    color: #666666 !important;
}

[data-theme="light"] .tv-channel-card__info {
    color: #0f0f0f !important;
}

/* Section Titles - Light Theme */
[data-theme="light"] .tv-section__title {
    color: #0f0f0f !important;
}

[data-theme="light"] .tv-section__subtitle {
    color: #606060 !important;
}

/* Statistics Cards - Light Theme */
[data-theme="light"] .tv-stats-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .tv-stats-card__value {
    color: #0f0f0f !important;
}

[data-theme="light"] .tv-stats-card__label {
    color: #606060 !important;
}

/* ==========================================================================
   SORT CONTROLS - YouTube Style
   ========================================================================== */

.tv-video-grid__title-section {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.tv-sort-controls {
    display: flex;
    gap: 8px;
    background: var(--tv-bg-tertiary);
    padding: 4px;
    border-radius: var(--tv-radius);
}

.tv-sort-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: var(--tv-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: calc(var(--tv-radius) - 2px);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tv-sort-btn:hover {
    color: var(--tv-text-primary);
    background: var(--tv-bg-card);
}

.tv-sort-btn.active {
    background: var(--tv-accent);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

.tv-sort-btn i {
    font-size: 0.85rem;
}

/* Light theme */
[data-theme="light"] .tv-sort-controls {
    background: #f0f0f0;
}

[data-theme="light"] .tv-sort-btn:hover {
    background: #ffffff;
}

[data-theme="light"] .tv-sort-btn.active {
    background: var(--tv-accent);
    color: #ffffff;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tv-video-grid__title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tv-sort-controls {
        width: 100%;
    }

    .tv-sort-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .tv-sort-btn span {
        display: none;
    }

    .tv-sort-btn i {
        font-size: 1rem;
    }
}

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */

.tv-page-header {
    padding: 40px 0;
    margin-bottom: 20px;
}

.tv-page-header__content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tv-page-header__badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tv-accent), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 40px rgba(74, 108, 247, 0.3);
}

.tv-page-header__badge i {
    font-size: 2rem;
    color: #ffffff;
}

.tv-page-header__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--tv-text-primary);
}

.tv-page-header__subtitle {
    font-size: 1rem;
    color: var(--tv-text-secondary);
    margin: 8px 0 0;
}

/* ==========================================================================
   FILTER BAR
   ========================================================================== */

.tv-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--tv-border-color);
    margin-bottom: 20px;
}

.tv-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tv-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--tv-bg-tertiary);
    color: var(--tv-text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tv-filter-chip:hover {
    background: var(--tv-bg-card);
    color: var(--tv-text-primary);
    border-color: var(--tv-border-color);
}

.tv-filter-chip.active {
    background: var(--tv-accent);
    color: #ffffff;
}

.tv-filter-chip i {
    font-size: 0.8rem;
}

/* ==========================================================================
   LARGE SEARCH FORM
   ========================================================================== */

.tv-search-form-container {
    margin-bottom: 30px;
}

.tv-search-form-large {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: var(--tv-bg-card);
    border-radius: var(--tv-radius-lg);
    border: 2px solid var(--tv-border-color);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.tv-search-form-large:focus-within {
    border-color: var(--tv-accent);
    box-shadow: 0 0 20px rgba(74, 108, 247, 0.2);
}

.tv-search-form-large__input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: var(--tv-text-primary);
    font-size: 1rem;
    outline: none;
}

.tv-search-form-large__input::placeholder {
    color: var(--tv-text-muted);
}

.tv-search-form-large__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border: none;
    background: var(--tv-accent);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tv-search-form-large__btn:hover {
    background: var(--tv-accent-hover);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.tv-pagination {
    margin-top: 40px;
    padding: 20px 0;
}

.tv-pagination .page-item .page-link {
    background: var(--tv-bg-card);
    border-color: var(--tv-border-color);
    color: var(--tv-text-primary);
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: var(--tv-radius);
    transition: all 0.2s ease;
}

.tv-pagination .page-item .page-link:hover {
    background: var(--tv-bg-tertiary);
    border-color: var(--tv-accent);
    color: var(--tv-accent);
}

.tv-pagination .page-item.active .page-link {
    background: var(--tv-accent);
    border-color: var(--tv-accent);
    color: #ffffff;
}

/* Light theme */
[data-theme="light"] .tv-filter-chip {
    background: #f0f0f0;
}

[data-theme="light"] .tv-filter-chip:hover {
    background: #ffffff;
}

[data-theme="light"] .tv-search-form-large {
    border-color: #e0e0e0;
}

[data-theme="light"] .tv-pagination .page-item .page-link {
    background: #ffffff;
    border-color: #e0e0e0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tv-page-header__content {
        flex-direction: column;
        text-align: center;
    }

    .tv-page-header__badge {
        width: 60px;
        height: 60px;
    }

    .tv-page-header__badge i {
        font-size: 1.5rem;
    }

    .tv-page-header__title {
        font-size: 1.5rem;
    }

    .tv-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .tv-filter-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .tv-filter-chip {
        white-space: nowrap;
    }

    .tv-search-form-large__btn span {
        display: none;
    }
}


/* ==========================================================================
   Accessibility Enhancements (WCAG 2.1 AA)
   ========================================================================== */

/* Visually Hidden (for screen readers only) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link for Keyboard Navigation */
.tv-skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tv-accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--tv-radius);
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

.tv-skip-link:focus {
    top: 10px;
    outline: 3px solid var(--tv-accent-hover);
    outline-offset: 2px;
}

/* Focus States for Interactive Elements */
.tv-video-card__link:focus-visible {
    outline: 3px solid var(--tv-accent);
    outline-offset: 2px;
    border-radius: var(--tv-radius-lg);
}

.tv-video-card:has(.tv-video-card__link:focus-visible) {
    transform: translateY(-8px);
    box-shadow: var(--tv-shadow-hover);
}

.tv-video-grid__more:focus-visible {
    color: var(--tv-accent-hover);
    outline: 2px solid var(--tv-accent);
    outline-offset: 4px;
    border-radius: var(--tv-radius);
}

.tv-channel-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--tv-shadow);
    outline: 3px solid var(--tv-accent);
    outline-offset: 2px;
}

.tv-social-btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

.tv-category-chip:focus-visible {
    background: var(--tv-accent);
    border-color: var(--tv-accent);
    color: #fff;
    outline: 2px solid var(--tv-accent-hover);
    outline-offset: 2px;
}

.tv-sort-btn:focus-visible {
    outline: 2px solid var(--tv-accent);
    outline-offset: 2px;
}

.tv-share-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.tv-play-btn-large:focus-visible {
    outline: 3px solid var(--tv-accent);
    outline-offset: 4px;
}

.tv-info-btn:focus-visible {
    outline: 2px solid var(--tv-accent);
    outline-offset: 2px;
}

.tv-theme-toggle:focus-visible {
    outline: 2px solid var(--tv-accent);
    outline-offset: 4px;
    border-radius: 50%;
}

.tv-search__input:focus-visible {
    outline: none;
    border-color: var(--tv-accent);
    box-shadow: 0 0 0 3px var(--tv-accent-light);
}

.tv-nav-link:focus-visible {
    outline: 2px solid var(--tv-accent);
    outline-offset: 2px;
    border-radius: var(--tv-radius);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations */
    .tv-hero__background img {
        animation: none;
    }

    .tv-video-card__placeholder::after {
        animation: none;
    }

    .tv-skeleton::after {
        animation: none;
    }

    .tv-loading-spinner__icon {
        animation: none;
    }

    /* Disable hover transforms */
    .tv-video-card:hover,
    .tv-channel-card:hover,
    .tv-social-btn:hover,
    .tv-social-link:hover {
        transform: none;
    }

    /* Remove smooth scroll */
    html {
        scroll-behavior: auto;
    }

    /* Reduce transition speeds */
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Improvements */
@media (forced-colors: active) {
    .tv-video-card__link:focus-visible,
    .tv-channel-card:focus-visible,
    .tv-category-chip:focus-visible {
        outline: 3px solid CanvasText;
    }

    .tv-skip-link:focus {
        outline: 3px solid Highlight;
    }
}

