.tournament-page-wrapper {
    background-color: var(--primary-bg); /* Use theme variable */
    min-height: 100vh;
    padding: 0 0 50px; /* Remove top padding, keep bottom */
    font-family: 'montserrat-md', sans-serif;
}

.banner img {
    object-fit: contain;
    width: 100%;
}

.tournament-page-container {
    background-color: #fff; /* White background for the content area */
    border-radius: 8px;
    padding: 30px;
    width: calc(100% - 40px); /* Match banner container padding */
    max-width: 1360px; /* 1400px - 40px padding */
    margin: 20px auto 0; /* Add top margin to separate from banner */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Navigation */
.tournament-nav-container {
    margin-bottom: 30px;
    width: 100%;
}

.tournament-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #0d79e2;
    padding-bottom: 0;
    align-items: flex-end;
    overflow-x: auto; /* Allow horizontal scrolling */
    white-space: nowrap; /* Prevent wrapping */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.tournament-nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.tournament-nav-item {
    font-family: 'montserrat-bold', sans-serif;
    font-size: 13px;
    color: #0d79e2;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-radius: 5px 5px 0 0;
}

.tournament-nav-item:hover {
    background-color: #e6f2ff;
}

.tournament-nav-item.active {
    background-color: #0d79e2;
    color: #fff;
    border-radius: 5px 5px 0 0;
}

/* Grid */
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 1200px) {
    .tournament-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .tournament-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tournament-grid {
        grid-template-columns: 1fr;
        gap: 10px; /* Reduce gap on mobile */
    }
    
    .tournament-page-container {
        padding: 15px; /* Reduce padding on mobile */
        width: calc(100% - 20px);
    }

    /* Mobile Text Reductions */
    .tournament-title {
        font-size: 13px;
        min-height: 30px;
    }

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

    .stat-icon {
        font-size: 12px;
    }

    .time-info {
        font-size: 11px;
    }

    .detail-btn {
        font-size: 11px;
        padding: 6px 0;
        width: 90px;
    }

    .card-body {
        padding: 50px 10px 12px;
    }

    /* Mobile Pagination */
    .page-item .page-link {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Card */
.tournament-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 2px 4px 0px #00000040;
    border: 1px solid #eee; /* Subtle border */
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header-image {
    height: 140px;
    width: 100%;
    background-size: cover;
    background-position: center 85%;
    position: relative;
}

/* Status Badges */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'montserrat-bold', sans-serif;
    text-transform: uppercase;
}

.status-upcoming {
    background-color: #e67e22; /* Orange matching image */
}

.status-ongoing {
    background-color: #2ecc71; /* Green */
}

.status-ended {
    background-color: #95a5a6; /* Gray */
}

/* Logo */
.tournament-logo-container {
    position: absolute;
    top: 105px; /* Adjust to overlap header and body */
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #fff;
    overflow: hidden;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tournament-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Body */
.card-body {
    padding: 60px 15px 16px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tournament-detail {
    padding: 60px 15px 16px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tournament-title {
    font-size: 15px;
    color: #000;
    font-weight:700;
    text-transform: uppercase;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.tournament-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    width: 100%;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #000;
    padding:0;
    font-family: 'montserrat-bold', sans-serif;
}

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

.time-info {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'montserrat-md', sans-serif;
}

.time-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.detail-btn {
    background-color: #0d79e2;
    color: #fff;
    border: none;
    padding: 8px 0;
    width: 100px;
    border-radius: 5px;
    font-family: 'montserrat-bold', sans-serif;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-top: auto;
    text-align: center;
}

.detail-btn:hover {
    background-color: #0a62b9;
}

/* Pagination */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    padding-bottom: 20px; /* Add bottom padding for mobile scroll */
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 5px;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'montserrat-md', sans-serif;
}

.page-item.active .page-link {
    background-color: #0d79e2;
    border-color: #0d79e2;
    color: #fff;
}

.page-item.disabled .page-link {
    color: #ccc;
    pointer-events: none;
    background-color: #f9f9f9;
}

.page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #f0f0f0;
    border-color: #d0d0d0;
}


        .banner img {
            object-position: center 75%;
        }

        .hero {
            position: relative;
            border-radius: 14px;
            overflow: hidden;
            margin: 0 auto 20px;
            max-width: 1220px;
        }

        .hero img {
            width: 100%;
            height: 300px;
            object-fit: cover;
            display: block;
        }

        .hero::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.5));
        }

        .hero-title {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            color: #fff;
            font-weight: 800;
            font-size: 34px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
            text-align: center;
            width: calc(100% - 40px);
            line-height: 1.25;
            white-space: normal;
        }

        .detail-wrapper {
            background: #fff;
            border-radius: 12px;
        }

        .overview-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            align-items: stretch;
        }

        .overview-hero {
            display: grid;
            grid-template-columns: 0.75fr 1.55fr;
            gap: 16px;
            margin-bottom: 20px;
            align-items: stretch;
        }

        .overview-left,
        .overview-right {
            display: flex;
            flex-direction: column;
            gap: 14px;
            height: fit-content;
        }

        .overview-left .overview-card {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .overview-card {
            border: 1px solid #d9e3f5;
            border-radius: 12px;
            background: #fff;
            padding: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .overview-card__title {
            font-weight: 800;
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 8px;
            color: #0f172a;
            text-transform: uppercase;
            margin-bottom: 12px;
        }

        .top-scorer-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .top-scorer-row {
            display: grid;
            grid-template-columns: auto 1fr auto;
            align-items: center;
            gap: 10px;
        }

        .top-scorer-flag {
            width: 28px;
            height: 18px;
            background-size: cover;
            background-position: center;
            border-radius: 4px;
        }

        .top-scorer-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .top-scorer-name {
            font-weight: 700;
            font-size: 14px;
            color: #0f172a;
        }

        .top-scorer-bar {
            width: 100%;
            height: 6px;
            background: #e2e8f0;
            border-radius: 999px;
            overflow: hidden;
        }

        .top-scorer-bar span {
            display: block;
            height: 100%;
            background: #0D79E2;
            border-radius: 999px;
        }

        .top-scorer-goals {
            font-weight: 800;
            color: #0D79E2;
        }

        .top-scorer-toggle {
            margin-top: 10px;
            width: 100%;
            border: 1px solid #0d79e2;
            background: #fff;
            color: #0d79e2;
            font-weight: 700;
            font-size: 13px;
            padding: 8px 10px;
            border-radius: 8px;
            cursor: pointer;
            transition: none;
        }
        .top-scorer-toggle:hover {
            background: #0d79e2;
            color: #fff;
            box-shadow: none;
            outline: none;
        }

        .overview-group-tabs {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
            margin-top: 12px;
            justify-items: center;
        }

        .overview-group-tab {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 1px solid #0D79E2;
            background: #fff;
            color: #0D79E2;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .overview-group-tab.active,
        .overview-group-tab:hover {
            background: #0D79E2;
            color: #fff;
        }

        .overview-rounds {
            margin-top: 14px;
            display: grid;
            gap: 12px;
        }

        .overview-round-block {
            padding: 0;
            background: transparent;
        }

        .overview-round-title {
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 8px;
            text-transform: uppercase;
        }

        .overview-round-list {
            display: grid;
            gap: 0;
            background: #fff;
            border: 1px solid #0D79E2;
            border-radius: 10px;
            padding: 2px 10px;
            box-shadow: 0px 2px 4px 0px #00000040;
        }

        .overview-flag {
            width: 40px;
            height: auto;
            max-height: 28px;
            object-fit: cover;
            object-position: center;
            display: block;
            flex-shrink: 0;
            border-radius: 2px;
        }
        .overview-flag[src*="/images/clubs/"] {
            object-fit: contain;
        }

        .overview-round-list .team-cell {
            font-size: 13px;
            gap: 10px;
            color: #0f172a;
            font-weight: 700;
        }

        .overview-round-list .team-cell span:not(.team-score) {
            overflow: visible;
            text-overflow: unset;
            display: block;
            -webkit-line-clamp: unset;
            -webkit-box-orient: unset;
            white-space: normal;
            overflow-wrap: break-word;
            word-break: normal;
        }

        .overview-round-list .team-cell.away span {
            text-align: left;
        }

        .overview-round-list .match-schedule {
            font-size: 11px;
            min-width: 88px;
        }

        .overview-match-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
            align-items: center;
            background: #fff;
            padding: 8px 10px;
            gap: 12px;
        }

        .overview-match-row .match-mid {
            justify-content: center;
        }

        .overview-round-list .overview-match-row+.overview-match-row {
            border-top: 1px solid #e5e7eb;
        }

        .upcoming-list {
            display: flex;
            flex-direction: column;
            gap: 0;
            border: 1px solid #0D79E2;
            border-radius: 10px;
            overflow: hidden;
            background: #fff;
            padding: 10px;
            box-shadow: 0px 2px 4px 0px #00000040;
        }

        .upcoming-row {
            border: none;
            border-radius: 0;
            padding: 12px 14px;
            background: #fff;
        }

        .upcoming-meta {
            font-size: 14px;
            color: #616d7e;
            margin-bottom: 6px;
        }

        .upcoming-row.match-row {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 16px;
        }

        .upcoming-row.match-row .upcoming-meta {
            flex-shrink: 0;
            font-size: 14px;
            color: #616d7e;
            margin-bottom: 0;
        }

        .upcoming-row.match-row .match-mid-flex {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
        }

        .upcoming-row.match-row .match-side {
            display: none;
        }

        .upcoming-row.match-row .upcoming-action {
            flex-shrink: 0;
            width: 124px;
            text-align: right;
        }

        .upcoming-row.match-row .upcoming-action .predict-btn {
            width: 100%;
        }

        .upcoming-row.match-row .match-mid-flex .team-cell span {
            text-align: right;
        }

        .upcoming-row.match-row .match-mid-flex .team-cell.away span {
            text-align: left;
        }

        /* Mobile: hiển thị match-side, ẩn match-mid-center */
        @media (max-width: 768px) {
            .upcoming-row.match-row {
                display: grid;
                grid-template-columns: 1fr 76px;
                grid-template-rows: auto auto auto;
                align-items: stretch;
                gap: 6px 10px;
                padding: 10px 16px;
            }

            .upcoming-row.match-row .upcoming-meta {
                grid-column: 1 / -1;
                grid-row: 1;
                margin-bottom: 2px;
                font-size: 13px;
            }

            .upcoming-row.match-row .match-mid-flex {
                grid-column: 1;
                grid-row: 2;
                display: grid;
                grid-template-columns: 1fr;
                grid-template-rows: auto auto;
                align-items: center;
                gap: 4px 10px;
                padding: 0;
            }

            .upcoming-row.match-row .match-mid-flex .team-cell {
                grid-column: 1;
                justify-content: flex-start;
                align-items: center;
            }

            .upcoming-row.match-row .match-mid-flex .team-cell.away {
                grid-row: 2;
                justify-content: flex-start !important;
            }

            .upcoming-row.match-row .match-mid-flex .match-mid-center {
                display: none;
            }

            .upcoming-row.match-row .match-side {
                display: flex;
                grid-column: 2;
                grid-row: 2;
                align-items: center;
                text-align: center;
                padding-left: 20px;
                border-left: 1px solid #e2e8f0;
                align-self: stretch;
                justify-content: center;
                min-width: 76px;
                width: 76px;
            }

            .upcoming-row.match-row .match-side .match-side-time {
                font-size: 13px !important;
                text-align: center !important;
                font-weight: 700;
                line-height: 1.3;
            }

            .upcoming-row.match-row .match-side .match-side-time span {
                font-size: 11px !important;
                display: block;
                font-weight: 500;
            }

            @media (min-width: 769px) {
                .mobile-penalty { display: none !important; }
                .pc-penalty { display: block !important; }
            }
            @media (max-width: 768px) {
                .mobile-penalty { display: inline-block !important; }
                .pc-penalty { display: none !important; }
            }

            .match-side-time .penalty-score {
                display: block !important;
                font-size: 11px !important;
                font-weight: 500;
                font-style: italic;
                color: #64748b;
                margin-top: 2px;
            }

            .upcoming-row.match-row .upcoming-action {
                grid-column: 1 / -1;
                grid-row: 3;
                margin-top: 8px;
                display: flex;
                justify-content: center;
                width: auto;
            }

            .upcoming-row.match-row .predict-btn {
                width: 50% !important;
            }
        }

        .upcoming-teams .team-cell {
            justify-content: flex-start;
        }

        .upcoming-teams .team-cell.away {
            justify-content: flex-end;
        }

        .upcoming-teams .team-cell span {
            display: block;
            text-align: left;
            min-height: 0;
            -webkit-line-clamp: unset;
            -webkit-box-orient: unset;
            white-space: nowrap;
            line-height: 1.2;
        }

        .upcoming-teams .team-cell.away span {
            text-align: right;
        }

        .upcoming-time {
            text-align: center;
            font-weight: 700;
            color: #000;
            font-size: 16px;
            line-height: 1.3;
            min-width: 110px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .upcoming-time span {
            display: block;
            color: #000;
            font-weight: 500;
            font-size: 16px;
        }

        .upcoming-action {
            display: flex;
            align-items: center;
            justify-content: flex-end;
        }



        .predict-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            border: none;
            border-radius: 10px;
            padding: 5px 6px;
            font-weight: 800;
            font-size: 16px;
            letter-spacing: 0.2px;
            color: #fff;
            background: #25ae5f;
            cursor: pointer;
            text-align: center;
            white-space: nowrap;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            box-shadow: none;
        }

        .predict-btn:hover {
            background: #25ae5f;
            box-shadow: none;
            transform: none;
        }

        .predict-btn.is-done {
            background: #0D79E2;
            box-shadow: none;
            cursor: default;
        }

        .predict-btn.is-disabled,
        .predict-btn:disabled {
            background: #A2A2A2;
            box-shadow: none;
            cursor: default;
        }

        .predict-btn.is-done:disabled {
            background: #0D79E2;
            box-shadow: none;
            cursor: default;
        }

        @media (max-width: 768px) {
            .upcoming-time {
                font-size: 13px !important;
                line-height: 1.2;
                word-break: break-word;
                width: 100%;
                min-width: unset;
            }

            .match-schedule {
                font-size: 13px !important;
                line-height: 1.2;
                word-break: break-word;
                width: 100%;
                min-width: unset;
            }

            .overview-round-list {
                padding: 2px 4px;
            }

            .upcoming-row:not(.match-row) {
                padding: 4px;
            }

            .upcoming-list {
                padding: 4px;
            }

            .upcoming-teams {
                grid-template-columns: 1fr auto;
                grid-template-rows: auto auto auto;
                align-items: center;
                gap: 8px 12px;
            }

            .upcoming-teams .team-cell {
                grid-column: 1;
            }

            .upcoming-teams .team-cell.away {
                grid-row: 2;
                justify-content: flex-start !important;
            }

            .upcoming-teams .team-cell.away span {
                text-align: left !important;
            }

            .upcoming-time {
                grid-column: 2;
                grid-row: 1 / span 2;
                align-items: flex-end;
                text-align: right;
                align-self: stretch;
                justify-content: center;
                padding-left: 12px;
                border-left: 1px solid #e2e8f0;
            }

            .upcoming-action {
                grid-column: 1 / -1;
                justify-content: stretch;
            }

            .predict-btn {
                width: 100%;
                min-width: 0;
                font-size: 13px;
                border-radius: 10px;
            }

            .upcoming-time span,
            .match-schedule span {
                font-size: 11px !important;
            }

            .overview-match-row {
                display: grid;
                grid-template-columns: 1fr auto;
                grid-template-rows: auto auto;
                align-items: center;
                gap: 8px 12px;
                text-align: left;
            }

            .overview-match-row .team-cell {
                grid-column: 1;
                align-items: center;
            }

            .overview-match-row .team-cell.away {
                grid-row: 2;
                justify-content: flex-start !important;
            }

            .overview-match-row .team-cell.away span {
                text-align: left !important;
            }

            .overview-match-row .match-mid {
                grid-column: 2;
                grid-row: 1 / span 2;
                justify-content: center;
            }

            .match-row {
                display: grid;
                grid-template-columns: 1fr 76px;
                grid-template-rows: auto;
                align-items: center;
                gap: 6px 10px;
                padding: 12px 10px;
            }

            .match-row .match-link,
            .match-row>.match-right-time {
                display: none;
            }

            .match-row .match-link-block {
                display: flex;
                grid-column: 1 / -1;
                grid-row: 2;
            }

            .match-row[data-has-predict-status="0"] .match-link-block {
                display: none;
            }

            .match-row .match-mid-flex {
                grid-column: 1;
                display: grid;
                grid-template-columns: 1fr;
                grid-template-rows: auto auto;
                align-items: center;
                gap: 4px 10px;
                padding: 0;
                grid-row: 1;
            }

            .match-row .match-mid-flex .team-cell {
                grid-column: 1;
                justify-content: flex-start;
                align-items: center;
            }

            .match-row .match-mid-flex .team-cell.away {
                grid-row: 2;
                justify-content: flex-start !important;
            }

            .match-row .match-mid-flex .team-cell.away span {
                text-align: left !important;
            }

            .overview-rounds .match-row .match-mid-flex .team-cell {
                justify-content: flex-start;
            }

            .overview-rounds .match-row .match-mid-flex .team-cell span,
            .overview-rounds .match-row .match-mid-flex .team-cell.away span {
                text-align: left !important;
            }

            .match-row .match-mid-flex .match-mid-center {
                display: none;
            }

            .overview-match-row .team-cell img,
            .match-row .match-mid-flex .team-cell img,
            .upcoming-teams .team-cell img {
                order: 0;
            }

            .overview-match-row .team-cell span,
            .match-row .match-mid-flex .team-cell span,
            .upcoming-teams .team-cell span {
                order: 1;
                min-height: 0;
                -webkit-line-clamp: unset;
                -webkit-box-orient: unset;
                white-space: nowrap;
            }

            .overview-rounds .match-row .match-mid-flex .team-cell span {
                white-space: normal;
                overflow: visible;
                text-overflow: unset;
                -webkit-line-clamp: unset;
                -webkit-box-orient: unset;
            }

            .overview-match-row .team-cell .team-score,
            .match-row .match-mid-flex .team-cell .team-score,
            .upcoming-teams .team-cell .team-score {
                display: inline-flex;
                order: 2;
            }

            .overview-match-row .match-mid .score-badge,
            .match-row .match-mid-center .score-badge {
                display: none;
            }

            .overview-match-row .match-mid .score-stack,
            .match-row .match-mid-center .score-stack {
                display: none;
            }

            .match-row .match-side {
                display: flex;
                grid-column: 2;
                align-items: center;
                text-align: center;
                padding-left: 20px;
                border-left: 1px solid #e2e8f0;
                align-self: stretch;
                justify-content: center;
                min-width: 76px;
                width: 76px;
            }

            .match-side-time {
                font-size: 13px !important;
                text-align: center !important;
            }

            .match-side-time span {
                font-size: 11px !important;
            }

            .match-side-time .match-status {
                font-size: 11px;
            }

            .match-side-time .match-status {
                text-align: center !important;
                display: block;
            }

            .overview-match-row[data-has-score="1"] {
                grid-template-columns: 1fr;
            }

            .overview-match-row[data-has-score="1"] .match-mid {
                display: none;
            }

            .match-row[data-has-score="1"] .match-mid-flex {
                grid-template-columns: 1fr;
            }

        }

        .upcoming-row+.upcoming-row {
            border-top: 1px solid #e5e7eb;
        }

        .video-wrapper {
            position: relative;
            padding-top: 56.25%;
            border-radius: 14px;
            overflow: hidden;
            background: #000;
        }

        .video-wrapper iframe {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }

        .right-col {
            display: grid;
            gap: 20px;
            height: 100%;
        }

        .info-card .card-body {
            display: flex;
            flex-direction: column;
            height: 100%;
            align-items: stretch;
            border-color: #0D79E2;
        }

        .info-card .info-list {
            flex: 1;
        }

        .card {
            background: #fff;
            border: 1px solid #d9e3f5;
            border-radius: 12px;
        }

        .card-body {
            padding: 18px 20px;
            text-align: left;
            align-items: stretch;
        }

        .section-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 700;
            font-size: 28px !important;
            margin-bottom: 24px;
            color: #0f172a;
            letter-spacing: 0.2px;
        }

        .icon-inline {
            width: 24px;
            height: 24px;
            display: inline-block;
        }

        .info-list {
            display: grid;
            gap: 12px;
            font-size: 14px;
            color: #2b3340;
        }

        .info-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            border-bottom: 1px solid #e5e7eb;
            padding-bottom: 6px;
            gap: 8px;
            text-align: left;
            flex-direction: column;
        }

        .info-row strong {
            font-weight: 800;
            color: #1a1f2c;
        }

        .status-tag {
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        .cta-btn {
            margin-top: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 20px 18px;
            border-radius: 10px;
            background: #FDC700;
            color: #1f2937;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        .cta-btn:hover {
            background: #FDC700;
            box-shadow: none;
        }

        .stat-cards {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .stat-card {
            border-radius: 12px;
            padding: 14px 16px;
            color: #0f172a;
            border: 1px solid #dfe7fb;
            box-shadow: 0px 2px 4px 0px #00000040;
        }

        .stat-card .label {
            font-weight: 500;
            color: #334155;
            padding-bottom: 20px;
            padding-left: 0px;
            font-size: 14px
        }

        .stat-card .value {
            font-size: 28px;
            font-weight: 900;
            padding-top: 20px;
            padding-bottom: 40px;
        }

        .prize-list {
            display: grid;
            gap: 10px;
            font-size: 14px;
        }

        .prize-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            padding: 8px 0;
            border-bottom: 1px solid #e5e7eb;
            text-align: left;
        }

        .prize-item:last-child {
            border-bottom: none;
        }

        .prize-item span {
            width: 70%;
            display: inline-block;
        }

        .prize-item strong {
            white-space: nowrap;
            min-width: fit-content;
        }

        .tab-section {
            display: none;
        }

        .tab-section.active {
            display: block;
        }

        .empty-section {
            border: 1px dashed #d8e1f0;
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            color: #475569;
            background: #f8fafc;
            font-weight: 600;
        }

        .group-overview {
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 16px;
            margin-top: 18px;
        }

        .panel-card {
            background: #fff;
            border: 1px solid #dfe7fb;
            border-radius: 12px;
            padding: 14px 16px;
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
        }

        .panel-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 800;
            font-size: 20px;
            color: #0f172a;
            margin-bottom: 12px;
        }

        .scorer-list {
            display: grid;
            gap: 10px;
        }

        .scorer-row {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: center;
            padding: 10px 12px;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            background: #f8fafc;
        }

        .scorer-name {
            font-weight: 700;
            color: #0f172a;
        }

        .scorer-goals {
            font-weight: 800;
            color: #0d79e2;
        }

        .upcoming-matches {
            display: grid;
            gap: 10px;
        }

        .match-item {
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            padding: 10px 12px;
            background: #f8fafc;
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 8px;
            font-weight: 700;
            color: #0f172a;
        }

        .match-meta {
            font-size: 12px;
            color: #475569;
        }

        .group-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }

        .group-tab {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 1px solid #0d79e2;
            color: #0d79e2;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            cursor: pointer;
            background: #fff;
        }

        .group-tab.active {
            background: #0d79e2;
            color: #fff;
        }

        .group-matches {
            display: grid;
            gap: 10px;
        }

        .group-match-card {
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            padding: 10px 12px;
            background: #fff;
        }

        .group-match-round {
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 6px;
        }

        .group-match-row {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 8px;
            font-weight: 700;
        }

        .group-match-time {
            font-size: 12px;
            color: #475569;
            text-align: center;
        }

        .group-stage-header {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 20px;
        }

        .group-stage-note {
            flex: 1;
            font-size: 14px;
            line-height: 1.6;
            color: #B8860B;
            font-weight: 700;
            padding: 0;
            background: transparent;
            border: none;
        }

        .group-tab-buttons,
        .group-view-tabs {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .group-view-tabs {
            margin-left: auto;
            flex-shrink: 0;
            gap: 0;
            white-space: nowrap;
            flex-wrap: nowrap;
        }

        .group-view-tabs .group-view-btn:hover {
            background: #0D79E2;
            color: #fff;
        }

        .group-tab-btn,
        .group-view-btn {
            border: 1px solid #0D79E2;
            color: #0D79E2;
            background: #fff;
            border-radius: 999px;
            padding: 10px 18px;
            font-weight: 800;
            letter-spacing: 0.2px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .group-tab-btn.active,
        .group-view-btn.active {
            background: #0D79E2;
            color: #fff;
        }

        .group-tab-btn:hover {
            background: #0D79E2;
            color: #fff;
        }

        .group-tab-buttons {
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .group-tab-label {
            font-weight: 900;
            color: #0D79E2;
            letter-spacing: 0.3px;
            font-size: 18px;
        }

        .group-tab-circle {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            background: #EFF6FF;
        }

        .group-tab-btn {
            min-width: 44px;
            text-align: center;
        }

        .group-card {
            border: 1px solid #d8e3f7;
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 16px;
            background: #fff;
            transition: none;
            box-shadow: 0px 2px 4px 0px #00000040;
        }

        .group-card__title {
            background: #0D79E2;
            color: #fff;
            font-weight: 800;
            text-transform: uppercase;
            padding: 16px;
            letter-spacing: 0.3px;
            text-align: center;
        }

        .match-row {
            display: grid;
            grid-template-columns: 1.2fr 2fr 1fr;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            border-bottom: 1px solid #eef2f7;
        }

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

        .team-cell {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 700;
            color: #0f172a;
            min-width: 0;
            font-size: 13px;
        }

        .team-cell span {
            flex: 1;
            display: block;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
            min-width: 0;
            line-height: 1.2;
            min-height: 0;
        }

        .team-cell.away {
            justify-content: flex-end;
        }

        .team-cell.away span {
            text-align: left;
        }

        .team-flag {
            width: 40px;
            height: auto;
            max-height: 28px;
            object-fit: cover;
            object-position: center;
            display: block;
            flex-shrink: 0;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            border-radius: 2px;
        }
        .team-flag[src*="/images/clubs/"] {
            object-fit: contain;
        }

        .score-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            color: #000;
            font-weight: 800;
            border-radius: 999px;
            min-width: 88px;
            font-size: 16px;
            text-align: center;
        }

        .team-cell .team-score {
            display: none;
            align-items: center;
            justify-content: flex-end;
            margin-left: auto;
            font-size: 16px;
            font-weight: 800;
            color: #000;
            min-width: 18px;
            flex: 0 0 auto;
            text-align: right;
            -webkit-line-clamp: unset;
            -webkit-box-orient: unset;
            white-space: nowrap;
            overflow: visible;
            text-overflow: unset;
        }

        .score-stack {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-weight: 800;
            color: #000;
            font-size: 16px;
            min-width: 32px;
        }

        .score-stack span {
            display: block;
            line-height: 1.1;
        }

        .match-time {
            text-align: right;
            color: #475569;
            font-size: 13px;
            line-height: 1.3;
        }

        .match-link-block {
            display: none;
            flex-direction: column;
            align-items: flex-start;
            min-width: 0;
        }

        .match-link {
            font-size: 13px;
            color: #0D79E2;
            text-decoration: underline;
            transition: color 0.2s ease;
        }

        .match-link.disabled {
            color: #A2A2A2;
            cursor: default;
            text-decoration: none;
        }

        .match-predict-status {
            margin-top: 4px;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.3;
        }

        .match-predict-status.is-correct {
            color: #06BC51;
        }

        .match-predict-status.is-predicted {
            color: #0D79E2;
        }

        .match-predict-status.is-muted {
            color: #A2A2A2;
        }

        .match-side {
            display: none;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
            min-width: 80px;
        }

        .match-side-time {
            text-align: right;
            font-size: 16px;
            font-weight: 700;
            color: #000;
            line-height: 1.2;
        }

        .match-side-time span {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: #475569;
        }

        .match-side-time .match-status {
            font-size: 12px;
            font-weight: 800;
            color: #0f172a;
            letter-spacing: 0.4px;
            text-transform: uppercase;
        }

        .match-video {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            height: 32px;
            min-width: 40px;
            padding: 0 8px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 700;
            color: #0f172a;
            background: #fff;
            text-decoration: none;
        }

        .match-video::before {
            content: '▶';
            font-size: 10px;
            line-height: 1;
        }

        .match-video-thumb {
            width: 58px;
            height: 34px;
            border-radius: 6px;
            border: 1px solid #e2e8f0;
            background-color: #0f172a;
            background-size: cover;
            background-position: center;
            position: relative;
            overflow: hidden;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }

        .match-video-thumb::after {
            content: '▶';
            font-size: 12px;
            color: #fff;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
            background: rgba(0, 0, 0, 0.25);
            border-radius: 999px;
            width: 18px;
            height: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .match-mid {
            display: grid;
            /* grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr); */
            align-items: center;
            justify-content: center;
            gap: 12px;
            text-align: center;
            font-weight: 700;
            color: #0f172a;
        }

        .match-mid.no-score {
            grid-template-columns: 1fr;
        }

        .match-mid-flex {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            text-align: center;
            font-weight: 700;
            color: #0f172a;
            flex-wrap: wrap;
            border-radius: 12px;
            padding: 10px 12px;
        }

        .match-mid-flex .team-cell {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            flex: 1;
            min-width: 0;
        }

        .match-mid-flex .match-mid-center {
            flex: 0 0 120px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .pc-only {
            display: none;
        }

        .mobile-only {
            display: none;
        }

        @media (max-width: 768px) {
            .mobile-only {
                display: block !important;
            }
        }

        @media (min-width: 769px) {
            .pc-only {
                display: block !important;
            }
        }

        @media (hover: hover) {
            .mobile-only {
                display: none !important;
            }

            .overview-round-list .match-row {
                grid-template-columns: 1fr !important;
                padding: 12px 0px;
            }

            .overview-round-list .match-link,
            .overview-round-list .match-right-time {
                display: none !important;
            }

            .overview-round-list .match-mid-flex {
                display: grid !important;
                grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
                align-items: center;
                gap: 12px;
                padding: 0;
            }

            .overview-round-list .match-mid-flex .team-cell {
                flex: 1 1 0;
                justify-content: flex-end;
            }

            .overview-round-list .match-mid-flex .team-cell.away {
                justify-content: flex-start;
            }

            .overview-round-list .match-mid-flex .team-cell.away span {
                text-align: left;
            }

            .overview-round-list .match-mid-flex .match-mid-center {
                width: 80px;
                flex: 0 0 auto;
            }
        }

        @media (max-width: 768px) {
            .mobile-only {
                display: block !important;
            }

            .match-mid-flex {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }

            .overview-round-list .match-schedule {
                width: auto !important;
            }

            .match-mid-flex .team-cell {
                justify-content: center;
            }

            .match-mid-flex .team-cell.away {
                justify-content: center;
            }

            .match-mid-flex .match-mid-center {
                width: 100%;
                flex: 0 0 auto;
            }

            .match-mid-flex .match-schedule,
            .match-mid-flex .score-badge {
                width: 36%;
                min-width: unset;
            }

            .match-mid {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 8px;
                text-align: center;
            }

            .match-mid .match-schedule,
            .match-mid .score-badge {
                width: 36%;
                min-width: unset;
                margin: 0 auto;
                text-align: center;
                justify-content: center;
                max-width: none;
            }

            .group-view-tabs,
            .knockout-view-tabs {
                margin-left: auto;
                justify-content: flex-end;
            }
        }

        .match-schedule {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: #000;
            font-weight: 700;
            line-height: 1.3;
            min-width: 110px;
            text-align: center;
        }

        .match-schedule span {
            display: block;
            color: #000;
            font-weight: 500;
            font-size: 14px;
        }

        .match-right-time {
            text-align: right;
            font-size: 14px;
            color: #A2A2A2;
            font-weight: 400;
            min-width: 120px;
            align-self: center;
        }

        .knockout-note {
            font-size: 14px;
            line-height: 1.6;
            color: #B8860B;
            font-weight: 700;
            padding: 0;
            background: transparent;
            border: none;
        }

        .knockout-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .knockout-view-tabs {
            display: flex;
            align-items: center;
            border: 1px solid #0D79E2;
            border-radius: 50px;
            overflow: hidden;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .knockout-view-btn {
            border: none;
            background: #fff;
            color: #0D79E2;
            font-weight: 800;
            padding: 10px 18px;
            cursor: pointer;
            border-radius: 0;
        }

        .knockout-view-btn.active {
            background: #0D79E2;
            color: #fff;
        }

        .knockout-view-btn:hover {
            background: #0D79E2;
            color: #fff;
        }

        .knockout-view {
            display: none;
        }

        .knockout-view.active {
            display: block;
        }

        .knockout-bracket-media {
            width: 100%;
        }

        .knockout-bracket-image {
            display: block;
            width: 100%;
            height: auto;
            border-radius: 8px;
        }

        .knockout-placeholder {
            text-align: center;
            color: #475569;
            padding: 20px;
        }

        .group-standings {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-top: 12px;
        }

        .standing-card {
            border: 1px solid #d8e3f7;
            border-radius: 10px;
            background: #fff;
            overflow: hidden;
            box-shadow: 0px 2px 4px 0px #00000040;
        }

        .standing-card__title {
            background: #0D79E2;
            color: #fff;
            font-weight: 800;
            text-transform: uppercase;
            padding: 10px 12px;
        }

        .standing-card__table-wrap {
            overflow-x: auto;
        }

        .standing-card__table-wrap::-webkit-scrollbar {
            height: 6px;
        }

        .standing-card__table-wrap::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 999px;
        }

        .standing-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 520px;
        }

        .standing-table th,
        .standing-table td {
            padding: 4px;
            font-size: 13px;
            text-align: center;
            border-bottom: 1px solid #eef2f7;
            vertical-align: middle;
        }

        .standing-table th {
            background: #f1f5f9;
            font-weight: 800;
            color: #0f172a;
        }

        .standing-row__team {
            display: flex;
            align-items: center;
            gap: 6px;
            text-align: left;
            font-weight: 700;
            color: #0f172a;
            min-height: 36px;
        }

        .standing-row__team span {
            display: block;
            line-height: 1.25;
            word-break: break-word;
            max-width: 140px;
        }

        .standing-table tr:nth-child(even) td {
            background: #f8fafc;
        }

        .standing-table tr.top-row td {
            background: #E9F6EB;
        }

        .standing-table tr.bottom-row td {
            background: #FEEBED;
        }

        @media (max-width: 1200px) {
            .group-stage-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .overview-hero {
                grid-template-columns: 1fr;
            }

            .group-standings {
                grid-template-columns: repeat(1, minmax(0, 1fr));
            }
        }

        .latest-video {
            margin-top: 14px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .latest-video iframe,
        .latest-video .video-placeholder {
            width: 100%;
            border-radius: 14px;
            border: 1px solid #e5e7eb;
            aspect-ratio: 16 / 9;
            background: #0f172a;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .summary-section-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 800;
            font-size: 18px;
            color: #0f172a;
            margin-bottom: 12px;
        }

        .podium {
            display: flex;
            align-items: flex-end;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .podium-col {
            position: relative;
            flex: 1 1 30%;
            min-width: 150px;
            border-radius: 8px 8px 0 0;
            padding: 12px 8px 10px;
            text-align: center;
            color: #263238;
        }

        .podium-col.first {
            background: #fbb034;
            height: 130px;
        }

        .podium-col.second {
            background: #cfd1d3;
            height: 100px;
        }

        .podium-col.third {
            background: #c3834c;
            height: 85px;
        }

        .podium-flag {
            position: absolute;
            top: -14px;
            left: 50%;
            transform: translateX(-50%);
            width: 28px;
            height: 18px;
            object-fit: cover;
            border: 1px solid #cfd8dc;
            border-radius: 3px;
            background: #fff;
        }

        .podium-rank {
            font-size: 22px;
            font-weight: 800;
            margin-top: 10px;
        }

        .podium-name {
            margin-top: 6px;
            font-weight: 700;
            color: #1b1f23;
            font-size: 13px;
        }

        @media (max-width: 1200px) {
            .hero img {
                height: 220px;
            }

            .overview-grid {
                grid-template-columns: 1fr;
            }

            .stat-cards {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 640px) {
            .hero-title {
                font-size: 24px;
            }

            .stat-cards {
                grid-template-columns: 1fr;
            }

            .overview-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .match-row {
                grid-template-columns: 1fr auto !important;
                grid-template-areas: none !important;
                grid-auto-rows: auto !important;
            }

            .match-row .match-mid-flex {
                grid-column: 1 !important;
            }

            .match-row .match-side {
                grid-column: 2 !important;
            }

            .match-row .match-right-time,
            .match-row .match-link {
                display: none !important;
            }
        }

.tournament-page-wrapper--show {
    padding-top: 10px;
}

.banner--show {
    overflow: visible;
    position: relative;
}

.overview-card__title--spaced {
    margin-top: 14px;
}

.overview-card--spaced {
    margin-top: 14px;
}

.empty-section--full {
    grid-column: 1 / -1;
}

.mobile-penalty {
    font-size: 11px;
    font-weight: normal;
    margin-left: 4px;
    color: #64748b;
}

.pc-penalty {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
}

.stat-card--participants {
    background: #EFF6FF;
    border-color: #0D79E2;
}

.stat-card--participants .value {
    color: #0D79E2;
}

.stat-card--matches {
    background: #F0FDF4;
    border-color: #06BC51;
}

.stat-card--matches .value {
    color: #06BC51;
}

.section-title--compact {
    font-size: 22px !important;
}

.prize-amount {
    color: #0D79E2;
}

.prize-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 6px;
}

.group-view-tabs {
    border: 1px solid #0D79E2;
    border-radius: 50px;
    overflow: hidden;
}

.group-view-tabs .group-view-btn {
    border: none;
    border-radius: 0;
}

.group-tab-buttons {
    margin-bottom: 20px;
}

.group-tab-buttons--knockout {
    margin-bottom: 12px;
}

.group-view {
    display: none;
}

.group-view[data-view="standings"] {
    display: block;
}

.match-link--muted {
    opacity: 0.6;
}

.standing-col-team {
    text-align: left;
}

.badge--inline {
    margin-left: 6px;
}

.standing-points {
    font-weight: 800;
}

.status-tag--upcoming {
    color: #d97706;
}

.status-tag--ongoing {
    color: #16a34a;
}

.status-tag--ended {
    color: #475569;
}
