:root {
    --primary: #00d8ff;
    --primary-dark: #0099cc;
    --secondary: #ff3b30;
    --dark: #0a0c10;
    --darker: #050608;
    --gray: #1a1d24;
    --light-gray: #2a2d35;
    --text: #ffffff;
    --text-muted: #a0a3ab;
    --gradient: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.logo .highlight {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark), var(--gray));
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(0,216,255,0.05)" stroke-width="2"/></svg>') repeat;
    opacity: 0.1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.countdown-item {
    background: var(--gray);
    padding: 20px;
    border-radius: 15px;
    min-width: 100px;
}

.countdown-item span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.countdown-item label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Featured Match */
.featured-match {
    padding: 60px 0;
}

.match-card {
    background: var(--gray);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
}

.match-card.featured {
    background: linear-gradient(135deg, var(--gray), var(--light-gray));
    border: 1px solid rgba(0,216,255,0.2);
}

.match-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 30px;
}

.team {
    text-align: center;
}

.team img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.team span {
    font-size: 1.2rem;
    font-weight: 600;
}

.vs {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.match-info {
    text-align: center;
}

.match-info p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.watch-live-btn {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.watch-live-btn:hover {
    transform: scale(1.05);
}

/* Channels Grid */
.channels-section {
    padding: 60px 0;
    background: var(--darker);
}

.channels-section h2,
.schedule-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.channel-card {
    background: var(--gray);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.channel-thumb {
    position: relative;
    height: 160px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    background: white;
}

.channel-info {
    padding: 15px;
}

.channel-name {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-badge {
    background: var(--secondary);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.channel-country {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Schedule Table */
.schedule-section {
    padding: 60px 0;
}

.schedule-table-wrapper {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--gray);
    border-radius: 15px;
    overflow: hidden;
}

.schedule-table th,
.schedule-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.schedule-table th {
    background: rgba(0,216,255,0.1);
    color: var(--primary);
    font-weight: 600;
}

.schedule-table tr:hover {
    background: rgba(255,255,255,0.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    background: var(--dark);
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    border-radius: 15px;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text);
    z-index: 10;
}

.close:hover {
    color: var(--primary);
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h3 {
    color: var(--primary);
}

.video-js {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

/* Footer */
.main-footer {
    background: var(--darker);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .countdown-timer {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 15px;
    }
    
    .countdown-item span {
        font-size: 1.5rem;
    }
    
    .match-teams {
        gap: 20px;
    }
    
    .team img {
        width: 50px;
        height: 50px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav.active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark);
        padding: 20px;
    }
    
    .main-nav.active ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    background: rgba(255,59,48,0.2);
    border: 1px solid var(--secondary);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin: 20px 0;
}