.competition-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.competition-details-header {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.btn-back {
    position: absolute;
    left: 0;
    top: 0;
    padding: 10px 20px;
    background: var(--btn-secondary-bg);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.btn-back:hover {
    background: var(--btn-secondary-hover);
}

.competition-details-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.competition-type-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.competition-type-badge.type-league {
    background: var(--type-league);
    color: var(--text-light);
}

.competition-type-badge.type-cup {
    background: var(--type-cup);
    color: var(--text-light);
}

.competition-type-badge.type-mixed {
    background: var(--type-mixed);
    color: var(--text-light);
}

.competition-info-panel {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px var(--shadow-light);
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    font-size: 24px;
}

.info-label {
    font-weight: 600;
    color: var(--text-muted);
}

.info-value {
    font-weight: bold;
    color: var(--text-primary);
}

.competition-comment {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    margin-top: 20px;
    font-style: italic;
    color: var(--text-muted);
}

.section {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px var(--shadow-light);
    margin-bottom: 30px;
}

.section h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 10px;
}

.standings-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.standings-header-row h2 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.matchday-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.matchday-selector label {
    font-weight: 600;
    color: var(--text-secondary);
}

.matchday-selector select {
    padding: 8px 16px;
    font-size: 1rem;
    border: 2px solid var(--secondary);
    border-radius: 5px;
    background: var(--bg-input);
    color: var(--text-primary);
    cursor: pointer;
    min-width: 80px;
}

.matchday-selector select:hover {
    border-color: var(--secondary-dark);
}

.matchday-selector select:focus {
    outline: none;
    border-color: var(--secondary-dark);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Prizes Info Section - Simple Layout */
.prizes-info-section h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.prizes-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.prize-info-card {
    background: var(--bg-section);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid var(--secondary);
}

.prize-info-card.promotion {
    border-left-color: var(--success);
}

.prize-info-card.relegation {
    border-left-color: var(--danger);
}

.prize-info-icon {
    font-size: 1.2rem;
}

.prize-info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.prize-info-value {
    margin-left: auto;
    font-weight: 600;
    color: var(--text-primary);
}

.prize-info-value.money {
    color: var(--success);
}

/* Position prizes table */
.prizes-table {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prize-row {
    background: var(--bg-section);
    border-radius: 6px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 150px;
}

.prize-row .prize-position {
    font-weight: 700;
    min-width: 30px;
}

.prize-row .prize-position.position-1 {
    color: #f1c40f;
}

.prize-row .prize-position.position-2 {
    color: #95a5a6;
}

.prize-row .prize-position.position-3 {
    color: #cd7f32;
}

.prize-row .prize-amount {
    color: var(--success);
    font-weight: 600;
}

.prize-row .prize-teams-note {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-left: 4px;
}

.no-prizes {
    color: var(--text-muted);
    font-style: italic;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.team-card {
    background: var(--bg-section);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-dark);
}

.team-strip {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--bg-card);
    border-radius: 5px;
    padding: 5px;
}

.team-info h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0 0 5px 0;
}

.team-stats {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat {
    background: var(--bg-card);
    padding: 3px 8px;
    border-radius: 5px;
}

.standings-table {
    overflow-x: auto;
}

.standings-header, .standings-row {
    display: grid;
    grid-template-columns: 40px 2fr repeat(7, 1fr) 80px;
    gap: 10px;
    padding: 12px;
    align-items: center;
}

.standings-header {
    background: var(--bg-table-header);
    color: var(--text-light);
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}

.standings-row {
    border-bottom: 1px solid var(--border-light);
}

.standings-row:hover {
    background: var(--bg-section);
}

.col-pos, .col-stat, .col-stat-pts {
    text-align: center;
}

.col-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-strip-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 3px;
}

.team-strip-match {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 3px;
}

.col-stat-pts {
    font-weight: bold;
    color: var(--primary);
}

/* Cup Results */
.cup-results-table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.cup-result-row {
    display: grid;
    grid-template-columns: 40px 100px 1fr 80px;
    gap: 10px;
    padding: 14px 16px;
    align-items: center;
}

.cup-result-row.winner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-bottom: 1px solid var(--border-light);
    font-weight: bold;
}

.cup-result-row.runner-up {
    background: var(--bg-section);
}

.cup-pos {
    text-align: center;
    font-size: 1.2em;
}

.cup-label {
    font-size: 0.85em;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cup-team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cup-team a {
    color: var(--text);
    text-decoration: none;
}

.cup-team a:hover {
    text-decoration: underline;
}

.cup-score {
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary);
}

.cup-pending {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 20px;
}

.matchday-section {
    margin-bottom: 30px;
}

.matchday-title {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-section);
    border-radius: 5px;
}

.matches-list {
    display: grid;
    gap: 15px;
}

