/* ==========================================================================
   LiveScore (livescore.show) - Broadcast Sports UI Stylesheet
   Built with Bootstrap 5 + Custom Dark/Light Theme Variables
   ========================================================================== */

:root,
[data-bs-theme="dark"] {
    --ls-bg-body: #0b0e14;
    --ls-bg-surface: #131822;
    --ls-bg-elevated: #1a2130;
    --ls-bg-hover: #212a3d;
    --ls-border: #252f42;
    --ls-text-primary: #f1f5f9;
    --ls-text-secondary: #94a3b8;
    --ls-text-muted: #64748b;
    --ls-accent: #10b981;
    --ls-accent-hover: #059669;
    --ls-accent-soft: rgba(16, 185, 129, 0.14);
    --ls-live: #ef4444;
    --ls-live-soft: rgba(239, 68, 68, 0.16);
    --ls-warning: #f59e0b;
    --ls-info: #3b82f6;
    --ls-card-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--ls-bg-body);
    color: var(--ls-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: var(--ls-bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--ls-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--ls-text-muted);
}

/* Main Header / Navbar */
.ls-navbar {
    background-color: var(--ls-bg-surface);
    border-bottom: 1px solid var(--ls-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(12px);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--ls-text-primary);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.brand-logo:hover {
    color: var(--ls-text-primary);
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    position: relative;
}

.brand-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 9px;
    height: 9px;
    background-color: var(--ls-live);
    border: 2px solid var(--ls-bg-surface);
    border-radius: 50%;
}

.brand-domain {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ls-accent);
    background: var(--ls-accent-soft);
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    margin-left: 0.25rem;
    vertical-align: middle;
}

/* Primary Nav Links */
.ls-nav-pills .nav-link {
    color: var(--ls-text-secondary);
    font-weight: 600;
    padding: 0.5rem 0.95rem;
    border-radius: 8px;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
}

.ls-nav-pills .nav-link:hover {
    color: var(--ls-text-primary);
    background-color: var(--ls-bg-hover);
}

.ls-nav-pills .nav-link.active {
    color: var(--ls-accent);
    background-color: var(--ls-accent-soft);
}

/* Search Box */
.ls-search-wrap {
    position: relative;
    min-width: 230px;
}

.ls-search-input {
    background-color: var(--ls-bg-elevated);
    border: 1px solid var(--ls-border);
    color: var(--ls-text-primary);
    border-radius: 9px;
    padding: 0.42rem 2.2rem 0.42rem 2.2rem;
    font-size: 0.85rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ls-search-input:focus {
    outline: none;
    border-color: var(--ls-accent);
    box-shadow: 0 0 0 3px var(--ls-accent-soft);
}

.ls-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ls-text-muted);
    pointer-events: none;
}

.ls-search-clear {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ls-text-muted);
    padding: 0;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Panels & Cards */
.ls-card {
    background-color: var(--ls-bg-surface);
    border: 1px solid var(--ls-border);
    border-radius: 12px;
    box-shadow: var(--ls-card-shadow);
    overflow: hidden;
}

.ls-card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ls-border);
    background-color: var(--ls-bg-elevated);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ls-text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Sidebar League List */
.league-nav-list {
    list-style: none;
    padding: 0.4rem;
    margin: 0;
}

.league-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--ls-text-primary);
    text-decoration: none;
    transition: background-color 0.15s ease;
    margin-bottom: 2px;
}

.league-nav-item:hover {
    background-color: var(--ls-bg-hover);
}

.league-nav-item.active {
    background-color: var(--ls-accent-soft);
    color: var(--ls-accent);
    font-weight: 600;
}

.league-nav-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border-radius: 4px;
    padding: 1px;
}

.league-nav-name {
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.league-nav-country {
    font-size: 0.72rem;
    color: var(--ls-text-muted);
    display: block;
    line-height: 1.1;
}

.league-count-badge {
    font-size: 0.72rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background-color: var(--ls-bg-elevated);
    color: var(--ls-text-secondary);
    font-weight: 600;
}

.featured-score-box {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.9rem;
    border-radius: 10px;
}

/* Date Strip & Filter Controls */
.date-strip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 2px;
}

