/* Tournament Standings */
.tournament-standings {
    margin: 0 auto;
}

.tournament-standings .standings-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tournament-standings .table-header {
    display: grid;
    grid-template-columns: 60px 1fr 60px 60px 60px 80px;
    gap: 16px;
    padding: 16px 20px;
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
}

.tournament-standings .table-row {
    display: grid;
    grid-template-columns: 60px 1fr 60px 60px 60px 80px;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
    transition: all 0.2s;
}

.tournament-standings .table-row:last-child {
    border-bottom: none;
}

.tournament-standings .table-row:hover {
    background: #f7fafc;
}

.tournament-standings .table-row.rank-first {
    background: linear-gradient(90deg, #fff5f0 0%, white 100%);
}

.tournament-standings .table-row.rank-second {
    background: linear-gradient(90deg, #f7fafc 0%, white 100%);
}

.tournament-standings .table-row.rank-third {
    background: linear-gradient(90deg, #fffaf0 0%, white 100%);
}

.tournament-standings .col-rank {
    text-align: center;
}

.tournament-standings .rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #edf2f7;
    font-size: 18px;
    font-weight: 700;
    color: #4a5568;
}

.tournament-standings .rank-first .rank-number {
    background: #f6ad55;
    color: white;
}

.tournament-standings .rank-second .rank-number {
    background: #a0aec0;
    color: white;
}

.tournament-standings .rank-third .rank-number {
    background: #dd6b20;
    color: white;
}

.tournament-standings .col-team {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.tournament-standings .col-stat {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
}

.tournament-standings .col-points {
    text-align: center;
}

.tournament-standings .points-value {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
}

.tournament-standings .empty-state {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    border: 2px dashed #cbd5e0;
}

.tournament-standings .empty-state svg {
    width: 64px;
    height: 64px;
    color: #a0aec0;
    margin: 0 auto 16px auto;
    display: block;
}

.tournament-standings .empty-state p {
    font-size: 18px;
    color: #718096;
    margin: 0;
    font-weight: 500;
}

/* Tournament Teams */
.tournament-teams {
    max-width: 1400px;
    margin: 0 auto;
}

.tournament-teams .teams-summary {
    display: flex;
    gap: 16px;
}

.tournament-teams .teams-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tournament-teams .summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.tournament-teams .summary-icon {
    width: 48px;
    height: 48px;
    background: #edf2f7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tournament-teams .summary-icon svg {
    width: 24px;
    height: 24px;
    color: #4299e1;
}

.tournament-teams .summary-value {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
    display: block;
    margin-bottom: 4px;
}

.tournament-teams .summary-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
}

.tournament-teams .team-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tournament-teams .team-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Compact Team Card */
.tournament-teams .team-card.compact {
    padding: 16px;
}

.tournament-teams .team-card.compact .team-avatar {
    width: 44px;
    height: 44px;
}

.tournament-teams .team-card.compact .team-avatar svg {
    width: 24px;
    height: 24px;
}

.tournament-teams .team-card.compact .team-info h3 {
    font-size: 16px;
}

.tournament-teams .team-card.compact .stat-box {
    padding: 8px;
}

.tournament-teams .team-card.compact .stat-box.primary {
    padding: 12px;
}

.tournament-teams .team-card.compact .stat-icon {
    width: 30px;
    height: 30px;
}

.tournament-teams .team-card.compact .stat-value {
    font-size: 16px;
}

.tournament-teams .team-card.compact .stat-value-large {
    font-size: 24px;
}

/* Table Row Team Card */
.tournament-teams .team-card.table-row {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    border-radius: 12px;
}

.tournament-teams .team-card.table-row .team-header {
    flex: 0 0 auto;
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
    min-width: 250px;
}

.tournament-teams .team-card.table-row .team-stats-grid {
    flex: 1;
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.tournament-teams .team-card.table-row .stat-box {
    flex: 1;
    padding: 10px 12px;
}

.tournament-teams .team-card.table-row .stat-box.primary {
    padding: 12px 16px;
}

.tournament-teams .team-card.table-row .team-players {
    flex: 0 0 auto;
    padding-top: 0;
    border-top: none;
    margin-top: 0;
    min-width: 200px;
}

.tournament-teams .team-card.table-row .players-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.tournament-teams .team-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

.tournament-teams .team-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.tournament-teams .team-avatar svg {
    width: 32px;
    height: 32px;
    color: white;
    flex-shrink: 0;
}

.tournament-teams .team-info {
    flex: 1;
}

.tournament-teams .team-info h3 {
    font-size: 18px;
    color: #2d3748;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.tournament-teams .position-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #edf2f7;
    border-radius: 6px;
    font-size: 12px;
    color: #4a5568;
    font-weight: 600;
}

.tournament-teams .team-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.tournament-teams .stat-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 10px;
    transition: all 0.2s;
}

.tournament-teams .stat-box:hover {
    background: #edf2f7;
}

.tournament-teams .stat-box.primary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    padding: 16px;
}

.tournament-teams .stat-box.primary .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tournament-teams .stat-box.primary .stat-value-large,
.tournament-teams .stat-box.primary .stat-label {
    color: white;
}

.tournament-teams .stat-icon {
    width: 36px;
    height: 36px;
    background: #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tournament-teams .stat-icon.wins {
    background: #c6f6d5;
    color: #22543d;
}

.tournament-teams .stat-icon.losses {
    background: #fed7d7;
    color: #742a2a;
}

.tournament-teams .stat-icon.draws {
    background: #bee3f8;
    color: #2c5282;
}

.tournament-teams .stat-icon svg {
    width: 20px;
    height: 20px;
    color: #4a5568;
    flex-shrink: 0;
}

.tournament-teams .stat-box.primary .stat-icon svg {
    color: white;
}

.tournament-teams .stat-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tournament-teams .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.2;
}

.tournament-teams .stat-value-large {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}

.tournament-teams .stat-label {
    font-size: 11px;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.tournament-teams .team-players {
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.tournament-teams .players-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
}

.tournament-teams .players-header svg {
    width: 16px;
    height: 16px;
    color: #4299e1;
}

.tournament-teams .players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tournament-teams .players-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tournament-teams .player-avatar-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    transition: all 0.2s ease;
    border: 2px solid #cbd5e0;
}

