/* ===== UPCOMING ===== */
.upcoming-date-group {
    margin-bottom: 25px;
}

.upcoming-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea22, #764ba222);
    border-left: 3px solid #667eea;
    border-radius: 8px;
    margin-bottom: 10px;
}

.upcoming-day {
    font-weight: 700;
    font-size: 0.95em;
    color: #667eea;
}

.upcoming-count {
    font-size: 0.8em;
    color: #a0a0a0;
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-header h2 { margin: 0; }
.section-sub { color: #667eea; font-size: 0.9em; }

.ls-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0a0a0;
    font-size: 0.85em;
}
.ls-dot {
    width: 9px;
    height: 9px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

/* ===== FILTERS ===== */
.ls-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.filter-btn {
    background: #1a1f3a;
    color: #a0a0a0;
    border: 1px solid #2a2f4a;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.82em;
    transition: all 0.2s;
    white-space: nowrap;
}
.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}

/* ===== LOADING ===== */
.ls-loading {
    text-align: center;
    padding: 50px 20px;
    color: #a0a0a0;
}
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #1a1f3a;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ls-empty {
    text-align: center;
    padding: 60px 20px;
    color: #a0a0a0;
    font-size: 1.1em;
}

/* ===== LEAGUE GROUP ===== */
.ls-league-group {
    background: #1a1f3a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #2a2f4a;
}
.ls-league-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: #12162e;
    border-bottom: 1px solid #2a2f4a;
}
.ls-league-header img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}
.ls-league-header > span:nth-child(2) {
    font-weight: 700;
    font-size: 0.88em;
    color: #fff;
    flex: 1;
}
.ls-match-count {
    color: #667eea;
    font-size: 0.78em;
    font-weight: 400;
    margin-left: auto;
}

/* ===== MATCH ROW ===== */
.ls-match {
    display: grid;
    grid-template-columns: 75px 1fr;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #0d1124;
    cursor: pointer;
    transition: background 0.15s;
    gap: 12px;
}
.ls-match:last-child { border-bottom: none; }
.ls-match:hover { background: #0f1328; }

/* Status column */
.ls-match-status {
    text-align: center;
    flex-shrink: 0;
}

/* Match body: home | score | away */
.ls-match-body {
    display: grid;
    grid-template-columns: 1fr 90px 1fr;
    align-items: center;
    gap: 10px;
}

/* Home team */
.ls-team {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.ls-team img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}
.ls-team-name {
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ls-team-name.winner {
    color: #00ff88;
    font-weight: 700;
}

/* Away team - right aligned */
.ls-team-away {
    justify-content: flex-end;
    text-align: right;
    flex-direction: row-reverse;
}

/* Score */
.ls-score {
    text-align: center;
}
.ls-score .score-active {
    font-size: 1.35em;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}
.ls-score .score-ns {
    font-size: 0.85em;
    color: #a0a0a0;
}

/* ===== BADGES ===== */
.badge {
    padding: 4px 9px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
}
.badge-live {
    background: #c0392b;
    color: #fff;
    animation: pulse 1.5s infinite;
}
.badge-ht  { background: #e67e22; color: #fff; }
.badge-ft  { background: #444; color: #ccc; }
.badge-ns  { background: transparent; color: #888; border: 1px solid #333; font-weight: 400; }
.badge-2h  { background: #27ae60; color: #fff; animation: pulse 1.5s infinite; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-box {
    background: #1a1f3a;
    border-radius: 16px;
    width: 100%;
    max-width: 580px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    padding: 28px 24px 24px;
    border: 1px solid #2a2f4a;
}
.modal-box::-webkit-scrollbar { width: 5px; }
.modal-box::-webkit-scrollbar-track { background: #0a0e27; }
.modal-box::-webkit-scrollbar-thumb { background: #667eea; border-radius: 5px; }

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #0a0e27;
    border: 1px solid #2a2f4a;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.modal-close:hover { background: #c0392b; }

/* Modal header */
.modal-match-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #2a2f4a;
}
.modal-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.modal-team img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}
.modal-team span {
    font-weight: 600;
    font-size: 0.88em;
    line-height: 1.3;
}
.modal-score { text-align: center; }
.modal-score-num {
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 8px;
}
.modal-league {
    color: #a0a0a0;
    font-size: 0.78em;
    margin-top: 8px;
}

.btn-watch-stream {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1em;
    text-decoration: none;
    margin-bottom: 10px;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-watch-stream:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Modal sections */
.modal-section { margin-top: 20px; }
.modal-section h4 {
    font-size: 0.88em;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2f4a;
}

/* Events */
.events-list { display: flex; flex-direction: column; gap: 6px; }
.event-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: #0d1124;
    border-radius: 7px;
    font-size: 0.87em;
}
.event-home { justify-content: flex-start; }
.event-away { justify-content: flex-end; }
.event-min { color: #667eea; font-weight: 700; min-width: 32px; font-size: 0.85em; }
.event-icon { font-size: 1em; }
.event-player { color: #ddd; }

/* Stats */
.stats-list { display: flex; flex-direction: column; gap: 10px; }
.stat-row { display: flex; align-items: center; gap: 10px; }
.stat-val { width: 32px; text-align: center; font-weight: 700; font-size: 0.88em; }
.stat-bar-wrap { flex: 1; }
.stat-label { text-align: center; font-size: 0.75em; color: #888; margin-bottom: 4px; }
.stat-bar {
    display: flex;
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
    background: #0a0e27;
}
.stat-bar-home { background: #667eea; transition: width 0.5s; }
.stat-bar-away { background: #764ba2; transition: width 0.5s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .ls-match { grid-template-columns: 62px 1fr; padding: 10px 12px; gap: 8px; }
    .ls-match-body { grid-template-columns: 1fr 70px 1fr; gap: 6px; }
    .ls-team img { width: 20px; height: 20px; }
    .ls-team-name { font-size: 0.8em; }
    .ls-score .score-active { font-size: 1.1em; letter-spacing: 1px; }
    .badge { font-size: 0.68em; padding: 3px 6px; }
    .modal-box { padding: 20px 16px; }
    .modal-team img { width: 40px; height: 40px; }
    .modal-score-num { font-size: 1.6em; }
    .modal-team span { font-size: 0.8em; }
}
