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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    line-height: 1.5;
}

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

h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
}

.subtitle-link {
    color: #6a9fd8;
    text-decoration: none;
}

.subtitle-link:hover {
    color: #8bb8e8;
    text-decoration: underline;
}

/* Index page */
.games-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.game-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #16213e;
    border-radius: 8px;
    text-decoration: none;
    color: #e0e0e0;
    transition: background 0.2s;
}

.game-card:hover {
    background: #1a2a50;
}

.game-card .score {
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
}

.game-card .team {
    flex: 1;
    font-size: 0.95rem;
}

.game-card .team:last-of-type {
    text-align: right;
}

.day-separator {
    border: none;
    border-top: 1px solid #333;
    margin: 15px 0 5px;
}

.day-header {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

/* Game page */
.back-link {
    display: inline-block;
    color: #888;
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.back-link:hover {
    color: #fff;
}

.game-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.game-date {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.team-name {
    font-size: 1.2rem;
}

.game-score {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}

/* Rotation chart */
.rotation-chart {
    margin-bottom: 40px;
}

.rotation-chart .team-header {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #333;
}

/* Tooltip */
.tooltip {
    position: fixed;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #555;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #e0e0e0;
    z-index: 1000;
    display: none;
    max-width: 300px;
}

.tooltip .player-name {
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.tooltip .detail {
    color: #aaa;
}

.tooltip .positive {
    color: #4caf50;
}

.tooltip .negative {
    color: #ef5350;
}

.tooltip .stats {
    color: #ccc;
}

.tooltip .stats:first-of-type {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #444;
}

/* Mobile warning */
.mobile-warning {
    display: none;
    text-align: center;
    color: #c0a050;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .mobile-warning {
        display: block;
    }
}
