/* ============================================================
   fan24.pk — Homepage styles
   Clean, modern, mobile-first. Design tokens + semantic sections.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:       #0b0b0d;
  --bg2:      #141418;
  --bg3:      #1c1c22;
  --bg4:      #242430;
  --surface-hover: rgba(255,255,255,0.04);

  /* Borders */
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);

  /* Text */
  --text:      #f3f3f5;
  --text-soft: #c4c4cc;
  --muted:     #8a8a95;
  --muted-2:   #60606a;

  /* Brand / accent */
  --red:        #e03131;
  --red-soft:   rgba(224,49,49,0.14);
  --red-ring:   rgba(224,49,49,0.30);
  --gold:       #f59f00;
  --accent:     var(--red);

  /* Radius */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.45);
  --shadow-lg: 0 14px 36px rgba(0,0,0,0.55);

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Subtle ambient glow on the page */
  background-image:
    radial-gradient(1200px 600px at 15% -10%, rgba(224,49,49,0.06), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(80,90,255,0.04), transparent 60%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,13,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  height: 60px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex-shrink: 0;
  transition: opacity 0.15s var(--ease);
}
.logo:hover { opacity: 0.9; }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 6px rgba(224,49,49,0.35));
}

.logo-text {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-accent { color: var(--red); }

.nav-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}
.nav-search input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px 9px 38px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search input:hover { background: var(--bg4); }
.nav-search input:focus {
  background: var(--bg4);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.nav-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-discord {
  background: #5865F2;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
  flex-shrink: 0;
}
.btn-discord:hover { background: #4752c4; transform: translateY(-1px); }

.btn-multistream {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
  font-family: inherit;
}
.btn-multistream:hover {
  background: var(--bg4);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.btn-multistream svg { color: var(--muted); transition: color 0.15s var(--ease); }
.btn-multistream:hover svg { color: var(--text); }


/* ============================================================
   FILTERS
   ============================================================ */
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 28px 4px;
  flex-wrap: wrap;
}

.pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s var(--ease);
  font-family: inherit;
  letter-spacing: 0.005em;
}
.pill-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}
.pill-outline:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface-hover); }
.pill-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(224,49,49,0.32);
}
.pill-red:hover { background: #c92626; border-color: #c92626; }

.sport-select-wrap { position: relative; }
.sport-select-wrap select {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 38px 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: 150px;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.sport-select-wrap select:hover { background: var(--bg4); border-color: var(--border-hover); }
.sport-select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.7px solid var(--muted);
  border-bottom: 1.7px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}


/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main { padding: 22px 28px 40px; flex: 1; }


/* ============================================================
   DATE SECTIONS
   ============================================================ */
.date-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 24px;
  margin-bottom: 36px;
  animation: fadeUp 0.45s var(--ease) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.date-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2px;
}
.date-label .lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.date-label .day {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}
.date-label .month {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.date-247 {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}
.date-247 .top {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.date-247 .bot {
  font-size: 0.65rem;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}


/* ============================================================
   MATCH LIST (row-style)
   ============================================================ */
.match-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* When a touch-scroll is in progress, the JS adds `cards-inert` to <body>.
   This kills all pointer events on cards/rows so the browser's internal
   anchor-tap recognition cannot navigate while the user is scrolling.
   Removed automatically a moment after the finger lifts. */
body.cards-inert .match-row,
body.cards-inert .match-card {
  pointer-events: none !important;
}

.match-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
  overflow: hidden;
}
.match-row:focus-visible {
  outline: 2px solid rgba(255,255,255,0.4);
  outline-offset: 2px;
}
.match-row:hover {
  background: var(--bg3);
  border-color: var(--border-hover);
  transform: translateX(2px);
}
.match-row:hover .row-chevron {
  transform: translateX(3px);
  color: var(--text);
}

/* Thin red accent strip on live rows */
.match-row.is-live::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  border-radius: 0 2px 2px 0;
}

