/* Livescore - Dark theme matching index.html */
/* Scoped reset */
.ls-container *,
.ls-container *::before,
.ls-container *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ls-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #1a1a2e;
    color: #e5e7eb;
    line-height: 1.4;
    margin: 0 auto;
    padding: 6px;
    max-width: 1400px;
    font-size: 13px;
}

/* ===== ROW 1: Tabs + Status ===== */
.ls-row1 {
    background: #252540;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.ls-row1-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.ls-live-count {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    color: #ef4444;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.ls-live-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: lsPulse 1.5s infinite;
}

@keyframes lsPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
    }
}

.ls-update-box {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    color: #10b981;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
}

.ls-date-input {
    padding: 3px 8px;
    background: #1a1a2e;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #e5e7eb;
    cursor: pointer;
    min-height: auto;
    line-height: 1;
    height: 1.8rem !important;
    transition: all 0.2s ease;
}

.ls-date-input:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.ls-filter-tabs {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ls-filter-tab {
    padding: 4px 8px;
    background: transparent;
    border: 1.5px solid #3d3d5c;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    line-height: 1;
    min-height: auto;
    letter-spacing: 0.3px;
    margin-right: 4px;
}

.ls-filter-tab:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #e5e7eb;
}

.ls-filter-tab.ls-tab-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
    font-weight: 800;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.4);
}

/* ===== ROW 2: Search + Controls ===== */
.ls-row2 {
    background: #252540;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.ls-search-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ls-search-icon {
    display: none;
}

.ls-search-input {
    width: 180px;
    min-width: 150px;
    padding: 4px 10px;
    background: #1a1a2e;
    border: 1.5px solid #3d3d5c;
    border-radius: 4px;
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1;
    min-height: auto;
    height: 1.8rem !important;
    margin-bottom: 0;
}

.ls-search-input::placeholder {
    color: #6b7280;
}

.ls-search-input:hover,
.ls-search-input:focus {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
    outline: none;
}

.ls-search-btn {
    padding: 4px 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    line-height: 1;
    min-height: auto;
    margin-bottom: 0;
    color: white;
    font-size: 13px;
}

.ls-search-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.ls-competition-select {
    min-width: 180px;
    max-width: 210px;
    padding: 4px 10px;
    background: #1a1a2e;
    border: 1.5px solid #3d3d5c;
    border-radius: 4px;
    color: #e5e7eb;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 1;
    line-height: 1;
    margin-bottom: 0;
    min-height: auto;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

.ls-competition-select:hover {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.ls-refresh-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    margin-bottom: 0;
    min-height: auto;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.ls-refresh-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.ls-auto-refresh {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #9ca3af;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 4px 8px;
    background: #1a1a2e;
    border-radius: 6px;
}

.ls-auto-refresh input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #10b981;
    margin-bottom: 0;
}

.ls-auto-refresh label {
    font-size: 11px;
    font-weight: 600;
    color: #e5e7eb;
    cursor: pointer;
    white-space: nowrap;
}

/* ===== MATCHES GRID ===== */
.ls-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 10px;
    transition: opacity 0.25s ease;
}

/* Rotating border angle */
@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateBorder {
    to { --border-angle: 360deg; }
}

