/* ========================================
   IPTV Player - Ultra Modern Design 2024
   Inspired by Netflix, Disney+, Apple TV
   ======================================== */

/* CSS Variables - Vibrant & Modern */
:root {
    /* Primary Gradient Colors */
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --accent: #f472b6;
    --accent-alt: #fb923c;
    --danger: #f43f5e;
    --success: #10b981;
    --warning: #fbbf24;

    /* Gradient Presets */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-cool: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-dark: linear-gradient(180deg, #1a1a2e 0%, #0a0a14 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-neon: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    --gradient-sunset: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    --gradient-aurora: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);

    /* Backgrounds */
    --bg-dark: #0a0a14;
    --bg-darker: #050508;
    --bg-card: rgba(26, 26, 46, 0.6);
    --bg-card-solid: #16162a;
    --bg-card-hover: rgba(40, 40, 70, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-strong: rgba(255, 255, 255, 0.1);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #c4b5fd;
    --text-muted: #8b8b9e;
    --text-glow: rgba(139, 92, 246, 0.5);

    /* Borders & Shadows */
    --border-color: rgba(139, 92, 246, 0.2);
    --border-glow: rgba(139, 92, 246, 0.4);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    --shadow-neon: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);

    /* Sizing */
    --sidebar-width: 340px;
    --sidebar-collapsed: 0px;
    --topbar-height: 80px;

    /* Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    direction: rtl;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Floating Orbs Background */
body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    top: -200px;
    right: -200px;
    animation: floatOrb 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-50px, 50px) scale(1.1);
    }

    50% {
        transform: translate(-100px, 0) scale(1);
    }

    75% {
        transform: translate(-50px, -50px) scale(0.9);
    }
}

/* Custom Scrollbar - Neon Style */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 20, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    border: 2px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
    box-shadow: var(--shadow-neon);
}

/* Loading Screen - Ultra Modern */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

.loading-screen::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent, var(--secondary), transparent);
    animation: spinGradient 4s linear infinite;
    opacity: 0.1;
}

@keyframes spinGradient {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    position: relative;
    z-index: 1;
}

.tv-icon {
    font-size: 100px;
    animation: tvPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
}

@keyframes tvPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 50px rgba(139, 92, 246, 0.8));
    }
}

.loading-text {
    font-size: 1.4rem;
    margin-top: 30px;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    letter-spacing: 1px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-card);
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        width: 0;
        transform: translateX(0);
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0;
        transform: translateX(200px);
    }
}

/* App Container */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Sidebar - Glassmorphism Design */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, rgba(20, 20, 40, 0.95) 0%, rgba(10, 10, 25, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-glow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    z-index: 100;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: var(--gradient-primary);
    opacity: 0.05;
    pointer-events: none;
}

.sidebar.collapsed {
    margin-right: calc(-1 * var(--sidebar-width));
}

