/* style.css */
:root {
    --primary-color: #3f5efb;
    --secondary-color: #fc466b;
    --accent-color: #00ecbc;
    --background-dark: #0f0c29;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(16px);
    --text-color: #e0e0e0;
    --text-dim: #a0a0a0;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Outfit', sans-serif;
}

body {
    background-color: var(--background-dark);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: blob-float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    /* Performance upgrade: Replaced heavy filter blur with radial gradients */
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.1); }
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-size: 1.1rem;
    transition: 0.3s;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links .active {
    color: var(--secondary-color);
}

/* Hero Section Full */
.hero-full {
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.btn-primary-xl {
    padding: 18px 45px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    display: inline-block;
    transition: 0.4s;
    box-shadow: 0 10px 30px rgba(63, 94, 251, 0.4);
}

.btn-primary-xl:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(252, 70, 107, 0.6);
}

/* Mini Hero */
.hero-mini {
    padding: 60px 0;
    text-align: center;
}

/* Channels Grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.channel-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: 0.3s;
}

.channel-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.channel-card:hover::before {
    opacity: 1;
}

.channel-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.channel-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.btn-watch {
    padding: 10px 25px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-watch:hover {
    box-shadow: 0 0 20px rgba(252, 70, 107, 0.5);
}

/* Player Section */
.player-section {
    margin-bottom: 50px;
    animation: fadeIn 0.5s ease-out;
}

.player-container {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--secondary-color);
}

.player-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}

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

.close-player {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Admin Styles */
.admin-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 40px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-test {
    background: var(--accent-color);
    color: #000;
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.preview-box {
    margin-top: 25px;
    border: 2px dashed var(--accent-color);
    border-radius: 8px;
    padding: 10px;
    display: none;
}

/* Dashboard List */
.admin-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
}

.channel-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-delete {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 100px;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: var(--secondary-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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


/* Logo Optimization Classes */
.team-logo-fixed {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 5px;
    transition: 0.3s;
}

.match-card-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
}

.league-logo-mini {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .container { padding: 0 20px; }
    .navbar .container { flex-direction: column; gap: 15px; }
}