/* ---- LEFT: badges or sport icon ---- */
.row-left {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.row-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  min-width: 80px;
  justify-content: center;
}
.row-badges img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}
/* Poster thumbnail on the left of a row — used for events/channels without team crests. */
.row-poster {
  width: 72px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, #17171d, #0f0f13);
  border: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.row-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Text-initial fallback when the API returns teams but no crest image. */
.row-badges-text { gap: 5px; padding: 4px 6px; }
.badge-init {
  min-width: 34px;
  height: 30px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ededf2;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  text-transform: uppercase;
}
/* Sport-tinted initials mirror the .row-icon tint palette so rows stay color-coded. */
.row-badges-text[data-sport*="football"] .badge-init,
.row-badges-text[data-sport*="soccer"] .badge-init {
  color: #cdf7dd;
  background: linear-gradient(135deg, rgba(52,211,153,0.14), rgba(52,211,153,0.05));
  border-color: rgba(52,211,153,0.22);
}
.row-badges-text[data-sport*="basketball"] .badge-init {
  color: #ffe3b0;
  background: linear-gradient(135deg, rgba(245,159,0,0.16), rgba(245,159,0,0.05));
  border-color: rgba(245,159,0,0.22);
}
.row-badges-text[data-sport*="cricket"] .badge-init {
  color: #c9dcff;
  background: linear-gradient(135deg, rgba(96,165,250,0.16), rgba(96,165,250,0.05));
  border-color: rgba(96,165,250,0.24);
}
.row-badges-text[data-sport*="tennis"] .badge-init {
  color: #fde7a8;
  background: linear-gradient(135deg, rgba(251,191,36,0.16), rgba(251,191,36,0.05));
  border-color: rgba(251,191,36,0.24);
}
.row-badges-text[data-sport*="hockey"] .badge-init {
  color: #dbe5ff;
  background: linear-gradient(135deg, rgba(168,197,255,0.14), rgba(168,197,255,0.04));
  border-color: rgba(168,197,255,0.22);
}
.row-badges-text[data-sport*="mma"] .badge-init,
.row-badges-text[data-sport*="boxing"] .badge-init,
.row-badges-text[data-sport*="fight"] .badge-init,
.row-badges-text[data-sport*="ufc"] .badge-init {
  color: #ffcfcf;
  background: linear-gradient(135deg, rgba(239,68,68,0.17), rgba(239,68,68,0.05));
  border-color: rgba(239,68,68,0.24);
}
.row-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(224,49,49,0.12), rgba(224,49,49,0.04));
  color: #f5b5b5;
  border: 1px solid rgba(224,49,49,0.15);
}
.row-icon svg {
  width: 22px;
  height: 22px;
}
/* Per-sport tint variants — subtle color-coding */
.row-icon[data-sport*="basketball"] {
  background: linear-gradient(135deg, rgba(245,159,0,0.14), rgba(245,159,0,0.04));
  color: #ffd27a; border-color: rgba(245,159,0,0.18);
}
.row-icon[data-sport*="football"],
.row-icon[data-sport*="soccer"] {
  background: linear-gradient(135deg, rgba(52,211,153,0.12), rgba(52,211,153,0.04));
  color: #86efac; border-color: rgba(52,211,153,0.18);
}
.row-icon[data-sport*="cricket"] {
  background: linear-gradient(135deg, rgba(96,165,250,0.14), rgba(96,165,250,0.04));
  color: #a3c8ff; border-color: rgba(96,165,250,0.2);
}
.row-icon[data-sport*="tennis"] {
  background: linear-gradient(135deg, rgba(251,191,36,0.14), rgba(251,191,36,0.04));
  color: #fde68a; border-color: rgba(251,191,36,0.2);
}
.row-icon[data-sport*="hockey"] {
  background: linear-gradient(135deg, rgba(168,197,255,0.12), rgba(168,197,255,0.03));
  color: #c7d9ff; border-color: rgba(168,197,255,0.18);
}
.row-icon[data-sport*="mma"],
.row-icon[data-sport*="boxing"],
.row-icon[data-sport*="fight"],
.row-icon[data-sport*="ufc"] {
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(239,68,68,0.04));
  color: #fca5a5; border-color: rgba(239,68,68,0.2);
}
.row-icon[data-sport*="racing"],
.row-icon[data-sport*="formula"],
.row-icon[data-sport*="f1"],
.row-icon[data-sport*="motor"] {
  background: linear-gradient(135deg, rgba(192,132,252,0.14), rgba(192,132,252,0.04));
  color: #d8b4fe; border-color: rgba(192,132,252,0.2);
}

