/* HomestandLIVE website, styled after the Apple TV app:
   navy canvas, floating sidebar, hero wash, rounded poster-card rows. */

:root {
  --bg: #0B1220;
  --bg-top: #1C2F55;
  --gold: #F2B01E;
  --gold-light: #FFC94A;
  --live: #E5484D;
  --stamp: #D42A3A;
  --sky: #4FA3E3;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-hi: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.10);
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.68);
  --text-3: rgba(255, 255, 255, 0.48);
  --radius: 18px;
  --sidebar: 248px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip {
  position: absolute; left: -9999px; top: 12px;
  background: var(--gold); color: var(--bg); padding: 8px 14px; border-radius: 10px; font-weight: 700;
}
.skip:focus { left: 12px; z-index: 100; }

/* ---------- Wordmark: HomestandLIVE ---------- */

.wordmark {
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark .live { color: var(--stamp); }

/* ---------- Floating sidebar (Plex-style) ---------- */

.sidebar {
  position: fixed;
  top: 20px; bottom: 20px; left: 20px;
  width: var(--sidebar);
  padding: 22px 16px;
  background: rgba(20, 30, 52, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  z-index: 10;
}

.lockup {
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
  padding: 0 6px;
}
.lockup:hover { text-decoration: none; }
.lockup img { width: 46px; height: 46px; }
.lockup .wordmark { font-size: 21px; }

.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--text-2);
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--gold); color: var(--bg); }
.nav svg { width: 22px; height: 22px; flex: none; }

.sidebar .note {
  margin-top: auto;
  font-size: 13px;
  color: var(--text-3);
  padding: 0 8px;
}

/* ---------- Main column ---------- */

main {
  margin-left: calc(var(--sidebar) + 40px);
  padding: 30px 48px 40px 20px;
  max-width: 1320px;
}

/* Plex-style pill tabs */
.pills { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.pills a {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-weight: 600;
  font-size: 16px;
}
.pills a:hover { background: var(--surface-hi); color: var(--text); text-decoration: none; }
.pills a.on { background: #fff; color: var(--bg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 500px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 40px;
  background:
    radial-gradient(ellipse 60% 80% at 92% 8%, rgba(242, 176, 30, 0.30), transparent 70%),
    repeating-linear-gradient(115deg, transparent 0 70px, rgba(255, 255, 255, 0.035) 70px 76px),
    linear-gradient(180deg, var(--bg-top) 0%, #14223F 55%, var(--bg) 100%);
  border: 1px solid var(--line);
}
.hero::after { /* bottom fade into the canvas, like the app's hero wash */
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(11, 18, 32, 0.55));
  pointer-events: none;
}

.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--live);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 8px;
}
.live-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }

.chip {
  display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 8px;
}
.chip.gold { background: rgba(242, 176, 30, 0.18); color: var(--gold-light); }

.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero p.lede { font-size: 20px; color: var(--text-2); max-width: 36em; margin: 0 0 30px; }

.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 17px;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn.primary { background: var(--gold); color: var(--bg); }
.btn.primary:hover { background: var(--gold-light); }
.btn.ghost { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.2); }

.hero-mark { justify-self: center; position: relative; z-index: 1; }
.hero-mark img {
  width: min(340px, 100%);
  height: auto;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }

.hero > * { position: relative; z-index: 1; }

/* ---------- Rows of poster cards ---------- */

section.row { margin-top: 52px; scroll-margin-top: 24px; }

.row-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 18px 4px;
}
.row-title::before {
  content: ""; width: 5px; height: 26px; border-radius: 3px; background: var(--accent, var(--text-3));
}
.row-sub { color: var(--text-2); margin: -8px 0 20px 4px; max-width: 46em; }

.cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.card {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover {
  transform: scale(1.03);
  border-color: rgba(242, 176, 30, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.card .art {
  height: 148px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--c1, #24406F), var(--c2, #101A30));
  position: relative;
}
.card .art svg { width: 64px; height: 64px; color: #fff; opacity: 0.95; }
.card .art .live-badge { position: absolute; top: 14px; left: 14px; }
.card .body { padding: 16px 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }

/* sport chips */
.sports { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 0 4px; padding: 0; list-style: none; }
.sports li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  color: var(--text-2);
}

/* ---------- Text pages (privacy / support) ---------- */

.page-head {
  border-radius: 28px;
  padding: 48px 48px 40px;
  background:
    radial-gradient(ellipse 50% 90% at 95% 0%, rgba(242, 176, 30, 0.22), transparent 70%),
    linear-gradient(180deg, var(--bg-top), #121E37);
  border: 1px solid var(--line);
}
.page-head h1 { margin: 0 0 8px; font-size: clamp(34px, 4vw, 48px); font-weight: 900; letter-spacing: -0.02em; }
.page-head p { margin: 0; color: var(--text-2); font-size: 18px; }

.panel {
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 40px;
  max-width: 900px;
}
.panel h2 { font-size: 23px; margin: 30px 0 8px; font-weight: 800; }
.panel h2:first-child { margin-top: 0; }
.panel p, .panel li { color: var(--text-2); }
.panel strong { color: var(--text); }
.panel ul { padding-left: 22px; }
.panel li { margin: 6px 0; }

.faq { display: grid; gap: 14px; max-width: 900px; margin-top: 26px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 24px;
}
.faq details[open] { border-color: rgba(242, 176, 30, 0.45); }
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 19px;
  list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 26px; font-weight: 600; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--text-2); margin: 12px 0 2px; }

.contact {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 26px; max-width: 900px;
  padding: 28px 32px;
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(242, 176, 30, 0.16), rgba(242, 176, 30, 0.04));
  border: 1px solid rgba(242, 176, 30, 0.35);
}
.contact h2 { margin: 0 0 4px; font-size: 23px; }
.contact p { margin: 0; color: var(--text-2); }

/* ---------- Footer ---------- */

footer {
  margin-top: 70px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 14px;
}
footer .links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 12px; }
footer .links a { color: var(--text-2); font-weight: 600; }
footer p { margin: 6px 0; max-width: 60em; }

/* ---------- Small screens: sidebar becomes a top bar ---------- */

@media (max-width: 900px) {
  .sidebar {
    position: sticky;
    top: 0; left: 0; bottom: auto;
    width: auto;
    margin: 0;
    border-radius: 0;
    border-width: 0 0 1px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    gap: 10px;
  }
  .lockup img { width: 36px; height: 36px; }
  .lockup .wordmark { font-size: 18px; }
  .nav { flex-direction: row; gap: 2px; }
  .nav a { padding: 8px 10px; font-size: 14px; gap: 6px; }
  .nav a span { display: none; }
  .nav svg { width: 22px; height: 22px; }
  .sidebar .note { display: none; }
  .nav .anchor { display: none; }
  body { overflow-x: hidden; }

  main { margin-left: 0; padding: 20px 16px 30px; }
  .hero { grid-template-columns: 1fr; padding: 40px 26px; min-height: 0; text-align: left; }
  .hero-mark { order: -1; justify-self: start; }
  .hero-mark img { width: 150px; }
  .hero .chip { font-size: 12.5px; padding-left: 10px; padding-right: 10px; }
  .page-head { padding: 34px 24px 28px; }
  .panel { padding: 26px 22px; }
  .cards { grid-auto-columns: 78%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
