/**
 * Copa do Mundo FIFA 2026™ - Custom Styles
 * Identidade visual da Copa com tema claro
 */

/* =====================================================
   BASE RESETS & TYPOGRAPHY
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #F8F9FC 0%, #F1F3F8 50%, #F8F9FC 100%);
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #C7CDD9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9AA2B1;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* =====================================================
   HEADER
   ===================================================== */
.copa-header {
    background: linear-gradient(135deg, #003DA5 0%, #002D7A 50%, #1A1A2E 100%);
    box-shadow: 0 4px 20px rgba(0, 61, 165, 0.3);
    position: relative;
    overflow: hidden;
}

.copa-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(228, 0, 43, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.copa-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 161, 222, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.copa-header::before,
.copa-header::after {
    pointer-events: none;
}

.copa-header > * {
    position: relative;
    z-index: 1;
}

/* =====================================================
   LOGO GRADIENT
   ===================================================== */
.copa-logo-gradient {
    background: transparent;
    box-shadow: none;
}

.copa-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.copa-empty-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

/* =====================================================
   NAVIGATION TABS
   ===================================================== */
.copa-nav {
    background: white;
    border-bottom: 1px solid #E2E6EF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.copa-nav.nav-scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nav-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    background: none;
}

.nav-tab:hover {
    color: #003DA5;
    background: #F1F3F8;
}

.nav-tab.active {
    color: #003DA5;
    background: #E8F0FE;
    border-color: rgba(0, 61, 165, 0.15);
}

.nav-tab .live-dot {
    animation: livePulse 2s ease-in-out infinite;
}

/* =====================================================
   CARDS
   ===================================================== */
.copa-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E6EF;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.copa-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Group Header */
.group-header {
    background: linear-gradient(135deg, #003DA5 0%, #002D7A 100%);
    color: white;
    padding: 10px 16px;
    font-size: 14px;
}

/* =====================================================
   STAT CARDS
   ===================================================== */
.stat-card {
    background: white;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #E2E6EF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #1F2937;
    line-height: 1.1;
    font-family: 'Oswald', sans-serif;
}

.stat-label {
    font-size: 12px;
    color: #9AA2B1;
    font-weight: 500;
    margin-top: 2px;
}

/* =====================================================
   FLAGS
   ===================================================== */
.flag-img {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.flag-img-lg {
    width: 36px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* =====================================================
   GROUP TABLE
   ===================================================== */
.group-row {
    border-bottom: 1px solid #F1F3F8;
    transition: background-color 0.15s ease;
}

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

/* =====================================================
   STANDINGS TABLE
   ===================================================== */
.standing-row {
    border-bottom: 1px solid #F1F3F8;
    transition: background-color 0.15s ease;
}

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

.standing-qualified td:first-child {
    position: relative;
    padding-left: 14px;
}

.standing-qualified td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: #00853E;
    border-radius: 0 2px 2px 0;
}

/* Standings Table - fixed layout for consistent alignment */
.standings-table {
    table-layout: fixed;
    width: 100%;
    min-width: 680px;
}

/* Uniform cell padding so all group tables align perfectly */
.cell-sd {
    padding: 12px 10px;
    vertical-align: middle;
}

/* Form Badges */
.form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    color: white;
}

.form-w {
    background: #00853E;
}

.form-d {
    background: #9AA2B1;
}

.form-l {
    background: #E4002B;
}

/* =====================================================
   LIVE MATCH CARD
   ===================================================== */
.live-match-card {
    background: white;
    border-radius: 14px;
    border: 2px solid #E4002B;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(228, 0, 43, 0.15);
    animation: liveGlow 3s ease-in-out infinite;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(228, 0, 43, 0.06) 0%, rgba(228, 0, 43, 0.02) 100%);
    border-bottom: 1px solid rgba(228, 0, 43, 0.1);
}

.match-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.match-flag {
    width: 40px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.match-team-name {
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.match-team-abbr {
    font-size: 11px;
    color: #9AA2B1;
    font-weight: 500;
}

.match-score {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}

.score-value {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1;
}

.score-separator {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    color: #C7CDD9;
}

.match-footer {
    padding: 6px 14px;
    text-align: center;
    font-size: 11px;
    color: #9AA2B1;
    background: #F8F9FC;
    border-top: 1px solid #F1F3F8;
}

/* =====================================================
   NEXT MATCH CARD
   ===================================================== */
.next-match-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #E2E6EF;
    border-left: 4px solid #00A1DE;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* =====================================================
   TOP SCORER CARD
   ===================================================== */
.top-scorer-card {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 50%, #FFF7ED 100%);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #FDE68A;
    box-shadow: 0 2px 12px rgba(255, 184, 28, 0.15);
}

.border-3 {
    border-width: 3px;
    border-style: solid;
}

/* =====================================================
   SCORER ROW
   ===================================================== */
.scorer-row {
    background: white;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid #E2E6EF;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scorer-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.rank-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F3F8;
    color: #9AA2B1;
    flex-shrink: 0;
}

.rank-top3 {
    background: linear-gradient(135deg, #FFB81C, #D99B00);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 184, 28, 0.3);
}

.rank-top3 span {
    color: white !important;
}

/* Player Photo */
.player-photo-container {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.player-photo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid #E2E6EF;
}


.player-photo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #F1F3F8, #E2E6EF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C7CDD9;
    font-size: 20px;
    border: 2px solid #E2E6EF;
}

/* Player Avatar (initials fallback) */
.player-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.player-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    border-radius: 12px;
}

@media (max-width: 768px) {
    .player-avatar {
        width: 48px;
        height: 48px;
        font-size: 15px;
        border-radius: 12px;
    }
}

.player-flag {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 16px;
    border-radius: 3px;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* Goal Badges */
.goal-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    background: #E8F0FE;
    color: #003DA5;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.goals-count {
    min-width: 60px;
}

.goals-count .font-heading {
    color: #E4002B;
    line-height: 1;
}

/* =====================================================
   SCORERS PODIUM & DETAIL BUTTONS
   ===================================================== */
.scorers-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.podium-card {
    position: relative;
    min-height: 230px;
    padding: 18px 14px 16px;
    border-radius: 8px;
    background: white;
    border: 1px solid #E2E6EF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-align: center;
}

.podium-rank-1 {
    min-height: 260px;
    border-color: rgba(255, 184, 28, 0.55);
    box-shadow: 0 8px 24px rgba(255, 184, 28, 0.18);
}

.podium-rank-2 {
    min-height: 238px;
}

.podium-rank-3 {
    min-height: 220px;
}

.podium-medal {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFB81C;
    color: #111827;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(255, 184, 28, 0.28);
}

.podium-rank-2 .podium-medal {
    background: #C7CDD9;
}

.podium-rank-3 .podium-medal {
    background: #D99B00;
    color: white;
}

.podium-avatar {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.podium-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podium-card h4 {
    min-height: 38px;
    color: #1F2937;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.podium-team {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 18px;
    color: #6B7280;
    font-size: 12px;
    font-weight: 600;
}

.podium-team img {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
}

.podium-card strong {
    color: #E4002B;
    font-family: 'Oswald', sans-serif;
    font-size: 34px;
    line-height: 1;
}

.podium-card small {
    margin-top: -6px;
    color: #9AA2B1;
    font-size: 11px;
    font-weight: 700;
}

.match-detail-actions {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 61, 165, 0.16);
    background: #E8F0FE;
    color: #003DA5;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.detail-btn:hover {
    background: #003DA5;
    color: white;
    transform: translateY(-1px);
}

.scorer-detail-btn {
    min-height: 30px;
    padding: 6px 10px;
}

/* =====================================================
   TODAY MATCH CARD
   ===================================================== */
.today-match-card {
    background: white;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #E2E6EF;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.today-match-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.today-live {
    border-color: #E4002B;
    box-shadow: 0 2px 12px rgba(228, 0, 43, 0.1);
}

/* =====================================================
   PREVIOUS MATCHES
   ===================================================== */
.previous-match-card {
    background: white;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #E2E6EF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.previous-score-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.previous-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.previous-team.is-away {
    justify-content: flex-end;
    text-align: right;
}

.previous-team img {
    width: 34px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
}

.previous-team span {
    font-size: 13px;
    font-weight: 700;
    color: #1F2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.previous-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    min-width: 70px;
    justify-content: center;
    background: #F1F3F8;
    border-radius: 8px;
}

.previous-score strong {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    line-height: 1;
    color: #111827;
}

.previous-score span {
    color: #9AA2B1;
    font-weight: 800;
}

.previous-note {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #FFF7ED;
    color: #B45309;
    font-size: 12px;
    font-weight: 700;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-live {
    background: rgba(228, 0, 43, 0.08);
    color: #E4002B;
}

.status-final {
    background: rgba(0, 133, 62, 0.08);
    color: #00853E;
}

.status-scheduled {
    background: rgba(0, 161, 222, 0.08);
    color: #00A1DE;
}

.live-status {
    gap: 6px;
}

.live-ball {
    color: #E4002B;
    animation: rollingBall 1.05s linear infinite;
    transform-origin: center;
}

/* =====================================================
   GROUP FILTER TABS
   ===================================================== */
.group-filter-tab {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    background: white;
    border: 1px solid #E2E6EF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.group-filter-tab:hover {
    color: #003DA5;
    border-color: #003DA5;
    background: #E8F0FE;
}

.group-filter-tab.active {
    color: white;
    background: #003DA5;
    border-color: #003DA5;
    box-shadow: 0 2px 8px rgba(0, 61, 165, 0.3);
}

/* =====================================================
   KNOCKOUT BRACKET
   ===================================================== */
.knockout-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.knockout-filter-tab {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #E2E6EF;
    background: white;
    color: #4B5563;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.knockout-filter-tab:hover {
    border-color: #003DA5;
    color: #003DA5;
    background: #E8F0FE;
}

.knockout-filter-tab.active {
    color: #111827;
    background: #FFB81C;
    border-color: #FFB81C;
    box-shadow: 0 3px 12px rgba(255, 184, 28, 0.28);
}

.knockout-board {
    background: linear-gradient(135deg, #2F3437 0%, #202427 100%);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 35px rgba(17, 24, 39, 0.18);
    overflow-x: auto;
    position: relative;
}

.knockout-board::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 184, 28, 0.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 120px 120px, 80px 80px;
    pointer-events: none;
}

.knockout-board-header,
.knockout-rounds {
    position: relative;
    z-index: 1;
}

.knockout-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.knockout-board-count {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 184, 28, 0.14);
    color: #FFB81C;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.knockout-rounds {
    display: grid;
    grid-template-columns: repeat(var(--round-count), minmax(260px, 1fr));
    gap: 18px;
    min-width: min(1080px, calc(var(--round-count) * 278px));
}

.knockout-round {
    position: relative;
}

.knockout-round:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 58px;
    right: -13px;
    width: 13px;
    height: calc(100% - 74px);
    border-top: 2px solid #FFB81C;
    border-right: 2px solid #FFB81C;
    border-bottom: 2px solid #FFB81C;
    opacity: 0.55;
    pointer-events: none;
}

.knockout-round-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 184, 28, 0.28);
    margin-bottom: 12px;
}