.sidebar-header {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 38px;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.toggle-sidebar {
    background: var(--bg-card);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-sidebar:hover {
    background: var(--primary);
}

/* Search Box - Animated Design */
.search-box {
    padding: 18px 20px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.search-box i.fa-search {
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1rem;
    transition: var(--transition);
}

.search-box:focus-within i.fa-search {
    color: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.search-box input {
    width: 100%;
    padding: 14px 45px;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.clear-search {
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box input:not(:placeholder-shown)+.clear-search {
    opacity: 1;
}

.clear-search:hover {
    background: var(--danger);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

/* Categories - Modern Tabs */
.categories {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(139, 92, 246, 0.03);
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.category-btn:hover {
    background: var(--bg-glass-strong);
    color: var(--text-primary);
    border-color: var(--border-color);
    transform: translateX(-5px);
}

.category-btn.active {
    background: transparent;
    border-color: transparent;
    color: var(--text-primary);
    box-shadow: var(--shadow-neon);
}

.category-btn.active::before {
    opacity: 1;
}

.category-btn i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.category-btn:hover i {
    transform: scale(1.2);
    color: var(--accent);
}

.category-btn.active i {
    color: var(--text-primary);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.category-btn span {
    position: relative;
    z-index: 1;
}

.category-btn .count {
    margin-right: auto;
    background: var(--bg-glass-strong);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.category-btn.active .count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Countries List */
.countries-list {
    padding: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    max-height: 150px;
    overflow-y: auto;
}

.country-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: none;
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.country-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.country-btn.active {
    background: var(--primary);
    color: var(--text-primary);
}

.country-btn .flag {
    font-size: 1.1rem;
}

/* Channels List */
.channels-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
}

.channel-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--gradient-glass);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.channel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.channel-item:hover::before {
    opacity: 0.1;
}

.channel-item:hover {
    border-color: var(--primary);
    transform: translateX(-5px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
}

.channel-item.active {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: var(--shadow-neon);
}

.channel-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-neon);
    border-radius: 0 4px 4px 0;
}

.channel-logo {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.channel-item:hover .channel-logo {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.channel-info {
    flex: 1;
    min-width: 0;
    text-align: right;
    position: relative;
    z-index: 1;
}

.channel-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.channel-category {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.channel-category span {
    margin-left: 4px;
}

.channel-fav {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-bounce);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.channel-fav:hover {
    color: var(--accent);
    background: rgba(244, 114, 182, 0.2);
    transform: scale(1.2);
}

.channel-fav.active {
    color: var(--accent);
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1.1);
    }

    75% {
        transform: scale(1.25);
    }
}

.channel-fav.active i {
    font-weight: 900;
    filter: drop-shadow(0 0 10px rgba(244, 114, 182, 0.6));
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-results p {
    font-size: 1rem;
}

/* Main Content - Modern Layout */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    position: relative;
}

/* Top Bar - Premium Glass Design */
.top-bar {
    height: var(--topbar-height);
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    background: linear-gradient(180deg, rgba(20, 20, 40, 0.9) 0%, rgba(15, 15, 30, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    position: relative;
    z-index: 10;
}

.top-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-aurora);
    opacity: 0.3;
}

.menu-btn {
    display: none;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.menu-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.current-channel-info {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.current-logo {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    padding: 6px;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-glow);
}

.current-logo.visible {
    display: block;
    animation: logoReveal 0.5s ease;
}

@keyframes logoReveal {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.channel-details h2 {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-cool);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.channel-country {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn i {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.action-btn:hover i {
    color: #fff;
    transform: scale(1.15);
}

.action-btn.active {
    background: var(--gradient-warm);
    border-color: transparent;
}

.action-btn.active i {
    font-weight: 900;
    color: #fff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Player Container - Immersive Design */
.player-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    gap: 25px;
    overflow: hidden;
    position: relative;
}

/* Welcome Screen - Cinematic Design */
.welcome-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.9) 0%, rgba(10, 10, 25, 0.95) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-glow);
    position: relative;
    overflow: hidden;
}

.welcome-screen::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent, var(--secondary), transparent, var(--accent), transparent);
    animation: welcomeRotate 20s linear infinite;
    opacity: 0.05;
}

@keyframes welcomeRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.welcome-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: welcomePulse 4s ease-in-out infinite;
}

@keyframes welcomePulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.welcome-screen.hidden {
    display: none;
}

.welcome-content {
    text-align: center;
    padding: 50px;
    position: relative;
    z-index: 1;
}

.welcome-icon {
    font-size: 120px;
    margin-bottom: 30px;
    animation: iconFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.5));
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.5));
    }

    50% {
        transform: translateY(-20px) scale(1.05);
        filter: drop-shadow(0 0 60px rgba(139, 92, 246, 0.8));
    }
}

.welcome-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.8));
    }
}

.welcome-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 35px;
    background: var(--gradient-glass);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature:nth-child(1):hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.feature:nth-child(2):hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
}

.feature:nth-child(3):hover {
    box-shadow: 0 0 30px rgba(244, 114, 182, 0.4);
}

.feature i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.feature:nth-child(2) i {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
}

.feature:nth-child(3) i {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
}

