/* =========================================================
   TALK2BET / H2HFACTS GREEN LEAGUE PAGE
   Replace full public_html/css/league.css
========================================================= */

:root {
    --t2b-bg: #020503;
    --t2b-panel: #071008;
    --t2b-panel-2: #030604;
    --t2b-panel-3: #0b150d;
    --t2b-border: rgba(39, 255, 90, 0.18);
    --t2b-border-strong: rgba(39, 255, 90, 0.36);
    --t2b-soft-border: rgba(255, 255, 255, 0.07);
    --t2b-text: #eaffef;
    --t2b-muted: #8da99a;
    --t2b-green: #25ff5d;
    --t2b-green-2: #17c85a;
    --t2b-dark-green: #06130b;
    --t2b-yellow: #f5c451;
    --t2b-red: #ff4057;
}

body.fs-body {
    background:
        radial-gradient(circle at 12% 0%, rgba(39, 255, 90, 0.09), transparent 26%),
        radial-gradient(circle at 88% 8%, rgba(39, 255, 90, 0.045), transparent 28%),
        #020503 !important;
    color: var(--t2b-text) !important;
}

/* =========================================================
   LAYOUT
========================================================= */

.pp-home.t2b-league-page {
    width: min(1580px, calc(100% - 26px)) !important;
    margin: 18px auto 0 !important;
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
}