.knockout-round-title span {
    color: #FFEA00;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.knockout-round-title small {
    color: rgba(255, 255, 255, 0.54);
    font-size: 11px;
    font-weight: 700;
}

.knockout-round-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.knockout-match-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    position: relative;
}

.knockout-match-card::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 10px;
    height: 2px;
    background: #FFB81C;
    opacity: 0.75;
}

.knockout-match-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
    color: #9AA2B1;
    font-size: 11px;
    font-weight: 700;
}

.knockout-team-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.knockout-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.knockout-team img {
    width: 42px;
    height: 30px;
    object-fit: cover;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}

.knockout-team span {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.knockout-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 32px;
    border-radius: 7px;
    background: #F1F3F8;
    color: #111827;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    line-height: 1;
}

.knockout-versus-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}

.knockout-versus-line::before,
.knockout-versus-line::after {
    content: '';
    height: 1px;
    background: #E2E6EF;
    flex: 1;
}

.knockout-versus-line span {
    color: #FFB81C;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.knockout-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 8px 9px;
    border-radius: 7px;
    background: #FFF7ED;
    color: #B45309;
    font-size: 11px;
    font-weight: 800;
}

.knockout-placeholder {
    min-height: 118px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.14);
    color: rgba(255, 255, 255, 0.52);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

