/* foot90.me — shared styles: tokens, header, footer, multi-stream
   Black, white and one purple. */
:root {
  --bg: #07060b;
  --surface: #0f0d16;
  --surface-2: #171424;
  --line: #221e32;
  --line-strong: #34304a;
  --ink: #ffffff;
  --muted: #9893ad;
  --accent: #7c3aed;          /* buttons, fills (white text on top) */
  --accent-hover: #6d28d9;
  --accent-text: #b79cff;     /* purple used as text on black */
  --accent-soft: rgba(124, 58, 237, .16);
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 960px;
  --gutter: 18px;
  --header-h: 52px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background:
    radial-gradient(720px 360px at 85% 0%, rgba(149, 94, 255, .26), transparent 62%),
    radial-gradient(480px 300px at 10% 18%, rgba(111, 66, 193, .18), transparent 64%),
    linear-gradient(180deg, #07060b 0%, #07060b 100%);
  background-repeat: no-repeat;
  color: var(--ink); font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.header { height: var(--header-h); }
.header-content { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font: 700 1.3rem var(--font-display); letter-spacing: -.04em; }
.brand-free { color: var(--accent-text); }
.brand-tld { color: var(--muted); font-weight: 500; }
.header-right { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--ink);
  font: 600 .9375rem/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
@media (hover: hover) { .btn:hover { border-color: var(--accent-text); } }
.btn-solid { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (hover: hover) { .btn-solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); } }
.btn-white { background: #fff; border-color: #fff; color: #07060b; }
@media (hover: hover) { .btn-white:hover { background: #ece6ff; border-color: #ece6ff; } }
.btn svg { flex: none; }
@media (max-width: 560px) {
  :root { --header-h: 38px; }
  .header .wrap { padding-inline: 14px; }
  .header-content { gap: 8px; }
  .brand { height: 100%; align-items: center; gap: 8px; }
  .brand-name { display: block; font-size: 1rem; line-height: 1; transform: translateY(1px); }
  .btn-icon .btn-label { display: none; }
  .btn-icon { width: 42px; padding: 0; }
  .btn-discord { width: auto; padding: 0 16px; }
  .btn-discord .btn-label { display: inline; }
}

/* Footer */
.section-footer { padding: 36px 0 44px; color: var(--muted); font-size: .8125rem; line-height: 1.65; }
.section-footer .wrap { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.section-footer p { margin: 0; max-width: 72ch; }
.section-footer strong { color: var(--ink); font-family: var(--font-display); letter-spacing: -.02em; }

.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 0 0 rgba(167,139,250,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(167,139,250,0); } 100% { box-shadow: 0 0 0 0 rgba(167,139,250,0); } }

/* ── MULTI STREAM OVERLAY ─────────────────────── */
#msOverlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 8, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ms-modal {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  width: 100%;
  max-width: 1160px;
  height: 88vh;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ms-modal-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.ms-modal-title { font: 700 1.1rem var(--font-body); letter-spacing: -.03em; }
.ms-modal-sub { font-size: .8125rem; color: var(--muted); flex: 1; }
.ms-close-btn {
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
  padding: 8px 16px; border-radius: 10px; cursor: pointer; font: 600 .875rem var(--font-body);
}
@media (hover: hover) { .ms-close-btn:hover { border-color: var(--accent-text); color: var(--accent-text); } }

.ms-panels {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px;
  flex: 1; overflow: hidden; min-height: 0; height: 0;
}
.ms-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  display: flex; flex-direction: column; overflow: hidden; min-height: 0; height: 100%;
}
.ms-search-area { display: flex; flex-direction: column; height: 100%; min-height: 300px; }
.ms-search-wrap { padding: 10px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.ms-search-input {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--ink); padding: 10px 12px; font: 500 16px var(--font-body);
}
.ms-search-input::placeholder { color: var(--muted); }
.ms-results { flex: 1; overflow-y: auto; padding: 4px 0; }
.ms-result-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
@media (hover: hover) { .ms-result-item:hover { background: var(--surface-2); } }
.ms-result-sport {
  font-size: .6875rem; font-weight: 700; color: var(--accent-text);
  border: 1px solid var(--line-strong); padding: 2px 8px; border-radius: 6px; flex-shrink: 0;
}
.ms-result-title { flex: 1; font-size: .875rem; line-height: 1.3; }
.ms-result-time { font-size: .8125rem; color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ms-no-results { padding: 20px; text-align: center; color: var(--muted); font-size: .875rem; }

.ms-player-area { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.ms-panel-topbar {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.ms-panel-title { flex: 1; font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.ms-change-btn {
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
  padding: 5px 12px; border-radius: 10px; cursor: pointer; font: 600 .75rem var(--font-body); flex-shrink: 0;
}
@media (hover: hover) { .ms-change-btn:hover { border-color: var(--accent-text); color: var(--accent-text); } }
.ms-stream-btns {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px;
  flex-shrink: 0; border-bottom: 1px solid var(--line);
}
.ms-stream-btn {
  background: transparent; border: 1px solid var(--line-strong); color: var(--muted);
  padding: 5px 12px; border-radius: 10px; cursor: pointer; font: 600 .75rem var(--font-body);
}
.ms-stream-btn.active { background: var(--accent); border-color: var(--accent-text); color: #fff; }
@media (hover: hover) { .ms-stream-btn:hover:not(.active) { color: var(--ink); border-color: var(--accent-text); } }
.ms-iframe-wrap { flex: 1; position: relative; min-height: 200px; background: #000; }
.ms-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

@media (max-width: 700px) {
  #msOverlay { padding: 0; align-items: flex-start; }
  .ms-modal { border-radius: 0; height: 100dvh; max-height: 100dvh; border: none; }
  .ms-panels { grid-template-columns: 1fr; overflow-y: auto; gap: 10px; padding: 10px; }
  .ms-panel { min-height: 420px; height: auto; flex-shrink: 0; }
  .ms-player-area { min-height: 420px; }
  .ms-stream-btns { max-height: 76px; overflow-y: auto; }
  .ms-iframe-wrap { min-height: 240px; }
  .ms-search-area { min-height: 300px; }
  .ms-modal-sub { display: none; }
}

/* Very small phones */
@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 1.1rem; }
  .btn-discord { width: 42px; padding: 0; }
  .btn-discord .btn-label { display: none; }
}
