/* ═══════════════════════════════════════════════════════════════════
   LEAGUE DETAIL PAGE
═══════════════════════════════════════════════════════════════════ */

.ld-page {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 24px;
}

/* ── LEAGUE HEADER ───────────────────────────────────────────────── */
.ld-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.ld-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.ld-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #94a3b8;
    flex-shrink: 0;
}

.ld-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ld-league-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.ld-country {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

/* ── TAB NAVIGATION ──────────────────────────────────────────────── */
.ld-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 2px solid #f0f0f0;
    background: #fff;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ld-tabs::-webkit-scrollbar {
    display: none;
}

.ld-tab {
    flex-shrink: 0;
    padding: 14px 18px;
    border: none;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ld-tab:hover {
    color: #0f172a;
    background: #f8fafc;
}

.ld-tab.active {
    color: #047857;
    background: #ecfdf5;
    border-bottom-color: #10b981;
}

.ld-tab i {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ── PANELS ──────────────────────────────────────────────────────── */
.ld-panel {
    display: none;
    padding: 20px;
}

.ld-panel.active {
    display: block;
}

/* ── ROUND BADGE ─────────────────────────────────────────────────── */
.ld-round-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.ld-round-badge i {
    color: #10b981;
    font-size: 0.7rem;
}

/* ── EMPTY STATE ─────────────────────────────────────────────────── */
.ld-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #94a3b8;
}

.ld-empty-state i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

.ld-empty-state p {
    font-size: 0.875rem;
    margin: 0;
}

/* ── TRENDS ──────────────────────────────────────────────────────── */
.ld-trends-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .ld-trends-grid {
        grid-template-columns: 1fr;
    }
}

.ld-trend-card {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

.ld-trend-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
}

