/* ===== MATCH SCREEN ===== */
.match-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(180deg, #1a1a5e 0%, #0a0a3e 100%);
    border: 2px solid var(--border-color);
    gap: 30px;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 15px;
}

.match-team.home {
    flex-direction: row;
}

.match-team.away {
    flex-direction: row;
}

.match-team-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: var(--text-primary);
}

.match-score {
    font-family: 'Press Start 2P', cursive;
    font-size: 36px;
    color: var(--highlight);
    min-width: 50px;
    text-align: center;
}

.match-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.match-minute {
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    color: var(--positive);
    animation: minuteBlink 1s ease-in-out infinite;
}

.match-half {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

@keyframes minuteBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.match-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 15px 0;
}

.match-commentary {
    flex: 1;
    background: var(--bg-panel);
    border: 2px solid var(--border-color);
    padding: 15px;
    overflow-y: auto;
    max-height: 450px;
    font-size: 17px;
    line-height: 1.6;
}

.match-commentary .comment {
    padding: 5px 0;
    border-bottom: 1px solid #1a1a3e;
}

.comment .comment-minute {
    color: var(--positive);
    font-weight: bold;
    margin-right: 8px;
}

.comment.goal {
    color: var(--highlight);
    font-size: 20px;
    font-weight: bold;
    padding: 10px 0;
    background: rgba(255, 204, 0, 0.1);
}

.comment.card-yellow {
    color: #ffaa00;
}

.comment.card-red {
    color: #ff3333;
}

.comment.halftime,
.comment.fulltime {
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: var(--highlight);
    padding: 15px 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    margin: 10px 0;
}

.comment.substitution {
    color: #88bbff;
}

.comment.chance {
    color: #aaddaa;
}

.match-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
}

/* Match stats shown after match */
.match-stats {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    padding: 15px;
    background: var(--bg-panel);
    border: 2px solid var(--border-color);
    margin-top: 10px;
}

.match-stats .stat-row {
    display: contents;
}

.match-stats .stat-home {
    text-align: right;
    font-size: 18px;
}

.match-stats .stat-label {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 0 10px;
}

.match-stats .stat-away {
    text-align: left;
    font-size: 18px;
}
