/* ============ FECHAS ============ */
.date-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 15px;
    background: var(--bg-card);
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.date-nav button {
    padding: 6px 12px;
    background: var(--bg);
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--fs-md);
}

.date-nav button:hover { background: var(--bg-hover); }

.date-nav input[type="date"] {
    padding: 6px 10px;
    background: var(--bg);
    color: var(--text-bright);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--fs-md);
}

.date-nav .current-date {
    flex: 1;
    text-align: center;
    font-weight: bold;
    color: var(--accent);
    font-size: 14px;
}

/* ============ GRUPO LIGA ============ */
.league-group {
    margin-bottom: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.league-group-header {
    background: var(--accent-dark);
    color: #fff;
    padding: 8px 12px;
    font-weight: bold;
    font-size: var(--fs-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.league-group-header:hover { background: #007a38; }

.league-group-header .country {
    font-size: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
}

.league-group-header .match-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: var(--fs-xs);
}

.league-group-header .toggle-icon {
    font-size: 20px;
}

/* ============ FILA PARTIDO ============ */
.match-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 12px;
    border-bottom: 1px solid var(--bg-hover);
    font-size: var(--fs-sm);
    gap: 8px;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.match-row:last-child { border-bottom: none; }
.match-row:hover { background: var(--bg-hover); }

.match-row .time {
    width: 55px;
    text-align: center;
    font-weight: bold;
    color: var(--accent);
    font-size: var(--fs-sm);
    flex-shrink: 0;
}

.match-row .time.finished { color: var(--text-dim); }
.match-row .time.live { color: var(--danger); }

.match-row .team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.match-row .team.home {
    justify-content: flex-end;
    text-align: right;
}

.match-row .team img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.match-row .team .name {
    color: var(--text-bright);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-row .score {
    width: 70px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    background: var(--bg);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.match-row .score .sep { color: var(--text-dim); margin: 0 3px; }
.match-row .score .vs { color: var(--text-dim); font-size: var(--fs-xs); }

.match-row .red-card {
    width: 6px;
    height: 10px;
    background: #ff4646;
    border-radius: 1px;
    margin: 0 4px;
}

.match-goals {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--text-dim);
    margin-top: 4px;
    padding: 0 4px;
}

.match-goals .goals-home { text-align: left; }
.match-goals .goals-away { text-align: right; }
.match-goals span {
    background: var(--bg);
    padding: 1px 6px;
    border-radius: 8px;
    margin: 0 2px;
}