.date-pill {
    border: 1px solid var(--ls-border);
    background-color: var(--ls-bg-elevated);
    color: var(--ls-text-secondary);
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    min-width: 64px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.date-pill:hover {
    border-color: var(--ls-accent);
    color: var(--ls-text-primary);
}

.date-pill.active {
    background-color: var(--ls-accent);
    border-color: var(--ls-accent);
    color: #ffffff;
}

.date-pill .day-name {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

.date-pill .day-num {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Status Filter Tabs */
.filter-btn {
    border: 1px solid var(--ls-border);
    background-color: var(--ls-bg-elevated);
    color: var(--ls-text-secondary);
    border-radius: 999px;
    padding: 0.32rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-btn:hover {
    color: var(--ls-text-primary);
    border-color: var(--ls-text-muted);
}

.filter-btn.active {
    background-color: var(--ls-accent);
    border-color: var(--ls-accent);
    color: #fff;
}

.filter-btn.filter-live.active {
    background-color: var(--ls-live);
    border-color: var(--ls-live);
    color: #fff;
}

/* Live Pulsing Dot */
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--ls-live);
    display: inline-block;
    animation: pulse-live 1.4s infinite ease-in-out;
}

.filter-btn.filter-live.active .live-dot {
    background-color: #ffffff;
}

@keyframes pulse-live {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
        box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
    }
}

/* League Group Card in Matches Feed */
.league-group-card {
    background-color: var(--ls-bg-surface);
    border: 1px solid var(--ls-border);
    border-radius: 11px;
    margin-bottom: 0.85rem;
    overflow: hidden;
}

.league-group-header {
    background-color: var(--ls-bg-elevated);
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid var(--ls-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.league-group-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.league-flag {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    padding: 1px;
}

/* Individual Match Row */
.match-row {
    display: grid;
    grid-template-columns: 34px 62px 1fr 64px 36px;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--ls-border);
    cursor: pointer;
    transition: background-color 0.14s ease;
    gap: 0.4rem;
}

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

.match-row:hover {
    background-color: var(--ls-bg-hover);
}

.match-row.match-is-live {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, transparent 35%);
}

.match-row.match-goal-flash {
    animation: goal-flash-bg 2.5s ease;
}

@keyframes goal-flash-bg {
    0%, 25% { background-color: rgba(16, 185, 129, 0.3); }
    100% { background-color: transparent; }
}

/* Favorite Star Button */
.fav-btn {
    background: none;
    border: none;
    color: var(--ls-text-muted);
    font-size: 0.95rem;
    padding: 0.2rem;
    cursor: pointer;
    transition: transform 0.15s, color 0.15s;
}

.fav-btn:hover {
    transform: scale(1.18);
    color: var(--ls-warning);
}

.fav-btn.active {
    color: var(--ls-warning);
}

/* Match Status / Time Column */
.match-status-col {
    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
}

.status-badge-live {
    color: var(--ls-live);
    background-color: var(--ls-live-soft);
    padding: 0.18rem 0.45rem;
    border-radius: 6px;
    display: inline-block;
}

.status-badge-ft {
    color: var(--ls-text-secondary);
    background-color: var(--ls-bg-elevated);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    display: inline-block;
}

.status-badge-upcoming {
    color: var(--ls-text-primary);
    font-weight: 600;
}

/* Teams Column */
.match-teams-col {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    min-width: 0;
}

.team-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

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

.team-name {
    font-size: 0.86rem;
    color: var(--ls-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-name.winner {
    font-weight: 700;
}

.red-card-pill {
    display: inline-block;
    width: 8px;
    height: 11px;
    background-color: #ef4444;
    border-radius: 2px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Score Column */
.match-scores-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.score-num {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.05rem 0.4rem;
    border-radius: 4px;
    color: var(--ls-text-primary);
}

.score-num.live-score {
    color: var(--ls-live);
}

/* Standings Table */
.standings-table {
    margin-bottom: 0;
    font-size: 0.83rem;
}

.standings-table th {
    background-color: var(--ls-bg-elevated);
    color: var(--ls-text-secondary);
    font-weight: 600;
    font-size: 0.74rem;
    text-transform: uppercase;
    border-bottom-color: var(--ls-border);
    padding: 0.6rem 0.5rem;
}

.standings-table td {
    padding: 0.55rem 0.5rem;
    vertical-align: middle;
    border-bottom-color: var(--ls-border);
    color: var(--ls-text-primary);
}

.rank-pill {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    background-color: var(--ls-bg-elevated);
}

.rank-ucl {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-left: 3px solid #10b981;
}

.rank-uel {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-left: 3px solid #3b82f6;
}

.rank-rel {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-left: 3px solid #ef4444;
}

.form-badge {
    width: 19px;
    height: 19px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    font-weight: 700;
    color: #fff;
    margin-right: 2px;
}

.form-W { background-color: #10b981; }
.form-D { background-color: #64748b; }
.form-L { background-color: #ef4444; }

/* Match Timeline Events */
.event-row {
    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    align-items: center;
    padding: 0.55rem 0.5rem;
    border-bottom: 1px dashed var(--ls-border);
    font-size: 0.83rem;
}

.event-time-pill {
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    background-color: var(--ls-bg-elevated);
    border: 1px solid var(--ls-border);
    border-radius: 999px;
    padding: 0.15rem 0.35rem;
}

/* Stat Comparison Bar */
.stat-bar-track {
    height: 7px;
    background-color: var(--ls-bg-elevated);
    border-radius: 999px;
    overflow: hidden;
    display: flex;
}

/* Footer */
.ls-footer {
    background-color: var(--ls-bg-surface);
    border-top: 1px solid var(--ls-border);
    margin-top: auto;
    padding: 1.5rem 0;
    color: var(--ls-text-secondary);
    font-size: 0.82rem;
}

@media (max-width: 576px) {
    .match-row {
        grid-template-columns: 28px 52px 1fr 48px 28px;
        padding: 0.55rem 0.45rem;
    }
    .featured-score-box {
        font-size: 1.35rem;
        padding: 0.2rem 0.6rem;
    }
}


/* ==========================================================================
   Multi-Page LiveScore Extensions (Match, Competition, Team, Player Pages)
   ========================================================================== */

/* Global Search Autocomplete Dropdown */
.ls-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 320px;
    max-height: 420px;
    overflow-y: auto;
    background-color: var(--ls-bg-surface);
    border: 1px solid var(--ls-border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    z-index: 1080;
}

.search-group-title {
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ls-text-muted);
    background-color: var(--ls-bg-elevated);
    border-bottom: 1px solid var(--ls-border);
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    color: var(--ls-text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--ls-border);
    transition: background-color 0.14s ease;
    font-size: 0.84rem;
}

.search-result-item:hover {
    background-color: var(--ls-bg-hover);
    color: var(--ls-accent);
}

/* Page Hero Banners (Match, Competition, Team, Player) */
.page-hero-card {
    background: linear-gradient(135deg, #111827 0%, #0f2421 55%, #131c2e 100%);
    border: 1px solid var(--ls-border);
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    color: #f8fafc;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ls-card-shadow);
}

.page-hero-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-crest-lg {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.96);
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.hero-player-photo {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--ls-accent);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Custom Sub-Navigation Tabs inside Pages */
.ls-page-tabs {
    border-bottom: 1px solid var(--ls-border);
    background-color: var(--ls-bg-elevated);
    padding: 0 0.75rem;
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
}

.ls-page-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--ls-text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 0;
    white-space: nowrap;
    background: transparent;
}

.ls-page-tabs .nav-link:hover {
    color: var(--ls-text-primary);
}

.ls-page-tabs .nav-link.active {
    color: var(--ls-accent);
    border-bottom-color: var(--ls-accent);
    background: transparent;
}

/* Tactical Football Pitch Visualization (Match Page) */
.tactical-pitch {
    background: linear-gradient(180deg, #14532d 0%, #166534 25%, #14532d 50%, #166534 75%, #14532d 100%);
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    position: relative;
    padding: 1.25rem 0.75rem;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    overflow: hidden;
}

.tactical-pitch::before {
    /* Halfway line */
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%);
}

.tactical-pitch::after {
    /* Center circle */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 84px;
    height: 84px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.pitch-line-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    z-index: 2;
    margin: 0.35rem 0;
}

.pitch-player-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    width: 68px;
    text-align: center;
    transition: transform 0.15s ease;
}

.pitch-player-node:hover {
    transform: scale(1.1);
    color: #fde047;
}

.pitch-shirt {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.76rem;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
    position: relative;
}

.pitch-shirt.home-shirt {
    background-color: #ef4444;
}

.pitch-shirt.away-shirt {
    background-color: #2563eb;
}

.pitch-rating-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: #10b981;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.05rem 0.28rem;
    border-radius: 4px;
}

.pitch-player-name {
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.78);
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
    margin-top: 3px;
    white-space: nowrap;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Directory Entity Cards (Competitions, Teams, Players) */
.entity-card {
    background-color: var(--ls-bg-surface);
    border: 1px solid var(--ls-border);
    border-radius: 11px;
    padding: 0.9rem;
    text-decoration: none;
    color: var(--ls-text-primary);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.entity-card:hover {
    transform: translateY(-2px);
    border-color: var(--ls-accent);
    background-color: var(--ls-bg-hover);
    color: var(--ls-text-primary);
}

.entity-card-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
    border-radius: 10px;
    flex-shrink: 0;
}

.entity-card-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--ls-border);
    background: #fff;
    flex-shrink: 0;
}

/* Clickable Inline Team & Player Links */
.ls-inline-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.12s ease;
}

.ls-inline-link:hover {
    color: var(--ls-accent);
    text-decoration: underline;
}

/* Highlighted Row in Standings */
.standings-row-highlight td {
    background-color: var(--ls-accent-soft) !important;
    font-weight: 700;
}

/* Compact Match Rows inside Narrow Sidebars */
aside .match-row {
    grid-template-columns: 24px 46px 1fr 30px 14px;
    padding: 0.5rem 0.5rem;
    gap: 0.25rem;
}

aside .match-row .team-name {
    font-size: 0.8rem;
}

aside .match-row .score-num {
    padding: 0.05rem 0.2rem;
    font-size: 0.82rem;
}

/* Pre-Match Kickoff Box & Countdown */
.kickoff-time-box {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 0.35rem 1.2rem;
    border-radius: 12px;
    color: #34d399;
}

.countdown-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.22rem 0.75rem;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Mobile Bottom Navigation & Comprehensive Responsive Enhancements
   ========================================================================== */

.ls-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background-color: rgba(19, 24, 34, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--ls-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1050;
    padding: 0 0.25rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ls-text-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    gap: 2px;
    flex: 1;
    height: 100%;
    transition: color 0.15s ease;
}

.mobile-nav-item i {
    font-size: 1.15rem;
    line-height: 1;
}

.mobile-nav-item.active {
    color: var(--ls-accent);
}

.mobile-fav-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--ls-accent);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 999px;
    line-height: 1.1;
}