/* ---- MIDDLE: title + meta ---- */
.row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.row-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}
.row-cat {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}
.row-viewers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}
.row-viewers svg { opacity: 0.7; }

/* ---- RIGHT: status pill + chevron ---- */
.row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.row-status {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.row-status-time {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.row-status-247 {
  background: linear-gradient(135deg, rgba(245,159,0,0.18), rgba(245,159,0,0.08));
  color: var(--gold);
  border: 1px solid rgba(245,159,0,0.28);
}
.row-status-live {
  background: var(--red);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 8px rgba(224,49,49,0.32);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.row-status-live .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
  animation: live-pulse 1.6s var(--ease) infinite;
}

.row-chevron {
  color: var(--muted);
  transition: transform 0.18s var(--ease), color 0.18s var(--ease);
  flex-shrink: 0;
}

/* Legacy badge keyframe stays used by .live-dot above */
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255,255,255,0.3); }
  50%      { box-shadow: 0 0 0 5px rgba(255,255,255,0.08); }
}


/* ============================================================
   POPULAR LIVE CARDS (horizontal scroller — kept as thumbnails)
   These are .vc-card / .match-card inside .popular-live-scroll only.
   ============================================================ */
.match-card {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  position: relative;
  color: inherit;
  height: 100%;
  text-decoration: none;
}
.match-card:focus-visible {
  outline: 2px solid rgba(255,255,255,0.4);
  outline-offset: 2px;
}
.match-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg3);
  box-shadow: var(--shadow-lg);
}

.card-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  overflow: hidden;
}
.card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.match-card:hover .card-thumb img { transform: scale(1.05); }

/* Gradient scrim on thumbnails for readable badges */
.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, transparent 35%, transparent 70%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.card-thumb .no-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #17171d, #0f0f13);
}
.card-thumb .no-img .teams-badges {
  display: flex;
  align-items: center;
  gap: 14px;
}
.card-thumb .no-img .teams-badges img {
  position: static;
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.card-thumb .no-img .vs {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

/* Badges (still used inside popular-live .match-card thumbnails) */
.badge-live {
  position: absolute;
  top: 7px;
  left: 7px;
  background: var(--red);
  color: #fff;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(224,49,49,0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
  animation: live-pulse 1.6s var(--ease) infinite;
}

.badge-fav {
  position: absolute;
  top: 7px;
  right: 7px;
  background: var(--gold);
  color: #1a1100;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  transition: transform 0.15s var(--ease);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(245,159,0,0.35);
}
.badge-fav:hover { transform: scale(1.15); }

.badge-viewers {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 6px 3px 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}

.card-info {
  padding: 9px 10px 10px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-height: 56px;
}
.card-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 0.66rem;
  color: var(--muted);
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.card-meta .dot { opacity: 0.5; }


/* ============================================================
   POPULAR LIVE (by viewers) SECTION
   ============================================================ */
.popular-live-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 24px;
  padding: 0 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.45s var(--ease) both;
  align-items: start;
}

.popular-live-side { margin-bottom: 0; }
.popular-live-content { min-width: 0; }

.popular-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
  width: 100%;
  min-width: 0;
}
.popular-live-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.popular-live-arrows-group { display: none; flex-shrink: 0; }

.popular-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(224,49,49,0.25);
  animation: pulse-dot 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(224,49,49,0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(224,49,49,0.08); }
}