.tournament-teams .player-avatar-icon:hover {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-color: #2c5282;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.tournament-teams .player-avatar-icon svg {
    width: 20px;
    height: 20px;
    color: #4a5568;
    transition: color 0.2s ease;
}

.tournament-teams .player-avatar-icon:hover svg {
    color: white;
}

.tournament-teams .player-badge {
    padding: 6px 12px;
    background: #edf2f7;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
}

.tournament-teams .empty-state {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    border: 2px dashed #cbd5e0;
}

.tournament-teams .empty-state svg {
    width: 64px;
    height: 64px;
    color: #a0aec0;
    margin: 0 auto 16px auto;
    display: block;
}

.tournament-teams .empty-state p {
    font-size: 18px;
    color: #718096;
    margin: 0;
    font-weight: 500;
}

/* Tournament Teams - Compact Table-Row Mode */
.tournament-teams .teams-compact-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tournament-teams .team-compact-row {
    display: grid;
    grid-template-columns: 50px 1fr auto 90px;
    gap: 10px;
    align-items: center;
    padding: 5px 14px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    min-height: 50px;
}

.tournament-teams .team-compact-row:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #cbd5e0;
}

.tournament-teams .team-position {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tournament-teams .position-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    font-size: 14px;
    font-weight: 700;
    color: #4a5568;
}

