:root {
    --bg-color: #0b0e14;
    --card-bg: #151a22;
    --primary: #00ff88;
    --secondary: #00b8ff;
    --text-main: #ffffff;
    --text-muted: #a0aab2;
    --danger: #ff3366;
    --font-main: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(21, 26, 34, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

h1 {
    font-weight: 900;
    font-size: 1.8rem;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

h1 span {
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.admin-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.admin-btn:hover {
    color: var(--text-main);
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

/* Admin Panel */
.admin-panel {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.admin-panel.hidden {
    display: none;
}

.admin-panel h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.admin-panel p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.input-group {
    display: flex;
    gap: 15px;
}

input[type="text"] {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    border-color: var(--primary);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), #00cc6a);
    color: #000;
    border: none;
    padding: 0 30px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

/* Video Player */
.player-section {
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out;
}

.player-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 10;
}

#hlsPlayerContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: #000;
}

.hidden {
    display: none !important;
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    transition: opacity 0.5s ease;
}

.player-overlay.hidden-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.5));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.8)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.5)); }
}

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

/* Match Info */
.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 30px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.placeholder-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

img.team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.live-badge {
    background: var(--danger);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.score h2 {
    font-size: 3rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .match-info {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .btn-primary {
        padding: 15px;
    }
}
