.copa-container {
    color: #fff;
    padding: 20px 0;
    min-height: 100vh;
}

.copa-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Match Section */
.copa-hero {
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(197, 255, 38, 0.18) 0%, rgba(34, 34, 34, 0) 80%),
        linear-gradient(180deg, rgba(27, 27, 27, 0.45) 0%, rgba(20, 20, 20, 0.98) 100%),
        url('https://mf.b37mrtl.ru/brmedia/images/2026.06/article/6a2305b621860e2eee05e186.png') center/cover no-repeat;
    border-radius: 20px;
    padding: 40px 20px;
    margin-bottom: 35px;
    border: 2px solid #444;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.copa-hero:hover {
    transform: translateY(-4px);
    border-color: #c5ff26;
    box-shadow: 0 20px 40px rgba(197, 255, 38, 0.2);
}

.copa-hero-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: absolute;
    top: 25px;
    left: 25px;
}

.copa-hero-badge-live .dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.5;
    }
}

.copa-hero-badge-viewers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: 25px;
    right: 25px;
}

.copa-hero-subtitle {
    color: #c5ff26;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 15px;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(197, 255, 38, 0.3);
}

.copa-hero-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.copa-hero-team {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 200px;
}

.copa-hero-team.team-a {
    justify-content: flex-end;
}

.copa-hero-team.team-b {
    justify-content: flex-start;
    flex-direction: row;
}

.copa-hero-team-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.copa-hero-team-flag {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
}

.copa-hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.copa-hero-score {
    background: rgba(34, 34, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copa-hero-time {
    color: #ef4444;
    font-size: 13px;
    font-weight: 700;
    margin-top: 5px;
}

.copa-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #c5ff26;
    color: #222;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(197, 255, 38, 0.35);
    border: none;
    cursor: pointer;
}

.copa-hero-btn:hover {
    transform: translateY(-2px);
    background: #d2ff00;
    box-shadow: 0 12px 30px rgba(197, 255, 38, 0.5);
}

/* Tabs Filter */
.copa-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.copa-tabs {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px;
    border-radius: 40px;
    border: 2px solid #444;
    gap: 5px;
}

.copa-tab-btn {
    background: transparent;
    border: none;
    color: #999;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.copa-tab-btn:hover {
    color: #c5ff26;
}

.copa-tab-btn.active {
    background: rgba(197, 255, 38, 0.15);
    color: #c5ff26;
    border: 1px solid rgba(197, 255, 38, 0.3);
}

/* Section Grid Header */
.copa-sec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.copa-sec-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    position: relative;
}

.copa-sec-title::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #c5ff26;
}

/* Live Matches Grid (2 cols) */
.copa-grid-live {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .copa-grid-live {
        grid-template-columns: 1fr 1fr;
    }
}

/* All Matches Grid (3 cols) */
.copa-grid-three {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .copa-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .copa-grid-three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Card Live Match */
.copa-card-live {
    background: #333;
    border-radius: 5px;
    border: 2px solid #444;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
}

.copa-card-live:hover {
    transform: translateY(-4px);
    border-color: #c5ff26;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.copa-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.copa-card-league {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
}

.copa-card-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(197, 255, 38, 0.15);
    color: #c5ff26;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
}

.copa-card-time-badge i {
    font-size: 9px;
}

.copa-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex: 1;
}

.copa-card-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 35%;
    gap: 10px;
}

.copa-card-team-flag {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.copa-card-team-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.copa-card-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}

.copa-card-score {
    font-size: 24px;
    font-weight: 800;
    color: #c5ff26;
    letter-spacing: 2px;
}

.copa-card-progressbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.copa-card-progressline {
    height: 100%;
    background: #c5ff26;
    box-shadow: 0 0 6px #c5ff26;
    border-radius: 0 3px 3px 0;
}