.popular-live-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.popular-live-sub {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
}
.popular-live-carousel { position: relative; width: 100%; }
.popular-live-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  width: 100%;
}
.popular-live-arrow { display: none; }

/* Viewer card (mirrors .match-card styles but kept separate for clarity) */
.vc-card {
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.vc-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}
.vc-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg3);
  overflow: hidden;
}
.vc-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 5px;
  text-transform: uppercase;
  z-index: 2;
}
.vc-viewer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.vc-info {
  padding: 12px 14px 14px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-height: 78px;
}
.vc-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vc-meta { font-size: 0.74rem; color: var(--muted); }


/* ============================================================
   EMPTY / LOADING
   ============================================================ */
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  gap: 12px;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a48; }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  margin-top: 40px;
  background: rgba(0,0,0,0.2);
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.footer-brand .logo-mark svg { display: block; }
.site-footer p {
  font-size: 0.76rem;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}


/* ============================================================
   MULTI STREAM PAGE (overlay)
   ============================================================ */
.ms-page {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ms-page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.ms-page-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}
.ms-page-title svg { color: var(--red); }
.ms-page-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-right: auto;
}
.ms-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s var(--ease);
}
.ms-close-btn:hover { color: var(--text); border-color: var(--border-hover); background: var(--bg4); }

.ms-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 10px;
  padding: 14px;
  overflow: hidden;
}
.ms-slot {
  position: relative;
  background: #0d0d10;
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  min-height: 0;
}
.ms-slot:hover {
  border-color: rgba(255,255,255,0.25);
  background: #131317;
}
.ms-slot.filled {
  border: 1px solid var(--border);
  cursor: default;
  background: #000;
}
.ms-slot-plus {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  border: 1px solid var(--border);
}
.ms-slot-plus svg { width: 28px; height: 28px; }
.ms-slot-empty-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-align: center;
}
.ms-slot-empty-sub {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.32);
  text-align: center;
  max-width: 220px;
  line-height: 1.5;
}
.ms-slot iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.ms-slot-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.88) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.ms-slot.filled:hover .ms-slot-label { opacity: 1; }
.ms-slot-label-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.ms-slot-label-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}
.ms-slot-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 30px;
  height: 30px;
  background: var(--red);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s var(--ease), transform 0.15s var(--ease);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.ms-slot.filled:hover .ms-slot-remove { opacity: 1; }
.ms-slot-remove:hover { transform: scale(1.08); }


/* ============================================================
   DRAWER (Add stream)
   ============================================================ */
.ms-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ms-drawer-overlay.open { display: block; }

.ms-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 580px;
  max-width: 100vw;
  background: #141418;
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.ms-drawer.open { transform: translateX(0); }

.ms-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ms-drawer-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.ms-drawer-close {
  width: 32px;
  height: 32px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.ms-drawer-close:hover { color: var(--text); border-color: var(--border-hover); background: var(--bg4); }

.ms-drawer-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ms-drawer-search svg { color: var(--muted); flex-shrink: 0; }
.ms-drawer-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
}
.ms-drawer-search input::placeholder { color: var(--muted); }

.ms-drawer-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 20px;
}
.ms-drawer-results::-webkit-scrollbar { width: 6px; }
.ms-drawer-results::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }

.ms-result-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 14px 22px 6px;
}

.ms-match-accordion { border-bottom: 1px solid var(--border); }
.ms-match-accordion:last-child { border-bottom: none; }

