.match-page,
.match-history-page {
    background: radial-gradient(circle at top, var(--bg-card), var(--bg-dark));
    color: var(--text-gray);
}

.match-history-page {
    min-height: 100vh;
}

.match-page::-webkit-scrollbar,
.match-history-page::-webkit-scrollbar {
    width: 8px;
}
.match-page::-webkit-scrollbar-track,
.match-history-page::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
.match-page::-webkit-scrollbar-thumb,
.match-history-page::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}
.match-page::-webkit-scrollbar-thumb:hover,
.match-history-page::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

.container.league-detail {
    padding: 0;
    margin: 0 auto;
    padding-top: 40px;
}

.league-block {
    margin-bottom: 40px;
}

.match-page .hero-image,
.match-history-page .hero-image {
    width: 100%;
    border-radius: 10px;
    max-height: 500px;
    overflow: hidden;
    border: 2px solid var(--gold-border);
    transition: all 0.5s ease;
}
.match-page .hero-image:hover,
.match-history-page .hero-image:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 40px var(--gold-shadow);
}

.match-page .match-layout {
    grid-template-columns: 340px minmax(0, 1fr);
    display: grid;
    gap: 20px;
    align-items: start;
    padding: 0;
}

.match-history-page .history-layout {
    grid-template-columns: 260px 1fr;
    margin: 0 auto;
    display: grid;
    gap: 20px;
    align-items: start;
    padding: 0;
    margin-top: 40px;
    padding-bottom: 40px;
}

.match-page .section-header h2,
.match-history-page .section-header h2 {
    color: var(--gold-primary);
    font-family: "Archivo Black", sans-serif;
    padding: 5px 0;
    text-shadow: 0 0 40px var(--gold-shadow);
}

.match-page .sub-title,
.match-history-page .sub-title {
    color: var(--text-gray);
}

.match-page .accordion {
    margin-top: 3rem;
    --bs-accordion-bg: var(--bg-card);
    --bs-accordion-border-color: var(--gold-border);
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-bg: var(--bg-card);
    --bs-accordion-active-color: var(--gold-primary);
}

.match-page .empty-pages,
.match-history-page .empty-pages {
    width: 100%;
    background: var(--bg-card);
    border-radius: 16px;
    color: var(--text-gray);
    border: 1px solid var(--gold-border);
    padding: 20px;
}

.match-page .site-match {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.match-history-page .history-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.match-page .bet-widget {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    padding: 16px;
}

.match-page .bet-widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gold-primary);
    text-align: center;
    text-shadow: 0 0 30px var(--gold-shadow);
}

.match-page .bet-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-page .bet-item {
    background: radial-gradient(
        circle at right,
        var(--bg-card),
        var(--bg-dark)
    );
    border: 1px solid var(--gold-border);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    text-align: left;
    transition: all 0.3s ease;
}
.match-page .bet-item:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 25px var(--gold-shadow);
}

.match-page .bet-left {
    flex: 1;
}

.match-page .bet-text {
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--text-white);
    line-height: 1.4;
    font-weight: 600;
}

.match-page .bet-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1.1;
}

.match-page .bet-code {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-primary);
}

.match-page .bet-expire {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    background: var(--gold-soft);
    padding: 2px 10px;
    border-radius: 10px;
}

.match-page .bet-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.match-page .bet-right img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--gold-border);
}

.match-page .site-btn {
    background: var(--gold-gradient);
    color: var(--text-dark);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--gold-shadow);
}
.match-page .site-btn:hover {
    background: linear-gradient(
        135deg,
        var(--gold-lighter),
        var(--gold-light),
        var(--gold-primary)
    );
    box-shadow: 0 4px 20px var(--gold-shadow);
    transform: translateY(-1px);
    color: var(--text-dark);
}

.match-page .match-list,
.match-history-page .match-list {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    padding: 20px;
}

.match-page .match-grid,
.match-history-page .match-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-page .match-item-full,
.match-history-page .match-item-full {
    display: block;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.match-page .match-item-full:hover,
.match-history-page .match-item-full:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 25px var(--gold-shadow);
}

