        :root {
            --primary: #e50914;
            --primary-dark: #b2070f;
            --primary-light: #ff4d4d;
            --secondary: #141414;
            --secondary-light: #1f1f1f;
            --accent: #f5f5f1;
            --text: #ffffff;
            --text-secondary: #b3b3b3;
            --card-bg: #181818;
            --hover-bg: #2a2a2a;
            --header-height: 70px;
            --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        }
        
        body {
            background-color: var(--secondary);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
        }
        
        /* Header Styles */
        header {
            background-color: rgba(20, 20, 20, 0.95);
            padding: 0 2rem;
            position: fixed;
            top: 0;
            width: 100%;
            height: var(--header-height);
            z-index: 100;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }
        
        header.scrolled {
            background-color: rgba(20, 20, 20, 0.98);
            height: 60px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            transition: transform 0.3s;
        }
        
        .logo:hover {
            transform: scale(1.05);
        }
        
        .logo h1 {
            font-size: 1.6rem;
            font-weight: 700;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .logo i {
            font-size: 1.8rem;
            color: var(--primary);
        }
        
        nav ul {
            display: flex;
            list-style: none;
            gap: 1.5rem;
        }
        
        nav a {
            color: var(--text);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
            font-size: 0.95rem;
            position: relative;
            padding: 5px 0;
        }
        
        nav a:hover {
            color: var(--primary);
        }
        
        .nav-active {
            color: var(--primary);
        }
        
        .nav-active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--primary);
            transform: scaleX(1);
            transition: transform 0.3s;
        }
        
        .search-container {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 0.4rem 0.8rem;
            transition: all 0.3s;
            border: 1px solid transparent;
        }
        
        .search-container:focus-within {
            background: rgba(255, 255, 255, 0.15);
            box-shadow: 0 0 0 2px var(--primary);
            border-color: var(--primary);
        }
        
        .search-container input {
            background: transparent;
            border: none;
            color: var(--text);
            padding: 0.3rem;
            width: 180px;
            outline: none;
        }
        
        .search-container button {
            background: transparent;
            border: none;
            color: var(--text);
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .search-container button:hover {
            transform: scale(1.1);
        }
        
        /* Hero Section */
        .hero {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                        url('https://images.unsplash.com/photo-1593359677879-a4bb92f829d1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            padding: 8rem 2rem 4rem;
            text-align: center;
            margin-bottom: 2rem;
            min-height: 70vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
        }
        
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--gradient);
            opacity: 0.2;
            z-index: -1;
        }
        
        .hero-content {
            max-width: 800px;
            animation: fadeInUp 1s ease;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .hero h2 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            background: linear-gradient(to right, #fff, var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .hero p {
            font-size: 1.3rem;
            max-width: 700px;
            margin: 0 auto 2rem;
            color: var(--accent);
        }
        
        .cta-button {
            background: var(--gradient);
            color: white;
            border: none;
            padding: 0.9rem 2.2rem;
            font-size: 1.1rem;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
            position: relative;
            overflow: hidden;
        }
        
        .cta-button::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;
        }
        
        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(229, 9, 20, 0.6);
        }
        
        .cta-button:hover::before {
            left: 100%;
        }
        
        /* Main Content */
        main {
            padding: 0 2rem 3rem;
            margin-top: calc(var(--header-height) * -1);
            padding-top: calc(var(--header-height) + 1rem);
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            position: relative;
        }
        
        .section-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100px;
            height: 3px;
            background: var(--gradient);
            border-radius: 3px;
        }
        
        .section-header h2 {
            font-size: 1.8rem;
            font-weight: 700;
        }
        
        .category-filters {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .category-btn {
            background: var(--card-bg);
            color: var(--text);
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 0.6rem 1.2rem;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.9rem;
            position: relative;
            overflow: hidden;
        }
        
        .category-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: var(--gradient);
            transition: width 0.3s;
            z-index: -1;
        }
        
        .category-btn.active, .category-btn:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .category-btn.active::before, .category-btn:hover::before {
            width: 100%;
        }
        
        /* Channels Grid */
        .channels-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        
        .channel-card {
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
            position: relative;
            box-shadow: var(--card-shadow);
        }
        
        .channel-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--hover-shadow);
            background: var(--hover-bg);
        }
        
        .channel-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--gradient);
            transform: scaleX(0);
            transition: transform 0.3s;
        }
        
        .channel-card:hover::before {
            transform: scaleX(1);
        }
        
        .channel-logo {
            height: 160px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #000;
            padding: 1rem;
            position: relative;
            overflow: hidden;
        }
        
        .channel-logo::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--gradient);
            transform: scaleX(0);
            transition: transform 0.3s;
        }
        
        .channel-card:hover .channel-logo::after {
            transform: scaleX(1);
        }
        
        .channel-logo img {
            max-height: 100%;
            max-width: 100%;
            object-fit: contain;
            transition: transform 0.3s;
            z-index: 1;
        }
        
        .channel-card:hover .channel-logo img {
            transform: scale(1.08);
        }
        
        .channel-info {
            padding: 1.2rem;
        }
        
        .channel-info h3 {
            margin-bottom: 0.5rem;
            font-size: 1.2rem;
            font-weight: 600;
        }
        
        .channel-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
        }
        
        .channel-description {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-top: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .status-badge {
            display: inline-block;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        
        .status-live {
            background: var(--gradient);
            color: white;
        }
        
        .status-offline {
            background: #666;
            color: white;
        }
        
        /* Player Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .modal-content {
            width: 90%;
            max-width: 1000px;
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            animation: modalOpen 0.3s ease forwards;
        }
        
        @keyframes modalOpen {
            to { transform: scale(1); }
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.5rem;
            background: var(--secondary);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .modal-header h3 {
            font-size: 1.5rem;
            font-weight: 600;
        }
        
        .modal-controls {
            display: flex;
            gap: 10px;
        }
        
        .modal-controls button {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: var(--text);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .modal-controls button:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }
        
        .close-modal {
            background: none;
            border: none;
            color: var(--text);
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        .video-container {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            height: 0;
            overflow: hidden;
            background: #000;
        }
        
        .video-container iframe,
        .video-container video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }
        
        .modal-body {
            padding: 1.5rem;
        }
        
        .channel-details {
            display: flex;
            gap: 1.5rem;
            margin-top: 1rem;
        }
        
        .channel-details img {
            width: 80px;
            height: 80px;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
        
        /* Fullscreen styles - IMPROVED */
        .modal.fullscreen {
            align-items: stretch;
            padding: 0;
        }
        
        .modal.fullscreen .modal-content {
            width: 100%;
            max-width: none;
            height: 100%;
            border-radius: 0;
            display: flex;
            flex-direction: column;
            transform: none;
            animation: none;
        }
        
        .modal.fullscreen .modal-header {
            padding: 0.8rem 1.5rem;
            background: rgba(20, 20, 20, 0.9);
            backdrop-filter: blur(10px);
        }
        
        .modal.fullscreen .video-container {
            flex: 1;
            padding-bottom: 0;
            height: calc(100vh - 120px);
        }
        
        .modal.fullscreen .modal-body {
            padding: 1rem 1.5rem;
            background: rgba(20, 20, 20, 0.9);
            backdrop-filter: blur(10px);
        }
        
        /* Footer */
        footer {
            background: #000;
            padding: 3rem 2rem 2rem;
            margin-top: 3rem;
            position: relative;
        }
        
        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--gradient);
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }
        
        .footer-section h4 {
            margin-bottom: 1rem;
            color: var(--text);
            font-size: 1.2rem;
            position: relative;
            display: inline-block;
        }
        
        .footer-section h4::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 40px;
            height: 2px;
            background: var(--primary);
        }
        
        .footer-section ul {
            list-style: none;
        }
        
        .footer-section ul li {
            margin-bottom: 0.5rem;
        }
        
        .footer-section a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.3s;
            position: relative;
            padding-left: 0;
            transition: all 0.3s;
        }
        
        .footer-section a:hover {
            color: var(--primary);
            padding-left: 5px;
        }
        
        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .social-links a {
            color: var(--text);
            font-size: 1.5rem;
            transition: transform 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
        }
        
        .social-links a:hover {
            transform: translateY(-3px);
            background: var(--gradient);
            color: white;
        }
        
        .copyright {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-secondary);
            font-size: 0.9rem;
        }
        
        /* Loading Spinner */
        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 3rem;
            grid-column: 1 / -1;
        }
        
        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            border-top-color: var(--primary);
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Toast Notifications */
        .toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--primary);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 8px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            z-index: 1001;
            transform: translateX(100px);
            opacity: 0;
            transition: all 0.3s;
            max-width: 350px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .toast.show {
            transform: translateX(0);
            opacity: 1;
        }
        
        .toast i {
            font-size: 1.2rem;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            header {
                padding: 0 1rem;
            }
            
            nav ul {
                gap: 1rem;
            }
            
            .search-container {
                width: 100%;
                max-width: 200px;
            }
            
            .search-container input {
                width: 100%;
            }
            
            .hero {
                padding: 7rem 1rem 3rem;
                min-height: 60vh;
            }
            
            .hero h2 {
                font-size: 2.2rem;
            }
            
            .hero p {
                font-size: 1rem;
            }
            
            .channels-grid {
                grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            }
            
            .section-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            main {
                padding: 0 1rem 2rem;
                padding-top: calc(var(--header-height) + 1rem);
            }
            
            .modal.fullscreen .video-container {
                height: calc(100vh - 100px);
            }
        }
        
        @media (max-width: 480px) {
            .channels-grid {
                grid-template-columns: 1fr;
            }
            
            .hero {
                padding: 6rem 1rem 2rem;
                min-height: 50vh;
            }
            
            .category-filters {
                gap: 0.5rem;
            }
            
            .category-btn {
                padding: 0.4rem 0.8rem;
                font-size: 0.8rem;
            }
            
            .modal.fullscreen .video-container {
                height: calc(100vh - 80px);
            }
            
            .channel-details {
                flex-direction: column;
                gap: 1rem;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
            }
        }