.feature span {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

/* Video Wrapper */
.video-wrapper {
    flex: 1;
    position: relative;
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: none;
}

.video-wrapper.visible {
    display: block;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Video Loading */
.video-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.video-loading.visible {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-card);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.video-loading p {
    margin-top: 15px;
    color: var(--text-secondary);
}

/* Video Error */
.video-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.video-error.visible {
    opacity: 1;
    visibility: visible;
}

.video-error i {
    font-size: 60px;
    color: var(--danger);
    margin-bottom: 20px;
}

.video-error h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.video-error p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.retry-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.retry-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: var(--transition);
    z-index: 15;
}

.video-wrapper:hover .video-controls,
.video-controls.visible {
    opacity: 1;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--primary);
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.volume-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

/* Enhanced Live Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: livePulse 1.5s ease infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.live-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--danger);
}

/* Channel Overlay */
.channel-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 5;
}

.video-wrapper:hover .channel-overlay,
.channel-overlay.visible {
    opacity: 1;
    transform: translateY(0);
}

.channel-overlay img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
}

.overlay-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.overlay-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Volume & Brightness Indicators */
.volume-indicator,
.brightness-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 15;
}

.volume-indicator {
    left: 30px;
}

.brightness-indicator {
    right: 30px;
}

.volume-indicator.visible,
.brightness-indicator.visible {
    opacity: 1;
    visibility: visible;
}

.volume-indicator i,
.brightness-indicator i {
    font-size: 24px;
    color: var(--primary);
}