.match-page .match-item-full.live-match,
.match-history-page .match-item-full.live-match {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 30px var(--gold-shadow);
    animation: liveBorderPulse 2s infinite;
}

@keyframes liveBorderPulse {
    0%,
    100% {
        border-color: var(--gold-primary);
        box-shadow: 0 0 20px var(--gold-shadow);
    }
    50% {
        border-color: var(--gold-light);
        box-shadow: 0 0 40px var(--gold-shadow);
    }
}

.match-page .match-teams-small,
.match-history-page .match-teams-small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    background: radial-gradient(circle at top, var(--bg-card), var(--bg-dark));
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    overflow: hidden;
}
.match-page .match-teams-small .vs,
.match-history-page .match-teams-small .vs {
    color: var(--gold-primary);
    font-weight: 900;
    font-size: 20px;
}

.match-page .match-layout .team,
.match-history-page .match-layout .team {
    font-size: 20px;
}

.match-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.match-page .match-time,
.match-history-page .match-time {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    justify-self: start;
    font-weight: 500;
}
.match-page .match-time i,
.match-history-page .match-time i {
    color: var(--gold-primary);
}

.match-page .match-type,
.match-history-page .match-type {
    display: inline-block;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 10px;
    font-weight: 700;
}
.match-page .match-type.club,
.match-history-page .match-type.club {
    background: #3b82f6;
    color: var(--text-white);
}
.match-page .match-type.world_cup,
.match-history-page .match-type.world_cup {
    background: var(--gold-primary);
    color: var(--text-dark);
}
.match-page .match-type.live-badge,
.match-history-page .match-type.live-badge {
    background: var(--gold-primary);
    color: var(--text-dark);
    animation: liveBadgePulse 1.5s infinite;
}

@keyframes liveBadgePulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.match-page .match-status,
.match-history-page .match-status {
    display: inline-block;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
    font-weight: 700;
    margin-top: 10px;
}
.match-page .match-status.scheduled,
.match-history-page .match-status.scheduled {
    background: rgba(255, 179, 1, 0.12);
    color: var(--text-gray);
    display: flex;
    justify-self: end;
}
.match-page .match-status.live,
.match-history-page .match-status.live {
    background: var(--gold-primary);
    color: var(--text-dark);
    display: flex;
    justify-self: end;
    animation: liveBadgePulse 1.5s infinite;
    justify-content: center;
    align-items: center;
}
.match-page .match-status.finished,
.match-history-page .match-status.finished {
    background: rgba(255, 179, 1, 0.12);
    color: var(--gold-primary);
    display: flex;
    justify-self: end;
}
.match-page .match-status.postponed,
.match-history-page .match-status.postponed {
    background: rgba(255, 179, 1, 0.08);
    color: var(--text-gray);
    display: flex;
    justify-self: end;
}
.match-page .match-status.cancelled,
.match-history-page .match-status.cancelled {
    background: var(--bg-dark);
    color: var(--text-gray);
    display: flex;
    justify-self: end;
    border: 1px solid var(--gold-primary);
}

.match-page .team-box.away,
.match-history-page .team-box.away {
    flex-direction: row-reverse;
}
.match-page .team-box img,
.match-history-page .team-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    padding: 2px;
}

.match-page .team-name,
.match-history-page .team-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    width: 306px;
}

.match-page .vs,
.match-history-page .vs {
    color: var(--gold-primary);
    font-weight: 900;
    font-size: 12px;
}

.match-page .scorematch.live-score,
.match-history-page .scorematch.live-score {
    color: var(--gold-primary) !important;
    animation: scorePulse 1.5s infinite;
}

@keyframes scorePulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.match-page .final-score,
.match-history-page .final-score {
    margin-top: 10px;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    font-weight: bold;
}

.match-page .match-score,
.match-history-page .match-score {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    background: radial-gradient(circle at top, var(--bg-card), var(--bg-dark));
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    overflow: hidden;
    justify-content: center;
}
.match-page .match-score #score,
.match-history-page .match-score #score {
    color: var(--gold-primary);
    font-weight: 900;
    font-size: 20px;
}

.match-page .match-detail {
    display: flex;
    justify-content: space-between;
}