.tournament-teams .team-name-column {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tournament-teams .team-avatar-small {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.tournament-teams .team-avatar-small svg {
    width: 18px;
    height: 18px;
    color: white;
}

.tournament-teams .team-compact-row .team-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tournament-teams .team-stats-inline {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.tournament-teams .stat-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 10px;
    background: #f7fafc;
    border-radius: 6px;
    min-width: 48px;
}

.tournament-teams .stat-compact.primary {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    min-width: 60px;
    padding: 8px 12px;
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.tournament-teams .stat-compact .stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
}

.tournament-teams .stat-compact.primary .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.tournament-teams .stat-compact .stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
}

.tournament-teams .stat-compact.primary .stat-value {
    color: white;
    font-size: 16px;
}

.tournament-teams .stat-compact.wins {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.tournament-teams .stat-compact.wins .stat-value {
    color: #22543d;
}

.tournament-teams .stat-compact.losses {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.tournament-teams .stat-compact.losses .stat-value {
    color: #742a2a;
}

.tournament-teams .stat-compact.draws {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
}

.tournament-teams .stat-compact.draws .stat-value {
    color: #2c5282;
}

.tournament-teams .team-players-count {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    flex-shrink: 0;
}

.tournament-teams .team-players-count svg {
    width: 14px;
    height: 14px;
    color: #4299e1;
}

/* Responsive adjustments for Tournament Teams */
@media (max-width: 767px) {
    .tournament-teams .teams-summary {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .tournament-teams .summary-card {
        width: 100%;
    }

    .tournament-teams .team-card {
        padding: 20px;
    }

    .tournament-teams .team-stats-grid {
        grid-template-columns: 1fr;
    }

    .tournament-teams .team-card.table-row {
        flex-direction: column;
        align-items: stretch;
    }

    .tournament-teams .team-card.table-row .team-header {
        min-width: auto;
    }

    .tournament-teams .team-card.table-row .team-stats-grid {
        flex-direction: column;
    }

    .tournament-teams .team-card.table-row .team-players {
        min-width: auto;
    }

    .tournament-teams .team-compact-row {
        grid-template-columns: 36px 1fr auto;
        gap: 6px;
        padding: 8px 10px;
    }

    .tournament-teams .position-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .tournament-teams .team-avatar-small {
        display: none;
    }

    .tournament-teams .team-compact-row .team-name {
        font-size: 13px;
    }

    .tournament-teams .team-stats-inline {
        grid-column: auto;
        grid-row: auto;
        justify-content: flex-end;
        gap: 4px;
        margin-top: 0;
    }

    .tournament-teams .stat-compact {
        min-width: 36px;
        padding: 3px 5px;
    }

    .tournament-teams .stat-compact.primary {
        min-width: 40px;
        padding: 3px 6px;
    }

    .tournament-teams .stat-compact .stat-label {
        font-size: 9px;
    }

    .tournament-teams .stat-compact .stat-value {
        font-size: 12px;
    }

    .tournament-teams .stat-compact.primary .stat-value {
        font-size: 13px;
    }

    .tournament-teams .team-players-count {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .tournament-teams .team-card {
        padding: 20px;
    }

    .tournament-teams .team-compact-row {
        grid-template-columns: 55px 1fr auto 90px;
    }

    .tournament-teams .stat-compact {
        min-width: 50px;
    }

    .tournament-teams .stat-compact.primary {
        min-width: 60px;
    }
}

/* Tournament Player Stats */
.tournament-player-stats {
    max-width: 1400px;
    margin: 0 auto;
}

.tournament-player-stats .stats-summary {
    display: flex;
    gap: 16px;
}

.tournament-player-stats .player-stats-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tournament-player-stats .summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.tournament-player-stats .summary-card.highlight {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-color: #2c5282;
}

.tournament-player-stats .summary-card.highlight .summary-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tournament-player-stats .summary-card.highlight .summary-value,
.tournament-player-stats .summary-card.highlight .summary-label {
    color: white;
}

.tournament-player-stats .summary-icon {
    width: 48px;
    height: 48px;
    background: #edf2f7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tournament-player-stats .summary-icon svg {
    width: 24px;
    height: 24px;
    color: #4299e1;
}

.tournament-player-stats .summary-value {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
    display: block;
    margin-bottom: 4px;
}

.tournament-player-stats .summary-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
}

.tournament-player-stats .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    gap: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
}

.tournament-player-stats .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tournament-player-stats .loading-container p {
    font-size: 18px;
    color: #718096;
    margin: 0;
}

.tournament-player-stats .error-message {
    background: #fed7d7;
    border: 1px solid #fc8181;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tournament-player-stats .error-message svg {
    width: 24px;
    height: 24px;
    color: #c53030;
    flex-shrink: 0;
    margin-top: 2px;
}

.tournament-player-stats .error-message p {
    color: #742a2a;
    margin: 0;
    font-size: 16px;
}

.tournament-player-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tournament-player-stats .player-stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tournament-player-stats .player-stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.tournament-player-stats .player-stat-card.rank-first {
    border-top: 4px solid #f6ad55;
    background: linear-gradient(180deg, #fffaf0 0%, white 100%);
}

.tournament-player-stats .player-stat-card.rank-second {
    border-top: 4px solid #a0aec0;
    background: linear-gradient(180deg, #f7fafc 0%, white 100%);
}

.tournament-player-stats .player-stat-card.rank-third {
    border-top: 4px solid #dd6b20;
    background: linear-gradient(180deg, #fffaf0 0%, white 100%);
}

/* Compact Player Stat Card */
.tournament-player-stats .player-stat-card.compact {
    padding: 16px;
}

.tournament-player-stats .player-stat-card.compact .player-avatar {
    width: 44px;
    height: 44px;
}

.tournament-player-stats .player-stat-card.compact .player-avatar svg {
    width: 24px;
    height: 24px;
}

.tournament-player-stats .player-stat-card.compact .player-info h3 {
    font-size: 16px;
}

.tournament-player-stats .player-stat-card.compact .rank-badge {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.tournament-player-stats .player-stat-card.compact .stat-box {
    padding: 8px;
}

.tournament-player-stats .player-stat-card.compact .stat-box.primary {
    padding: 12px;
}

.tournament-player-stats .player-stat-card.compact .stat-icon {
    width: 30px;
    height: 30px;
}

.tournament-player-stats .player-stat-card.compact .stat-value {
    font-size: 16px;
}

.tournament-player-stats .player-stat-card.compact .stat-value-large {
    font-size: 24px;
}

/* Table Row Player Stat Card */
.tournament-player-stats .player-stat-card.table-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    border-radius: 12px;
}

.tournament-player-stats .player-stat-card.table-row .rank-badge {
    position: static;
}

.tournament-player-stats .player-stat-card.table-row .player-info {
    flex: 0 0 auto;
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
    min-width: 200px;
}

.tournament-player-stats .player-stat-card.table-row .stats-grid-layout {
    flex: 1;
    display: flex;
    gap: 12px;
    grid-template-columns: none;
}

.tournament-player-stats .player-stat-card.table-row .stat-box {
    flex: 1;
    padding: 10px 12px;
}

.tournament-player-stats .player-stat-card.table-row .stat-box.primary {
    padding: 12px 16px;
}

.tournament-player-stats .rank-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: #edf2f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #4a5568;
}

.tournament-player-stats .rank-badge.rank-first {
    background: #f6ad55;
    color: white;
}

.tournament-player-stats .rank-badge.rank-second {
    background: #a0aec0;
    color: white;
}

.tournament-player-stats .rank-badge.rank-third {
    background: #dd6b20;
    color: white;
}

.tournament-player-stats .rank-badge svg {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 2px;
    left: 2px;
    opacity: 0.3;
}

.tournament-player-stats .player-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.tournament-player-stats .player-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.tournament-player-stats .player-avatar svg {
    width: 32px;
    height: 32px;
    color: white;
}

.tournament-player-stats .player-info h3 {
    font-size: 18px;
    color: #2d3748;
    margin: 0;
    font-weight: 700;
    flex: 1;
}

.tournament-player-stats .stats-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tournament-player-stats .stat-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 10px;
    transition: all 0.2s;
}

.tournament-player-stats .stat-box:hover {
    background: #edf2f7;
}

.tournament-player-stats .stat-box.primary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    padding: 16px;
}

.tournament-player-stats .stat-box.primary .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tournament-player-stats .stat-box.primary .stat-value-large,
.tournament-player-stats .stat-box.primary .stat-label {
    color: white;
}

.tournament-player-stats .stat-icon {
    width: 36px;
    height: 36px;
    background: #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tournament-player-stats .stat-icon svg {
    width: 20px;
    height: 20px;
    color: #4a5568;
}

.tournament-player-stats .stat-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tournament-player-stats .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.2;
}

.tournament-player-stats .stat-value-large {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}

.tournament-player-stats .stat-label {
    font-size: 11px;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.tournament-player-stats .empty-state {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    border: 2px dashed #cbd5e0;
}

.tournament-player-stats .empty-state svg {
    width: 64px;
    height: 64px;
    color: #a0aec0;
    margin: 0 auto 16px auto;
    display: block;
}

.tournament-player-stats .empty-state p {
    font-size: 18px;
    color: #718096;
    margin: 0;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .tournament-player-stats .stats-summary {
        flex-direction: column;
        width: 100%;
    }

    .tournament-player-stats .summary-card {
        width: 100%;
    }

    .tournament-player-stats .player-stat-card.table-row {
        flex-direction: column;
        align-items: stretch;
    }

    .tournament-player-stats .player-stat-card.table-row .player-info {
        min-width: auto;
    }

    .tournament-player-stats .player-stat-card.table-row .stats-grid-layout {
        flex-direction: column;
    }
}

/* Tournament Schedule */
.tournament-schedule {
    max-width: 1400px;
    margin: 0 auto;
}

.tournament-schedule .matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tournament-schedule .stage-section {
    margin-bottom: 48px;
}

.tournament-schedule .stage-header {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    border-left: 4px solid #4299e1;
}

.tournament-schedule .stage-header h3 {
    font-size: 24px;
    color: #2d3748;
    margin: 0 0 8px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tournament-schedule .stage-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.tournament-schedule .stage-badge.badge-notstarted {
    background: #edf2f7;
    color: #4a5568;
}

.tournament-schedule .stage-badge.badge-active {
    background: #bee3f8;
    color: #2c5282;
}

.tournament-schedule .stage-badge.badge-completed {
    background: #c6f6d5;
    color: #22543d;
}

.tournament-schedule .stage-description {
    font-size: 15px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

.tournament-schedule .round-section {
    margin-bottom: 32px;
}

.tournament-schedule .round-header {
    margin-bottom: 20px;
}

.tournament-schedule .round-section h3,
.tournament-schedule .round-section h4 {
    font-size: 20px;
    color: #2d3748;
    margin: 0 0 20px 0;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.tournament-schedule .versus-divider {
    text-align: center;
    padding: 6px 0;
}

.tournament-schedule .versus-divider span {
    display: inline-block;
    padding: 4px 12px;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

/* Responsive adjustments for Tournament Schedule */
@media (max-width: 767px) {
    .tournament-schedule .stage-header h3 {
        font-size: 20px;
    }

    .tournament-schedule .round-section h3,
    .tournament-schedule .round-section h4 {
        font-size: 18px;
    }
}

/* Tournament Schedule - Compact Controls */
.tournament-schedule .schedule-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.tournament-schedule .round-filter-wrapper {
    flex: 1;
    min-width: 200px;
}

.tournament-schedule .round-filter-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #2d3748;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.tournament-schedule .round-filter-select:hover {
    border-color: #cbd5e0;
    background-color: #f7fafc;
}

.tournament-schedule .round-filter-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.tournament-schedule .view-mode-wrapper {
    flex: 0 0 auto;
}

/* Tournament Schedule - Compact Match Table */
.tournament-schedule .matches-compact-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tournament-schedule .match-compact-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.tournament-schedule .match-compact-row:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #cbd5e0;
}

.tournament-schedule .match-compact-row.completed {
    background: linear-gradient(90deg, #f0fff4 0%, white 100%);
    border-left: 4px solid #10b981;
}

.tournament-schedule .match-compact-row.completed:hover {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.tournament-schedule .match-compact-row.bye-match {
    background: linear-gradient(90deg, #f7fafc 0%, white 100%);
    border-left: 4px solid #a0aec0;
}

.tournament-schedule .match-compact-row.clickable {
    cursor: pointer;
}

.tournament-schedule .match-compact-row.clickable:active {
    transform: scale(0.99);
}

/* Match Info Section */
.tournament-schedule .match-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tournament-schedule .match-number {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    white-space: nowrap;
}

/* Match Teams Horizontal Layout */
.tournament-schedule .match-teams-horizontal {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.tournament-schedule .team-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f7fafc;
    border-radius: 8px;
    transition: all 0.2s;
    min-width: 0;
    flex: 1;
}

.tournament-schedule .team-display:hover {
    background: #edf2f7;
}

.tournament-schedule .team-display.winner {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

.tournament-schedule .team-display .team-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.tournament-schedule .team-display.winner .team-name {
    color: #065f46;
    font-weight: 700;
}

.tournament-schedule .team-scoring {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tournament-schedule .team-display .team-score {
    font-size: 13px;
    font-weight: 600;
    color: #718096;
    padding: 4px 8px;
    background: rgba(237, 242, 247, 0.6);
    border-radius: 6px;
    white-space: nowrap;
}

.tournament-schedule .team-display.winner .team-score {
    background: rgba(198, 246, 213, 0.8);
    color: #065f46;
}

.tournament-schedule .team-display .team-points {
    font-size: 24px;
    font-weight: 700;
    color: #4299e1;
    flex-shrink: 0;
    min-width: 40px;
    text-align: center;
}

.tournament-schedule .team-display.winner .team-points {
    color: #059669;
}

.tournament-schedule .vs-separator {
    font-size: 13px;
    font-weight: 700;
    color: #a0aec0;
    text-transform: uppercase;
    flex-shrink: 0;
}

.tournament-schedule .bye-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    border-radius: 8px;
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
}

.tournament-schedule .bye-label svg {
    width: 18px;
    height: 18px;
    color: #4299e1;
    flex-shrink: 0;
}

.tournament-schedule .match-details-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #4299e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tournament-schedule .match-details-link:hover {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-color: #3182ce;
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.tournament-schedule .match-details-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tournament-schedule .round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 8px;
}

.tournament-schedule .round-header h3,
.tournament-schedule .round-header h4 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 20px;
    color: #2d3748;
    font-weight: 700;
}

.tournament-schedule .round-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #edf2f7;
    border-radius: 6px;
    font-size: 14px;
    color: #4a5568;
    font-weight: 600;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .tournament-schedule .schedule-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .tournament-schedule .round-filter-wrapper {
        min-width: 100%;
    }

    .tournament-schedule .match-compact-row {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 8px 10px;
    }

    .tournament-schedule .match-info {
        gap: 5px;
        flex-shrink: 0;
    }

    .tournament-schedule .match-number {
        font-size: 12px;
    }

    .tournament-schedule .match-teams-horizontal {
        flex-direction: row;
        gap: 4px;
        flex: 1;
        min-width: 0;
    }

    .tournament-schedule .team-display {
        padding: 4px 6px;
        gap: 4px;
        width: auto;
    }

    .tournament-schedule .team-display .team-name {
        font-size: 12px;
    }

    .tournament-schedule .team-scoring {
        display: none;
    }

    .tournament-schedule .vs-separator {
        font-size: 11px;
        flex-shrink: 0;
    }

    .tournament-schedule .match-details-link {
        display: none;
    }

    .tournament-schedule .round-header h3,
    .tournament-schedule .round-header h4 {
        font-size: 18px;
    }

    .tournament-schedule .round-date {
        font-size: 13px;
        padding: 4px 10px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .tournament-schedule .match-compact-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .tournament-schedule .match-teams-horizontal {
        flex: 1 1 100%;
    }

    .tournament-schedule .match-details-link {
        margin-left: auto;
    }
}

/* Tournament Standings - Compact Table */
.tournament-standings .view-mode-wrapper {
    flex: 0 0 auto;
}

.tournament-standings .standings-compact-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tournament-standings .team-compact-row {
    display: grid;
    grid-template-columns: 45px 1fr auto 70px;
    gap: 10px;
    align-items: center;
    padding: 5px 14px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    min-height: 50px;
}

.tournament-standings .team-compact-row:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #cbd5e0;
}

.tournament-standings .team-compact-row.rank-first {
    background: linear-gradient(90deg, #fff5f0 0%, white 100%);
    border-left: 4px solid #f6ad55;
    box-shadow: 0 2px 12px rgba(246, 173, 85, 0.2);
}

.tournament-standings .team-compact-row.rank-second {
    background: linear-gradient(90deg, #f7fafc 0%, white 100%);
    border-left: 4px solid #a0aec0;
    box-shadow: 0 2px 12px rgba(160, 174, 192, 0.2);
}

.tournament-standings .team-compact-row.rank-third {
    background: linear-gradient(90deg, #fffaf0 0%, white 100%);
    border-left: 4px solid #dd6b20;
    box-shadow: 0 2px 12px rgba(221, 107, 32, 0.2);
}

.tournament-standings .team-rank {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tournament-standings .team-compact-row .rank-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #edf2f7;
    font-size: 14px;
    font-weight: 700;
    color: #4a5568;
}

.tournament-standings .team-compact-row.rank-first .rank-number {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(246, 173, 85, 0.4);
}

.tournament-standings .team-compact-row.rank-second .rank-number {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(160, 174, 192, 0.4);
}

.tournament-standings .team-compact-row.rank-third .rank-number {
    background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(221, 107, 32, 0.4);
}

.tournament-standings .team-name-column {
    min-width: 0;
}

.tournament-standings .team-compact-row .team-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tournament-standings .team-stats {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.tournament-standings .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 5px 8px;
    background: #f7fafc;
    border-radius: 6px;
}

.tournament-standings .stat-item .stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
}

.tournament-standings .stat-item .stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #4a5568;
}

.tournament-standings .stat-item.wins {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.tournament-standings .stat-item.wins .stat-value {
    color: #22543d;
}

.tournament-standings .stat-item.losses {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.tournament-standings .stat-item.losses .stat-value {
    color: #742a2a;
}

.tournament-standings .stat-item.draws {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
}

.tournament-standings .stat-item.draws .stat-value {
    color: #2c5282;
}

.tournament-standings .team-points {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tournament-standings .team-compact-row .points-value {
    padding: 8px 14px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

@media (max-width: 767px) {
    .tournament-standings .team-compact-row {
        grid-template-columns: 36px 1fr auto 58px;
        gap: 6px;
        padding: 8px 10px;
    }

    .tournament-standings .team-compact-row .rank-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .tournament-standings .team-compact-row .team-name {
        font-size: 13px;
    }

    .tournament-standings .team-stats {
        grid-column: auto;
        grid-row: auto;
        justify-content: flex-start;
        gap: 4px;
        margin-top: 0;
    }

    .tournament-standings .stat-item {
        padding: 3px 5px;
        gap: 0;
    }

    .tournament-standings .stat-item .stat-label {
        font-size: 9px;
    }

    .tournament-standings .team-points {
        grid-column: auto;
        grid-row: auto;
    }

    .tournament-standings .team-compact-row .points-value {
        padding: 5px 8px;
        font-size: 13px;
    }

    .tournament-standings .stat-item .stat-value {
        font-size: 12px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .tournament-standings .team-compact-row {
        grid-template-columns: 45px 1fr auto 75px;
    }
}

/* League Podium */
.tournament-podium {
    margin-bottom: 28px;
    position: relative;
}

.tournament-podium .podium-sparkles-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.tournament-podium .podium-stage {
    position: relative;
    z-index: 1;
}

/* Sparkle stars */
.tournament-podium .sp {
    position: absolute;
    line-height: 1;
    animation: sp-twinkle 2.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sp-twinkle {
    0%, 100% { opacity: 0;   transform: scale(0.2) rotate(0deg);  }
    45%, 55% { opacity: 1;   transform: scale(1.1) rotate(25deg); }
}

.tournament-podium .sp-1  { top: 8%;  left: 6%;  font-size: 12px; color: #f6ad55; animation-delay: 0s;    }
.tournament-podium .sp-2  { top: 2%;  left: 21%; font-size: 18px; color: #fbd38d; animation-delay: 0.4s;  }
.tournament-podium .sp-3  { top: 15%; left: 34%; font-size: 10px; color: #ed8936; animation-delay: 0.8s;  }
.tournament-podium .sp-4  { top: 0%;  left: 50%; font-size: 20px; color: #f6ad55; animation-delay: 0.2s;  }
.tournament-podium .sp-5  { top: 10%; left: 64%; font-size: 11px; color: #fbd38d; animation-delay: 1.0s;  }
.tournament-podium .sp-6  { top: 3%;  left: 78%; font-size: 16px; color: #f6ad55; animation-delay: 0.6s;  }
.tournament-podium .sp-7  { top: 10%; left: 92%; font-size: 12px; color: #a0aec0; animation-delay: 1.4s;  }
.tournament-podium .sp-8  { top: 22%; left: 2%;  font-size: 10px; color: #a0aec0; animation-delay: 1.8s;  }
.tournament-podium .sp-9  { top: 18%; left: 88%; font-size: 14px; color: #fbd38d; animation-delay: 0.3s;  }
.tournament-podium .sp-10 { top: 28%; left: 48%; font-size: 9px;  color: #ed8936; animation-delay: 2.1s;  }

/* Confetti pieces */
.tournament-podium .cf {
    position: absolute;
    width: 7px;
    height: 9px;
    border-radius: 2px;
    opacity: 0;
    animation: cf-fall 3.2s ease-in infinite;
    pointer-events: none;
}

@keyframes cf-fall {
    0%   { transform: translateY(0)     rotate(0deg);   opacity: 1;   }
    70%  {                                              opacity: 0.6; }
    100% { transform: translateY(110px) rotate(420deg); opacity: 0;   }
}

.tournament-podium .cf-1 { top: -8px; left: 12%; background: #f6ad55; animation-delay: 0s;    }
.tournament-podium .cf-2 { top: -8px; left: 27%; background: #63b3ed; animation-delay: 0.5s;  width: 5px;  height: 11px; }
.tournament-podium .cf-3 { top: -8px; left: 42%; background: #68d391; animation-delay: 1.0s;  }
.tournament-podium .cf-4 { top: -8px; left: 55%; background: #fc8181; animation-delay: 0.3s;  width: 8px;  height: 6px;  }
.tournament-podium .cf-5 { top: -8px; left: 68%; background: #fbd38d; animation-delay: 0.8s;  }
.tournament-podium .cf-6 { top: -8px; left: 80%; background: #b794f4; animation-delay: 1.5s;  width: 6px;  height: 10px; }
.tournament-podium .cf-7 { top: -8px; left: 20%; background: #a0aec0; animation-delay: 2.0s;  }
.tournament-podium .cf-8 { top: -8px; left: 62%; background: #f6ad55; animation-delay: 1.2s;  width: 5px;  height: 8px;  }

.tournament-podium .podium-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.tournament-podium .podium-title-row h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.tournament-podium .podium-stage {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
}

.tournament-podium .podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 200px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.tournament-podium .podium-slot:hover {
    transform: translateY(-4px);
}

.tournament-podium .podium-avatar-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    width: 100%;
}

.tournament-podium .podium-crown {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 2px;
}

.tournament-podium .podium-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.tournament-podium .podium-slot.gold .podium-avatar {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    box-shadow: 0 4px 14px rgba(246, 173, 85, 0.5);
    width: 64px;
    height: 64px;
    font-size: 26px;
}

.tournament-podium .podium-slot.silver .podium-avatar {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    box-shadow: 0 4px 12px rgba(160, 174, 192, 0.45);
}

.tournament-podium .podium-slot.bronze .podium-avatar {
    background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
    box-shadow: 0 4px 12px rgba(221, 107, 32, 0.4);
}

.tournament-podium .podium-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.tournament-podium .podium-team-name {
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-podium .podium-slot.gold .podium-team-name {
    font-size: 14px;
    max-width: 140px;
}

.tournament-podium .podium-points {
    font-size: 12px;
    color: #718096;
    font-weight: 600;
    margin-top: 2px;
}

.tournament-podium .podium-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 4px 4px;
    padding: 10px 8px 8px;
}

.tournament-podium .podium-slot.gold .podium-block {
    background: linear-gradient(160deg, #f6ad55 0%, #ed8936 100%);
    height: 100px;
    box-shadow: 0 4px 16px rgba(246, 173, 85, 0.4);
}

.tournament-podium .podium-slot.silver .podium-block {
    background: linear-gradient(160deg, #a0aec0 0%, #718096 100%);
    height: 76px;
    box-shadow: 0 4px 12px rgba(160, 174, 192, 0.35);
}

.tournament-podium .podium-slot.bronze .podium-block {
    background: linear-gradient(160deg, #dd6b20 0%, #c05621 100%);
    height: 58px;
    box-shadow: 0 4px 12px rgba(221, 107, 32, 0.3);
}

.tournament-podium .podium-medal {
    font-size: 22px;
    line-height: 1;
}

.tournament-podium .podium-rank-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

@media (max-width: 480px) {
    .tournament-podium .podium-team-name {
        font-size: 11px;
        max-width: 90px;
    }

    .tournament-podium .podium-slot.gold .podium-team-name {
        font-size: 12px;
        max-width: 100px;
    }

    .tournament-podium .podium-avatar {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .tournament-podium .podium-slot.gold .podium-avatar {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .tournament-podium .podium-slot.gold .podium-block {
        height: 80px;
    }

    .tournament-podium .podium-slot.silver .podium-block {
        height: 62px;
    }

    .tournament-podium .podium-slot.bronze .podium-block {
        height: 48px;
    }
}

/* Player Stats - Compact Table-Row Mode */
.tournament-player-stats .player-stats-compact-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tournament-player-stats .player-compact-row {
    display: grid;
    grid-template-columns: 45px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    min-height: 50px;
}

.tournament-player-stats .player-compact-row:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #cbd5e0;
}

.tournament-player-stats .player-compact-row.rank-first {
    background: linear-gradient(90deg, #fff5f0 0%, white 100%);
    border-left: 4px solid #f6ad55;
    box-shadow: 0 2px 12px rgba(246, 173, 85, 0.2);
}

.tournament-player-stats .player-compact-row.rank-second {
    background: linear-gradient(90deg, #f7fafc 0%, white 100%);
    border-left: 4px solid #a0aec0;
    box-shadow: 0 2px 12px rgba(160, 174, 192, 0.2);
}

.tournament-player-stats .player-compact-row.rank-third {
    background: linear-gradient(90deg, #fffaf0 0%, white 100%);
    border-left: 4px solid #dd6b20;
    box-shadow: 0 2px 12px rgba(221, 107, 32, 0.2);
}

.tournament-player-stats .player-rank {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tournament-player-stats .player-compact-row .rank-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf2f7;
    font-size: 16px;
    font-weight: 700;
    color: #4a5568;
}

.tournament-player-stats .player-compact-row .rank-number.rank-first {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(246, 173, 85, 0.4);
}

.tournament-player-stats .player-compact-row .rank-number.rank-second {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(160, 174, 192, 0.4);
}

.tournament-player-stats .player-compact-row .rank-number.rank-third {
    background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(221, 107, 32, 0.4);
}

.tournament-player-stats .player-name-column {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tournament-player-stats .player-avatar-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.tournament-player-stats .player-avatar-small svg {
    color: white;
}

.tournament-player-stats .player-compact-row .player-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tournament-player-stats .player-stats-inline {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.tournament-player-stats .stat-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 8px;
    min-width: 60px;
}

.tournament-player-stats .stat-compact.primary {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    min-width: 80px;
    padding: 10px 14px;
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.tournament-player-stats .stat-compact .stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
}

.tournament-player-stats .stat-compact.primary .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.tournament-player-stats .stat-compact .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
}

.tournament-player-stats .stat-compact.primary .stat-value {
    color: white;
    font-size: 20px;
}

@media (max-width: 767px) {
    .tournament-player-stats .player-compact-row {
        grid-template-columns: 36px 1fr auto;
        gap: 6px;
        padding: 8px 10px;
    }

    .tournament-player-stats .player-compact-row .rank-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .tournament-player-stats .player-avatar-small {
        display: none;
    }

    .tournament-player-stats .player-compact-row .player-name {
        font-size: 13px;
    }

    .tournament-player-stats .player-stats-inline {
        grid-column: auto;
        grid-row: auto;
        justify-content: flex-end;
        gap: 4px;
        margin-top: 0;
    }

    .tournament-player-stats .stat-compact {
        min-width: 38px;
        padding: 3px 5px;
    }

    .tournament-player-stats .stat-compact.primary {
        min-width: 50px;
        padding: 3px 6px;
    }

    .tournament-player-stats .stat-compact .stat-label {
        font-size: 9px;
    }

    .tournament-player-stats .stat-compact .stat-value {
        font-size: 12px;
    }

    .tournament-player-stats .stat-compact.primary .stat-value {
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .tournament-player-stats .player-compact-row {
        grid-template-columns: 45px 1fr auto;
    }

    .tournament-player-stats .stat-compact {
        min-width: 55px;
    }

    .tournament-player-stats .stat-compact.primary {
        min-width: 70px;
    }
}

/* Keep old table-row styles for card mode compatibility */
.tournament-player-stats .player-stat-card.table-row {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.tournament-player-stats .player-stat-card.table-row .rank-badge {
    position: static;
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.tournament-player-stats .player-stat-card.table-row .player-info {
    flex: 0 0 auto;
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
    min-width: 200px;
}

.tournament-player-stats .player-stat-card.table-row .player-avatar {
    width: 48px;
    height: 48px;
}

.tournament-player-stats .player-stat-card.table-row .player-avatar svg {
    width: 28px;
    height: 28px;
}

.tournament-player-stats .player-stat-card.table-row .player-info h3 {
    font-size: 16px;
}

.tournament-player-stats .player-stat-card.table-row .stats-grid-layout {
    flex: 1;
    display: flex;
    gap: 8px;
    grid-template-columns: none;
    flex-wrap: wrap;
}

.tournament-player-stats .player-stat-card.table-row .stat-box {
    flex: 0 1 auto;
    padding: 8px 12px;
    min-width: 90px;
}

.tournament-player-stats .player-stat-card.table-row .stat-box.primary {
    padding: 10px 16px;
    min-width: 120px;
}

.tournament-player-stats .player-stat-card.table-row .stat-icon {
    width: 30px;
    height: 30px;
}

.tournament-player-stats .player-stat-card.table-row .stat-value {
    font-size: 16px;
}

.tournament-player-stats .player-stat-card.table-row .stat-value-large {
    font-size: 24px;
}

.tournament-player-stats .player-stat-card.table-row .stat-label {
    font-size: 10px;
}

@media (max-width: 767px) {
    .tournament-player-stats .player-stat-card.table-row {
        grid-template-columns: 40px 1fr;
        gap: 12px;
        padding: 14px;
    }

    .tournament-player-stats .player-stat-card.table-row .rank-badge {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .tournament-player-stats .player-stat-card.table-row .player-info {
        min-width: auto;
    }

    .tournament-player-stats .player-stat-card.table-row .player-avatar {
        width: 42px;
        height: 42px;
    }

    .tournament-player-stats .player-stat-card.table-row .player-info h3 {
        font-size: 15px;
    }
}

/* ============================================
   CLICKABLE ELEMENTS
   ============================================ */

.team-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-card.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: #4299e1;
}

.team-card.clickable:active {
    transform: translateY(-2px);
}

.team-compact-row.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-compact-row.clickable:hover {
    background: #f7fafc;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-compact-row.clickable:active {
    transform: translateX(2px);
}

@media (max-width: 767px) {
    .tournament-player-stats .player-stat-card.table-row .stats-grid-layout {
        grid-column: 1 / -1;
        margin-top: 8px;
    }

    .tournament-player-stats .player-stat-card.table-row .stat-box {
        min-width: 70px;
        padding: 6px 10px;
    }

    .tournament-player-stats .player-stat-card.table-row .stat-box.primary {
        min-width: 100px;
        padding: 8px 12px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .tournament-player-stats .player-stat-card.table-row {
        grid-template-columns: 45px 1fr auto;
    }
}

/* ============================================
   Match Cards - Unified Design System
   ============================================ */

/* Match Card Wrapper */
.match-card-wrapper {
    margin-bottom: 16px;
}

/* Main Match Card */
.ui-match-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ui-match-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Completed match highlight */
.ui-match-card.completed {
    border-left: 4px solid #10b981;
}

/* Bye match styling */
.ui-match-card.bye-match {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 1px solid #cbd5e0;
}

/* Match Card Header */
.ui-match-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

.ui-match-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.ui-match-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.ui-match-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.ui-match-header-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ui-match-number {
    font-size: 18px;
    color: #2d3748;
    font-weight: 700;
}

/* Match Meta Info */
.ui-match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #718096;
}

.ui-match-meta > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ui-match-meta svg {
    width: 16px;
    height: 16px;
    color: #4299e1;
    flex-shrink: 0;
}

/* Match Teams Container */
.ui-match-teams {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Match Team Styling */
.ui-match-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f7fafc;
    border-radius: 10px;
    transition: all 0.2s;
}

.ui-match-team:hover {
    background: #edf2f7;
}

.ui-match-team.winner {
    background: linear-gradient(90deg, #f0fff4 0%, #f7fafc 100%);
    border: 2px solid #10b981;
    font-weight: 700;
}

.ui-match-team.winner .ui-match-team-name {
    color: #065f46;
}

.ui-match-team-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    flex: 1;
}

/* Match Team Stats */
.ui-match-team-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.ui-match-team-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ui-match-team-stat-label {
    font-size: 11px;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
}

.ui-match-team-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.ui-match-team.winner .ui-match-team-stat-value {
    color: #065f46;
}

/* Versus Divider */
.versus-divider {
    text-align: center;
    padding: 8px 0;
    position: relative;
}

.versus-divider span {
    display: inline-block;
    padding: 6px 16px;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

/* Bye Message */
.bye-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #edf2f7;
    border-radius: 10px;
    color: #4a5568;
    font-weight: 600;
}

.bye-message svg {
    width: 24px;
    height: 24px;
    color: #4299e1;
}

/* Match Games Toggle Button */
.match-games-toggle {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.games-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #4299e1;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.games-link-btn:hover {
    background: #4299e1;
    border-color: #3182ce;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.games-link-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Compact View Mode */
.ui-match-card.compact {
    padding: 16px;
}

.ui-match-card.compact .ui-match-icon {
    width: 44px;
    height: 44px;
}

.ui-match-card.compact .ui-match-icon svg {
    width: 24px;
    height: 24px;
}

.ui-match-card.compact .ui-match-number {
    font-size: 16px;
}

.ui-match-card.compact .ui-match-team {
    padding: 12px;
}

.ui-match-card.compact .ui-match-team-name {
    font-size: 15px;
}

.ui-match-card.compact .ui-match-team-stat-value {
    font-size: 18px;
}

/* Table Row View Mode */
.ui-match-card.table-row {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    border-radius: 12px;
}

.ui-match-card.table-row .ui-match-card-header {
    flex: 0 0 auto;
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
    min-width: 180px;
}

.ui-match-card.table-row .ui-match-icon {
    width: 48px;
    height: 48px;
}

.ui-match-card.table-row .ui-match-icon svg {
    width: 28px;
    height: 28px;
}

.ui-match-card.table-row .ui-match-meta {
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.ui-match-card.table-row .ui-match-teams {
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.ui-match-card.table-row .ui-match-team {
    flex: 1;
    padding: 10px 12px;
}

.ui-match-card.table-row .ui-match-team-name {
    font-size: 15px;
}

.ui-match-card.table-row .ui-match-team-stat-value {
    font-size: 18px;
}

.ui-match-card.table-row .versus-divider {
    padding: 0;
}

.ui-match-card.table-row .versus-divider span {
    padding: 4px 10px;
    font-size: 11px;
}

.ui-match-card.table-row .match-games-toggle {
    flex: 0 0 auto;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    min-width: 160px;
}

.ui-match-card.table-row .games-link-btn {
    padding: 10px 16px;
    font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .ui-match-card {
        padding: 20px;
    }

    .ui-match-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ui-match-icon-wrapper {
        width: 100%;
    }

    .ui-match-meta {
        flex-direction: column;
        gap: 8px;
    }

    .ui-match-team {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ui-match-team-stats {
        width: 100%;
        justify-content: space-around;
    }

    .ui-match-card.table-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ui-match-card.table-row .ui-match-card-header {
        min-width: auto;
        width: 100%;
    }

    .ui-match-card.table-row .ui-match-teams {
        flex-direction: column;
    }

    .ui-match-card.table-row .match-games-toggle {
        min-width: auto;
        width: 100%;
    }

    .games-link-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .ui-match-card {
        padding: 20px;
    }

    .ui-match-card.table-row .ui-match-card-header {
        min-width: 160px;
    }

    .ui-match-card.table-row .match-games-toggle {
        min-width: 140px;
    }
}

/* Clickable Component Styles */
.team-card.clickable,
.team-compact-row.clickable,
.player-stat-card.clickable,
.player-compact-row.clickable {
    cursor: pointer;
}

.team-card.clickable:hover,
.team-compact-row.clickable:hover,
.player-stat-card.clickable:hover,
.player-compact-row.clickable:hover {
    cursor: pointer;
}

/* Player Compact Row Styles */
.tournament-player-stats .player-stats-compact-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tournament-player-stats .player-compact-row {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 5px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    min-height: 70px;
}

.tournament-player-stats .player-compact-row:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #cbd5e0;
}

.tournament-player-stats .player-compact-row.rank-first {
    background: linear-gradient(90deg, #fff5f0 0%, white 100%);
    border-left: 4px solid #f6ad55;
    box-shadow: 0 2px 12px rgba(246, 173, 85, 0.2);
}

.tournament-player-stats .player-compact-row.rank-second {
    background: linear-gradient(90deg, #f7fafc 0%, white 100%);
    border-left: 4px solid #a0aec0;
    box-shadow: 0 2px 12px rgba(160, 174, 192, 0.2);
}

.tournament-player-stats .player-compact-row.rank-third {
    background: linear-gradient(90deg, #fffaf0 0%, white 100%);
    border-left: 4px solid #dd6b20;
    box-shadow: 0 2px 12px rgba(221, 107, 32, 0.2);
}

.tournament-player-stats .player-rank {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tournament-player-stats .player-compact-row .rank-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #edf2f7;
    font-size: 14px;
    font-weight: 700;
    color: #4a5568;
}

.tournament-player-stats .player-compact-row.rank-first .rank-number {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(246, 173, 85, 0.4);
}

.tournament-player-stats .player-compact-row.rank-second .rank-number {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(160, 174, 192, 0.4);
}

.tournament-player-stats .player-compact-row.rank-third .rank-number {
    background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(221, 107, 32, 0.4);
}

.tournament-player-stats .player-name-column {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tournament-player-stats .player-avatar-small {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.tournament-player-stats .player-avatar-small svg {
    width: 18px;
    height: 18px;
    color: white;
}

.tournament-player-stats .player-compact-row .player-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tournament-player-stats .player-stats-inline {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.tournament-player-stats .stat-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 10px;
    background: #f7fafc;
    border-radius: 6px;
    min-width: 48px;
}

.tournament-player-stats .stat-compact.primary {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    min-width: 60px;
    padding: 8px 12px;
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.tournament-player-stats .stat-compact .stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
}

.tournament-player-stats .stat-compact.primary .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.tournament-player-stats .stat-compact .stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
}

.tournament-player-stats .stat-compact.primary .stat-value {
    color: white;
    font-size: 16px;
}

/* Responsive adjustments for Player Compact Row */
@media (max-width: 767px) {
    .tournament-player-stats .player-compact-row {
        grid-template-columns: 36px 1fr auto;
        gap: 6px;
        padding: 8px 10px;
    }

    .tournament-player-stats .player-compact-row .rank-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .tournament-player-stats .player-avatar-small {
        display: none;
    }

    .tournament-player-stats .player-compact-row .player-name {
        font-size: 13px;
    }

    .tournament-player-stats .player-stats-inline {
        grid-column: auto;
        grid-row: auto;
        justify-content: flex-end;
        gap: 4px;
        margin-top: 0;
    }

    .tournament-player-stats .stat-compact {
        min-width: 38px;
        padding: 3px 5px;
    }

    .tournament-player-stats .stat-compact.primary {
        min-width: 50px;
        padding: 3px 6px;
    }

    .tournament-player-stats .stat-compact .stat-label {
        font-size: 9px;
    }

    .tournament-player-stats .stat-compact .stat-value {
        font-size: 12px;
    }

    .tournament-player-stats .stat-compact.primary .stat-value {
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .tournament-player-stats .player-compact-row {
        grid-template-columns: 55px 1fr auto;
    }

    .tournament-player-stats .stat-compact {
        min-width: 50px;
    }

    .tournament-player-stats .stat-compact.primary {
        min-width: 60px;
    }
}

/* ── 2-place podium (RankingCup: winner + runner-up only) ── */
.tournament-podium.podium-places-2 .podium-stage {
    justify-content: center;
    gap: 24px;
}

.tournament-podium.podium-places-2 .podium-slot {
    min-width: 140px;
    max-width: 200px;
}

.tournament-podium.podium-places-2 .podium-slot.first .podium-block {
    height: 110px;
}

.tournament-podium.podium-places-2 .podium-slot.second .podium-block {
    height: 80px;
}

.tournament-podium .podium-clickable { cursor: pointer; }

.podium-split-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.podium-split-container .tournament-podium {
    flex: 1;
    min-width: 280px;
}