.volume-bar,
.brightness-bar {
    width: 6px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.volume-level,
.brightness-level {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: height 0.1s ease;
}

.volume-indicator span,
.brightness-indicator span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Center Play Button */
.center-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.center-play-btn i {
    font-size: 32px;
    color: #fff;
    margin-right: -5px;
}

.video-wrapper.paused .center-play-btn {
    opacity: 1;
    visibility: visible;
}

.center-play-btn:hover {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Gesture Areas */
.gesture-area {
    position: absolute;
    top: 0;
    width: 30%;
    height: 100%;
    z-index: 8;
    cursor: pointer;
}

.gesture-left {
    left: 0;
}

.gesture-right {
    right: 0;
}

.gesture-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.gesture-area.active .gesture-feedback {
    opacity: 1;
    visibility: visible;
}

.gesture-feedback i {
    font-size: 28px;
    color: var(--primary);
}

.gesture-feedback span {
    font-size: 0.85rem;
}

/* Double Tap Feedback */
.double-tap-feedback {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    z-index: 12;
}

.double-tap-feedback.left {
    left: 20%;
}

.double-tap-feedback.right {
    right: 20%;
}

.double-tap-feedback.visible {
    opacity: 1;
    visibility: visible;
    animation: doubleTapShow 0.5s ease;
}

@keyframes doubleTapShow {
    0% {
        transform: translateY(-50%) scale(0.5);
        opacity: 0;
    }

    50% {
        transform: translateY(-50%) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translateY(-50%) scale(1);
        opacity: 0;
    }
}

.double-tap-feedback .ripple {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.double-tap-feedback span {
    font-size: 1rem;
    font-weight: 600;
}

/* Enhanced Loading */
.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinRing 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.3s;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.spinner-ring:nth-child(3) {
    animation-delay: -0.15s;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
}

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-tip {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Error Overlay Enhanced */
.error-icon {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.error-icon i {
    font-size: 40px;
    color: var(--danger);
}

.error-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.next-channel-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.next-channel-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

/* Enhanced Controls */
.controls-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.controls-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.channel-name-control {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.control-btn.play-btn {
    width: 48px;
    height: 48px;
    background: var(--primary);
}

.control-btn.play-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.volume-slider-container {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}

.volume-control:hover .volume-slider-container {
    width: 80px;
}

/* Control Dropdowns */
.control-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    min-width: 150px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 20;
}

.control-dropdown:hover .dropdown-menu,
.control-dropdown.active .dropdown-menu,
.dropdown-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-title {
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    text-align: right;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.dropdown-item.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.dropdown-item.active::before {
    content: '✓';
    margin-left: 8px;
}

/* Quality & Speed Labels */
.quality-label,
.speed-label {
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 4px;
}

/* Progress Bar */
.progress-container {
    padding: 10px 20px;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.progress-bar:hover {
    height: 6px;
}

.progress-buffered {
    position: absolute;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.progress-played {
    position: absolute;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

.progress-handle {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

/* Theater Mode */
.theater-mode .player-container {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #000;
    padding: 0;
}

.theater-mode .video-wrapper {
    border-radius: 0;
    height: 100%;
}

.theater-mode .channel-info-panel {
    display: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Channel Info Panel - Connected Design */
.channel-info-panel {
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.8) 0%, rgba(15, 15, 30, 0.9) 100%);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glow);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.info-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: rgba(139, 92, 246, 0.05);
}

.info-tab {
    flex: 1;
    padding: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.info-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.info-tab:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

.info-tab.active {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.15);
}

.info-tab.active::after {
    width: 60%;
}

.info-content {
    padding: 18px;
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

.related-channel {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--gradient-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    min-width: 110px;
}

.related-channel:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.related-channel img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: var(--bg-card);
    padding: 5px;
}

.related-channel span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left-color: var(--secondary);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: var(--secondary);
}

.toast.error i {
    color: var(--danger);
}

.toast p {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        right: 0;
        top: 0;
        z-index: 200;
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 150;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .sidebar-overlay.visible {
        opacity: 1;
        visibility: visible;
    }

    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .toggle-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
        --topbar-height: 60px;
    }

    .top-bar {
        padding: 0 15px;
    }

    .channel-details h2 {
        font-size: 1rem;
    }

    .player-container {
        padding: 10px;
    }

    .welcome-content h1 {
        font-size: 1.8rem;
    }

    .welcome-icon {
        font-size: 60px;
    }

    .features {
        gap: 15px;
    }

    .feature {
        padding: 15px 20px;
    }

    .feature i {
        font-size: 1.5rem;
    }

    .video-controls {
        padding: 10px 15px;
    }

    .volume-slider {
        display: none;
    }

    .channel-info-panel {
        display: none;
    }
}

@media (max-width: 480px) {
    .top-actions {
        gap: 5px;
    }

    .action-btn {
        width: 40px;
        height: 40px;
    }

    .features {
        flex-direction: column;
    }

    .current-logo {
        width: 35px;
        height: 35px;
    }
}

/* Fullscreen Styles */
.video-wrapper:fullscreen {
    border-radius: 0;
}

.video-wrapper:fullscreen .video-controls {
    border-radius: 0;
}

/* Picture-in-Picture indicator */
.pip-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 5;
}

/* Sort & Filter Bar */
.sort-filter-bar {
    display: flex;
    gap: 8px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}

.sort-select {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:hover,
.sort-select:focus {
    border-color: var(--primary);
    outline: none;
}

.view-toggle {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle:hover {
    background: var(--primary);
    color: var(--text-primary);
}

/* Sidebar Footer */
.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-darker);
}

.sidebar-footer span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.settings-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn:hover {
    background: var(--primary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content.small {
    max-width: 400px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

/* Settings */
.setting-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-group:last-child {
    border-bottom: none;
}

.setting-group label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.setting-group select,
.setting-group input[type="range"] {
    flex: 0 0 auto;
}

.setting-group select {
    padding: 8px 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
}

.setting-group input[type="range"] {
    width: 120px;
}

.setting-group.danger {
    justify-content: center;
    padding-top: 20px;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-switch {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-darker);
    border-radius: 26px;
    transition: var(--transition);
}

.slider-switch:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    right: 3px;
    bottom: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

.switch input:checked+.slider-switch {
    background: var(--primary);
}

.switch input:checked+.slider-switch:before {
    transform: translateX(-24px);
    background: var(--text-primary);
}

/* Buttons */
.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.btn-danger {
    padding: 12px 25px;
    background: var(--danger);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-cancel {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: var(--danger);
    color: var(--text-primary);
}

/* Sleep Timer */
.sleep-info {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.sleep-timer-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.timer-btn {
    padding: 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.timer-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-primary);
}

.timer-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-primary);
}

.sleep-timer-custom {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.sleep-timer-custom input {
    flex: 1;
    padding: 10px 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
}

.sleep-timer-custom input:focus {
    outline: none;
    border-color: var(--primary);
}

.sleep-timer-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--bg-darker);
    border-radius: var(--radius-sm);
}

.sleep-timer-status span {
    color: var(--text-muted);
}

.sleep-timer-status.active span {
    color: var(--secondary);
    font-weight: 600;
}

/* Share Modal */
.share-channel-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-darker);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.share-channel-info img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: #fff;
    padding: 5px;
}

.share-channel-info span {
    font-size: 1.1rem;
    font-weight: 600;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.copy {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
}

/* Shortcuts Modal */
.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--bg-darker);
    border-radius: var(--radius-sm);
}

.shortcut-item .key {
    background: var(--bg-card-hover);
    padding: 5px 12px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.shortcut-item .action {
    color: var(--text-muted);
}

/* Grid View for Channels */
.channels-list.grid-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.channels-list.grid-view .channel-item {
    flex-direction: column;
    text-align: center;
    padding: 15px 10px;
    gap: 8px;
}

.channels-list.grid-view .channel-logo {
    width: 60px;
    height: 60px;
}

.channels-list.grid-view .channel-info {
    width: 100%;
    text-align: center;
}

.channels-list.grid-view .channel-fav {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.channel-item {
    animation: fadeIn 0.3s ease;
}

/* Improved hover effects */
.channel-item:hover .channel-logo {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Active Sleep Timer Indicator */
.sleep-timer-active {
    position: relative;
}

.sleep-timer-active::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Channel quality badge */
.quality-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--secondary);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ========================================
   NEW FEATURES STYLES
   ======================================== */

/* Statistics Modal */
.modal-content.large {
    max-width: 700px;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card i {
    font-size: 2rem;
    opacity: 0.9;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.stats-section {
    margin-bottom: 20px;
}

.stats-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.top-channels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.top-channel-item .rank {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.top-channel-item .rank.gold {
    background: linear-gradient(135deg, #ffd700, #ffb347);
}

.top-channel-item .rank.silver {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
}

.top-channel-item .rank.bronze {
    background: linear-gradient(135deg, #cd7f32, #b06723);
}

.top-channel-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
}

.top-channel-item .channel-details {
    flex: 1;
}

.top-channel-item .watch-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.top-countries-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.country-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--bg-card);
    border-radius: 20px;
}

.country-stat-item .flag {
    font-size: 1.2rem;
}

.country-stat-item .count {
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Export/Import Modal */
.export-section,
.import-section {
    padding: 20px 0;
}

.export-section h4,
.import-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.export-section p,
.import-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.export-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 0;
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.file-upload-area i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.file-upload-area p {
    color: var(--text-muted);
}

/* Kids Mode Modal */
.kids-mode-status {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-darker));
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.kids-mode-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.kids-mode-icon i {
    font-size: 2.5rem;
}

.switch.large {
    transform: scale(1.3);
    margin-top: 15px;
}

.kids-mode-settings {
    display: none;
}

.kids-mode-settings.visible {
    display: block;
}

.kids-channels-filter {
    margin-top: 20px;
}

.kids-channels-filter h4 {
    margin-bottom: 15px;
}

.kids-channel-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kids-channel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.kids-channel-item:hover {
    background: var(--bg-card-hover);
}

.kids-channel-item.selected {
    background: var(--primary);
}

.kids-channel-item img {
    width: 25px;
    height: 25px;
    border-radius: 4px;
}

/* Reminders Modal */
.add-reminder {
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.add-reminder h4 {
    margin-bottom: 15px;
}

.reminder-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
}

.reminder-input {
    padding: 10px 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
}

.reminder-input:focus {
    outline: none;
    border-color: var(--primary);
}

.reminders-list {
    max-height: 300px;
    overflow-y: auto;
}

.reminder-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.reminder-item .reminder-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    min-width: 80px;
}

.reminder-item .reminder-date {
    font-size: 0.8rem;
    opacity: 0.9;
}

.reminder-item .reminder-hour {
    font-size: 1.2rem;
    font-weight: 700;
}

.reminder-item .reminder-details {
    flex: 1;
}

.reminder-item .reminder-details h5 {
    margin-bottom: 5px;
}

.reminder-item .reminder-details span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.reminder-item .delete-reminder {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 10px;
    font-size: 1.1rem;
}

.no-reminders {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.no-reminders i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Theme Modal */
.modal-content.small {
    max-width: 400px;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.theme-option:hover {
    background: var(--bg-card-hover);
}

.theme-option.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
}

.theme-option i {
    font-size: 2rem;
    color: var(--primary);
}

.accent-colors h4 {
    margin-bottom: 15px;
    text-align: center;
}

.color-options {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color);
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* FAB (Floating Action Button) - Premium Design */
.fab-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
}

.fab-main {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-aurora);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
    transition: var(--transition);
    z-index: 2;
    position: relative;
    animation: fabPulse 3s ease-in-out infinite;
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 8px 50px rgba(139, 92, 246, 0.6);
    }
}

.fab-main::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--gradient-aurora);
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
    animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.fab-main:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.6);
}

.fab-main.active {
    transform: rotate(135deg);
    background: var(--gradient-warm);
}

.fab-actions {
    position: absolute;
    bottom: 80px;
    left: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fab-container.open .fab-actions {
    opacity: 1;
    visibility: visible;
}

.fab-container.open .fab-action {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.fab-action {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.95) 0%, rgba(20, 20, 40, 0.98) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.8);
    opacity: 0;
}

.fab-action:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.15) !important;
    box-shadow: var(--shadow-neon);
}