.empty-knockout {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.knockout-posters {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 26px;
    min-width: 1240px;
}

.knockout-poster {
    position: relative;
    display: grid;
    grid-template-columns: minmax(430px, 1fr) 270px minmax(430px, 1fr);
    gap: 34px;
    min-height: calc((var(--side-rows, 8) * 74px) + 128px);
    padding: 30px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0 13%, rgba(255,255,255,0.05) 14% 24%, transparent 25%),
        linear-gradient(135deg, rgba(255,255,255,0.08), transparent 36%),
        linear-gradient(180deg, #323938 0%, #252B2B 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 18px 48px rgba(0,0,0,0.18);
    overflow: hidden;
}

.knockout-poster::before,
.knockout-poster::after {
    content: '';
    position: absolute;
    top: 120px;
    bottom: 86px;
    width: 106px;
    border-top: 2px solid rgba(255, 218, 64, 0.78);
    border-bottom: 2px solid rgba(255, 218, 64, 0.78);
    opacity: 0.76;
    pointer-events: none;
}

.knockout-poster::before {
    left: calc(50% - 192px);
    border-left: 2px solid rgba(255, 218, 64, 0.78);
    border-radius: 14px 0 0 14px;
}

.knockout-poster::after {
    right: calc(50% - 192px);
    border-right: 2px solid rgba(255, 218, 64, 0.78);
    border-radius: 0 14px 14px 0;
}

.knockout-side {
    display: grid;
    grid-template-rows: repeat(var(--side-rows, 8), minmax(64px, 1fr));
    gap: 10px;
    align-content: stretch;
    position: relative;
    z-index: 2;
}

.knockout-side::after {
    content: '';
    position: absolute;
    top: 39px;
    bottom: 39px;
    width: 26px;
    border-top: 2px solid rgba(255, 218, 64, 0.82);
    border-bottom: 2px solid rgba(255, 218, 64, 0.82);
    opacity: 0.74;
    pointer-events: none;
}

.knockout-left::after {
    right: -22px;
    border-right: 2px solid rgba(255, 218, 64, 0.82);
    border-radius: 0 12px 12px 0;
}

.knockout-right::after {
    left: -22px;
    border-left: 2px solid rgba(255, 218, 64, 0.82);
    border-radius: 12px 0 0 12px;
}

.knockout-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.knockout-center-title strong {
    display: block;
    color: #FFED3D;
    font-family: 'Oswald', sans-serif;
    font-size: 50px;
    line-height: 0.9;
    font-weight: 900;
    text-shadow: 0 8px 20px rgba(0,0,0,0.26);
}

.knockout-center-title span {
    display: block;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
}

.knockout-trophy {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 38% 25%, #FFF6B7 0%, #F8C93A 38%, #C98200 100%);
    color: white;
    font-size: 58px;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34), inset 0 2px 12px rgba(255,255,255,0.35);
}