/* Upcoming Grid (3 cols) */
.copa-grid-upcoming {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 600px) {
    .copa-grid-upcoming {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .copa-grid-upcoming {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Card Upcoming Match */
.copa-card-upcoming {
    background: #333;
    border-radius: 5px;
    border: 2px solid #444;
    padding: 15px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    color: inherit;
}

.copa-card-upcoming:hover {
    transform: translateY(-4px);
    border-color: #c5ff26;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.copa-card-up-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 33%;
    text-align: center;
}

.copa-card-up-flag {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.copa-card-up-name {
    font-size: 12px;
    font-weight: 700;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.copa-card-up-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 34%;
    text-align: center;
}

.copa-card-up-time {
    font-size: 10px;
    font-weight: 800;
    color: #c5ff26;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.copa-card-up-label {
    font-size: 9px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
}

/* All Matches Section */
.copa-search-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.copa-search-form {
    display: flex;
    background: #333;
    border: 2px solid #444;
    border-radius: 30px;
    padding: 4px 10px 4px 20px;
    width: 100%;
    max-width: 350px;
    align-items: center;
    transition: border-color 0.2s;
}

.copa-search-form:focus-within {
    border-color: #c5ff26;
}

.copa-search-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    width: 100%;
    font-family: inherit;
}

.copa-search-input::placeholder {
    color: #666;
}

.copa-search-btn {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
}

.copa-search-btn:hover {
    color: #c5ff26;
}

/* All Matches Cards Grid (4 cols) */
.copa-grid-all {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

@media (min-width: 576px) {
    .copa-grid-all {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .copa-grid-all {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.copa-card-all {
    background: #333;
    border-radius: 5px;
    border: 2px solid #444;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.25s ease;
}

.copa-card-all:hover {
    transform: translateY(-2px);
    border-color: #c5ff26;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.copa-card-all-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.copa-card-all-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 8px;
    flex: 1;
}

.copa-card-all-footer {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Tab Contents visibility helper */
.copa-tab-content {
    display: none;
}

.copa-tab-content.active {
    display: block;
}

/* Favorites logic styles */
.fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #999;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.fav-btn:hover {
    transform: scale(1.1);
    color: #ef4444;
}

.fav-btn.active {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* No Found Items */
.copa-no-items {
    text-align: center;
    padding: 50px 20px;
    color: #999;
    font-size: 15px;
    background: #333;
    border-radius: 5px;
    border: 2px solid #444;
}

/* Pagination style custom to Copa page to match main page */
.copa-pgn-btn {
    display: block;
    color: #fff;
    padding: 8px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid #444;
    border-radius: 5px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s;
}

.copa-pgn-btn:hover {
    color: #c5ff26;
    border-color: #c5ff26;
}

/* Responsiveness Media Queries */
@media (max-width: 768px) {
    .copa-hero {
        padding: 30px 15px;
    }

    .copa-hero-matchup {
        gap: 20px;
    }

    .copa-hero-team {
        min-width: auto;
        flex: 1;
        gap: 12px;
    }

    .copa-hero-team-name {
        font-size: 18px;
    }

    .copa-hero-team-flag {
        width: 50px;
        height: 50px;
    }

    .copa-hero-score {
        font-size: 28px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .copa-hero-matchup {
        gap: 10px;
    }

    .copa-hero-team {
        gap: 6px;
    }

    .copa-hero-team-name {
        font-size: 13px;
    }

    .copa-hero-team-flag {
        width: 36px;
        height: 36px;
    }

    .copa-hero-score {
        font-size: 20px;
        padding: 8px 14px;
    }

    .copa-hero-subtitle {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .copa-hero-badge-live {
        top: 15px;
        left: 15px;
    }

    .copa-hero-badge-viewers {
        top: 15px;
        right: 15px;
    }
}

/* Grupos Layout */
.copa-groups-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .copa-groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .copa-groups-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.copa-group-card {
    background: #222;
    border: 2px solid #444;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: border-color 0.25s ease;
}

.copa-group-card:hover {
    border-color: #c5ff26;
}

.copa-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.copa-group-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.copa-group-stats-link {
    font-size: 11px;
    font-weight: 700;
    color: #c5ff26;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copa-group-stats-link:hover {
    text-decoration: underline;
}

.copa-group-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.copa-group-table th {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copa-group-table td {
    padding: 8px 0;
    vertical-align: middle;
    font-size: 13px;
    font-weight: 600;
}

.copa-group-table th.col-rank,
.copa-group-table td.col-rank {
    width: 25px;
}

.copa-group-table th.col-team,
.copa-group-table td.col-team {
    /* remaining space */
}

.copa-group-table th.col-stat,
.copa-group-table td.col-stat {
    text-align: center;
    width: 25px;
    font-size: 11px;
    font-weight: 600;
}

.copa-group-table th.col-pts,
.copa-group-table td.col-pts {
    text-align: center;
    width: 30px;
    font-size: 11px;
    color: #c5ff26;
    font-weight: 800;
}

.copa-group-table td.col-pts {
    color: #c5ff26;
    font-weight: 800;
}

.copa-group-rank-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: #222;
}

.copa-group-rank-badge.qualify {
    background: #c5ff26;
}

.copa-group-rank-badge.non-qualify {
    background: #444;
    color: #bbb;
}

.copa-group-team-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copa-group-team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.copa-group-team-name {
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

/* Bracket Layout */
.copa-bracket-container {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    margin-bottom: 40px;
    scrollbar-width: thin;
    scrollbar-color: #c5ff26 #333;
}

.copa-bracket-container::-webkit-scrollbar {
    height: 8px;
}

.copa-bracket-container::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}

.copa-bracket-container::-webkit-scrollbar-thumb {
    background: #c5ff26;
    border-radius: 4px;
}

.copa-bracket {
    display: flex;
    gap: 30px;
    min-width: 1200px;
    height: 950px;
    padding: 10px;
}

.bracket-column {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    min-width: 210px;
}

.bracket-column-header {
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.bracket-match-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.bracket-match {
    background: #333;
    border: 2px solid #444;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: border-color 0.25s ease, transform 0.25s ease;
    position: relative;
}

.bracket-match:hover {
    border-color: #c5ff26;
    transform: translateY(-2px);
}

.bracket-competitor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0;
    font-size: 11px;
    font-weight: 700;
}

.competitor-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
}

.competitor-shield {
    color: #666;
    font-size: 10px;
}

.competitor-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.competitor-name {
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.competitor-meta {
    font-size: 9px;
    font-weight: 600;
    color: #888;
}

.bracket-match-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 4px 0;
}

.bracket-match-tag {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bracket-match-tag.final-tag {
    background: #eab308;
    color: #000;
}

.bracket-match-tag.third-tag {
    background: #4b5563;
    color: #fff;
}

.trophy-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trophy-icon {
    font-size: 18px;
}

/* Player view styling */
.copa-player-header-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.copa-player-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.2s;
}

.copa-player-back-btn:hover {
    color: #c5ff26;
}

.copa-player-hero {
    margin-bottom: 25px !important;
}

.copa-player-screen-wrapper {
    background-color: #111;
    width: 100%;
    max-width: 960px; /* Centered, modern size for big screens */
    margin: 20px auto 30px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid #10b981; /* Premium Copa Green border */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.copa-player-replace-html {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Perfect responsive aspect ratio */
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copa-player-replace-html img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Forces the image to occupy 100% of the space */
    display: block;
    opacity: 0.55; /* Enhances text contrast and readability */
}

.copa-player-replace-html .msg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    background: rgba(0, 0, 0, 0.65); /* Beautiful clean overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.copa-player-replace-html .msg span {
    font-size: 18px;
    font-weight: 700;
    display: block;
    line-height: 1.4;
}

.copa-player-replace-html .msg b {
    display: block;
    color: #c5ff26; /* Brand neon green */
    font-size: 24px;
    margin-top: 8px;
}

.copa-player-replace-html iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    z-index: 20;
}

.copa-player-options {
    background-color: #111111;
    overflow: hidden;
    padding: 15px;
    text-align: center;
    border-top: 2px solid #10b981;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.copa-player-options a.copa-player-opt-btn,
.copa-player-opt-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 6px;
    background-color: #222;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.copa-player-options a.copa-player-opt-btn:hover,
.copa-player-opt-btn:hover {
    background-color: #10b981;
    color: #121212;
    border-color: #10b981;
}

.copa-player-options a.copa-player-opt-btn.active,
.copa-player-opt-btn.active {
    background-color: #10b981;
    color: #121212;
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Match Center - Finished Matches Details */
.copa-match-center-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 50px;
}

@media (min-width: 992px) {
    .copa-match-center-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.copa-mc-card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 25px;
}

.copa-mc-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 14px;
}

.copa-mc-card-title i {
    color: #10b981;
    font-size: 16px;
}

/* Match Statistics */
.copa-stat-row {
    margin-bottom: 20px;
}

.copa-stat-row:last-child {
    margin-bottom: 0;
}

.copa-stat-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.copa-stat-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.copa-stat-bar-container {
    height: 6px;
    background: #1e1e1e;
    border-radius: 3px;
    display: flex;
    overflow: hidden;
}

.copa-stat-bar-left {
    height: 100%;
    background: #10b981;
    transition: width 0.6s ease;
}

.copa-stat-bar-right {
    height: 100%;
    background: #2a2a2a;
    transition: width 0.6s ease;
}

/* Lineups & Substitutions */
.copa-lineups-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.copa-lineup-column {
    display: flex;
    flex-direction: column;
}

.copa-lineup-team-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.copa-player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.copa-player-row:last-child {
    border-bottom: none;
}

.copa-player-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copa-player-position {
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    background: none;
    padding: 0;
    border-radius: 0;
    min-width: auto;
    text-align: right;
}

.copa-lineup-subs-title {
    display: none;
}

.copa-lineup-subs-container {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 14px;
}

.copa-lineup-column.team-a .copa-lineup-subs-container {
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.08);
}

.copa-lineup-column.team-b .copa-lineup-subs-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.copa-sub-row {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copa-sub-row .in {
    color: #10b981;
}

.copa-sub-row .out {
    color: #ef4444;
}

.copa-sub-row .sub-player-in {
    color: #10b981;
}

.copa-sub-row .sub-player-out {
    color: #9ca3af;
}

/* Match Events Timeline */
.copa-timeline {
    position: relative;
    padding-left: 55px;
    margin-left: 5px;
    border-left: 2px solid #2a2a2a;
}

.copa-timeline-item {
    position: relative;
    margin-bottom: 30px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.copa-timeline-item:last-child {
    margin-bottom: 0;
}

.copa-timeline-dot {
    position: absolute;
    left: -64px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #121212;
    border: 2px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: #10b981;
    font-size: 8px;
}

.copa-timeline-dot.goal {
    border-color: #10b981;
    color: #10b981;
}

.copa-timeline-dot.card-yellow {
    border-color: #f59e0b;
    background: #f59e0b;
    width: 10px;
    height: 14px;
    border-radius: 2px;
    left: -60px;
}

.copa-timeline-dot.card-red {
    border-color: #ef4444;
    background: #ef4444;
    width: 10px;
    height: 14px;
    border-radius: 2px;
    left: -60px;
}

.copa-timeline-dot.sub {
    border-color: #4b5563;
    color: #10b981;
}

.copa-timeline-dot.status-info {
    border-color: #10b981;
    background: #10b981;
    color: #121212;
    font-size: 9px;
    font-weight: bold;
}

.copa-timeline-time {
    position: absolute;
    left: -110px;
    width: 40px;
    text-align: right;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0;
    text-transform: uppercase;
}

.copa-timeline-content {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}

.copa-timeline-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    text-transform: none;
}

.copa-timeline-desc {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
}

.copa-timeline-badge-team {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 6px;
    text-transform: uppercase;
}

.copa-timeline-badge-team.team_a {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.copa-timeline-badge-ht {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copa-timeline-badge-ft {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



