/* ============================================
   Schedule Page
   ============================================ */
.standings-page {
    min-height: calc(100vh - var(--header-height));
}

.standings-header-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.back-btn {
    flex-shrink: 0;
    margin-top: 4px;
}

.standings-container {
    padding: 30px 8px 60px;
}

.league-name {
    font-size: 1.2rem;
}

.teams-list {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    max-width: 960px;
    margin: 0 auto;
}

.league-box {
    width: 50%;
}

.place-card {
    margin: 1rem 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: var(--transition);
}

.place-card:hover {
    box-shadow: var(--shadow-md);
}

.place-card.selected {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
}

.grouper { 
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex: 1;
    width: 100%;
}

.grouper .place-card {
    width: 100%;
}

.positions {
    width: 100%;
}

.positions tr th:nth-child(1) { 
    width: 50%;
    border-bottom: 1px solid var(--border-color);
}

.positions tr th:nth-child(2),
.positions tr th:nth-child(3),
.positions tr th:nth-child(4),
.positions tr th:nth-child(5),
.positions tr th:nth-child(6) {
    width: 10%;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.positions tr td:nth-child(1) { 
    width: 50%;
}

.positions tr td:nth-child(2),
.positions tr td:nth-child(3),
.positions tr td:nth-child(4),
.positions tr td:nth-child(5),
.positions tr td:nth-child(6) {
    width: 10%;
    text-align: right;
    color: var(--text-secondary);
}

.positions-worldcup {
    width: 100%;
}

.positions-worldcup tr th:nth-child(1) { 
    width: 44%;
    border-bottom: 1px solid var(--border-color);
}

.positions-worldcup tr th:nth-child(2),
.positions-worldcup tr th:nth-child(3),
.positions-worldcup tr th:nth-child(4),
.positions-worldcup tr th:nth-child(5),
.positions-worldcup tr th:nth-child(6),
.positions-worldcup tr th:nth-child(7),
.positions-worldcup tr th:nth-child(8) {
    width: 8%;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.positions-worldcup tr td:nth-child(1) { 
    width: 44%;
}

.positions-worldcup tr td:nth-child(2),
.positions-worldcup tr td:nth-child(3),
.positions-worldcup tr td:nth-child(4),
.positions-worldcup tr td:nth-child(5),
.positions-worldcup tr td:nth-child(6),
.positions-worldcup tr td:nth-child(7),
.positions-worldcup tr td:nth-child(8) {
    width: 8%;
    text-align: right;
    color: var(--text-secondary);
}

.place-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.place-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.team {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.team-home {
    text-align: left;
}

.team-away {
    text-align: right;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.team-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.team-winner {
    color: var(--accent-primary);
}

.team-loser {
    color: var(--text-secondary);
}

.place-vs {
    display: flex;
    flex-direction: row;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    padding: 0;
    width: 100%;
}

.place-score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
}


.place-vs span:first-child {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.draw-odds {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 12px;
}

.place-odds {
    display: flex;
    gap: 8px;
}

.odds-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: none;
    gap: 4px;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    width: 160px;
}

.odds-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.odds-btn.active {
    border-color: var(--accent-primary);
    background: rgba(229, 57, 53, 0.1);
}

.odds-btn .odds-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.odds-btn .odds-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.odds-btn .odds-value small {
    color: #666;
}

.place-result {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.standings-actions {
    text-align: center;
    margin-top: 32px;
}

.standings-actions .btn-large {
    min-width: 320px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .standings-header-top {
        flex-direction: column;
        gap: 12px;
    }

    .place-card {
        padding: 16px;
    }

    .team-name {
        font-size: 0.95rem;
    }

    .place-vs {
        padding: 0 12px;
    }

    .odds-btn {
        padding: 8px;
    }

    .odds-btn .odds-value {
        font-size: 1rem;
    }

    .standings-actions .btn-large {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .place-teams {
        flex-direction: column;
        gap: 8px;
    }

    .team-home,
    .team-away {
        text-align: center;
    }

    .place-odds {
        flex-wrap: wrap;
    }

    .odds-btn {
        min-width: calc(50% - 4px);
    }
}


/* ----  */

.place-teams {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.team {
    display: flex;
    flex-direction: row;
    gap: 4px;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.badge {
    padding: 0;
    background: transparent;
}

@media (max-width: 960px) {
    .teams-list {
        width: 90%;
        flex-direction: column;
    }
    .league-box {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .team-name {
        font-size: 1rem;
/*        font-weight: normal;*/
    }
    .odds-btn {
        max-width: 150px;
        min-width: 150px;
        width: 150px;
    }

/*
    .standings-container {
        padding: 20px 10px 40px;
    }
*/

    .grouper {
        flex-direction: column;
    }
}
