/* ==========================================================================
   EUROLEAGUE - Coppa EuroLeague
   Palette: blu notte + oro (distinta dalle altre coppe del sito)
   ========================================================================== */

.euroleague-container {
    --el-navy: #0b1d3a;
    --el-navy-light: #16305c;
    --el-gold: #d4a017;
    --el-gold-light: #f2c94c;
    --el-cream: #f7f5ef;
    --el-white: #ffffff;
    --el-ink: #1c2430;
    --el-muted: #6b7280;
    --el-line: #e6e2d6;

    max-width: 960px;
    margin: 0 auto;
    padding: 20px 12px 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--el-ink);
}

.euroleague-error,
.euroleague-empty {
    background: var(--el-cream);
    border: 1px solid var(--el-line);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    color: var(--el-muted);
    font-size: 14px;
    margin: 16px 0;
}

.euroleague-error {
    color: #b3261e;
    border-color: #f2c1bd;
    background: #fdecea;
}

/* ---------------------------------------------------------------------- */
/* Divisore intestazione (Calendario Girone A/B, Classifica Girone A/B, Finale) */
/* ---------------------------------------------------------------------- */

.euroleague-stage-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 34px 0 18px;
}

.euroleague-stage-divider span {
    display: inline-block;
    background: linear-gradient(135deg, var(--el-navy), var(--el-navy-light));
    color: var(--el-gold-light);
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.03em;
    padding: 10px 26px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(11, 29, 58, 0.25);
    border: 1px solid var(--el-gold);
}

.euroleague-container > .euroleague-stage-divider:first-child {
    margin-top: 0;
}

/* ---------------------------------------------------------------------- */
/* Titolo sezione (es. "Match del Girone A")                              */
/* ---------------------------------------------------------------------- */

.euroleague-section-title {
    text-align: center;
    margin: 8px 0 16px;
}

.euroleague-section-title h3 {
    display: inline-block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--el-navy);
    border-bottom: 2px solid var(--el-gold);
    padding-bottom: 4px;
    margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Calendario / Fixtures                                                   */
/* ---------------------------------------------------------------------- */

.euroleague-fixtures {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--el-white);
    border-radius: 16px;
    border: 1px solid var(--el-line);
    padding: 10px;
    box-shadow: 0 8px 22px rgba(11, 29, 58, 0.06);
}

.euroleague-fixture-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--el-cream);
}

.euroleague-fixture-row:nth-child(even) {
    background: var(--el-white);
    border: 1px solid var(--el-line);
}

.euroleague-fixture-team {
    font-weight: 600;
    font-size: 14.5px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.euroleague-fixture-home {
    text-align: right;
    color: var(--el-navy);
}

.euroleague-fixture-away {
    text-align: left;
    color: var(--el-navy);
}

.euroleague-fixture-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 64px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--el-navy);
    color: var(--el-gold-light);
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 15px;
}

.euroleague-fixture-sep {
    opacity: 0.7;
}

.euroleague-fixture-vs {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--el-gold-light);
}

.euroleague-fixture-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--el-muted);
    white-space: nowrap;
    text-align: right;
    min-width: 78px;
}

/* ---------------------------------------------------------------------- */
/* Classifica                                                              */
/* ---------------------------------------------------------------------- */

.euroleague-table-wrapper {
    background: var(--el-white);
    border-radius: 16px;
    border: 1px solid var(--el-line);
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(11, 29, 58, 0.08);
    overflow-x: auto;
}

.euroleague-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 720px;
}

.euroleague-standings-table thead th {
    background: var(--el-navy);
    color: var(--el-gold-light);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px;
    text-align: center;
    white-space: nowrap;
}

.euroleague-standings-table th.euroleague-col-team,
.euroleague-standings-table td.euroleague-col-team {
    text-align: left;
}

.euroleague-standings-table td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid var(--el-line);
    color: var(--el-ink);
}

.euroleague-standings-table tbody tr:last-child td {
    border-bottom: none;
}

.euroleague-standings-table tbody tr:nth-child(even) {
    background: var(--el-cream);
}

.euroleague-col-pos {
    width: 40px;
    font-weight: 700;
    color: var(--el-navy);
}

.euroleague-col-team {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--el-navy);
}

.euroleague-col-points {
    font-weight: 800;
    color: #a8790a;
    background: rgba(212, 160, 23, 0.12);
}

.euroleague-row-first td {
    background: rgba(212, 160, 23, 0.12);
}

.euroleague-row-first .euroleague-col-points {
    background: rgba(212, 160, 23, 0.28);
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 620px) {
    .euroleague-fixture-row {
        grid-template-columns: 1fr auto 1fr;
        row-gap: 6px;
    }

    .euroleague-fixture-date {
        grid-column: 1 / -1;
        text-align: center;
        min-width: 0;
    }

    .euroleague-stage-divider span {
        font-size: 16px;
        padding: 9px 20px;
        margin: 0 10px;
    }
}
