:root {
    --bg-color: #121212; 
    --panel-bg: #1f1f1f; 
    --card-bg: #292929; 
    --border-color: #333; 
    --text-primary: #f5f5f5; 
    --text-secondary: #b0b0b0; 
    --accent-color: #00bcd4; 
    --live-status: #ff3b3b; 
}

body.dark-mode {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

.main-container {
    display: flex; 
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--panel-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px;
}

.sidebar-header h3 {
    margin-top: 0;
    color: var(--accent-color);
    font-size: 24px;
}

.menu-group h4 {
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    margin-top: 25px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.sidebar-nav ul li a i {
    width: 25px;
    margin-right: 10px;
    color: var(--text-secondary);
}

.sidebar-nav ul li a:hover {
    background-color: var(--card-bg);
    color: var(--accent-color);
}

.sidebar-nav ul li a:hover i {
    color: var(--accent-color);
}

.content-panel {
    flex: 1;
    padding: 30px;
}

.card {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.card-header h2 i {
    margin-right: 10px;
    color: var(--accent-color);
}

.card-body {
    padding: 20px;
}

.no-padding {
    padding: 0;
}

.top-area {
    display: flex;
    flex-direction: column; 
    gap: 20px;
}

.stream-player-card {
    width: 100%;
}

.stream-player-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--live-status);
}

.aspect-ratio-16-9 {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; 
    background-color: #000;
}

.aspect-ratio-16-9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hidden {
    display: none !important;
}

.mini-card {
    padding: 15px 20px;
}

.mini-card h5 {
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    font-size: 12px;
}

.mini-card p {
    margin: 0;
    font-size: 24px;
    color: var(--accent-color);
    font-weight: bold;
}

#schedule-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    background-color: var(--live-status);
}

.league-name {
    color: var(--text-secondary);
    font-size: 13px;
}

.match-teams {
    flex: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 40%;
}

.team.home {
    justify-content: flex-end;
}

.team.away {
    justify-content: flex-start;
}

.team img {
    width: 35px; 
    height: auto;
}

.match-vs {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 18px;
    min-width: 60px;
    text-align: center;
}

.match-action {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.watch-btn {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.watch-btn:hover {
    background-color: #00e5ff;
}

/* Responsiveness */
@media (max-width: 768px) {
    .main-container { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); }
    .match-card { flex-direction: column; gap: 15px; text-align: center; }
    .match-teams { flex-direction: column; width: 100%; }
    .team.home, .team.away { justify-content: center; width: 100%; }
    .match-action { justify-content: center; width: 100%; }
}