.match-page .scorematch,
.match-history-page .scorematch {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    width: 306px;
}

.match-page #score,
.match-history-page #score {
    color: var(--gold-primary);
    font-weight: 900;
    font-size: 12px;
}

.live-dot-sm {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
    border-radius: 50%;
    animation: livePulse 1.2s infinite;
    margin-right: 4px;
}
.live-dot-mini {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
    border-radius: 50%;
    animation: livePulse 1.2s infinite;
    margin-right: 4px;
}

@keyframes livePulse {
    0%,
    100% {
        transform: scale(0.8);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.match-page .user-info-box,
.match-history-page .user-info-box {
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    background: var(--gold-soft);
    color: var(--gold-primary);
    border: 1px solid var(--gold-border);
    box-shadow: 0 0 20px var(--gold-shadow);
}
.match-page .user-info-box:hover,
.match-history-page .user-info-box:hover {
    border-color: var(--gold-border);
    box-shadow: 0 0 30px var(--gold-shadow);
}
.match-page .user-info-box p,
.match-history-page .user-info-box p {
    margin: 0;
    color: var(--text-gray);
    font-size: 17px;
}
.match-page .user-info-box strong,
.match-history-page .user-info-box strong {
    color: var(--gold-primary);
    font-weight: 700;
}

.match-filters {
    margin-bottom: 24px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    background: var(--gold-soft);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    text-decoration: none;
}
.filter-btn.active {
    background: rgba(255, 179, 1, 0.12);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}
.filter-btn .badge {
    font-size: 10px;
    padding: 2px 6px;
    background: var(--gold-primary) !important;
    color: var(--text-dark) !important;
}

.match-count {
    background: var(--gold-primary) !important;
    color: var(--text-dark) !important;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
}

.live-matches-widget {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-dark));
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 0 40px var(--gold-shadow);
}

.live-widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-primary);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}
.live-widget-header .badge {
    font-size: 12px;
    padding: 2px 8px;
    background: var(--gold-primary) !important;
    color: var(--text-dark) !important;
}

.live-matches-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) var(--bg-card);
}
.live-matches-scroll::-webkit-scrollbar {
    height: 4px;
}
.live-matches-scroll::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 4px;
}
.live-matches-scroll::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}

.live-match-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-soft);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    padding: 6px 12px;
    white-space: nowrap;
    font-size: 12px;
    min-width: fit-content;
    flex-shrink: 0;
}
.live-match-mini .live-team {
    color: var(--text-gray);
    font-weight: 600;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.live-match-mini .live-score-mini {
    color: var(--gold-primary);
    font-weight: 800;
    font-size: 14px;
}
.live-match-mini .live-vs {
    color: #6b7280;
    font-size: 10px;
    font-weight: 700;
}

.empty-matches {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}
.empty-matches i {
    font-size: 48px;
    color: var(--gold-primary);
    opacity: 0.3;
    margin-bottom: 16px;
}
.empty-matches h3 {
    color: var(--text-white);
    margin-bottom: 8px;
}
.empty-matches p {
    color: #6b7280;
}

.filter-group {
    position: relative;
    margin-bottom: 24px;
}
.filter-group h4 {
    color: var(--gold-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-group h4::before {
    content: "";
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
    border-radius: 2px;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.filter-list li {
    margin-bottom: 4px;
}
.filter-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}
.filter-list li a:hover {
    background: var(--gold-soft);
    color: var(--gold-primary);
    text-decoration: none;
}
.filter-list li a.active {
    background: rgba(255, 179, 1, 0.1);
    color: var(--gold-primary);
}
.filter-list li a .filter-date {
    font-size: 12px;
    color: #6b7280;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.01)
    );
    border: 1px solid var(--gold-border);
    border-radius: 10px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffb301' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    cursor: pointer;
    position: relative;
    min-height: 48px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) var(--bg-card);
}
.filter-select::-webkit-scrollbar {
    width: 6px;
}
.filter-select::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 4px;
}
.filter-select::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}
.filter-select::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}
.filter-select:hover {
    border-color: var(--gold-border);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.02)
    );
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--gold-shadow);
}
.filter-select:focus {
    border-color: var(--gold-primary);
    outline: none;
    box-shadow:
        0 0 0 3px var(--gold-soft),
        0 4px 30px var(--gold-shadow);
    transform: translateY(-1px);
}
.filter-select option:first-child {
    color: #6b7280;
    font-style: italic;
}
.filter-select option {
    background: var(--bg-card);
    color: var(--text-gray);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}
