/* =============================================================
   LIVE SCORE PAGE
   ============================================================= */

/* ─── Page wrapper ───────────────────────────────────────────── */
.ls-page {
  position: relative;
  min-height: 100vh;
  z-index: 1;
  padding-bottom: 60px;
}

/* ─── Header ─────────────────────────────────────────────────── */
.ls-header {
  padding: 28px 0 32px;
  text-align: center;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  margin-bottom: 40px;
}

.ls-logo-link img {
  height: auto;
  width: min(200px, 60vw);
  filter: drop-shadow(0 0 16px rgba(255,215,0,0.4));
  margin: 0 auto 24px;
}

.ls-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.ls-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 64, 64, 0.15);
  border: 1px solid rgba(255, 64, 64, 0.4);
  color: #ff6060;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.ls-page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.ls-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ─── Section headers ────────────────────────────────────────── */
.ls-section { margin-bottom: 48px; }

.ls-section-header { margin-bottom: 20px; }

.ls-section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ls-section-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ls-dot-live { background: #ff4040; box-shadow: 0 0 8px rgba(255,64,64,0.7); animation: snav-live-pulse 1.8s infinite; }
.ls-dot-done { background: var(--success); }
.ls-dot-next { background: var(--gold); }

/* ─── Match grid ─────────────────────────────────────────────── */
.ls-match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ─── Match card ─────────────────────────────────────────────── */
.ls-match-card {
  background: rgba(17, 18, 19, 0.88);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: fadeUp 0.4s ease both;
}

.ls-match-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(201, 168, 76, 0.35);
}

.ls-card-live {
  border-color: rgba(255, 64, 64, 0.4) !important;
  box-shadow: 0 0 0 1px rgba(255, 64, 64, 0.15), var(--shadow-card);
}

.ls-card-done {
  border-color: rgba(46, 213, 115, 0.2);
}

/* ─── Card top row ───────────────────────────────────────────── */
.ls-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.ls-card-status {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.ls-status-live {
  background: rgba(255, 64, 64, 0.2);
  color: #ff6060;
  border: 1px solid rgba(255, 64, 64, 0.4);
  animation: ls-live-blink 2s ease infinite;
}

@keyframes ls-live-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

.ls-status-done {
  background: rgba(46, 213, 115, 0.12);
  color: #7effa0;
  border: 1px solid rgba(46, 213, 115, 0.3);
}

.ls-status-next {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.ls-card-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: right;
}

/* ─── Card body: teams + score ───────────────────────────────── */
.ls-card-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

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

.ls-team-home { align-items: center; }
.ls-team-away { align-items: center; }

.ls-flag {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201, 168, 76, 0.2);
  background: var(--black-4);
}

.ls-team-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--off-white);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

/* ─── Scoreboard ─────────────────────────────────────────────── */
.ls-scoreboard {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--black-4);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  padding: 10px 14px;
  min-width: 80px;
  justify-content: center;
}

.ls-score-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--white);
  min-width: 24px;
  text-align: center;
}

.ls-score-live { color: var(--gold-light); }

.ls-score-sep {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-dim);
  line-height: 1;
}

/* ─── Kick-off time (upcoming) ───────────────────────────────── */
.ls-kick-off {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--black-4);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  padding: 10px 14px;
  min-width: 80px;
}

.ls-ko-time {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-light);
  line-height: 1;
  white-space: nowrap;
}

.ls-ko-label {
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Card footer ────────────────────────────────────────────── */
.ls-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(201, 168, 76, 0.08);
  padding-top: 10px;
}

.ls-venue {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* ─── States ─────────────────────────────────────────────────── */
.ls-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 80px 0;
  color: var(--text-muted);
}

.ls-spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(201, 168, 76, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: ls-spin 0.8s linear infinite;
}

@keyframes ls-spin { to { transform: rotate(360deg); } }

.ls-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 0;
  color: var(--error);
  text-align: center;
}

.ls-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 0;
  color: var(--text-muted);
  text-align: center;
}

.ls-empty h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.ls-empty a { color: var(--gold); }
.ls-empty a:hover { color: var(--gold-bright); }

/* ─── Refresh bar ────────────────────────────────────────────── */
.ls-refresh-wrap {
  text-align: center;
  margin-top: 48px;
}

