/* ================================ */
/* Live Score Page Styles            */
/* Uses existing design tokens from  */
/* main.css (--color-*, --font-*,    */
/* --radius-*, --transition-*)       */
/* ================================ */

/* Hero */
.ls-hero {
    padding: 8rem 0 3rem;
    background: var(--gradient-hero);
    position: relative;
    text-align: center;
}

.ls-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 59, 48, 0.3);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.ls-hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b30;
    animation: ls-pulse 1.5s ease-in-out infinite;
}

.ls-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: 1rem;
}

.ls-hero-sub {
    color: var(--color-text-muted);
    font-size: 1.15rem;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.ls-last-updated {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Filters */
.ls-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.ls-filter-btn {
    background: transparent;
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.ls-filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.ls-filter-btn.active {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    border-color: var(--color-primary);
}

/* Section Titles */
.ls-section-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ls-live-dot-heading {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3b30;
    animation: ls-pulse 1.5s ease-in-out infinite;
    display: inline-block;
}

/* Grid */
.ls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Grid Layout */
.ls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Base Card Styling — ESPN Style */
.ls-card {
    background: #0D1117;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0;
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.ls-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.ls-card--live {
    border-color: rgba(255, 59, 48, 0.35);
    box-shadow: 0 4px 20px rgba(255, 59, 48, 0.08);
}

.ls-card--live:hover {
    box-shadow: 0 12px 40px rgba(255, 59, 48, 0.15);
}

/* Card Header (Meta Info) */
.ls-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.1rem;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
}

.ls-match-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ls-status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

.ls-status--live {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ls-status--live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff3b30;
    animation: ls-pulse 1.5s infinite;
}

.ls-status--final {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
}

/* Team Rows — ESPN accent bar */
.ls-teams-wrapper {
    padding: 0.5rem 1.1rem 0.75rem;
}

.ls-team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.2rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.ls-team-row.winning {
    background: rgba(181, 255, 76, 0.05);
    border-left-color: #B5FF4C;
}

.ls-vs-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.75rem;
    margin: 0.1rem 0;
}

.ls-vs-divider span {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.15);
}

.ls-vs-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.05);
}

.ls-team-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.ls-team-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
}

.ls-team-row.winning .ls-team-logo {
    border-color: rgba(181, 255, 76, 0.4);
    color: #B5FF4C;
}

.ls-team-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ls-team-row.winning .ls-team-name {
    color: #FFFFFF;
    font-weight: 700;
}

/* Scoring */
.ls-score-box {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-family: var(--font-heading);
    flex-shrink: 0;
    text-align: right;
}

.ls-main-score {
    font-size: 1.8rem;
    font-weight: 900;
    color: rgba(255,255,255,0.3);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    min-width: 2rem;
    text-align: right;
}

.ls-team-row.winning .ls-main-score {
    color: #B5FF4C;
    text-shadow: 0 0 20px rgba(181, 255, 76, 0.3);
}

.ls-sub-score {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    font-weight: 500;
}

/* Card Footer */
.ls-card-footer {
    margin: 0 1.1rem;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ls-match-result {
    font-weight: 700;
    color: #B5FF4C;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ls-location {
    font-size: 0.72rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Animations */
@keyframes ls-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

/* Score Flash Animation */
.ls-score--flash {
    animation: ls-score-flash 1s ease-out;
}

@keyframes ls-score-flash {
    0% { transform: scale(1); color: var(--color-primary); }
    30% { transform: scale(1.2); text-shadow: 0 0 15px rgba(204, 255, 0, 0.4); }
    100% { transform: scale(1); }
}

/* Set Pills for Tennis/Badminton */
.ls-set-pills {
    display: flex;
    gap: 0.3rem;
    margin-left: 0.5rem;
}

.ls-set-pill {
    font-size: 0.68rem;
    padding: 0.15rem 0.4rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    color: rgba(255,255,255,0.45);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ls-team-row.winning .ls-set-pill {
    background: rgba(181, 255, 76, 0.08);
    border-color: rgba(181, 255, 76, 0.2);
    color: rgba(181, 255, 76, 0.8);
}

/* Skeleton Loading */
.ls-skeleton-card {
    height: 160px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ls-skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.03) 25%, 
        rgba(255,255,255,0.06) 50%, 
        rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: ls-shimmer 1.5s infinite;
}

@keyframes ls-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .ls-grid {
        grid-template-columns: 1fr;
    }
    .ls-card {
        padding: 1rem;
    }
}
