.season-selector {
    margin: 20px 0;
    text-align: center;
}

.season-selector select {
    padding: 8px 10px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin: 5px auto;
}

.season-selector button {
    padding: 8px 16px;
    font-size: 16px;
    background-color: #587e6b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 38px;
}

.season-selector button:hover {
    background-color: #45a049;
}

.stage-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 8px auto 16px;
    max-width: 980px;
    padding: 0 10px;
}

.stage-tab {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: beige;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.stage-tab:hover {
    background: rgba(255, 255, 255, 0.16);
}

.stage-tab.active {
    border-color: rgba(30, 99, 179, 0.6);
    background: rgba(30, 99, 179, 0.2);
}

.stage-tab[data-stage="regular"].active {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
}

.stage-tab[data-stage="championship"].active {
    border-color: rgba(30, 99, 179, 0.6);
    background: rgba(30, 99, 179, 0.2);
}

.stage-tab[data-stage="conference"].active {
    border-color: rgba(90, 200, 168, 0.6);
    background: rgba(90, 200, 168, 0.18);
}

.stage-tab[data-stage="relegation"].active {
    border-color: rgba(226, 75, 75, 0.6);
    background: rgba(226, 75, 75, 0.18);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.current-season {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: beige;
}

.form-indicator {
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
    margin: 0 2px;
    font-weight: bold;
}

.form-indicator.form-upcoming {
    background-color: #888;
    border-color: #888;
    color: #fff;
}

.form-W {
    background-color: #4CAF50;
    color: white;
}

.form-D {
    background-color: #FFC107;
    color: black;
}

.form-L {
    background-color: #f44336;
    color: white;
}

.form-link {
    text-decoration: none;
}

.match-detail {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    z-index: 1000;
    font-size: 14px;
}

.table-description {
    align-items: center;
    justify-content: center;
    text-align: justify;
    display: flex;
    color: beige;
    margin: 0 15px;
}

table.rounds-table,
table.standings-table{
  width:auto;
  color: beige;
  margin-bottom: 20px;
}

.standings-table-wrap {
    background: linear-gradient(180deg, rgba(24, 34, 48, 0.9), rgba(10, 14, 20, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    margin: 10px auto 18px;
    max-width: 980px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    margin: 0 auto;
}

.standings-table th {
    background: linear-gradient(180deg, rgba(30, 44, 62, 0.95), rgba(20, 30, 42, 0.95));
    color: #f6f7fb;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.standings-table td,
.standings-table th {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.standings-table tbody tr:hover td:not(:first-child):not(:nth-child(2)) {
    background-color: rgba(88, 126, 107, 0.12);
}

.standings-table td:nth-child(4) {
    font-weight: 700;
    color: #ffffff;
}

.standings-table td {
    font-size: 13px;
    text-align: center;
}

.standings-table td:nth-child(2) {
    font-weight: 600;
}

.standings-table td.position-cell {
    width: 48px;
    font-weight: 700;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.standings-table .position-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-weight: 700;
}

.standings-table tr.zone-divider td {
    border-bottom: 2px dotted rgba(190, 190, 190, 0.8) !important;
}

.standings-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    margin: 8px 0 22px;
    color: beige;
    max-width: 980px;
}

@media (max-width: 640px) {
    .standings-legend {
        flex-direction: column;
        gap: 5px;
    }
}

.standings-legend .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.standings-legend .legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.standings-legend .legend-label {
    padding: 4px 3px;
    border-radius: 999px;
    font-weight: 600;
    background-color: transparent !important;
    color: inherit !important;
}

.standings-table-wrap,
.standings-legend {
    margin: 0 auto;
}

.standings-table td.form-column {
    display: table-cell;
    text-align: center;
    white-space: nowrap;
}

.standings-table .form-indicator {
    width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 999px;
    font-size: 11px;
}

.standings-table span.form-indicator.form-W,
.standings-table span.form-indicator.form-D,
.standings-table span.form-indicator.form-L {
    width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0;
    border-radius: 999px;
    font-size: 11px;
}

.match-link {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.match-link:hover {
    text-decoration: underline;
}

.playoff-pair-row td {
    background: #282828;
    font-weight: 700;
}

.stay-team {
    font-weight: 700;
    color: #5AC8A8;
}

.stay-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(90, 200, 168, 0.2);
    color: #5AC8A8;
    font-size: 11px;
    font-weight: 600;
}

.standings-view-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 24px auto 18px;
    flex-wrap: wrap;
}

.standings-view-tab {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: beige;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.standings-view-tab:hover {
    border-color: rgba(88, 126, 107, 0.7);
    background: rgba(88, 126, 107, 0.18);
}

.standings-view-tab.is-active {
    border-color: rgba(88, 126, 107, 0.95);
    background: linear-gradient(135deg, rgba(88, 126, 107, 0.38), rgba(16, 24, 33, 0.95));
    transform: translateY(-1px);
}

.standings-view-panel {
    display: none;
}

.standings-view-panel.is-active {
    display: block;
}

.simulation-note {
    max-width: 980px;
    margin: 0 auto 18px;
    color: rgba(245, 245, 220, 0.88);
    text-align: center;
    line-height: 1.6;
}

.simulation-summary-grid {
    max-width: 980px;
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.simulation-summary-card {
    background: linear-gradient(180deg, rgba(24, 34, 48, 0.92), rgba(10, 14, 20, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.simulation-summary-card .label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(245, 245, 220, 0.7);
    margin-bottom: 8px;
}

.simulation-summary-card .value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
}

.simulation-section-title {
    max-width: 980px;
    margin: 24px auto 12px;
    color: beige;
    text-align: center;
}

.simulation-table td:nth-child(3) {
    color: #9fe3c5;
}

.simulation-table td:nth-child(5),
.simulation-table td:nth-child(6),
.simulation-table td:nth-child(7) {
    font-weight: 700;
}

.simulation-comparison-table td:nth-child(4),
.simulation-comparison-table td:nth-child(6),
.simulation-comparison-table td:nth-child(8),
.simulation-comparison-table td:nth-child(10),
.simulation-comparison-table td:nth-child(12) {
    color: #9fe3c5;
}

.simulation-comparison-table td:nth-child(5),
.simulation-comparison-table td:nth-child(7),
.simulation-comparison-table td:nth-child(9),
.simulation-comparison-table td:nth-child(11),
.simulation-comparison-table td:nth-child(13) {
    color: #ffde8a;
}

.simulation-fixtures-table td:nth-child(4),
.simulation-fixtures-table td:nth-child(5),
.simulation-fixtures-table td:nth-child(6) {
    font-weight: 700;
}

.simulation-empty-state {
    max-width: 980px;
    margin: 0 auto 18px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(24, 34, 48, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: beige;
    text-align: center;
}

.simulation-lazy-container {
    min-height: 180px;
}

.simulation-loading-state {
    padding-top: 6px;
}

@media only screen and (max-width: 585px) {
  .rounds-table,
  .standings-table {
font-size: 12px
}
  h1.standing-table-header{
    font-size:25px;
  }
    }

@media only screen and (max-width: 768px) {
    .standings-view-tabs {
        gap: 8px;
        margin-top: 18px;
    }

    .standings-view-tab {
        width: calc(50% - 6px);
        min-width: 140px;
    }

    .standings-table-wrap {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .standings-table-wrap.standings-split-active {
        overflow: visible;
    }

    .standings-split {
        display: flex;
        border-radius: 12px;
        overflow: hidden;
    }

    .standings-split-left {
        flex: 0 0 auto;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .standings-split-right {
        flex: 1 1 auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    .standings-split-right::after {
        content: "Scroll \2192";
        position: sticky;
        right: 0;
        display: block;
        text-align: right;
        padding: 6px 10px;
        color: rgba(255, 255, 255, 0.65);
        font-size: 12px;
        letter-spacing: 0.3px;
        background: linear-gradient(90deg, rgba(10, 14, 20, 0) 0%, rgba(10, 14, 20, 0.85) 70%);
    }

    .standings-table-left,
    .standings-table-right {
        min-width: auto;
        width: auto;
    }

    .standings-table-right {
        width: max-content;
        min-width: 540px;
    }

    .standings-table-left td,
    .standings-table-left th,
    .standings-table-right td,
    .standings-table-right th {
        white-space: nowrap;
    }

    .standings-table tbody tr:hover td {
        background-color: transparent;
    }
}

.cup-page .breadcrumb-navigation {
    width: 100%;
    margin: 0 auto 8px;
}

.cup-page .breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: rgba(231, 238, 248, 0.72);
    font-size: 14px;
    font-weight: 800;
}

.cup-page .breadcrumb li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.cup-page .breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: rgba(231, 238, 248, 0.36);
}

.cup-page .breadcrumb a {
    color: rgba(231, 238, 248, 0.74);
    text-decoration: none;
}

.cup-page .breadcrumb a:hover {
    color: #28ffbb;
}

.cup-page .breadcrumb .active {
    color: #f4f1dc;
}

@media only screen and (max-width: 768px) {
    .cup-page .breadcrumb {
        font-size: 12px;
        gap: 6px;
    }

    .cup-page .breadcrumb li:not(:last-child)::after {
        margin-left: 6px;
    }
}
