/* ====== EXACT LIVESCORE.COM CLONE CSS ====== */
:root {
    --ls-black: #000000;
    --ls-bg-main: #131313;
    --ls-bg-panel: #1e1e1e;
    --ls-bg-hover: #262626;
    --ls-orange: #ff5500;
    --ls-border: #222222;
    --ls-text-light: #ffffff;
    --ls-text-muted: #aaaaaa;
    --ls-font: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--ls-black);
    color: var(--ls-text-light);
    font-family: var(--ls-font);
    -webkit-font-smoothing: antialiased;
}

.ls-container {
    max-width: 860px;
    margin: 0 auto;
}

/* Header */
.ls-header {
    background-color: var(--ls-bg-panel);
    border-bottom: 1px solid var(--ls-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    padding: 0 16px;
}

.ls-logo {
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    letter-spacing: -0.5px;
}

.ls-dot {
    width: 6px;
    height: 6px;
    background-color: var(--ls-orange);
    border-radius: 50%;
    margin-left: 2px;
}

.ls-desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ls-desktop-nav a {
    color: var(--ls-text-muted);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}
.ls-desktop-nav a.active, .ls-desktop-nav a:hover {
    color: var(--ls-text-light);
}

.ls-btn-vip {
    background-color: var(--ls-orange);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.ls-mobile-menu { display: none; cursor: pointer; }

/* Sub Header / Dates Nav */
.ls-sub-header {
    background-color: var(--ls-bg-main);
    border-bottom: 1px solid var(--ls-border);
}

.dates-container {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 8px;
}
.dates-container::-webkit-scrollbar { display: none; }

.ls-date {
    padding: 12px 16px;
    color: var(--ls-text-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.ls-date:hover { color: var(--ls-text-light); }
.ls-date.active {
    color: var(--ls-orange);
    border-bottom: 2px solid var(--ls-orange);
}

/* Main Content */
.ls-main {
    padding-top: 16px;
    padding-bottom: 40px;
    background-color: var(--ls-bg-main);
    min-height: 80vh;
}

.ls-live-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 16px;
}

/* iOS Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333; transition: .3s;
    border-radius: 34px;
}
.slider:before {
    position: absolute; content: "";
    height: 18px; width: 18px; left: 3px; bottom: 3px;
    background-color: white; transition: .3s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--ls-orange); }
input:checked + .slider:before { transform: translateX(20px); }

/* Matches List */
.ls-league {
    margin-bottom: 16px;
}

.ls-league-header {
    background: var(--ls-bg-panel);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border: 1px solid var(--ls-border);
    border-radius: 6px 6px 0 0;
    cursor: pointer;
}

.ls-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    margin-right: 12px;
}

.ls-league-title {
    font-size: 14px;
    flex-grow: 1;
}

.ls-league-title strong {
    color: var(--ls-text-light);
    font-weight: 700;
}

.ls-league-title span {
    color: var(--ls-text-muted);
    font-weight: 400;
}

/* Match Row */
.ls-match {
    background: var(--ls-bg-main);
    border: 1px solid var(--ls-border);
    border-top: none;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.ls-match:last-child {
    border-radius: 0 0 6px 6px;
}

.ls-match:hover {
    background: var(--ls-bg-hover);
}

.ls-time {
    width: 50px;
    color: var(--ls-text-muted);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.ls-time.live { color: var(--ls-orange); display: flex; align-items: center; gap:4px; }
.ls-pulse {
    width: 5px; height: 5px; background: var(--ls-orange);
    border-radius: 50%; animation: blink 1s infinite;
}
@keyframes blink { 0% {opacity:1;} 100% {opacity:0;} }

/* Match Content Teams & Score */
.ls-teams {
    flex-grow: 1;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--ls-text-light);
}

/* DESKTOP LAYOUT */
.ls-home { flex: 1; display: flex; justify-content: space-between; align-items: center; padding-right: 16px; font-weight: 500; }
.ls-away { flex: 1; display: flex; justify-content: space-between; align-items: center; padding-left: 16px; font-weight: 500; }

.team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.ls-team-info { display: flex; align-items: center; gap: 8px; }
.ls-home .ls-team-info { justify-content: flex-end; width: 100%; }
.ls-away .ls-team-info { justify-content: flex-start; width: 100%; }

.ls-score-desktop {
    width: 48px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    background: var(--ls-black);
    padding: 4px 0;
    border-radius: 4px;
}
.ls-score-desktop.live { color: var(--ls-orange); }
.ls-score-mobile { display: none; }

.ls-stream {
    width: 40px;
    text-align: right;
    color: var(--ls-text-muted);
}
.ls-match:hover .ls-stream { color: var(--ls-orange); }

/* Loader */
.ls-loader { padding: 40px 0; text-align: center; font-size: 13px; color: var(--ls-text-muted); }

/* Footer */
.ls-footer {
    background: var(--ls-black);
    padding: 30px 16px;
    font-size: 12px;
    color: #777;
    text-align: center;
    border-top: 1px solid var(--ls-border);
}

/* ====== MOBILE RESPONSIVE (EXACT LIVESCORE APP STYLE) ====== */
@media (max-width: 700px) {
    .ls-desktop-nav { display: none; }
    .ls-mobile-menu { display: block; }
    .ls-container { width: 100%; border-radius: 0; border-left: none; border-right: none; }
    
    .ls-league-header { border-left: none; border-right: none; border-radius: 0; }
    .ls-match { border-left: none; border-right: none; padding: 12px 16px; }
    .ls-match:last-child { border-radius: 0; }
    
    /* Modify Match Row to Vertical Stack on Mobile */
    .ls-teams {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ls-home, .ls-away {
        padding: 4px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 500;
    }
    
    .ls-home .ls-team-info { flex-direction: row-reverse; justify-content: flex-start; }
    .ls-away .ls-team-info { justify-content: flex-start; }
    
    .ls-score-desktop { display: none; }
    .ls-score-mobile {
        display: block;
        font-weight: 700;
    }
    .ls-score-mobile.live { color: var(--ls-orange); }
    
    .ls-time { font-size: 12px; }
}

/* ====== SEO CONTENT BLOCK ====== */
.ls-seo-content {
    margin-top: 24px;
    padding: 16px;
    background: var(--ls-bg-panel);
    border: 1px solid var(--ls-border);
    border-radius: 6px;
    color: var(--ls-text-muted);
}

.ls-seo-content h1 {
    font-size: 14px;
    color: var(--ls-text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ls-seo-content p {
    font-size: 11px;
    line-height: 1.6;
}
