.container.league-layout {
    align-items: start;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 20px;
    padding: 0;
    align-items: start;
    margin-top: 40px;
}

.league-page .league-header {
    margin-top: 30px;
}

.league-page {
    background: radial-gradient(circle at top, #0a0a0a, #000000);
    color: #e5e5e5;
    padding: 40px;
    min-height: 100vh;
}

.league-page .league-header {
    margin-bottom: 25px;
    text-align: center;
}

.league-page .league-title {
    font-size: 28px;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 8px;
    text-shadow: 0 0 50px rgba(255, 215, 0, 0.1);
}

.league-page .prediction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.league-page .prediction-card {
    background: #111111;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #e5e5e5;
    border: 1px solid rgba(227, 27, 35, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.league-page .prediction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(180deg, #5C0000 0%, #E31B23 50%, #5C0000 100%);
    opacity: 0;
    transition: all 0.4s ease;
}

.league-page .prediction-card:hover::before {
    opacity: 1;
}

.hero-banner .container {
    padding: 0;
}

.league-page .match-teams {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.container.prediction-section {
    padding: 30px 0 0 0;
}

.league-page .prediction-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.05);
}

.card-image {
    position: relative;
    height: 170px;
    overflow: hidden;
}

.league-page .section-header h2 {
    color: #FFD700;
}

.league-page .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.league-page .prediction-card:hover .card-image img {
    transform: scale(1.08);
}

.league-page .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.league-page .card-body {
    padding: 14px;
}

.league-page .team {
    color: #e5e7eb;
}

.league-page .vs {
    color: #FFD700;
    font-size: 11px;
}

.league-page .title {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
    text-align: center;
}

.league-page .score {
    font-size: 14px;
    text-align: center;
    margin-bottom: 8px;
}

.league-page .score span {
    color: #FFD700;
    font-weight: 800;
}

.league-page .meta {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.league-page .btn-view {
    background: linear-gradient(180deg, #5C0000 0%, #E31B23 50%, #5C0000 100%);
    color: #FFD700;
    text-align: center;
    padding: 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.league-page .prediction-card:hover .btn-view {
    background: linear-gradient(180deg, #7A0000 0%, #E31B23 50%, #7A0000 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(227, 27, 35, 0.2);
}

.league-page .pagination-wrapper {
    margin-top: 20px;
}

.league-page .hero-image {
    width: 100%;
    border-radius: 10px;
    max-height: 500px;
    border: 1px solid rgba(227, 27, 35, 0.12);
    overflow: hidden;
    transition: all 0.5s ease;
}

.league-page .hero-image:hover {
    border-color: #FFD700;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.08);
}

.league-page .breadcrumb-wrapper {
    text-align: center;
    background: linear-gradient(135deg, #111111, #0a0a0a);
    border: 1px solid rgba(227, 27, 35, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    overflow-x: auto;
}

.league-page .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.league-page .breadcrumb-item {
    display: flex;
    align-items: center;
    color: #9ca3af;
    white-space: nowrap;
    font-size: 16px;
}

.league-page .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    margin: 0 8px;
    color: #555;
}

.league-page .breadcrumb-item a,
.league-page .breadcrumb-item span {
    color: #e5e5e5;
    text-decoration: none;
    transition: 0.2s ease;
}

.league-page .breadcrumb-item a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.league-page .breadcrumb-item.active {
    color: #FFD700;
    font-weight: 500;
}

.accordion {
    margin-top: 3rem;
    --bs-accordion-bg: #111111;
    --bs-accordion-border-color: rgba(227, 27, 35, 0.08);
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-bg: #111111;
    --bs-accordion-active-color: #FFD700;
}

.empty-pages {
    width: 100%;
    background: #111111;
    border-radius: 16px;
    color: #e5e5e5;
    border: 1px solid rgba(227, 27, 35, 0.08);
    padding: 20px;
}

.bet-widget {
    background: #0a0a0a;
    border: 1px solid rgba(227, 27, 35, 0.08);
    border-radius: 16px;
    padding: 16px;
}

.bet-widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFD700;
    text-align: center;
}

.bet-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bet-item {
    background: radial-gradient(circle at right, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(227, 27, 35, 0.08);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    text-align: left;
    transition: all 0.3s ease;
}

.bet-item:hover {
    border-color: rgba(255, 215, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(255, 215, 0, 0.05);
}

.bet-left {
    flex: 1;
}

.bet-text {
    margin-bottom: 4px;
    font-size: 14px;
    color: #e5e5e5;
    line-height: 1.4;
    font-weight: 600;
}

.bet-amount {
    font-size: 20px;
    font-weight: 700;
    color: #FFD700;
    line-height: 1.1;
}

.bet-code {
    font-size: 14px;
    font-weight: 600;
    color: #FFD700;
}

.bet-expire {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 10px;
}

.bet-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bet-right img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 100%;
    background: #000;
}

.site-btn {
    background: linear-gradient(180deg, #5C0000 0%, #E31B23 50%, #5C0000 100%);
    color: #FFD700;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.site-btn:hover {
    background: linear-gradient(180deg, #7A0000 0%, #E31B23 50%, #7A0000 100%);
    box-shadow: 0 4px 20px rgba(227, 27, 35, 0.15);
    transform: translateY(-2px);
    color: #FFD700;
}

.league-layout .team {
    font-size: 20px;
}

.team-box {
    display: flex;
    align-items: center;
    text-align: center;
}

.team-box.away {
    flex-direction: row-reverse;
}

.team-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    padding: 2px;
}

.team-name {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    width: 306px;
}

.vs {
    color: #FFD700;
    font-weight: 900;
    font-size: 11px;
}

/* =========================
   SCROLLBAR - RED & GOLD
========================= */

.league-page::-webkit-scrollbar {
    width: 8px;
}

.league-page::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.league-page::-webkit-scrollbar-thumb {
    background: #5C0000;
    border-radius: 4px;
}

.league-page::-webkit-scrollbar-thumb:hover {
    background: #FFD700;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .league-page .prediction-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0;
    }

    .team-name {
        font-size: 20px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }
}

@media (max-width: 768px) {
    .container.league-layout {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .league-page .prediction-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .accordion-button {
        font-size: 14px;
        padding: 14px 16px;
    }

    .accordion-body {
        font-size: 13px;
    }

    .match-page .section-header h2 {
        text-align: center;
    }

    .league-layout .team {
        font-size: 18px;
    }

    .team-name {
        font-size: 16px;
        max-height: 36px;
        max-width: 87px;
    }

    .match-teams-small .vs {
        font-size: 16px;
    }

    .team-box {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container.league-layout {
        margin-top: 30px;
    }

    .league-page {
        padding: 20px 10px;
    }

    .match-page .league-layout {
        grid-template-columns: 1fr;
    }

    .league-page .prediction-grid {
        grid-template-columns: 1fr;
    }

    .league-layout .league-grid {
        grid-template-columns: 1fr;
    }

    .league-layout .league-card {
        padding: 10px 14px;
    }
}