/* Hide scrollbars on horizontal filter & tab strips while preserving touch scroll */
.date-strip,
.ls-page-tabs,
#playerStatScopeGroup,
#compTypeFilterGroup {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.date-strip::-webkit-scrollbar,
.ls-page-tabs::-webkit-scrollbar,
#playerStatScopeGroup::-webkit-scrollbar,
#compTypeFilterGroup::-webkit-scrollbar {
    display: none;
}

/* Tablet & Mobile (< 991.98px) */
@media (max-width: 991.98px) {
    .ls-search-wrap {
        min-width: 200px;
    }
    .page-hero-card {
        padding: 1.1rem 1.15rem;
    }
}

/* Mobile Devices (< 767.98px) */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 68px; /* Space for fixed mobile bottom nav */
    }

    /* Hide top nav pills on mobile since fixed bottom bar provides 1-tap navigation */
    .ls-nav-pills {
        display: none !important;
    }

    .ls-navbar .container-xxl {
        flex-wrap: nowrap !important;
        gap: 0.6rem !important;
    }

    .brand-logo {
        font-size: 1.15rem;
        flex-shrink: 0;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .ls-navbar .d-flex.align-items-center.gap-2:last-child {
        flex: 1;
        min-width: 0;
    }

    .ls-search-wrap {
        width: 100%;
        min-width: 0;
    }

    .ls-search-dropdown {
        position: fixed;
        top: 56px;
        left: 10px;
        right: 10px;
        min-width: 0;
        max-height: 70vh;
    }

    /* Keep filter buttons horizontally scrollable on mobile */
    #playerStatScopeGroup,
    #compTypeFilterGroup {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    #playerStatScopeGroup .filter-btn,
    #compTypeFilterGroup .filter-btn {
        flex-shrink: 0;
    }

    /* Directory search & dropdown full width on mobile */
    #compDirectorySearch,
    #compCountryFilter,
    #teamDirectorySearch,
    #teamCompetitionFilter,
    #playerDirectorySearch,
    #playerCompetitionFilter {
        width: 100% !important;
        min-width: 0 !important;
    }

    .ls-footer {
        padding: 1.1rem 0;
        text-align: center;
    }

    .ls-footer .container-xxl {
        justify-content: center !important;
    }
}