/* ===== MATCH CARD ===== */
.ls-match-card {
    background: linear-gradient(135deg, #252540 0%, #1a1a2e 50%, #252540 100%);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    --border-angle: 0deg;
    animation: rotateBorder 4s linear infinite;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.ls-match-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: conic-gradient(
        from var(--border-angle),
        rgba(16, 185, 129, 0.15),
        rgba(16, 185, 129, 0.5),
        rgba(5, 150, 105, 0.5),
        rgba(4, 120, 87, 0.3),
        rgba(16, 185, 129, 0.15)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
}

.ls-match-card > * {
    position: relative;
    z-index: 2;
}

.ls-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.ls-match-card:hover::before {
    padding: 2px;
    background: conic-gradient(
        from var(--border-angle),
        rgba(16, 185, 129, 0.3),
        rgba(16, 185, 129, 0.8),
        rgba(5, 150, 105, 0.7),
        rgba(4, 120, 87, 0.5),
        rgba(16, 185, 129, 0.3)
    );
}

.ls-match-card.ls-live::before {
    padding: 1.5px;
    background: conic-gradient(
        from var(--border-angle),
        rgba(251, 191, 36, 0.2),
        rgba(251, 191, 36, 0.7),
        rgba(245, 158, 11, 0.6),
        rgba(251, 191, 36, 0.7),
        rgba(251, 191, 36, 0.2)
    );
}

.ls-match-card.ls-live {
    animation-duration: 2.5s;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, #1a1a2e 50%, rgba(251, 191, 36, 0.15) 100%);
}

/* Card Header */
.ls-card-header {
    display: flex;
    flex-direction: column;
    padding: 10px 14px 0;
    gap: 4px;
}

.ls-header-row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ls-header-row2 {
    display: flex;
    justify-content: center;
}

.ls-comp-info {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 40%;
}

.ls-comp-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
    background: rgb(255, 255, 255);
    flex-shrink: 0;
}

.ls-competition-name {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ls-live-badge-card {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.ls-live-badge-card .ls-badge-dot {
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    animation: lsPulse 1.5s infinite;
}

.ls-time-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 1px 6px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ls-time-badge.ls-scheduled {
    color: #9ca3af;
    background: rgba(156, 163, 175, 0.1);
    border-color: rgba(156, 163, 175, 0.3);
}

.ls-time-badge.ls-live-badge {
    background: transparent;
    border: none;
    padding: 0;
}

.ls-time-badge.ls-finished-badge {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

/* Card Body */
.ls-card-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 14px 16px 8px;
    gap: 10px;
}

/* Team column */
.ls-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.ls-team-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

/* Default logo placeholder */
.ls-team-logo-default {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
}

.ls-team-logo-default svg {
    width: 40px;
    height: 40px;
}

.ls-team-name {
    font-size: 15px;
    font-weight: 700;
    color: #e5e7eb;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    width: 100%;
}

/* Score Center */
.ls-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 80px;
}

.ls-score {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.ls-finished-label {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.ls-score-num {
    font-size: 26px;
    font-weight: 900;
    color: white;
    min-width: 24px;
    text-align: center;
    line-height: 1;
}

.ls-score-separator {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.ls-vs-text {
    font-size: 28px;
    font-weight: 900;
    color: #10b981;
    letter-spacing: 4px;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(16, 185, 129, 0.5);
}

.ls-status-badge {
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ls-status-finished {
    background: #10b981;
    color: white;
}

.ls-status-live {
    background: #fbbf24;
    color: #1a1a2e;
    animation: lsBadgePulse 1.5s infinite;
}

@keyframes lsBadgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.ls-status-halftime {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 600;
}

/* Card Footer - Stats Row: HT | cards | corners */
.ls-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px 10px;
    font-size: 11px;
    font-weight: 700;
}

.ls-footer-ht {
    color: #10b981;
}

.ls-footer-cards {
    color: #9ca3af;
}

.ls-footer-corners {
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Watch button */
.ls-watch-btn {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.5px;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
    text-transform: uppercase;
    min-height: auto;
    line-height: 1.4;
}

.ls-watch-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Live score glow */
.ls-match-card.ls-live .ls-score {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

/* ===== LOADING ===== */
.ls-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: #252540;
    border-radius: 16px;
    margin: 20px 0;
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.ls-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(16, 185, 129, 0.2);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: lsSpin 0.8s linear infinite;
    margin-bottom: 14px;
}

@keyframes lsSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== EMPTY ===== */
.ls-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px;
    background: #252540;
    border-radius: 16px;
    margin: 20px 0;
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #9ca3af;
}

.ls-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ls-empty-text {
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.ls-empty-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    min-height: auto;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.ls-empty-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* ===== LOAD MORE ===== */
.ls-load-more {
    text-align: center;
    padding: 18px;
}

.ls-load-more-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: auto;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.ls-load-more-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 930px) {
    .ls-row1 {
        flex-wrap: wrap;
        gap: 6px;
        flex-direction: column;
        padding: 6px;
    }

    .ls-filter-tabs {
        width: 100%;
        gap: 2px;
    }

    .ls-filter-tab {
        flex: 1;
        justify-content: center;
        padding: 6px 8px;
        font-size: 12px;
        margin-right: 2px;
    }

    .ls-row1-right {
        width: 100%;
        justify-content: space-between;
    }

    .ls-row2 {
        flex-wrap: wrap;
        gap: 6px;
        flex-direction: column;
        padding: 6px;
    }

    .ls-search-wrapper {
        width: 100%;
    }

    .ls-search-input {
        width: 100%;
    }

    .ls-competition-select {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .ls-container {
        padding: 3px;
    }

    .ls-row1,
    .ls-row2 {
        border-radius: 8px;
        margin-bottom: 4px;
        padding: 4px;
    }

    .ls-live-count {
        padding: 2px 6px;
        font-size: 10px;
    }

    .ls-update-box {
        padding: 2px 6px;
        font-size: 9px;
    }

    .ls-date-input {
        font-size: 10px;
        padding: 2px 4px;
        height: 1.5rem !important;
    }

    .ls-filter-tab {
        padding: 3px 6px;
        font-size: 10px;
    }

    .ls-competition-select {
        font-size: 10px;
        padding: 2px 6px;
    }

    .ls-refresh-btn {
        padding: 2px 6px;
        font-size: 10px;
    }

    .ls-matches-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ls-card-header {
        padding: 8px 12px 0;
    }

    .ls-competition-name {
        font-size: 11px;
    }

    .ls-card-body {
        padding: 10px 12px 6px;
        gap: 6px;
    }

    .ls-team-logo,
    .ls-team-logo-default {
        width: 48px;
        height: 48px;
    }

    .ls-team-logo-default svg {
        width: 34px;
        height: 34px;
    }

    .ls-team-name {
        font-size: 11px;
    }

    .ls-score {
        padding: 6px 16px;
    }

    .ls-score-num {
        font-size: 22px;
    }

    .ls-score-center {
        min-width: 70px;
    }

    .ls-card-footer {
        padding: 4px 12px 8px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .ls-top-right {
        flex-wrap: wrap;
        gap: 6px;
    }

    .ls-filter-tab {
        padding: 4px 6px;
        font-size: 10px;
    }

    .ls-card-body {
        padding: 8px 10px 4px;
    }

    .ls-team-logo,
    .ls-team-logo-default {
        width: 42px;
        height: 42px;
    }

    .ls-score {
        padding: 5px 14px;
    }

    .ls-score-num {
        font-size: 20px;
    }

    .ls-team-name {
        font-size: 10px;
    }

    .ls-card-footer {
        font-size: 9px;
    }
}

/* ===== POPUP ===== */
.ls-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ls-popup {
    background: #252540;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ls-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ls-popup-title {
    font-size: 14px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
}

.ls-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 22px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    min-height: auto;
    margin: 0;
}

.ls-popup-close:hover {
    background: rgba(239, 68, 68, 0.5);
}

.ls-popup-body {
    overflow-y: auto;
    padding: 16px;
    flex: 1;
    background: #1a1a2e;
}

.ls-popup-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 0;
    color: #10b981;
}

.ls-popup-error,
.ls-popup-no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 0;
    color: #9ca3af;
    font-size: 13px;
}

/* Popup match info */
.ls-popup-match-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px;
    margin-bottom: 16px;
    background: #252540;
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ls-popup-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.ls-popup-team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.ls-popup-team-name {
    font-size: 12px;
    font-weight: 700;
    color: #e5e7eb;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ls-popup-vs {
    font-size: 20px;
    font-weight: 900;
    color: #10b981;
    flex-shrink: 0;
}

/* Popup sections */
.ls-popup-section {
    margin-bottom: 16px;
}

.ls-popup-section-title {
    font-size: 12px;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #3d3d5c;
    padding-bottom: 4px;
}

/* Popup odds bar */
.ls-popup-odds-bar {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.ls-popup-odds-item {
    flex: 1;
    text-align: center;
}

.ls-odds-header {
    font-size: 11px;
    font-weight: 800;
    color: white;
    padding: 6px 4px;
    letter-spacing: 0.5px;
}

.ls-odds-asian .ls-odds-header { background: #10b981; }
.ls-odds-ou .ls-odds-header { background: #059669; }
.ls-odds-1x2 .ls-odds-header { background: #10b981; }

.ls-odds-values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 4px;
    background: #252540;
    font-size: 13px;
    font-weight: 700;
    color: #e5e7eb;
}

.ls-odds-handicap {
    color: #fbbf24;
    font-weight: 800;
}

/* AI Prediction */
.ls-prediction-bar-wrapper {
    background: #252540;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ls-prediction-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
}

.ls-prediction-bar {
    display: flex;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}

.ls-pred-home {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
}

.ls-pred-draw {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
}

.ls-pred-away {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
}

.ls-pred-home span,
.ls-pred-draw span,
.ls-pred-away span {
    font-size: 11px;
    font-weight: 800;
    color: white;
}

.ls-prediction-teams {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #9ca3af;
}

.ls-prediction-advice {
    margin-top: 8px;
    font-size: 12px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    padding: 8px 10px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Recent form */
.ls-recent-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ls-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #252540;
    padding: 8px 12px;
    border-radius: 8px;
}

.ls-form-team-name {
    font-size: 12px;
    font-weight: 700;
    color: #e5e7eb;
    min-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ls-form-badges {
    display: flex;
    gap: 4px;
}

.ls-form-badge {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: white;
}

.ls-form-w { background: #10b981; }
.ls-form-d { background: #fbbf24; }
.ls-form-l { background: #ef4444; }

/* Comparison bars */
.ls-compare-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ls-compare-row {
    background: #252540;
    border-radius: 8px;
    padding: 8px 12px;
}

.ls-compare-label {
    font-size: 10px;
    font-weight: 800;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

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

.ls-compare-pct {
    font-size: 11px;
    font-weight: 800;
    color: #e5e7eb;
    min-width: 36px;
    text-align: center;
}

.ls-compare-bar {
    flex: 1;
    height: 10px;
    border-radius: 5px;
    background: #3d3d5c;
    display: flex;
    overflow: hidden;
}

.ls-compare-home {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    height: 100%;
    border-radius: 5px 0 0 5px;
}

.ls-compare-away {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    height: 100%;
    margin-left: auto;
    border-radius: 0 5px 5px 0;
}

/* Event tabs */
.ls-events-tabs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ls-half-tabs {
    display: flex;
    gap: 0;
    background: #3d3d5c;
    border-radius: 6px;
    overflow: hidden;
}

.ls-half-tab {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    min-height: auto;
    line-height: 1.4;
}

.ls-half-tab.ls-half-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.ls-type-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.ls-type-tab {
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    background: #3d3d5c;
    border: 1px solid #3d3d5c;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: auto;
    line-height: 1.4;
}

.ls-type-tab.ls-type-active {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

/* Corners bar */
.ls-corners-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-left: 3px solid #10b981;
    border-radius: 0 6px 6px 0;
    margin-bottom: 8px;
}

.ls-corners-flag {
    font-size: 11px;
    font-weight: 800;
    color: #10b981;
}

.ls-corners-score {
    font-size: 12px;
    font-weight: 700;
    color: #e5e7eb;
}

.ls-corners-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 13px;
    color: white;
}

.ls-corners-home { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.ls-corners-away { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }

/* Key events */
.ls-key-events {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.ls-key-label {
    font-size: 10px;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
}

.ls-key-badge {
    font-size: 11px;
    font-weight: 700;
    color: #e5e7eb;
    background: #3d3d5c;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #3d3d5c;
}

/* Event label (right side) */
.ls-popup-event-label {
    margin-left: auto;
    flex-shrink: 0;
}

.ls-ev-label {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.ls-ev-goal { color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.ls-ev-yellow { color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.ls-ev-red { color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.ls-ev-sub { color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.ls-ev-penalty { color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Popup events */
.ls-popup-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ls-popup-event {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    background: #252540;
}

.ls-popup-event-time {
    font-size: 11px;
    font-weight: 800;
    color: #10b981;
    min-width: 36px;
    text-align: center;
}

.ls-popup-event-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

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

.ls-popup-event-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ls-popup-event-player {
    font-size: 12px;
    font-weight: 600;
    color: #e5e7eb;
}

.ls-popup-event-assist {
    font-size: 10px;
    color: #9ca3af;
}

@media (max-width: 480px) {
    .ls-popup {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 10px;
    }

    .ls-popup-odds-bar {
        flex-direction: column;
    }

    .ls-form-team-name {
        min-width: 70px;
        font-size: 11px;
    }
}