.ls-refresh-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.ls-refresh-track {
  max-width: 320px;
  height: 3px;
  background: rgba(201, 168, 76, 0.12);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.ls-refresh-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 2px;
  transition: width 30s linear;
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}

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

/* =============================================================
   HERO — primary live match / next kick-off
   ============================================================= */
.ls-hero { margin-bottom: 48px; }

.ls-hero-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 30px clamp(20px, 4vw, 48px) 34px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(201,168,76,0.10), transparent 60%),
    rgba(13, 13, 14, 0.92);
  border: 1px solid rgba(201, 168, 76, 0.25);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}

.ls-hero-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0.8;
}

.ls-hero-card--live {
  border-color: rgba(255, 64, 64, 0.45);
  box-shadow: 0 0 0 1px rgba(255,64,64,0.15), 0 0 70px rgba(255,64,64,0.10), var(--shadow-lift);
}
.ls-hero-card--live::before {
  background: linear-gradient(90deg, transparent, #ff4040, transparent);
}

/* Top row */
.ls-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.ls-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
}
.ls-chip-live {
  background: rgba(255, 64, 64, 0.18);
  color: #ff6b6b;
  border: 1px solid rgba(255, 64, 64, 0.45);
}
.ls-chip-next {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(201, 168, 76, 0.4);
}

.ls-hero-pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff4040;
  box-shadow: 0 0 8px rgba(255,64,64,0.9);
  animation: snav-live-pulse 1.6s infinite;
}

.ls-hero-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: right;
}

/* Body: teams + score / vs */
.ls-hero-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(10px, 3vw, 30px);
}

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

.ls-hero-flag {
  width: clamp(56px, 12vw, 76px);
  height: clamp(56px, 12vw, 76px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201, 168, 76, 0.35);
  background: var(--black-4);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.ls-flag-blank {
  display: inline-block;
  background: linear-gradient(135deg, var(--black-4), var(--black-5));
}

.ls-hero-name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.4vw, 1.7rem);
  letter-spacing: 0.04em;
  color: var(--off-white);
  text-align: center;
  line-height: 1.1;
}

.ls-hero-score {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ls-hero-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  line-height: 1;
  color: var(--gold-light);
  text-shadow: 0 0 26px rgba(255,215,0,0.35);
  min-width: 0.8em;
  text-align: center;
}
.ls-hero-dash {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--text-dim);
}

.ls-hero-vs {
  display: grid;
  place-items: center;
  width: clamp(56px, 13vw, 74px);
  height: clamp(56px, 13vw, 74px);
  border-radius: 50%;
  border: 1px dashed rgba(201, 168, 76, 0.4);
}
.ls-hero-vs span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* Countdown */
.ls-countdown {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 22px);
  margin-top: 28px;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 60px;
  padding: 12px 6px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: var(--radius);
}
.cd-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.cd-lbl {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Footer */
/* ─── Hero win-probability + odds (footballdata.io) ──────────── */
.ls-prob {
  max-width: 420px;
  margin: 22px auto 0;
}
.ls-prob-bar {
  display: flex;
  height: 9px;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}
.ls-prob-bar span { display: block; height: 100%; }
.ls-prob-h { background: var(--gold, #C9A84C); }
.ls-prob-d { background: rgba(255, 255, 255, 0.3); }
.ls-prob-a { background: rgba(255, 71, 87, 0.9); }
.ls-prob-labels,
.ls-odds {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted, rgba(255,255,255,0.6));
}
.ls-odds {
  margin-top: 6px;
  color: var(--gold-light, #FFD700);
  font-variant-numeric: tabular-nums;
}
.ls-prob-labels span:first-child,
.ls-odds span:first-child { color: var(--gold-light, #FFD700); }
.ls-prob-labels span:last-child,
.ls-odds span:last-child { color: rgba(255, 120, 130, 0.95); }

.ls-hero-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.ls-hero-kickoff,
.ls-hero-venue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ls-hero-kickoff { color: var(--gold-light); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 560px) {
  .ls-match-grid { grid-template-columns: 1fr; }

  .ls-team-name { max-width: 80px; font-size: 0.75rem; }

  .ls-score-num { font-size: 1.5rem; }

  .ls-flag { width: 36px; height: 36px; }

  .ls-hero-card { padding: 24px 16px 28px; }
  .cd-unit { min-width: 50px; }
}
