/* Header del partido */
.match-header {
    width: 100%;
    background: #131313;
    padding: 8rem 0 4rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px var(--borders);
    min-height: 120px;
}

.match-header-content {
    width: min(1440px, 92%);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.match-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.match-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.match-header-content h1 {
    color: white;
    margin: 0;
}

.match-status {
    background: var(--accent);
    color: white;
    border-radius: 0 0 12px 0;
    padding: 0.3rem 0.7rem;
    font-weight: 600;
}

.status-preparando {
    background: #ffd93d;
    color: #1a1a1a;
}

.status-jugando {
    background: var(--accent);
    color: #fff;
    animation: pulse 2s infinite;
}

.status-finalizado {
    background: var(--accent);
    color: white;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.match-date {
    color: #fff;
}

.match-phase {
    color: #fff;
}

.match-actions {
    display: flex;
    gap: 1rem;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 var(--radius);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Scoreboard */
.match-scoreboard {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px var(--borders);
}

.team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.team-blue {
    justify-content: flex-start;
}

.team-red {
    justify-content: flex-end;
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.team-blue .team-info {
    align-items: flex-start;
}

.team-red .team-info {
    align-items: flex-end;
}

.team-name {
    font-weight: 700;
    margin: 0;
    color: var(--txt);
}

.team-initials {
    color: var(--muted);
    font-weight: 600;
}

.team-players {
    color: var(--muted);
}

.team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    padding: 0.5rem;
}

.team-score {
    font-weight: 800;
    font-size: 3rem;
    color: var(--txt);
    line-height: 1;
}

.team.winner .team-score {
    color: var(--accent);
}

.scoreboard-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--borders);
}

/* Stream */
.match-stream {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}

.stream-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--panel-3);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--borders);
}

.stream-placeholder {
    width: 100%;
    height: 100%;
}

.stream-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* =========================
   RESPONSIVE
========================== */

@media (max-width: 768px) {
    .match-header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .match-info {
        justify-content: center;
    }

    .match-actions {
        flex-direction: column;
    }

    .match-scoreboard {
        flex-direction: column;
        gap: 1rem;
    }

    .team {
        width: 100%;
        justify-content: space-between !important;
    }

    .team-blue .team-info,
    .team-red .team-info {
        align-items: flex-start;
    }

    .scoreboard-divider {
        width: 60px;
        height: 60px;
        font-weight: 700;
    }

    .match-rosters {
        grid-template-columns: 1fr;
    }
}