.ms-match-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 22px;
  cursor: pointer;
  transition: background 0.12s var(--ease);
  gap: 12px;
}
.ms-match-toggle:hover { background: var(--surface-hover); }
.ms-match-toggle-left { flex: 1; min-width: 0; }
.ms-match-toggle-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ms-match-toggle-date {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 3px;
}
.ms-match-chevron {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.ms-match-accordion.open .ms-match-chevron { transform: rotate(180deg); }

.ms-match-body {
  display: none;
  padding: 0 18px 14px;
  gap: 8px;
  flex-direction: column;
}
.ms-match-accordion.open .ms-match-body { display: flex; }

.ms-source-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ms-source-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.ms-source-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.ms-source-card-name svg { width: 13px; height: 13px; color: var(--gold); }
.ms-source-card-desc {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
}
.ms-source-count {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg4);
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.ms-stream-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.12s var(--ease);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.ms-stream-row:first-child { border-top: none; }
.ms-stream-row:hover { background: rgba(255,255,255,0.05); }
.ms-stream-row-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  color: var(--muted);
  margin-left: auto;
  flex-shrink: 0;
}
.ms-stream-row-lang svg { width: 12px; height: 12px; opacity: 0.6; }

.ms-drawer-empty {
  padding: 52px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.ms-drawer-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Quality badge (shared) */
.quality-badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  flex-shrink: 0;
}
.quality-badge.hd { background: var(--red-soft); color: var(--red); border: 1px solid var(--red-ring); }
.quality-badge.sd { background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid var(--border); }