/* Small Phones (< 575.98px) */
@media (max-width: 575.98px) {
    .page-hero-card {
        padding: 0.95rem 0.85rem;
        border-radius: 12px;
    }

    .hero-crest-lg {
        width: 52px;
        height: 52px;
        padding: 6px;
        border-radius: 12px;
    }

    .hero-player-photo {
        width: 62px;
        height: 62px;
    }

    .hero-team-title {
        font-size: 0.92rem;
    }

    .featured-score-box {
        font-size: 1.45rem !important;
        padding: 0.25rem 0.65rem !important;
    }

    .kickoff-time-box {
        font-size: 1.25rem;
        padding: 0.25rem 0.65rem;
    }

    .countdown-pill {
        font-size: 0.66rem;
        padding: 0.16rem 0.5rem;
    }

    .form-badge {
        width: 16px;
        height: 16px;
        font-size: 0.58rem;
        margin-right: 1px;
    }

    .ls-page-tabs {
        padding: 0 0.35rem;
    }

    .ls-page-tabs .nav-link {
        padding: 0.6rem 0.7rem;
        font-size: 0.78rem;
    }

    .standings-table {
        font-size: 0.76rem;
    }

    .standings-table th,
    .standings-table td {
        padding: 0.45rem 0.35rem;
    }

    .tactical-pitch {
        min-height: 380px;
        padding: 0.85rem 0.35rem;
    }

    .pitch-player-node {
        width: 52px;
    }

    .pitch-shirt {
        width: 26px;
        height: 26px;
        font-size: 0.66rem;
    }

    .pitch-player-name {
        font-size: 0.6rem;
        max-width: 56px;
        padding: 0.05rem 0.2rem;
    }
}