.knockout-center-count {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.bracket-pair {
    position: relative;
    min-width: 0;
}

.bracket-pair.left::after,
.bracket-pair.right::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 26px;
    height: 2px;
    background: rgba(255, 218, 64, 0.86);
    opacity: 0.82;
}

.bracket-pair.left::after {
    right: -26px;
}

.bracket-pair.right::after {
    left: -26px;
}

.bracket-match-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: rgba(232, 239, 246, 0.62);
    font-size: 10.5px;
    font-weight: 800;
    margin-bottom: 4px;
}

.bracket-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 10px 26px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
}

.bracket-versus {
    min-height: 46px;
    border-radius: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(6, 12, 18, 0.44);
    border: 1px solid rgba(255, 218, 64, 0.14);
}

.bracket-versus span {
    color: #FFEA00;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    line-height: 0.9;
    font-weight: 900;
}

.bracket-versus strong,
.bracket-score-pill {
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
}

.bracket-team {
    min-width: 0;
    min-height: 48px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 26px;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.bracket-team img {
    width: 44px;
    height: 32px;
    object-fit: cover;
    border-radius: 7px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.bracket-team strong,
.bracket-team.empty {
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bracket-team.empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #9AA2B1;
}

.bracket-team em {
    width: 24px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #F4F7FB;
    color: #0F172A;
    font-family: 'Oswald', sans-serif;
    font-size: 19px;
    font-style: normal;
    font-weight: 800;
}

.bracket-placeholder {
    opacity: 0.42;
}

.bracket-note {
    margin-top: 5px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(255, 184, 28, 0.13);
    color: #FFE68A;
    font-size: 10px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.all-matches-summary {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid #E2E6EF;
    color: #6B7280;
    font-size: 13px;
    font-weight: 700;
}

.all-matches-summary strong {
    color: #003DA5;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    line-height: 1;
}

.all-match-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: #9AA2B1;
    font-size: 11px;
    font-weight: 700;
}

.all-match-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Polished knockout composition */
.knockout-board {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 184, 28, 0.10), transparent 34%),
        linear-gradient(180deg, #1F2527 0%, #171D20 100%);
    border-radius: 20px;
    padding: 24px;
}

.knockout-board-header {
    padding: 0 4px 6px;
}

.knockout-posters {
    min-width: 1280px;
}

.knockout-poster {
    grid-template-columns: minmax(470px, 1fr) 260px minmax(470px, 1fr);
    gap: 38px;
    min-height: calc((var(--side-rows, 8) * 68px) + 118px);
    padding: 30px 28px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12) 0 10%, rgba(255,255,255,0.055) 11% 22%, transparent 23%),
        linear-gradient(120deg, rgba(255,255,255,0.075), transparent 28%),
        linear-gradient(180deg, #313837 0%, #252B2B 100%);
}