.filter-select option:checked {
    background: rgba(255, 179, 1, 0.15);
    color: var(--gold-primary);
    font-weight: 600;
}
.filter-select option:hover {
    background: rgba(255, 179, 1, 0.08);
    color: var(--gold-primary);
}

.btn-reset-filter {
    width: 100%;
    padding: 10px;
    background: var(--gold-soft);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    color: var(--gold-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}
.btn-reset-filter:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--text-dark);
}

.history-header {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.league-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.league-title img {
    border-radius: 8px;
    background: var(--text-white);
    padding: 4px;
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.league-title h2 {
    color: var(--gold-primary);
    font-family: "Archivo Black", sans-serif;
    font-size: 22px;
    margin: 0;
}

.match-count-badge {
    background: var(--gold-soft);
    color: var(--gold-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: auto;
}

.match-history-page .breadcrumb-wrapper {
    background: radial-gradient(circle at top, var(--bg-card), var(--bg-dark));
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.match-history-page .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.match-history-page .breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
}
.match-history-page .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    margin: 0 6px;
    color: var(--gold-primary);
    font-size: 18px;
    font-weight: 700;
}
.match-history-page .breadcrumb-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}
.match-history-page .breadcrumb-item a:hover {
    color: var(--gold-primary);
    background: var(--gold-soft);
}
.match-history-page .breadcrumb-item.active {
    color: var(--gold-primary);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--gold-soft);
}
.match-history-page .breadcrumb-item span {
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 6px;
}

.match-page .league-header h3,
.match-history-page .league-header h3 {
    color: var(--text-white);
    font-family: "Archivo Black", sans-serif;
    font-size: x-large;
    margin: 0;
}
.match-page .league-header img,
.match-history-page .league-header img {
    width: 35px;
    height: 35px;
}
.match-page .league-header,
.match-history-page .league-header {
    background: linear-gradient(
        135deg,
        var(--bg-card),
        var(--gold-primary),
        var(--bg-card)
    );
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    padding: 10px 20px;
    gap: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 25px var(--gold-shadow);
}

.match-page .date-group,
.match-history-page .date-group {
    margin-bottom: 24px;
}
.match-page .date-header,
.match-history-page .date-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 0;
    border: 1px solid var(--gold-border);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}
.match-page .date-day,
.match-history-page .date-day {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold-primary);
}
.match-page .date-month,
.match-history-page .date-month {
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
}
.match-page .date-weekday,
.match-history-page .date-weekday {
    font-size: 14px;
    color: #6b7280;
    margin-left: auto;
}
.match-page .date-count-badge,
.match-history-page .date-count-badge {
    background: var(--gold-soft);
    color: var(--gold-primary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.match-page .date-toggle-icon,
.match-history-page .date-toggle-icon {
    color: var(--gold-primary);
    transition: transform 0.3s ease;
    font-size: 14px;
}
.match-page .date-toggle-icon i,
.match-history-page .date-toggle-icon i {
    transition: transform 0.3s ease;
}
.match-page .date-header[aria-expanded="true"] .date-toggle-icon i,
.match-history-page .date-header[aria-expanded="true"] .date-toggle-icon i {
    transform: rotate(0deg);
}
.match-page .date-header[aria-expanded="false"] .date-toggle-icon i,
.match-history-page .date-header[aria-expanded="false"] .date-toggle-icon i {
    transform: rotate(-90deg);
}
.match-page .date-group .collapse,
.match-history-page .date-group .collapse {
    padding-top: 12px;
}
.match-page .date-group .collapse.show,
.match-history-page .date-group .collapse.show {
    padding-top: 12px;
}

.match-item-history {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    align-items: center;
}
.match-item-history:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--gold-border);
}
.match-item-history.live {
    border-color: var(--gold-border);
    background: var(--gold-soft);
}

