:root {
    --primary: #0a2e01;
    --primary-dark: #012509;
    --secondary: #055302;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --success: #012509;
    --warning: #f59e0b;
    --error: #ef4444;
    --ai-gradient: linear-gradient(135deg, #067430 0%, #034b23 100%);
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sports Header */
.sports-header {
    margin: 100px 0 20px;
    padding: 30px;
    background: var(--ai-gradient);
    border-radius: var(--border-radius);
    color: white;
    position: relative;
    overflow: hidden;
}

.sports-header::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.header-content {
    position: relative;
    z-index: 2;
}

.sports-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.ai-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.sports-header p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.header-stats {
    display: flex;
    gap: 25px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    opacity: 0.9;
}

.stat i {
    font-size: 0.9rem;
}

/* Sports Navigation */
.sports-nav {
    margin-bottom: 20px;
    background: var(--secondary);
    border-radius: var(--border-radius);
    padding: 8px;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
}

.nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.nav-item i {
    font-size: 1rem;
}

/* Embed Container */
.embed-container {
    background: var(--secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

.embed-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.control-group {
    display: flex;
    gap: 10px;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.control-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.control-btn:active {
    transform: translateY(0);
}

.url-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    color: var(--gray-light);
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-display i {
    color: var(--primary);
}

.embed-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 600px;
    background: #000;
}

#aisports-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.embed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.embed-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-content {
    text-align: center;
    color: var(--light);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.overlay-content p {
    font-size: 1.1rem;
    margin: 0;
}

/* Embed Info */
.embed-info {
    margin-bottom: 30px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 2px;
}

.info-content h3 {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 8px;
    font-weight: 600;
}

.info-content p {
    color: var(--gray-light);
    margin: 0;
    line-height: 1.5;
}

/* Footer */
footer {
    background: var(--secondary);
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section h4 {
    color: var(--light);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--gray-light);
    margin: 0;
}

.footer-note {
    font-size: 0.9rem;
    color: var(--gray);
}

.footer-note a {
    color: var(--primary);
    text-decoration: none;
}

.footer-note a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sports-header {
        margin-top: 80px;
        padding: 25px 20px;
    }
    
    .sports-header h1 {
        font-size: 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .embed-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .control-group {
        justify-content: center;
    }
    
    .url-display {
        max-width: none;
        justify-content: center;
    }
    
    .embed-wrapper {
        height: 60vh;
        min-height: 500px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sports-header h1 {
        font-size: 1.7rem;
    }
    
    .nav-container {
        gap: 3px;
    }
    
    .nav-item {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item i {
        margin: 0;
    }
    
    .embed-wrapper {
        height: 50vh;
        min-height: 400px;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Fullscreen Styles */
.embed-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000;
}

.embed-wrapper.fullscreen .embed-controls {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--dark);
}

/* Loading States */
.control-btn.loading i {
    animation: spin 1s linear infinite;
}

.control-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.control-btn:disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}