.match-page {
    background: radial-gradient(circle at top, #0a0a0a, #000000);
    color: #e5e5e5;
    padding: 40px;
}

.match-page .league-header h3 {
    color: #ffffff;
    font-family: "Archivo Black", sans-serif;
    font-size: x-large;
    margin: 0;
}

.match-page .league-header img {
    width: 35px;
    height: 35px;
}

.match-page .league-header {
    background: linear-gradient(180deg, #5f0002 0%, #cb0003 50%, #5f0002 100%);
    border: 1px solid rgba(203, 0, 3, 0.3);
    border-radius: 12px;
    padding: 10px 20px;
    gap: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 25px rgba(203, 0, 3, 0.15);
}

.league-block {
    margin-bottom: 40px;
}

.match-page .hero-image {
    width: 100%;
    border-radius: 10px;
    max-height: 500px;
    overflow: hidden;
    border: 2px solid rgba(192, 192, 192, 0.15);
    transition: all 0.5s ease;
}

.match-page .hero-image:hover {
    border-color: #C0C0C0;
    box-shadow: 0 0 40px rgba(192, 192, 192, 0.08);
}

.match-page .match-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 0;
    margin-top: 40px;
}

.match-page .section-header h2 {
    color: #cb0003;
    font-family: "Archivo Black", sans-serif;
    padding: 5px 0;
    text-shadow: 0 0 30px rgba(203, 0, 3, 0.1);
}

.match-page .sub-title {
    color: #9ca3af;
}

.match-page .accordion {
    margin-top: 3rem;
    --bs-accordion-bg: #111111;
    --bs-accordion-border-color: rgba(192, 192, 192, 0.08);
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-bg: #111111;
    --bs-accordion-active-color: #cb0003;
}

.match-page .empty-pages {
    width: 100%;
    background: #111111;
    border-radius: 16px;
    color: #e5e5e5;
    border: 1px solid rgba(192, 192, 192, 0.08);
    padding: 20px;
}

.match-page .site-match {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.match-page .bet-widget {
    background: #0a0a0a;
    border: 1px solid rgba(192, 192, 192, 0.08);
    border-radius: 16px;
    padding: 16px;
}

.match-page .bet-widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #cb0003;
    text-align: center;
}

.match-page .bet-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-page .bet-item {
    background: radial-gradient(circle at right, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(192, 192, 192, 0.08);
    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: rgba(203, 0, 3, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(203, 0, 3, 0.05);
}

.match-page .bet-left {
    flex: 1;
}

.match-page .bet-text {
    margin-bottom: 4px;
    font-size: 14px;
    color: #e5e5e5;
    line-height: 1.4;
    font-weight: 600;
}

.match-page .bet-amount {
    font-size: 20px;
    font-weight: 700;
    color: #C0C0C0;
    line-height: 1.1;
}

.match-page .bet-code {
    font-size: 14px;
    font-weight: 600;
    color: #cb0003;
}

.match-page .bet-expire {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.05);
    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: #000;
}

.match-page .site-btn {
    background: linear-gradient(180deg, #5f0002 0%, #cb0003 50%, #5f0002 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.match-page .site-btn:hover {
    background: linear-gradient(180deg, #7a0003 0%, #cb0003 50%, #7a0003 100%);
    box-shadow: 0 4px 20px rgba(203, 0, 3, 0.2);
    transform: translateY(-2px);
    color: #ffffff;
}

.match-page .match-list {
    background: #0a0a0a;
    border: 1px solid rgba(192, 192, 192, 0.08);
    border-radius: 16px;
    padding: 20px;
}

.match-page .match-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-page .match-item-full {
    display: block;
    padding: 14px;
    background: #111111;
    border: 1px solid rgba(192, 192, 192, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.match-page .match-item-full:hover {
    border-color: rgba(203, 0, 3, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(203, 0, 3, 0.05);
}

.match-page .match-teams-small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    background: radial-gradient(circle at top, #0a0a0a, #000000);
    border: 1px solid rgba(192, 192, 192, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.match-page .match-teams-small .vs {
    color: #C0C0C0;
    font-weight: 900;
    font-size: 20px;
}

.match-page .match-layout .team {
    font-size: 20px;
}

.match-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.match-page .match-time {
    margin-top: 6px;
    font-size: 14px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
    display: flex;
    justify-self: start;
    font-weight: 500;
}

.match-page .match-time i {
    color: #cb0003;
}

.match-page .match-type {
    margin-top: 8px;
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
}

.match-page .match-type.club {
    background: #0d6efd;
    color: #fff;
}

.match-page .match-type.world_cup {
    background: #cb0003;
    color: #ffffff;
}

.match-page .match-status {
    margin-top: 8px;
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
    font-weight: 700;
}

.match-page .match-status.scheduled {
    background: #374151;
    color: #d1d5db;
    display: flex;
    justify-self: end;
}

.match-page .match-status.live {
    background: #dc2626;
    color: #fff;
}

.match-page .match-status.finished {
    background: #16a34a;
    color: #fff;
}

.match-page .match-status.postponed {
    background: #f59e0b;
    color: #000;
}

.match-page .match-status.cancelled {
    background: #6b7280;
    color: #fff;
}

.match-page .match-teams-small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.match-page .team-box.away {
    flex-direction: row-reverse;
}

.match-page .team-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    padding: 2px;
}

.match-page .team-name {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    width: 306px;
}

.match-page .vs {
    color: #C0C0C0;
    font-weight: 900;
    font-size: 11px;
}

/* =========================
   USER INFO - MERAH & PERAK
========================= */

.match-page .user-info-box {
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    background: rgba(203, 0, 3, 0.08);
    color: #cb0003;
    border: 1px solid rgba(203, 0, 3, 0.15);
    box-shadow: 0 0 20px rgba(203, 0, 3, 0.05);
}

.match-page .user-info-box:hover {
    border-color: rgba(203, 0, 3, 0.3);
    box-shadow: 0 0 30px rgba(203, 0, 3, 0.08);
}

.match-page .user-info-box p {
    margin: 0;
    color: #e5e7eb;
    font-size: 17px;
}

.match-page .user-info-box strong {
    color: #cb0003;
    font-weight: 700;
}

/* =========================
   SCROLLBAR - MERAH & PERAK
========================= */

.match-page::-webkit-scrollbar {
    width: 8px;
}

.match-page::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.match-page::-webkit-scrollbar-thumb {
    background: #5f0002;
    border-radius: 4px;
}

.match-page::-webkit-scrollbar-thumb:hover {
    background: #cb0003;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .match-page .team-name {
        font-size: 20px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }
}

@media (max-width: 768px) {
    .match-page .match-layout .site-match {
        display: none;
    }

    .match-page .accordion-button {
        font-size: 14px;
        padding: 14px 16px;
    }

    .match-page .league-header h3 {
        font-size: larger;
    }

    .match-page .league-header img {
        height: 30px;
    }

    .match-page .accordion-body {
        font-size: 13px;
    }

    .match-page .match-list {
        margin-bottom: 20px;
        padding: 20px 10px;
    }

    .match-page .section-header h2 {
        text-align: center;
    }

    .match-page .match-layout .team {
        font-size: 18px;
    }

    .match-page .team-name {
        font-size: 16px;
        max-height: 36px;
        max-width: 87px;
    }

    .match-page .match-teams-small .vs {
        font-size: 16px;
    }

    .match-page .team-box {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .match-page {
        padding: 20px 10px;
    }

    .match-page .match-layout {
        grid-template-columns: 1fr;
    }

    .match-page .match-item-full {
        padding: 10px;
    }
}