.ld-trend-bar-row {
    display: grid;
    grid-template-columns: 80px 1fr 44px;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ld-trend-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.ld-trend-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.ld-trend-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.ld-fill-home  { background: #10b981; }
.ld-fill-draw  { background: #f59e0b; }
.ld-fill-away  { background: #ef4444; }
.ld-fill-over  { background: #3b82f6; }
.ld-fill-under { background: #8b5cf6; }
.ld-fill-btts  { background: #ec4899; }

.ld-trend-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}

.ld-trend-sample {
    font-size: 0.7rem;
    color: #94a3b8;
    margin: 8px 0 0 0;
    text-align: right;
}

/* ── STANDINGS TABLE ─────────────────────────────────────────────── */
.ld-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ld-standings-table,
.ld-form-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    min-width: 500px;
}

.ld-standings-table th,
.ld-form-table th {
    padding: 8px 10px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #f0f0f0;
    white-space: nowrap;
}

.ld-standings-table td,
.ld-form-table td {
    padding: 9px 10px;
    text-align: center;
    border-bottom: 1px solid #f8f8f8;
    color: #1e293b;
}

.ld-standings-table tr:last-child td,
.ld-form-table tr:last-child td {
    border-bottom: none;
}

.ld-standings-table tr:hover td,
.ld-form-table tr:hover td {
    background: #f8fafc;
}

.ld-team-col {
    text-align: left !important;
    min-width: 150px;
    font-weight: 600;
}

.ld-pos {
    font-weight: 700;
    color: #64748b;
    width: 28px;
}

.ld-pts {
    font-weight: 800;
    color: #0f172a;
}

.ld-positive { color: #10b981; font-weight: 700; }
.ld-negative { color: #ef4444; font-weight: 700; }

.ld-form-col {
    display: flex;
    gap: 3px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

/* Zone colours on standings rows */
.ld-standings-table tr.zone-champions td:first-child {
    border-left: 3px solid #10b981;
}
.ld-standings-table tr.zone-europa td:first-child {
    border-left: 3px solid #f59e0b;
}
.ld-standings-table tr.zone-conference td:first-child {
    border-left: 3px solid #3b82f6;
}
.ld-standings-table tr.zone-continental2-q td:first-child { border-left: 3px solid #7dd3fc; }
.ld-standings-table tr.zone-promotion td:first-child {
    border-left: 3px solid #8b5cf6;
}
.ld-standings-table tr.zone-promotion-q td:first-child { border-left: 3px solid #a855f7; }
.ld-standings-table tr.zone-relegation td:first-child {
    border-left: 3px solid #ef4444;
}

/* ── LEGEND ──────────────────────────────────────────────────────── */
.ld-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0 0;
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.ld-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #64748b;
}

.ld-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.ld-legend-dot.zone-champions  { background: #10b981; }
.ld-legend-dot.zone-europa      { background: #f59e0b; }
.ld-legend-dot.zone-conference  { background: #3b82f6; }
.ld-legend-dot.zone-continental2-q { background: #7dd3fc; }
.ld-legend-dot.zone-promotion   { background: #8b5cf6; }
.ld-legend-dot.zone-promotion-q { background: #a855f7; }
.ld-legend-dot.zone-relegation  { background: #ef4444; }

/* ── RESULTS & FIXTURES ──────────────────────────────────────────── */
.ld-round-section {
    margin-bottom: 20px;
}

.ld-round-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
}

.ld-round-header i {
    color: #10b981;
    font-size: 0.7rem;
}

.ld-fixture-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ld-fixture-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.ld-fixture-row:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.ld-fixture-team {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}

.ld-home {
    justify-content: flex-end;
    text-align: right;
}

.ld-away {
    justify-content: flex-start;
    text-align: left;
}

.ld-fixture-score {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    min-width: 52px;
    text-align: center;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
}

.ld-fixture-status {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    min-width: 28px;
    text-align: right;
}

.ld-status-ns {
    color: #10b981;
}

/* ── STATISTICS ──────────────────────────────────────────────────── */
.ld-stats-section {
    max-width: 480px;
}

.ld-stats-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ld-scorers-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ld-scorer-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    font-size: 0.8rem;
}

.ld-scorer-rank {
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
    text-align: center;
}

.ld-scorer-name {
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ld-scorer-goals {
    font-weight: 800;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* ── SKELETON OVERRIDE for league page ───────────────────────────── */
.ld-predictions-content .skeleton-card {
    border: 1px solid #f0f0f0;
    background: #fff;
}

/* ── TRENDS FIXTURE BLOCKS ───────────────────────────────────────── */
.ld-trends-fixture-block {
    margin-bottom: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.ld-trends-fixture-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.ld-trends-fixture-matchup {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.ld-trends-fixture-matchup:hover {
    color: #10b981;
}

.ld-trends-fixture-names {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ld-trends-fixture-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ld-trends-fixture-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ld-trends-prediction-pill {
    font-size: 0.72rem;
    font-weight: 600;
    color: #334155;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

.ld-trends-prediction-pill strong {
    color: #0f172a;
}

/* ── AI PREDICTION BLOCK (inside trends fixture) ─────────────────── */
.ld-trends-ai-block {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.ld-trends-ai-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ld-trends-ai-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ld-trends-ai-pick {
    font-size: 0.8rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
}

.ld-ai-pick-home { background: rgba(16, 185, 129, 0.1); color: #059669; }
.ld-ai-pick-draw { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.ld-ai-pick-away { background: rgba(239, 68, 68, 0.1);  color: #dc2626; }

.ld-trends-ai-conf {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    margin-left: auto;
}

/* Probability Bar */
.ld-trends-prob-bar {
    display: flex;
    width: 100%;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    gap: 2px;
    margin-bottom: 6px;
}

.ld-prob-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    transition: width 0.6s ease;
    min-width: 0;
}

.ld-prob-home { background: #94a3b8; }
.ld-prob-draw { background: #cbd5e1; color: #475569; }
.ld-prob-away { background: #94a3b8; }

.ld-prob-home.ld-prob-active { background: #10b981; }
.ld-prob-draw.ld-prob-active { background: #f59e0b; color: white; }
.ld-prob-away.ld-prob-active { background: #3b82f6; }

.ld-trends-prob-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Override trends-row inside fixture block to remove top margin */
.ld-trends-fixture-block .trends-row {
    margin-top: 0;
    border-radius: 0;
}

.ld-trends-fixture-block .trends-card {
    border-radius: 0;
    border: none;
    border-right: 1px solid #e5e7eb;
}

.ld-trends-fixture-block .trends-card:last-child {
    border-right: none;
}

/* ── TRENDS DROPDOWN Z-INDEX FIX (league detail only) ───────────────── */
#ld-panel-trends .trends-card {
    overflow: visible;
}

#ld-panel-trends .trends-dropdown {
    position: static;
}

#ld-panel-trends .trends-dropdown-menu {
    position: absolute;
    z-index: 500;
}

#ld-panel-trends .trends-dropdown-wrap {
    position: relative;
}

#ld-panel-trends .ld-trends-fixture-block {
    overflow: visible;
}

#ld-panel-trends .trends-row {
    overflow: visible;
}

.ld-season {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 2px;
}

.ld-season i {
    font-size: 0.7rem;
}

/* ── RESULTS TAB ─────────────────────────────────────────────────── */
.lr-round-section {
    margin-bottom: 20px;
}

.lr-round-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 4px;
}

.lr-round-header i {
    color: #10b981;
    font-size: 0.7rem;
}

.lr-fixture-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.lr-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.15s;
}

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

.lr-row:hover {
    background: #f8fafc;
}

.lr-date-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.lr-date {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    line-height: 1.3;
}

.lr-status {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.lr-teams-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.lr-team {
    display: flex;
    align-items: center;
    gap: 7px;
}

.lr-team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.lr-team-name {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lr-score {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    min-width: 14px;
    text-align: right;
    flex-shrink: 0;
}

.lr-pen {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    margin-left: 2px;
}

.lr-time {
    font-size: 0.72rem;
    font-weight: 700;
    color: black;
    line-height: 1.3;
}


/* ── LEAGUE STATISTICS TAB ───────────────────────────────────────── */
.ls-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ls-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ls-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}


.ls-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

.ls-card-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ls-card-title i { font-size: 0.7rem; color: #10b981; }
.ls-title-green i { color: #10b981; }
.ls-title-blue i  { color: #3b82f6; }
.ls-title-red i   { color: #ef4444; }
.ls-title-orange i { color: #f97316; }

.ls-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 12px 0;
}

.ls-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.8rem;
}

.ls-stat-label {
    color: #64748b;
    font-weight: 600;
}

.ls-stat-val {
    font-weight: 800;
    color: #0f172a;
}

.ls-accent { color: #10b981 !important; }
.ls-red    { color: #ef4444 !important; }

.ls-bar-row {
    display: grid;
    grid-template-columns: 80px 1fr 36px 44px;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ls-bar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.ls-bar-track {
    height: 7px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.ls-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.ls-fill-home  { background: #3b82f6; }
.ls-fill-draw  { background: #f59e0b; }
.ls-fill-away  { background: #8b5cf6; }
.ls-fill-over  { background: #10b981; }
.ls-fill-under { background: #94a3b8; }
.ls-fill-btts  { background: #ec4899; }

.ls-bar-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}

.ls-bar-pct {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-align: right;
}

/* Score frequency */
.ls-scores-table { display: flex; flex-direction: column; gap: 6px; }

.ls-scores-header {
    display: grid;
    grid-template-columns: 48px 40px 1fr;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #94a3b8;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}

.ls-score-row {
    display: grid;
    grid-template-columns: 48px 40px 1fr;
    align-items: center;
    gap: 8px;
}

.ls-score-val {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    background: #f1f5f9;
    border-radius: 4px;
    padding: 3px 6px;
    text-align: center;
}

.ls-score-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    text-align: center;
}

.ls-score-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ls-score-bar {
    height: 6px;
    background: #3b82f6;
    border-radius: 3px;
    min-width: 4px;
    transition: width 0.8s ease;
}

.ls-score-pct {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

/* Team tables */
.ls-team-table,
.ls-form-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ls-team-header {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 42px 48px;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #94a3b8;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}

.ls-form-table .ls-team-header {
    grid-template-columns: 20px 1fr auto auto;
}

.ls-team-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 42px 48px;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid #f8f8f8;
}

.ls-form-table .ls-team-row {
    grid-template-columns: 20px 1fr auto auto;
}

.ls-team-rank {
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
    text-align: center;
}

.ls-team-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ls-team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.ls-team-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ls-team-stat {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    text-align: right;
    white-space: nowrap;
}

.ls-form-badges {
    display: flex;
    gap: 2px;
    justify-content: flex-end;
}

@media (min-width: 769px) {
    .ld-predictions-market-nav {
        width: 100%;
        gap: 8px;
    }

    .ld-predictions-market-nav #ld-prediction-markets {
        width: 100%;
        max-width: none;
        gap: 6px;
    }

    .ld-predictions-market-nav .ptype {
        min-width: 94px;
        min-height: 38px;
        padding: 8px 14px;
        font-size: 11px;
    }

    .ld-predictions-market-nav .scroll-btn {
        width: 38px;
        height: 38px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: var(--bg-primary);
    }
}

@media (max-width: 768px) {
    .ld-tabs {
        gap: 4px;
        padding: 0 10px;
        border-bottom-width: 1px;
    }

    .ld-tab {
        min-height: 48px;
        padding: 13px 12px;
        border-radius: 8px 8px 0 0;
        white-space: nowrap;
    }

    .ld-tab.active {
        border-bottom-width: 3px;
    }

    .ld-panel {
        padding: 14px 10px;
    }

    .ls-wrap {
        gap: 12px;
    }

    .ls-grid-2,
    .ls-grid-4 {
        display: block;
    }

    .ls-grid-2 > .ls-card,
    .ls-grid-4 > .ls-card {
        margin-bottom: 12px;
    }

    .ls-grid-2 > .ls-card:last-child,
    .ls-grid-4 > .ls-card:last-child {
        margin-bottom: 0;
    }

    .ls-card {
        width: 100%;
        padding: 14px 12px;
        overflow: hidden;
    }

    .ls-card-title {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .ls-stat-row {
        gap: 12px;
    }

    .ls-stat-label,
    .ls-bar-label {
        min-width: 0;
    }

    .ls-bar-row {
        grid-template-columns: minmax(68px, 0.9fr) minmax(60px, 1fr) 34px 42px;
        gap: 6px;
    }

    .ls-scores-header,
    .ls-score-row {
        grid-template-columns: 58px 42px minmax(0, 1fr);
    }

    .ls-score-bar-wrap {
        min-width: 0;
    }

    .ls-team-header,
    .ls-team-row {
        grid-template-columns: 20px minmax(0, 1fr) 40px 48px;
    }

    .ls-form-table .ls-team-header,
    .ls-form-table .ls-team-row {
        grid-template-columns: 20px minmax(0, 1fr) minmax(58px, auto) 34px;
    }
}

@media (max-width: 380px) {
    .ls-card {
        padding: 12px 10px;
    }

    .ls-bar-row {
        grid-template-columns: minmax(62px, 0.95fr) minmax(44px, 1fr) 30px 36px;
        gap: 5px;
    }

    .ls-bar-label,
    .ls-bar-count,
    .ls-bar-pct,
    .ls-score-pct,
    .ls-team-name,
    .ls-team-stat {
        font-size: 0.7rem;
    }

    .ls-scores-header,
    .ls-score-row {
        grid-template-columns: 52px 36px minmax(0, 1fr);
        gap: 6px;
    }
}


.standings-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #334155;
    padding: 10px 16px;
    background: #f1f5f9;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.standings-group-header i {
    color: #10b981;
    font-size: 0.7rem;
}


/* ── LEAGUE LEADERS — DYNAMIC STATS BLOCK ────────────────────────── */
.leaders-card {
    background: var(--bg-secondary, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.leaders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color, #f1f5f9);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.leaders-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.leaders-league-badge {
    background: #c0152a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaders-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
    transition: background 0.2s ease;
    border-radius: 8px;
}

.leaders-list-item:hover {
    background: var(--bg-hover, #f8fafc);
}

.leaders-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leader-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.leader-rank.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.leader-rank.rank-2 {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.3);
}

.leader-rank.rank-3 {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 0 8px rgba(234, 88, 12, 0.3);
}

.leader-rank.rank-other {
    background: var(--bg-primary, #f1f5f9);
    color: var(--text-secondary, #475569);
    border: 1px solid var(--border-color, #cbd5e1);
}

.leader-player-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color, #e2e8f0);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.leaders-list-item:hover .leader-player-img {
    transform: scale(1.1);
}

.leader-player-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-primary, #e2e8f0);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary, #475569);
    flex-shrink: 0;
}

.leader-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.leader-player-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
}

.leader-player-pos {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
}

.leader-team-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.leader-team-logo {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.leader-team-name {
    font-size: 11px;
    color: var(--text-secondary, #475569);
}

.leader-stat-pill {
    background: var(--bg-primary, #f1f5f9);
    border: 1px solid var(--border-color, #cbd5e1);
    color: var(--text-primary, #0f172a);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-align: right;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.leader-stat-sub {
    display: block;
    font-size: 9px;
    color: #64748b;
    font-weight: 500;
    margin-top: 1px;
}

.leaders-footer {
    text-align: center;
    margin-top: 12px;
}

.leaders-view-btn {
    background: transparent;
    border: 1px solid var(--border-color, #cbd5e1);
    color: var(--text-secondary, #475569);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.leaders-view-btn:hover {
    background: var(--bg-primary, #f1f5f9);
    color: var(--text-primary, #0f172a);
    border-color: var(--text-secondary, #64748b);
}

.leaders-chevron {
    transition: transform 0.3s ease;
}

.leaders-view-btn.expanded .leaders-chevron {
    transform: rotate(180deg);
}
