:root {
    --bg-primary: #111418;
    --bg-surface: #1a1e24;
    --bg-card: #222831;
    --text-primary: #ffffff;
    --text-secondary: #9aa0a6;
    --accent: #00d26a;
    --accent-hover: #00b359;
    --live-red: #ff334b;
    --border-color: #2e3642;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
}

.fotmob-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.date-navigator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.date-navigator input[type="date"] {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}

.league-card {
    background: var(--bg-surface);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.league-header {
    background: var(--bg-card);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.league-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.match-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.match-row:last-child {
    border-bottom: none;
}

.team {
    flex: 1;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.team img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.live-score {
    width: 90px;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent);
}

.badge.live-minute {
    background: var(--live-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Tabs */
.fotmob-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.fotmob-tab-link {
    padding: 0.65rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.fotmob-tab-link:hover, .fotmob-tab-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}