.match-time-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.match-status-live {
    font-size: 12px;
    color: var(--gold-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}
.match-status-finished {
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
}
.match-status-scheduled {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}
.match-status-postponed {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
}
.match-status-cancelled {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.match-teams-history {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.team-history {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.team-history.home {
    justify-content: flex-end;
}
.team-history.away {
    justify-content: flex-start;
}
.team-history .team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    display: flex;
    justify-content: center;
}
.team-history img {
    object-fit: contain;
    padding: 2px;
    width: 30px;
    height: 30px;
}

.match-score-history {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 18px;
    min-width: 60px;
    justify-content: center;
}
.match-score-history .score-home {
    color: var(--gold-primary);
}
.match-score-history .score-away {
    color: var(--gold-primary);
}
.match-score-history .score-separator {
    color: #6b7280;
}
.match-score-history .score-placeholder {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    background: rgba(173, 173, 173, 0.18);
    padding: 0 10px;
    border-radius: 45%;
}

.history-content .pagination-wrapper,
.match-page .pagination-wrapper {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}
.history-content .pagination-wrapper .pagination,
.match-page .pagination-wrapper .pagination {
    --bs-pagination-bg: var(--bg-card);
    --bs-pagination-border-color: var(--gold-border);
    --bs-pagination-color: var(--text-gray);
    --bs-pagination-hover-bg: var(--gold-soft);
    --bs-pagination-hover-color: var(--gold-primary);
    --bs-pagination-active-bg: var(--gold-primary);
    --bs-pagination-active-color: var(--text-dark);
    --bs-pagination-disabled-bg: var(--bg-card);
    --bs-pagination-disabled-color: #6b7280;
}

@media (max-width: 1200px) {
    .match-page .team-name,
    .match-history-page .team-name {
        font-size: 20px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }
}

@media (max-width: 1024px) {
    .match-history-page .history-layout {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .match-page {
        padding: 0;
    }
    .match-history-page {
        padding: 20px 10px;
    }
    .container.league-detail {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .match-page .match-layout .site-match,
    .match-history-page .history-sidebar {
        display: none;
    }
    .match-history-page .breadcrumb-item a,
    .match-history-page .breadcrumb-item span {
        font-size: 14px;
    }
    .match-page .match-layout {
        grid-template-columns: 1fr;
    }
    .match-history-page .history-layout {
        grid-template-columns: 1fr;
        margin-top: 20px;
        padding-bottom: 20px;
    }
    .match-history-page .history-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        position: relative;
        top: 0;
    }
    .filter-group {
        margin-bottom: 0;
    }
    .btn-reset-filter {
        grid-column: 1 / -1;
    }
    .match-page .accordion-button {
        font-size: 14px;
        padding: 14px 16px;
    }
    .match-page .league-header h3,
    .match-history-page .league-header h3 {
        font-size: larger;
    }
    .match-page .league-header img,
    .match-history-page .league-header img {
        height: 30px;
    }
    .match-page .accordion-body {
        font-size: 13px;
    }
    .match-page .match-list,
    .match-history-page .match-list {
        margin-bottom: 20px;
        padding: 20px 10px;
    }
    .match-page .section-header h2,
    .match-history-page .section-header h2 {
        text-align: center;
    }
    .match-page .match-layout .team,
    .match-history-page .match-layout .team {
        font-size: 18px;
    }
    .match-page .team-name,
    .match-history-page .team-name {
        font-size: 16px;
        max-height: 36px;
        max-width: 87px;
    }
    .match-page .match-teams-small .vs,
    .match-history-page .match-teams-small .vs {
        font-size: 16px;
    }
    .match-page .team-box,
    .match-history-page .team-box {
        text-align: left;
    }
    .filter-buttons {
        gap: 6px;
        justify-content: center;
    }
    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    .filter-select {
        padding: 10px 14px;
        padding-right: 36px;
        font-size: 13px;
        min-height: 42px;
        border-radius: 8px;
    }
    .filter-select option {
        font-size: 13px;
        padding: 8px 12px;
    }
    .live-matches-scroll {
        gap: 8px;
    }
    .live-match-mini {
        font-size: 12px;
        padding: 4px 10px;
    }
    .live-match-mini .live-team {
        max-width: 60px;
    }
    .match-item-history {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .match-time-status {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .match-time {
        font-size: 14px;
    }
    .match-teams-history {
        flex-wrap: wrap;
        justify-content: center;
    }
    .team-history {
        flex: 0 1 auto;
    }
    .team-history .team-name {
        font-size: 13px;
    }
    .league-title h2 {
        font-size: 18px;
    }
    .match-page .date-header,
    .match-history-page .date-header {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 6px;
    }
    .match-page .date-day,
    .match-history-page .date-day {
        font-size: 18px;
    }
    .match-page .date-month,
    .match-history-page .date-month {
        font-size: 12px;
    }
    .match-page .date-weekday,
    .match-history-page .date-weekday {
        margin-left: 0;
    }
    .match-page .date-count-badge,
    .match-history-page .date-count-badge {
        font-size: 10px;
        padding: 1px 8px;
    }
    .match-page .date-toggle-icon,
    .match-history-page .date-toggle-icon {
        font-size: 12px;
        margin-left: auto;
    }
    .match-history-page .breadcrumb-wrapper {
        border-radius: 10px;
        margin-bottom: 10px;
    }
    .match-history-page .breadcrumb-item {
        font-size: 13px;
    }
    .match-history-page .breadcrumb-item + .breadcrumb-item::before {
        font-size: 16px;
        margin: 0 4px;
    }
    .match-history-page .breadcrumb-item a,
    .match-history-page .breadcrumb-item.active,
    .match-history-page .breadcrumb-item span {
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .match-history-page {
        padding: 15px 8px;
    }
    .match-page .match-layout,
    .match-history-page .history-layout {
        grid-template-columns: 1fr;
        margin-top: 0px;
    }
    .match-page .match-item-full,
    .match-history-page .match-item-full {
        padding: 10px;
    }
    .filter-buttons {
        gap: 4px;
    }
    .filter-btn {
        font-size: 10px;
        padding: 5px 10px;
    }
    .live-match-mini .live-team {
        max-width: 40px;
        font-size: 10px;
    }
    .live-match-mini .live-score-mini {
        font-size: 12px;
    }
    .match-history-page .history-sidebar {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .league-title h2 {
        font-size: 16px;
        width: 200px;
    }
    .league-title img {
        width: 30px;
        height: 30px;
    }
    .match-count-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
    .match-item-history {
        padding: 10px 12px;
    }
    .match-score-history {
        font-size: 16px;
        min-width: 40px;
    }
    .match-page .sub-title,
    .match-history-page .sub-title {
        font-size: 14px;
    }
    .team-history img {
        width: 24px;
        height: 24px;
    }
    .match-page .date-header,
    .match-history-page .date-header {
        padding: 6px 10px;
        gap: 4px;
    }
    .match-page .date-day,
    .match-history-page .date-day {
        font-size: 16px;
    }
    .match-page .date-count-badge,
    .match-history-page .date-count-badge {
        font-size: 10px;
        padding: 1px 6px;
    }
    .match-page .date-toggle-icon,
    .match-history-page .date-toggle-icon {
        font-size: 10px;
    }
    .filter-list li a {
        font-size: 13px;
        padding: 6px 10px;
    }
    .filter-select {
        font-size: 13px;
        padding: 8px 10px;
    }
    .match-history-page .breadcrumb-wrapper {
        border-radius: 8px;
        margin-bottom: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .match-history-page .breadcrumb {
        flex-wrap: nowrap;
        gap: 2px;
        min-width: max-content;
    }
    .match-history-page .breadcrumb-item {
        font-size: 12px;
        white-space: nowrap;
    }
    .match-history-page .breadcrumb-item + .breadcrumb-item::before {
        font-size: 14px;
        margin: 0 3px;
    }
    .match-history-page .breadcrumb-item a,
    .match-history-page .breadcrumb-item.active,
    .match-history-page .breadcrumb-item span {
        padding: 2px 5px;
        font-size: 13px;
    }
}