/* Staggered animation for FAB actions */
.fab-container.open .fab-action:nth-child(1) {
    transition-delay: 0.05s;
}

.fab-container.open .fab-action:nth-child(2) {
    transition-delay: 0.1s;
}

.fab-container.open .fab-action:nth-child(3) {
    transition-delay: 0.15s;
}

.fab-container.open .fab-action:nth-child(4) {
    transition-delay: 0.2s;
}

.fab-container.open .fab-action:nth-child(5) {
    transition-delay: 0.25s;
}

.fab-container.open .fab-action:nth-child(6) {
    transition-delay: 0.3s;
}

/* Different colors on hover for each FAB action */
.fab-action[data-action="stats"]:hover {
    background: var(--gradient-accent);
}

.fab-action[data-action="theme"]:hover {
    background: var(--gradient-primary);
}

.fab-action[data-action="reminders"]:hover {
    background: var(--gradient-warm);
}

.fab-action[data-action="export"]:hover {
    background: var(--gradient-secondary);
}

.fab-action[data-action="kids"]:hover {
    background: var(--gradient-neon);
}

.fab-action[data-action="radio"]:hover {
    background: var(--gradient-sunset);
}

/* Radio Mode Indicator */
.radio-mode-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.radio-mode-indicator.visible {
    opacity: 1;
    visibility: visible;
}