/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 960px) {
  nav { padding: 0 20px; gap: 16px; }
  .filters, .main { padding-left: 20px; padding-right: 20px; }
  .date-section, .popular-live-section { grid-template-columns: 72px 1fr; gap: 18px; }
  .date-label .day { font-size: 2rem; }
  .match-grid { gap: 7px; }
  .popular-live-scroll { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}


/* ============================================================
   RESPONSIVE — Phone (<= 640px)
   ============================================================ */
@media (max-width: 640px) {
  nav {
    padding: 0 14px;
    gap: 10px;
    height: 56px;
  }
  .logo-text { font-size: 1.08rem; }
  .logo-mark svg { width: 24px; height: 24px; }

  .nav-search {
    max-width: none;
    flex: 1;
    min-width: 0;
  }
  .nav-search input {
    font-size: 0.85rem;
    padding: 8px 12px 8px 34px;
  }
  .nav-search svg { left: 10px; width: 15px; height: 15px; }

  .btn-discord { width: 36px; height: 36px; }
  .btn-multistream {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  .btn-multistream span { display: none; }
  .btn-multistream svg { width: 16px; height: 16px; }

  .filters {
    padding: 16px 14px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .pill {
    padding: 7px 15px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .sport-select-wrap { flex-shrink: 0; }
  .sport-select-wrap select {
    min-width: 120px;
    font-size: 0.8rem;
    padding: 7px 30px 7px 14px;
    white-space: nowrap;
  }

  .main { padding: 18px 14px 30px; }

  /* Date above cards, inline label */
  .date-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 18px;
  }
  .date-label {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding-top: 0;
  }
  .date-label .day {
    font-size: 1.5rem;
    line-height: 1;
  }
  .date-label .lbl { font-size: 0.62rem; margin: 0; }
  .date-label .month { font-size: 0.68rem; margin: 0; }
  .date-247 { flex-direction: row; align-items: baseline; gap: 10px; padding-top: 0; }
  .date-247 .top { font-size: 1.15rem; }

  .popular-live-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    width: 100%;
  }
  .popular-live-header {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }
  .popular-live-title { font-size: 1rem; }
  .popular-live-sub { font-size: 0.78rem; }
  .popular-live-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .popular-live-arrows-group {
    display: none;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
  }
  .popular-live-section.has-arrows .popular-live-arrows-group { display: flex; }

  /* Rows on phone — tighter, smaller icon, truncated title */
  .match-grid {
    gap: 6px;
  }
  .match-row {
    padding: 10px 12px;
    gap: 10px;
    border-radius: var(--radius-sm);
  }
  .row-icon { width: 38px; height: 38px; }
  .row-icon svg { width: 18px; height: 18px; }
  .row-badges { min-width: 64px; padding: 3px 6px; gap: 4px; }
  .row-badges img { width: 28px; height: 28px; }
  .row-badges-text { gap: 4px; padding: 3px 5px; }
  .badge-init { min-width: 28px; height: 26px; font-size: 0.62rem; padding: 0 4px; }
  .row-poster { width: 58px; height: 38px; }
  /* On phones the row is narrow — let the title wrap to 2 lines so full
     team names like "Sunderland vs Nottingham Forest" stay readable.
     Past 2 lines it ellipses, which is fine for the rare extreme case. */
  .row-title {
    font-size: 0.84rem;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.25;
  }
  .row-meta { font-size: 0.66rem; gap: 8px; }
  .row-cat { font-size: 0.62rem; }
  .row-status {
    font-size: 0.66rem;
    padding: 4px 8px;
  }
  .row-chevron { width: 14px; height: 14px; }
  /* On very narrow phones, the chevron eats space — hide it */
  .row-right { gap: 6px; }

  /* Live carousel: horizontal row, ~2.6 cards visible */
  .popular-live-carousel { padding: 0; }
  .popular-live-scroll {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .popular-live-scroll::-webkit-scrollbar { display: none; }
  .popular-live-scroll > .match-card,
  .popular-live-scroll > .vc-card {
    flex: 0 0 38%;
    width: 38%;
    scroll-snap-align: start;
  }

  /* Arrow controls for the header on phones */
  .popular-live-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(20,20,24,0.94);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .popular-live-section.has-arrows .popular-live-arrow { display: inline-flex; }
  .popular-live-arrow:active { transform: scale(0.92); }
  .popular-live-arrow.is-disabled { opacity: 0.3; pointer-events: none; }
  .popular-live-arrow svg { width: 16px; height: 16px; }

  .card-thumb .no-img .teams-badges { gap: 6px; }
  .card-thumb .no-img .teams-badges img {
    width: 34px !important;
    height: 34px !important;
  }

  .card-info, .vc-info {
    padding: 7px 8px 9px;
    min-height: 48px;
    gap: 3px;
  }
  .card-title, .vc-title {
    font-size: 0.72rem;
    line-height: 1.28;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .card-meta, .vc-meta {
    font-size: 0.62rem;
    gap: 4px;
  }

  .badge-live, .vc-live-badge {
    top: 6px; left: 6px;
    font-size: 0.52rem;
    padding: 2px 5px;
  }
  .badge-viewers, .vc-viewer-badge {
    top: 6px;
    font-size: 0.56rem;
    padding: 2px 5px;
  }
  .badge-fav {
    top: 6px; right: 6px;
    width: 20px; height: 20px;
    font-size: 0.64rem;
  }

  /* Multi Stream on phone */
  .ms-page-header { padding: 0 14px; gap: 10px; height: 54px; }
  .ms-page-title { font-size: 0.95rem; }
  .ms-page-sub { display: none; }
  .ms-close-btn { padding: 7px 12px; font-size: 0.76rem; }
  .ms-close-btn span { display: none; }
  .ms-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 10px;
    gap: 10px;
    overflow-y: auto;
  }
  .ms-slot { min-height: 52vw; }
  .ms-slot-empty-sub { display: none; }
  .ms-drawer {
    width: 100vw;
    border-left: none;
    border-top: 1px solid var(--border);
    top: auto;
    height: 90vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
  }
  .ms-drawer.open { transform: translateY(0); }
}

/* Very small phones — keep readable */
@media (max-width: 360px) {
  .match-grid { gap: 5px; }
  .match-row { padding: 9px 10px; gap: 8px; }
  .row-title {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .row-chevron { display: none; }
  .card-title, .vc-title { font-size: 0.7rem; }
  .card-info, .vc-info { padding: 6px 7px 8px; min-height: 44px; }
  .logo-text { font-size: 1rem; }
  .pill { padding: 6px 13px; font-size: 0.76rem; }
}

/* Large screens — keep cards compact, don't let them balloon */
@media (min-width: 1400px) {
  .main { padding-left: 40px; padding-right: 40px; }
  .popular-live-scroll { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

/* Reduce motion for users that prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
