body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, Arial;
    background: #f1f5f9;
}

/* HEADER */
.header {
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    color: white;
    padding: 18px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

/* CONTENEDOR */
.container {
    max-width: 500px;
    margin: auto;
    padding: 10px;
}

/* SECCIONES */
.section-title {
    font-size: 14px;
    font-weight: bold;
    margin: 15px 5px 8px;
    color: #1e3a8a;
}

/* TARJETA */
.match-card {
    background: white;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 5px solid #2563eb;
}

/* TARJETA EN DIRECTO */
.match-card.live {
    border-left: 5px solid #ef4444;
    background: #fff5f5;
}

/* COMPETICIÓN */
.competition {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

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

/* NOMBRE EQUIPO */
.team {
    width: 35%;
    font-size: 14px;
    font-weight: 500;
}

/* MARCADOR */
.score {
    font-size: 30px;
    font-weight: bold;
    color: #111827;
}

/* ESTADO */
.status {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    font-weight: bold;
}

/* BADGES */
.live-badge {
    color: #ef4444;
}

.finished-badge {
    color: #6b7280;
}

.scheduled-badge {
    color: #f59e0b;
}
/* MATCH LIST ADMIN */
.match-item {
    background: white;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 6px solid #2563eb;
}

.match-live {
    border-left-color: #ef4444;
    background: #fff5f5;
}

.match-finished {
    border-left-color: #6b7280;
    opacity: 0.8;
}

.match-header {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

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

.team-name {
    width: 35%;
    font-size: 14px;
}

.match-score {
    font-size: 22px;
    font-weight: bold;
}

.match-footer {
    margin-top: 8px;
    text-align: center;
}

.control-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-weight: bold;
    border: none;
}
.admin-card {
    background: white;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}
.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px; /* 🔥 separa bloques */
}

.form-row > div {
    flex: 1;
}

.create-match label {
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
    display: block;
}

/* INPUTS */
.create-match select,
.create-match input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fff;
    box-sizing: border-box; /* 🔥 arregla lo que se sale */
}

/* INPUT NOMBRE TORNEO */
.create-match input[type="text"] {
    margin-top: 10px;
}

/* BOTÓN */
.create-btn {
    margin-top: 15px;
    padding: 16px;
    font-size: 16px;
    border-radius: 12px;
    background: #22c55e;
    color: white;
    font-weight: bold;
    border: none;
    width: 100%;
}
#matches-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

/* IMPORTANTE */
.match-item {
    width: 100%;
    box-sizing: border-box;
}
/* NUEVA ESTRUCTURA TARJETAS */
.match-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* EQUIPOS EN COLUMNA */
.teams-col {
    flex: 1;
}

.team-name {
    font-size: 13px;
    line-height: 1.3;
    word-break: break-word;
}

/* MARCADOR */
.score-col {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    min-width: 30px;
}