.radio-mode-indicator i {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

/* PiP Secondary Window */
.pip-secondary {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    height: 180px;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.pip-secondary.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.pip-secondary video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pip-secondary-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pip-channel-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.pip-close-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.pip-close-btn:hover {
    background: var(--danger);
}

/* Reminder Notification */
.reminder-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-right: 4px solid var(--primary);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.reminder-notification.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.reminder-notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
}

.reminder-notification-content>i {
    font-size: 1.5rem;
    color: var(--primary);
    animation: ring 2s infinite;
}

@keyframes ring {

    0%,
    100% {
        transform: rotate(0);
    }

    10%,
    30% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(0);
    }
}

.reminder-notification-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reminder-notification-info .reminder-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.reminder-notification-info .reminder-channel {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.reminder-watch-btn {
    padding: 8px 20px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.reminder-watch-btn:hover {
    background: var(--primary-dark);
}

.reminder-dismiss-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
}

/* Light Theme */
body.light-theme {
    --bg-darker: #f5f5f5;
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f0;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5e;
    --text-muted: #6a6a7e;
    --border-color: #e0e0e0;
}

body.light-theme .sidebar {
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
}

body.light-theme .modal-content {
    background: #fff;
}

body.light-theme .video-wrapper {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive for new features */
@media (max-width: 768px) {
    .stats-summary {
        grid-template-columns: 1fr;
    }

    .reminder-form {
        grid-template-columns: 1fr;
    }

    .theme-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .fab-container {
        bottom: 20px;
        left: 20px;
    }

    .pip-secondary {
        width: 200px;
        height: 112px;
        right: 10px;
        bottom: 80px;
    }

    .reminder-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}