/* 全域樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 頁面背景 */
body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

/* Header */
.header {
    background-color: #1a1a2e;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #e94560;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
    color: #fff;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #aaa;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: #e94560;
    color: #fff;
}

/* Main */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #e94560;
}

/* 比分卡片 */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-card {
    background-color: #1a1a2e;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.3);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.match-league {
    font-size: 0.85rem;
    color: #888;
}

.match-time {
    font-size: 0.9rem;
    color: #e94560;
    font-weight: bold;
}

.match-time.live {
    background-color: #e94560;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    animation: pulse 2s infinite;
}

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

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.team-name {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

.team-logo {
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.score {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
}

.score-board {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    min-width: 80px;
    text-align: center;
}

.vs {
    font-size: 0.9rem;
    color: #666;
}

/* 聯賽選擇 */
.league-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.league-btn {
    background-color: #1a1a2e;
    color: #aaa;
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.league-btn:hover,
.league-btn.active {
    background-color: #e94560;
    color: #fff;
    border-color: #e94560;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-size: 0.85rem;
}

/* RWD */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .match-teams {
        flex-direction: column;
        gap: 15px;
    }

    .score {
        order: -1;
        padding: 10px 0;
    }

    .team {
        flex-direction: row;
        gap: 15px;
    }

    .team-logo {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
