/* ═══════════════════════════════════════════════════════════════
   WLS Livescore — Public Styles (Dark Theme)
   ═══════════════════════════════════════════════════════════════ */

/* ── Theme-aware logos (light/dark variants) ──────────────── */
.wls-logo-dark { display: none; }
.wls-logo-light { display: inline; }
[data-theme="dark"] .wls-logo-dark { display: inline; }
[data-theme="dark"] .wls-logo-light { display: none; }

/* ── Photo Credit Overlay ─────────────────────────────────── */
.wls-img-credit {
    position: relative;
    display: inline-block;
}
.wls-img-credit__label {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0,0,0,.55);
    color: #ccc;
    font-size: 8px;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 2px;
    letter-spacing: .02em;
    pointer-events: none;
    z-index: 1;
}

/* ── League Bar ────────────────────────────────────────────── */
.wls-league-bar {
    background: #111827;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e91e8c;
}

.wls-league-bar-inner {
    display: flex;
    gap: 0;
    padding: 0;
    white-space: nowrap;
    min-width: min-content;
}

.wls-league-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.wls-league-bar-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.wls-league-bar-item img {
    flex-shrink: 0;
}

/* ── Today's Matches ────────────────────────────────────────── */
.wls-today-matches {
    width: 100%;
}

.wls-league-group {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ── League Group Header ────────────────────────────────────── */
.wls-league-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    background: #0f1926;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.wls-league-header-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d1d5db;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.wls-league-header-link:hover {
    color: #e91e8c;
}

.wls-league-header-link img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.wls-league-header-arrow {
    color: #374151;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: color 0.12s;
}

.wls-league-header-arrow:hover {
    color: #e91e8c;
}

.wls-round-badge {
    font-size: 10px;
    color: #4b5563;
    font-weight: 500;
    padding: 2px 7px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
}

.wls-matches-list {
    background: #111827;
}

/* ── Match Card — Horizontal Layout ───────────────────────── */
.wls-match-card {
    display: grid;
    grid-template-columns: 62px 1fr 76px 1fr 20px;
    align-items: center;
    padding: 11px 16px;
    text-decoration: none;
    color: #d1d5db;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.12s;
    min-height: 50px;
}

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

.wls-match-card:hover {
    background: rgba(255,255,255,0.03);
}

/* Time / State */
.wls-match-time {
    font-size: 12px;
    text-align: center;
    color: #6b7280;
    font-weight: 500;
}

/* Live badge */
.wls-live-badge {
    display: inline-block;
    background: #e91e8c;
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    animation: wls-pulse 1.8s infinite;
    letter-spacing: 0.3px;
}

@keyframes wls-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* FT badge */
.wls-ft-badge {
    color: #4b5563;
    font-weight: 700;
    font-size: 11px;
}

/* Postponed/cancelled etc. */
.wls-special-badge {
    color: #9ca3af;
    font-weight: 600;
    font-size: 10px;
    background: rgba(255,255,255,0.06);
    padding: 2px 5px;
    border-radius: 3px;
}

/* Home team: logo left, name */
.wls-match-home {
    display: flex;
    align-items: center;
    gap: 7px;
    justify-content: flex-start;
    overflow: hidden;
}

.wls-match-home span {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wls-match-home img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Score box */
.wls-match-score-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 700;
    color: #f3f4f6;
    letter-spacing: 0.5px;
}

.wls-match-score-box .wls-score-sep {
    color: #374151;
    font-weight: 400;
    font-size: 13px;
}

.wls-match-score-box.wls-score-empty {
    color: #374151;
    font-weight: 500;
    font-size: 16px;
}

/* Away team: name, logo right */
.wls-match-away {
    display: flex;
    align-items: center;
    gap: 7px;
    justify-content: flex-end;
    overflow: hidden;
}

.wls-match-away span {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.wls-match-away img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Arrow */
.wls-match-arrow {
    color: #2d3748;
    font-size: 14px;
    text-align: right;
    transition: color 0.12s;
}

.wls-match-card:hover .wls-match-arrow {
    color: #e91e8c;
}

/* Live row highlight */
.wls-state-live {
    background: rgba(233, 30, 140, 0.05);
    border-left: 2px solid #e91e8c;
    padding-left: 14px;
}

.wls-state-live .wls-match-home span,
.wls-state-live .wls-match-away span {
    color: #fff;
}

/* ── Date Picker ────────────────────────────────────────────── */
.wls-date-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: #0f1926;
}

.wls-date-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    color: #9ca3af;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.12s;
    border: none;
    cursor: pointer;
}