.knockout-side {
    grid-template-rows: repeat(var(--side-rows, 8), minmax(58px, 1fr));
    gap: 9px;
}

.knockout-poster::before,
.knockout-poster::after,
.knockout-side::after,
.bracket-pair.left::after,
.bracket-pair.right::after {
    background: none;
    border-color: rgba(255, 224, 67, 0.62);
}

.bracket-pair.left::after,
.bracket-pair.right::after {
    background: linear-gradient(90deg, rgba(255,224,67,0.2), rgba(255,224,67,0.8));
    border: none;
}

.bracket-card {
    min-height: 54px;
    background: rgba(255, 255, 255, 0.075);
}

.bracket-team {
    min-height: 44px;
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    border-radius: 9px;
}

.bracket-team img {
    width: 40px;
    height: 29px;
}

.bracket-team strong,
.bracket-team.empty {
    font-size: 11.5px;
}

.bracket-team em {
    width: 23px;
    height: 25px;
    font-size: 17px;
}

.bracket-versus {
    min-height: 42px;
}

.knockout-center {
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,0.09), rgba(255,255,255,0.03) 58%, transparent 60%);
}

.knockout-center-title strong {
    font-size: 52px;
}

.knockout-trophy {
    width: 112px;
    height: 112px;
    font-size: 48px;
}