.t2b-league-main {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

/* =========================================================
   HERO
========================================================= */

.t2b-league-hero {
    overflow: hidden;
    border-radius: 18px;
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(39, 255, 90, 0.16), transparent 34%),
        linear-gradient(180deg, #071008 0%, #030604 100%);
    border: 1px solid rgba(39, 255, 90, 0.20);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.t2b-league-breadcrumbs {
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: var(--t2b-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.t2b-league-breadcrumbs a {
    color: #cde8d6;
    text-decoration: none;
}

.t2b-league-breadcrumbs a:hover {
    color: var(--t2b-green);
}

.t2b-league-title-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.t2b-league-logo-lg {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: contain;
    border-radius: 18px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.t2b-league-title-row h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1;
    font-weight: 1000;
    letter-spacing: -0.05em;
}

.t2b-league-title-row p {
    margin: 9px 0 0;
    max-width: 760px;
    color: #9fb9aa;
    font-size: 13px;
    line-height: 1.65;
    font-weight: 700;
}

.t2b-league-hero-stats {
    min-width: 440px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.t2b-league-hero-stats div {
    min-height: 86px;
    padding: 13px;
    border-radius: 15px;
    background:
        radial-gradient(circle at top right, rgba(39,255,90,.12), transparent 34%),
        rgba(255,255,255,.035);
    border: 1px solid rgba(39,255,90,.16);
}

.t2b-league-hero-stats span {
    display: block;
    color: #93ad9d;
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.t2b-league-hero-stats strong {
    display: block;
    margin-top: 14px;
    color: var(--t2b-green);
    font-size: 28px;
    line-height: 1;
    font-weight: 1000;
}

/* =========================================================
   TOOLBAR / TABS
========================================================= */

.t2b-league-toolbar {
    min-height: 64px;
    padding: 10px 12px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: linear-gradient(180deg, #050906, #020503);
    border: 1px solid rgba(39,255,90,.14);
}

.t2b-league-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.t2b-league-tabs a {
    height: 38px;
    padding: 0 15px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    color: #cbd8cf;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
}

.t2b-league-tabs a:hover,
.t2b-league-tabs a.active {
    color: #06130b;
    background: linear-gradient(180deg, #6dff9b, #17c85a);
    border-color: rgba(39,255,90,.45);
}

.t2b-season-form {
    flex: 0 0 auto;
}

.t2b-season-form select {
    height: 38px;
    min-width: 180px;
    padding: 0 12px;
    border-radius: 8px;
    color: #eaffef;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.09);
    font-size: 12px;
    font-weight: 900;
    outline: none;
}

/* =========================================================
   GENERIC CARDS
========================================================= */

.t2b-league-card {
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(180deg, #050906, #020503);
    border: 1px solid rgba(39,255,90,.16);
    box-shadow: 0 18px 42px rgba(0,0,0,.35);
}

.t2b-card-head {
    min-height: 62px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(39,255,90,.12);
}

.t2b-card-head span {
    display: block;
    margin-bottom: 3px;
    color: var(--t2b-green);
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.t2b-card-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.1;
    font-weight: 1000;
}

.t2b-league-empty {
    padding: 28px 18px;
    color: #9fb9aa;
    font-size: 13px;
    font-weight: 800;
}

/* =========================================================
   OVERVIEW STATS
========================================================= */

.t2b-league-stats-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.t2b-league-stats-grid div {
    min-height: 95px;
    padding: 15px;
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(39,255,90,.10), transparent 34%),
        rgba(255,255,255,.032);
    border: 1px solid rgba(39,255,90,.14);
}

.t2b-league-stats-grid span {
    display: block;
    color: #93ad9d;
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.t2b-league-stats-grid strong {
    display: block;
    margin-top: 20px;
    color: var(--t2b-green);
    font-size: 30px;
    font-weight: 1000;
    line-height: 1;
}

/* =========================================================
   MATCH LIST
========================================================= */

.t2b-league-match-list {
    display: grid;
}

.t2b-league-match-row {
    min-height: 62px;
    padding: 8px 16px;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 54px 210px 18px;
    gap: 12px;
    align-items: center;
    color: #eaffef;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.055);
    transition: .14s ease;
}

.t2b-league-match-row:last-child {
    border-bottom: 0;
}

.t2b-league-match-row:hover {
    background: rgba(39,255,90,.045);
}

.t2b-league-time {
    color: var(--t2b-green);
    font-size: 12px;
    font-weight: 1000;
    text-align: center;
}

.t2b-league-time.is-live {
    color: var(--t2b-red);
    animation: t2bLeaguePulse 1.2s infinite;
}

@keyframes t2bLeaguePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}

.t2b-league-teams {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.t2b-league-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.t2b-league-team img {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
}

.t2b-league-team span {
    min-width: 0;
    color: #eaffef;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t2b-league-score {
    display: grid;
    gap: 6px;
    justify-items: center;
}

.t2b-league-score strong {
    width: 28px;
    height: 20px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: var(--t2b-green);
    font-size: 13px;
    font-weight: 1000;
}

.t2b-league-tip {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
}

.t2b-league-tip span {
    min-width: 0;
    height: 34px;
    padding: 0 11px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #eaffef;
    background: rgba(39,255,90,.10);
    border: 1px solid rgba(39,255,90,.20);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t2b-league-tip span.muted {
    color: #7f9288;
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.06);
}

.t2b-league-tip b {
    height: 34px;
    min-width: 48px;
    padding: 0 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--t2b-green);
    background: rgba(39,255,90,.08);
    border: 1px solid rgba(39,255,90,.22);
    font-size: 11px;
    font-weight: 1000;
}

.t2b-league-arrow {
    color: var(--t2b-green);
    font-size: 21px;
    font-weight: 1000;
    text-align: right;
}

/* =========================================================
   STANDINGS
========================================================= */

.t2b-standings-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.t2b-standings-tabs a {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    color: #cbd8cf;
    text-decoration: none;
    font-size: 11px;
    font-weight: 950;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
}

.t2b-standings-tabs a.active,
.t2b-standings-tabs a:hover {
    color: #06130b;
    background: linear-gradient(180deg, #6dff9b, #17c85a);
}

.t2b-standings-group {
    margin: 14px 16px 10px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #cde8d6;
    background: rgba(39,255,90,.055);
    border: 1px solid rgba(39,255,90,.14);
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.t2b-standings-table-wrap {
    margin: 0 16px 16px;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.02);
}

.t2b-standings-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.t2b-standings-table th {
    padding: 12px 8px;
    color: #7e9285;
    background: rgba(255,255,255,.018);
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    text-align: center;
}

.t2b-standings-table td {
    padding: 11px 8px;
    color: #dff8e7;
    border-bottom: 1px solid rgba(255,255,255,.055);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.t2b-standings-table tr:last-child td {
    border-bottom: 0;
}

.t2b-standings-table tr:hover td {
    background: rgba(39,255,90,.035);
}

.t2b-standings-table th:nth-child(2),
.t2b-standings-table td:nth-child(2) {
    text-align: left;
    min-width: 220px;
}

.t2b-rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dff8e7;
    background: rgba(255,255,255,.06);
    font-size: 12px;
    font-weight: 1000;
}

.t2b-rank-badge.rank-cl { background: #1d7cff; color: #fff; }
.t2b-rank-badge.rank-el { background: #c00078; color: #fff; }
.t2b-rank-badge.rank-ecl { background: #f5c400; color: #111; }
.t2b-rank-badge.rank-promotion { background: #16a34a; color: #fff; }
.t2b-rank-badge.rank-playoff { background: #2563eb; color: #fff; }
.t2b-rank-badge.rank-relegation { background: #e60023; color: #fff; }

.t2b-team-cell {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #eaffef;
    text-decoration: none;
}

.t2b-team-cell img {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
}

.t2b-team-cell span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t2b-pts {
    color: var(--t2b-green) !important;
    font-weight: 1000 !important;
}

.t2b-form-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.t2b-form-list span {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255,255,255,.08);
    font-size: 10px;
    font-weight: 1000;
}

.t2b-form-list .form-win { background: #16a34a; }
.t2b-form-list .form-draw { background: #d97706; }
.t2b-form-list .form-loss { background: #dc2626; }
.t2b-form-list .form-empty { background: #6b7280; }

/* =========================================================
   RANKINGS
========================================================= */

.t2b-rankings-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.t2b-ranking-card {
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.065);
}

.t2b-ranking-head {
    min-height: 60px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.t2b-ranking-head span {
    display: block;
    margin-bottom: 3px;
    color: var(--t2b-green);
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.t2b-ranking-head h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 1000;
}

.t2b-ranking-head b {
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: #06130b;
    background: linear-gradient(180deg, #6dff9b, #17c85a);
    font-size: 11px;
    font-weight: 1000;
}

.t2b-ranking-row {
    min-height: 62px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.t2b-ranking-row:last-child {
    border-bottom: 0;
}

.t2b-ranking-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.t2b-ranking-pos {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #dff8e7;
    background: rgba(255,255,255,.06);
    font-size: 12px;
    font-weight: 1000;
}

.t2b-ranking-pos.is-gold { background: #f5c451; color: #111; }
.t2b-ranking-pos.is-silver { background: #b8c0cc; color: #111; }
.t2b-ranking-pos.is-bronze { background: #c47a3b; color: #111; }

.t2b-ranking-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 999px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(39,255,90,.10);
    border: 1px solid rgba(39,255,90,.18);
    color: var(--t2b-green);
    font-size: 12px;
    font-weight: 1000;
}

.t2b-ranking-avatar img,
.t2b-ranking-avatar span {
    width: 100%;
    height: 100%;
}

.t2b-ranking-avatar img {
    object-fit: cover;
}

.t2b-ranking-avatar span {
    display: grid;
    place-items: center;
}

.t2b-ranking-meta {
    min-width: 0;
}

.t2b-ranking-name,
.t2b-ranking-name a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t2b-ranking-name a:hover {
    color: var(--t2b-green);
}

.t2b-ranking-team {
    margin-top: 3px;
    color: #8da99a;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t2b-ranking-value {
    flex: 0 0 auto;
    min-width: 54px;
    padding: 6px 8px;
    border-radius: 10px;
    text-align: center;
    background: rgba(39,255,90,.08);
    border: 1px solid rgba(39,255,90,.16);
}

.t2b-ranking-value small {
    display: block;
    color: #8da99a;
    font-size: 9px;
    font-weight: 1000;
    text-transform: uppercase;
}

.t2b-ranking-value strong {
    display: block;
    margin-top: 2px;
    color: var(--t2b-green);
    font-size: 18px;
    font-weight: 1000;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) {
    .t2b-league-hero {
        grid-template-columns: 1fr;
    }

    .t2b-league-hero-stats {
        min-width: 0;
    }

    .pp-home.t2b-league-page {
        grid-template-columns: 250px minmax(0, 1fr) !important;
    }
}

@media (max-width: 980px) {
    .pp-home.t2b-league-page {
        width: min(100% - 18px, 1580px) !important;
        grid-template-columns: 1fr !important;
    }

    .pp-home.t2b-league-page > .pp-sidebar {
        display: none !important;
    }

    .t2b-league-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .t2b-league-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 3px;
    }

    .t2b-season-form select {
        width: 100%;
    }

    .t2b-league-hero-stats,
    .t2b-league-stats-grid,
    .t2b-rankings-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .t2b-league-hero {
        padding: 16px;
        border-radius: 16px;
    }

    .t2b-league-title-row {
        align-items: flex-start;
    }

    .t2b-league-logo-lg {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 14px;
    }

    .t2b-league-title-row h1 {
        font-size: 26px;
    }

    .t2b-league-title-row p {
        font-size: 12px;
    }

    .t2b-league-hero-stats,
    .t2b-league-stats-grid,
    .t2b-rankings-grid {
        grid-template-columns: 1fr;
    }

    .t2b-league-card,
    .t2b-top-matches-box {
        overflow-x: auto;
    }

    .t2b-league-match-row {
        min-width: 680px;
    }

    .t2b-card-head {
        min-width: 680px;
    }

    .t2b-standings-card .t2b-card-head {
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .pp-home.t2b-league-page {
        width: min(100% - 14px, 1580px) !important;
        margin-top: 12px !important;
    }

    .t2b-league-hero,
    .t2b-league-toolbar,
    .t2b-league-card {
        border-radius: 14px;
    }

    .t2b-league-title-row h1 {
        font-size: 23px;
    }

    .t2b-league-breadcrumbs {
        font-size: 9px;
    }
}