.wls-date-arrow:hover {
    background: #e91e8c;
    color: #fff;
}

.wls-date-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.wls-date-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.wls-date-label {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    min-width: 100px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.12s;
}

.wls-date-label:hover {
    background: rgba(255,255,255,0.06);
}

.wls-date-today {
    color: #e91e8c;
}

.wls-today-btn {
    padding: 0;
    border: none;
    background: none;
    color: #4b5563;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.12s;
}

.wls-today-btn:hover {
    color: #e91e8c;
}

/* ── Match Filters ──────────────────────────────────────────── */
.wls-match-filters {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: #111827;
    flex-wrap: wrap;
}

.wls-filter-btn {
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    background: transparent;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s;
}

.wls-filter-btn:hover {
    border-color: #e91e8c;
    color: #e91e8c;
}

.wls-filter-btn.wls-filter-active {
    background: #e91e8c;
    color: #fff;
    border-color: #e91e8c;
}

.wls-filter-btn.wls-filter-live {
    background: rgba(233, 30, 140, 0.15);
    color: #e91e8c;
    border-color: #e91e8c;
    animation: wls-pulse 2s infinite;
}

/* ── Matches Container ──────────────────────────────────────── */
.wls-matches-container {
    /* Let the center column scroll naturally */
}

/* ── Standings Table ────────────────────────────────────────── */
.wls-standings-wrap {
    overflow-x: auto;
}

.wls-standings-group-name {
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    font-weight: 600;
    font-size: 12px;
    color: #9ca3af;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wls-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 0;
    background: #111827;
}

.wls-standings-table thead {
    background: #0f1926;
    color: #6b7280;
}

.wls-standings-table th,
.wls-standings-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.wls-standings-table th {
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4b5563;
}

.wls-col-team {
    text-align: left !important;
}

.wls-col-team img {
    vertical-align: middle;
    margin-right: 6px;
    width: 18px;
    height: 18px;
}

.wls-team-name {
    vertical-align: middle;
    color: #d1d5db;
    font-size: 12px;
}

.wls-col-pos {
    width: 28px;
    font-weight: 600;
    color: #4b5563;
}

.wls-col-num {
    width: 32px;
    color: #9ca3af;
}

.wls-col-pts {
    font-weight: 700;
    color: #e91e8c;
}

.wls-standings-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.wls-standings-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

/* ── Form Dots ──────────────────────────────────────────────── */
.wls-col-form {
    width: 100px;
    white-space: nowrap;
}

.wls-form-dots {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.wls-form-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.wls-form-w { background: #16a34a; }
.wls-form-d { background: #d97706; }
.wls-form-l { background: #dc2626; }

/* ── News List ──────────────────────────────────────────────── */
.wls-news-list {
    display: flex;
    flex-direction: column;
}

.wls-news-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.12s;
}

.wls-news-item:hover {
    background: rgba(255,255,255,0.03);
}

.wls-news-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 50px;
    overflow: hidden;
    border-radius: 4px;
}

.wls-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wls-news-content h4 {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
}

.wls-news-content h4 a {
    color: #d1d5db;
    text-decoration: none;
}

.wls-news-content h4 a:hover {
    color: #e91e8c;
}

.wls-news-content time {
    font-size: 11px;
    color: #4b5563;
}

/* ── Flag emoji ─────────────────────────────────────────────── */
.wls-flag {
    font-size: 13px;
    margin-right: 2px;
}

/* ── No Data ────────────────────────────────────────────────── */
.wls-no-data {
    text-align: center;
    padding: 24px 20px;
    color: #4b5563;
    font-size: 13px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .wls-col-hide-xs {
        display: none;
    }
    .wls-col-form {
        width: auto;
    }
    .wls-form-dot {
        width: 15px;
        height: 15px;
        font-size: 8px;
    }
    .wls-match-card {
        grid-template-columns: 52px 1fr 64px 1fr 16px;
        padding: 9px 12px;
    }
}

@media (max-width: 500px) {
    .wls-col-hide-sm {
        display: none;
    }
    .wls-standings-table {
        font-size: 11px;
    }
    .wls-standings-table th,
    .wls-standings-table td {
        padding: 6px 3px;
    }
    .wls-col-team img {
        width: 14px;
        height: 14px;
    }
    .wls-form-dot {
        width: 13px;
        height: 13px;
        font-size: 7px;
    }
    .wls-form-dots {
        gap: 2px;
    }
    .wls-match-card {
        grid-template-columns: 46px 1fr 58px 1fr 0;
        padding: 8px 10px;
    }
    .wls-match-arrow {
        display: none;
    }
}