.bracket-note {
    position: relative;
    width: fit-content;
    max-width: 100%;
}

/* Compact tournament tree */
.knockout-tree {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(500px, 1fr) 220px minmax(500px, 1fr);
    gap: 26px;
    min-width: 1180px;
    min-height: 660px;
    padding: 28px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.07), transparent 38%),
        linear-gradient(180deg, #303837 0%, #222829 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 18px 48px rgba(0,0,0,0.18);
    overflow: hidden;
}

.knockout-tree::before {
    content: '';
    position: absolute;
    inset: 16px;
    border-radius: 14px;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    pointer-events: none;
}

.tree-half,
.knockout-tree-center {
    position: relative;
    z-index: 1;
}

.tree-half {
    display: grid;
    grid-template-columns: repeat(var(--tree-columns), minmax(86px, 1fr));
    gap: 22px;
    align-items: stretch;
}

.tree-column {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 12px;
    position: relative;
}

.tree-column:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 8%;
    bottom: 8%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 224, 67, 0.56), transparent);
}

.tree-left .tree-column:not(:last-child)::after {
    right: -11px;
}

.tree-right .tree-column:not(:last-child)::after {
    left: -11px;
}

.tree-match {
    position: relative;
    min-width: 0;
}

.tree-match::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 18px;
    height: 1px;
    background: rgba(255, 224, 67, 0.72);
}

.tree-match.left::after {
    right: -20px;
}

.tree-match.right::after {
    left: -20px;
}

.tree-match-meta {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 3px;
    color: rgba(232, 239, 246, 0.62);
    font-size: 8.5px;
    font-weight: 800;
    line-height: 1;
}

.tree-match-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 22px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.05);
}

.tree-team {
    min-width: 0;
    height: 27px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 5px;
    padding: 3px 5px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.tree-team img {
    width: 24px;
    height: 17px;
    object-fit: cover;
    border-radius: 3px;
}

.tree-team span {
    color: #111827;
    font-size: 9.5px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-team em {
    width: 18px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #F3F6FB;
    color: #0F172A;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.tree-team.empty {
    grid-template-columns: minmax(0, 1fr) 18px;
    opacity: 0.55;
}

.tree-team.empty img {
    display: none;
}

.tree-note {
    margin-top: 3px;
    padding: 4px 6px;
    border-radius: 7px;
    background: rgba(255, 184, 28, 0.13);
    color: #FFE68A;
    font-size: 8.5px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.knockout-tree-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    text-align: center;
}

.tree-title strong {
    display: block;
    color: #FFED3D;
    font-family: 'Oswald', sans-serif;
    font-size: 34px;
    line-height: 0.9;
    font-weight: 900;
    text-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.tree-title span {
    display: block;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.tree-fifa-logo {
    display: block;
    max-height: 100px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
}

.tree-final-card {
    width: 132px;
}

.tree-final-label,
.tree-third-place {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    min-height: 24px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #111827;
    font-size: 10px;
    font-weight: 900;
    margin-bottom: 6px;
}

.tree-third-place {
    margin-bottom: 0;
    background: rgba(15, 23, 42, 0.48);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.copa-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, #003DA5, #002D7A);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 61, 165, 0.3);
}

.copa-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 61, 165, 0.4);
}

.copa-btn-primary:active {
    transform: translateY(0);
}

/* =====================================================
   SPINNER
   ===================================================== */
.copa-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #E2E6EF;
    border-top-color: #E4002B;
    border-right-color: #FFB81C;
    border-bottom-color: #00A1DE;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* =====================================================
   COUNTDOWN
   ===================================================== */
.countdown-unit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #FFB81C;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 184, 28, 0.2);
    transition: background 0.3s ease;
}

.countdown-unit.tick {
    background: rgba(255, 184, 28, 0.25);
}

@keyframes fireGlow {
    0%, 100% { text-shadow: 0 0 4px rgba(228, 0, 43, 0.5); }
    50% { text-shadow: 0 0 12px rgba(228, 0, 43, 0.8); }
}

/* =====================================================
   TAB TRANSITIONS
   ===================================================== */
.tab-content {
    animation: tabFadeIn 0.35s ease-out;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes liveGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(228, 0, 43, 0.15); }
    50% { box-shadow: 0 4px 30px rgba(228, 0, 43, 0.25); }
}