.match-card {
    background: var(--bg-section);
    border-radius: 8px;
    padding: 15px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    align-items: center;
}

.match-card.played {
    background: var(--bg-card);
    border-left: 4px solid var(--success);
}

.match-card.live {
    background: var(--bg-card);
    border-left: 4px solid var(--danger);
    animation: pulse-live 2s infinite;
}

.match-card.simulating {
    background: var(--bg-card);
    border-left: 4px solid var(--info);
}

.match-card.upcoming {
    background: var(--bg-card);
    border-left: 4px solid var(--warning);
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.match-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.match-team {
    text-align: center;
}

.team-name {
    font-weight: 600;
    color: var(--text-primary);
}

.match-score {
    text-align: center;
}

.score {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.score-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}

.score-link:hover {
    transform: scale(1.1);
}

.score-link:hover .score {
    color: var(--secondary);
}

.live-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.live-indicator {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--danger);
    animation: blink-live 1s infinite;
}

@keyframes blink-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.vs {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.aggregate-score {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: normal;
    margin-left: 4px;
}

.first-leg-score {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.matches-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.matchday-title {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.spinner {
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    color: var(--danger-text);
}

@media (max-width: 768px) {
    .competition-details-header h1 {
        font-size: 1.8rem;
        margin-top: 50px;
    }

    .btn-back {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .standings-header, .standings-row {
        grid-template-columns: 30px 1.5fr repeat(7, 0.8fr) 60px;
        font-size: 0.85rem;
    }

    .match-card {
        grid-template-columns: 1fr;
    }

    .match-teams {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* MVP Section */
.mvp-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.mvp-header-row h2 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.mvp-toggle {
    display: flex;
    gap: 5px;
}

.btn-toggle {
    padding: 8px 16px;
    border: 2px solid var(--border-medium);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-toggle:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-toggle.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--text-light);
}

/* MVP Table (Accumulated) */
.mvp-table {
    overflow-x: auto;
}

.mvp-header, .mvp-row {
    display: grid;
    grid-template-columns: 50px 2fr 1.5fr 1fr 1fr;
    gap: 10px;
    padding: 12px;
    align-items: center;
}

.mvp-header {
    background: var(--bg-table-header);
    color: var(--text-light);
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}

.mvp-row {
    border-bottom: 1px solid var(--border-light);
}

.mvp-row:hover {
    background: var(--bg-section);
}

.mvp-row .col-pos {
    font-weight: bold;
    color: var(--secondary);
}

.mvp-row .col-player a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.mvp-row .col-player a:hover {
    color: var(--secondary);
}

.mvp-row .mvp-points {
    font-weight: bold;
    color: var(--primary);
}

.col-pos, .col-stat {
    text-align: center;
}

.col-player {
    text-align: left;
}

/* MVP Cards (Match Day) */
.mvp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.mvp-card {
    background: var(--bg-section);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid var(--accent);
    transition: transform 0.2s;
}

.mvp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

.mvp-match {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mvp-player {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mvp-icon {
    font-size: 1.2rem;
}

.mvp-player a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.mvp-player a:hover {
    color: var(--secondary);
}

.mvp-team {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mvp-team a {
    color: var(--text-muted);
    text-decoration: none;
}

.mvp-team a:hover {
    color: var(--secondary);
}

.mvp-points-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--text-light);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .mvp-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .mvp-header, .mvp-row {
        grid-template-columns: 40px 1.5fr 1fr 0.7fr 0.7fr;
        font-size: 0.85rem;
    }

    .mvp-cards {
        grid-template-columns: 1fr;
    }

    .team-strip-small {
        width: 20px;
        height: 20px;
    }
}

/* Top Scorers Section */
.topscorers-table {
    overflow-x: auto;
}

.topscorers-header, .topscorers-row {
    display: grid;
    grid-template-columns: 50px 2fr 1.5fr 80px;
    gap: 10px;
    padding: 12px;
    align-items: center;
}

.topscorers-header {
    background: var(--bg-table-header);
    color: var(--text-light);
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}

.topscorers-row {
    border-bottom: 1px solid var(--border-light);
}

.topscorers-row:hover {
    background: var(--bg-section);
}

.topscorers-row .col-pos {
    font-weight: bold;
    color: var(--secondary);
}

.topscorers-row .col-player a,
.topscorers-row .col-team a {
    color: var(--text-primary);
    text-decoration: none;
}

.topscorers-row .col-player a {
    font-weight: 600;
}

.topscorers-row .col-player a:hover,
.topscorers-row .col-team a:hover {
    color: var(--secondary);
}

.col-stat-goals {
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--success);
}

@media (max-width: 768px) {
    .topscorers-header, .topscorers-row {
        grid-template-columns: 40px 1.5fr 1fr 60px;
        font-size: 0.85rem;
    }

    .col-stat-goals {
        font-size: 1rem;
    }
}