@keyframes rollingBall {
    0% { transform: translateX(-1px) rotate(0deg); }
    50% { transform: translateX(2px) rotate(180deg); }
    100% { transform: translateX(-1px) rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
    opacity: 0;
}

.animate-pulse-slow {
    animation: liveGlow 3s ease-in-out infinite;
}

/* =====================================================
   ENHANCED HOVER EFFECTS
   ===================================================== */
.copa-card {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.copa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-card {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.group-row:hover,
.standing-row:hover {
    background: linear-gradient(90deg, rgba(0, 161, 222, 0.03) 0%, transparent 100%);
}

.today-match-card {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.3s ease;
}

.live-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(228, 0, 43, 0.2);
}

/* Nav tab indicator */
.nav-tab.active {
    position: relative;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #003DA5;
    border-radius: 2px 2px 0 0;
}

/* Button ripple effect */
.copa-btn-primary {
    position: relative;
    overflow: hidden;
}

.copa-btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.copa-btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Scroll-to-top fade */
.scroll-top-btn {
    position: fixed;
    bottom: 88px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #003DA5, #002D7A);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 61, 165, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 61, 165, 0.4);
}

/* =====================================================
   MODAL
   ===================================================== */
#matchModal > div:first-child {
    animation: fadeIn 0.2s ease-out;
}

#matchModal > div:last-child {
    animation: slideUp 0.3s ease-out;
}

.modal-state {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6B7280;
    font-weight: 700;
}

.match-detail-shell,
.scorer-detail-shell {
    max-width: 1080px;
    margin: 0 auto;
}

.match-detail-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.detail-team {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.detail-team img {
    width: 58px;
    height: 40px;
    object-fit: cover;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.detail-team strong {
    color: #1F2937;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

.detail-team span {
    color: #9AA2B1;
    font-size: 12px;
    font-weight: 800;
}

.detail-score-box {
    min-width: 112px;
    min-height: 78px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #F1F3F8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.detail-score-box strong {
    color: #111827;
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    line-height: 1;
}

.detail-score-box span {
    color: #9AA2B1;
    font-weight: 900;
}

.detail-score-box em {
    flex-basis: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #E4002B;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.match-detail-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.detail-panel {
    background: white;
    border: 1px solid #E2E6EF;
    border-radius: 8px;
    padding: 16px;
}

.stadium-panel {
    display: grid;
    grid-template-columns: minmax(220px, 42%) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.stadium-panel > img,
.stadium-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    object-fit: cover;
    background: #F1F3F8;
}

.stadium-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9AA2B1;
    font-size: 28px;
}

.stadium-panel span,
.detail-fact span,
.lineup-list > span {
    color: #9AA2B1;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stadium-panel h4 {
    color: #1F2937;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.stadium-panel p {
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.detail-fact {
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    background: #F8F9FC;
}

.detail-fact strong {
    display: block;
    margin-top: 3px;
    color: #1F2937;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.detail-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.detail-section-title h4 {
    color: #1F2937;
    font-size: 16px;
    font-weight: 900;
}

.goal-detail-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.goal-detail-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #F8F9FC;
}

.goal-detail-item > i {
    color: #E4002B;
}

.goal-detail-item strong {
    display: block;
    color: #1F2937;
    font-size: 13px;
    font-weight: 900;
}

.goal-detail-item span,
.goal-detail-item small {
    display: block;
    color: #6B7280;
    font-size: 12px;
    font-weight: 600;
}

.goal-detail-item em {
    color: #003DA5;
    font-style: normal;
    font-weight: 900;
}

.goal-detail-item.is-placeholder {
    border: 1px dashed #C7CDD9;
    background: #FBFCFE;
}

.goal-detail-item.is-placeholder > i {
    color: #9AA2B1;
}

.lineup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lineup-column {
    min-width: 0;
    padding: 12px;
    border-radius: 8px;
    background: #F8F9FC;
}

.lineup-team-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lineup-team-head img {
    width: 42px;
    height: 30px;
    object-fit: cover;
    border-radius: 6px;
}

.lineup-team-head h5 {
    color: #1F2937;
    font-size: 14px;
    font-weight: 900;
}

.lineup-team-head span,
.lineup-coach {
    color: #6B7280;
    font-size: 12px;
    font-weight: 700;
}

.lineup-coach {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}

.lineup-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.lineup-player {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 7px;
    background: white;
}

.lineup-player em {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #E8F0FE;
    color: #003DA5;
    font-style: normal;
    font-weight: 900;
}

.lineup-player strong {
    min-width: 0;
    color: #1F2937;
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lineup-player small {
    color: #9AA2B1;
    font-size: 11px;
    font-weight: 700;
}

.detail-empty {
    color: #9AA2B1;
    font-size: 13px;
    font-weight: 700;
}

.scorer-detail-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.scorer-detail-header h3 {
    color: #1F2937;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
}

.scorer-detail-header p {
    color: #6B7280;
    font-size: 14px;
    font-weight: 700;
}

.scorer-goals-total {
    min-width: 74px;
    text-align: center;
}

.scorer-goals-total strong {
    display: block;
    color: #E4002B;
    font-family: 'Oswald', sans-serif;
    font-size: 40px;
    line-height: 1;
}

.scorer-goals-total span {
    color: #9AA2B1;
    font-size: 12px;
    font-weight: 800;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .scorers-podium,
    .match-detail-grid,
    .lineup-grid {
        grid-template-columns: 1fr;
    }

    .podium-card,
    .podium-rank-1,
    .podium-rank-2,
    .podium-rank-3 {
        min-height: auto;
    }

    .match-detail-scoreboard {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stadium-panel {
        grid-template-columns: 1fr;
    }

    .stadium-panel > img,
    .stadium-placeholder {
        width: 100%;
    }

    .detail-facts {
        grid-template-columns: 1fr;
    }

    .scorer-detail-header {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .stat-value {
        font-size: 20px;
    }

    .score-value {
        font-size: 26px;
    }

    .match-flag {
        width: 32px;
        height: 22px;
    }

    .player-photo-container {
        width: 48px;
        height: 48px;
    }

    .player-photo,
    .player-photo-placeholder {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .goals-count .font-heading {
        font-size: 24px;
    }

    .nav-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .knockout-board {
        padding: 16px;
        border-radius: 12px;
    }

    .knockout-board-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .knockout-posters {
        min-width: 1040px;
    }

    .knockout-poster {
        grid-template-columns: minmax(380px, 1fr) 210px minmax(380px, 1fr);
        gap: 26px;
        padding: 22px;
    }

    .knockout-center-title strong {
        font-size: 40px;
    }

    .knockout-center-title span {
        font-size: 19px;
    }

    .knockout-trophy {
        width: 92px;
        height: 92px;
        font-size: 38px;
    }

    .knockout-rounds {
        min-width: calc(var(--round-count) * 260px);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 12px;
        gap: 10px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .stat-value {
        font-size: 18px;
    }

    .score-value {
        font-size: 22px;
    }

    .match-team-name {
        font-size: 11px;
    }

    .previous-score-line {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .previous-team,
    .previous-team.is-away {
        justify-content: center;
        text-align: center;
    }

    .previous-score {
        margin: 0 auto;
    }
}

/* =====================================================
   TABLE RESPONSIVE WRAPPER
   ===================================================== */
.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .copa-header,
    .copa-nav,
    footer,
    .copa-btn-primary,
    #syncStatus {
        display: none !important;
    }

    .copa-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
