/* ════════════════════════════════════════════════════════════
   PALETTE — lifted from starting-soon.html. Change here only.
   ════════════════════════════════════════════════════════════ */
:root {
  --c1: #00b3ff;   /* blue    */
  --c2: #7b2fff;   /* purple  */
  --c3: #ff2fd6;   /* magenta */
  --c4: #ff6a00;   /* orange  */
  --c5: #ffd600;   /* yellow  */

  --bg:    #030305;
  --text:  #f2f3f7;
  --muted: #9298ad;

  /* liquid glass */
  --glass-bg:   rgba(255,255,255,0.045);
  --glass-bg-2: rgba(255,255,255,0.075);
  --glass-line: rgba(255,255,255,0.11);
  --glass-hi:   rgba(255,255,255,0.30);
  --glass-blur: blur(26px) saturate(180%);

  --r:    18px;
  --r-lg: 26px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { letter-spacing: -.03em; line-height: 1.08; margin: 0; }

a { color: inherit; }

::selection { background: var(--c3); color: #fff; }

/* ════════════════════════════════════════════════════════════
   AMBIENT FIELD — drifting colour washes behind everything
   ════════════════════════════════════════════════════════════ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: .40;
}
.blob.b1 { width: 620px; height: 620px; background: var(--c2); top: -200px; left: -160px; animation: drift-a 26s ease-in-out infinite; }
.blob.b2 { width: 560px; height: 560px; background: var(--c3); top: 38%; right: -180px; animation: drift-b 31s ease-in-out infinite; }
.blob.b3 { width: 480px; height: 480px; background: var(--c1); bottom: -160px; left: 22%; animation: drift-c 23s ease-in-out infinite; }

@keyframes drift-a { 0%,100%{transform:translate(0,0)} 50%{transform:translate(120px,80px)} }
@keyframes drift-b { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-130px,-70px)} }
@keyframes drift-c { 0%,100%{transform:translate(0,0)} 50%{transform:translate(80px,-100px)} }

/* faint film grain so the gradients do not band */
.grain {
  position: absolute;
  inset: -50%;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ════════════════════════════════════════════════════════════
   GLASS
   ════════════════════════════════════════════════════════════ */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  box-shadow:
    0 1px 0 0 var(--glass-hi) inset,       /* top light catch */
    0 -1px 0 0 rgba(0,0,0,.25) inset,      /* bottom shade    */
    0 20px 50px -20px rgba(0,0,0,.85);
}

/* the wet specular sheen across the top of every glass surface */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg,
    rgba(255,255,255,.14) 0%,
    rgba(255,255,255,.04) 22%,
    transparent 46%);
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(var(--maxw), calc(100% - 32px));
  margin: 14px auto 0;
  border-radius: 100px;
  padding: 9px 9px 9px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand .mark { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 9px rgba(255,47,214,.55)); }
.brand-name { font-size: 14px; letter-spacing: .04em; }

.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .18s; }
.nav-links a:hover { color: var(--text); }

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .22s ease, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .ico { font-size: 13px; }

.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* the flame gradient, straight off the logo */
.btn-brand {
  background: linear-gradient(100deg, var(--c1), var(--c2) 32%, var(--c3) 62%, var(--c4) 88%);
  color: #fff;
  box-shadow: 0 8px 26px -8px rgba(255,47,214,.65);
}
.btn-brand:hover { box-shadow: 0 14px 36px -8px rgba(255,47,214,.85); }

.btn-glass {
  background: var(--glass-bg-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: var(--glass-line);
  color: var(--text);
  box-shadow: 0 1px 0 0 var(--glass-hi) inset;
}
.btn-glass:hover { background: rgba(255,255,255,.12); }

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
main { position: relative; z-index: 2; }

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 90px 20px 70px;
  text-align: center;
}

.hero-logo {
  width: 132px;
  margin-bottom: 26px;
  filter:
    drop-shadow(0 0 26px rgba(255,47,214,.55))
    drop-shadow(0 0 60px rgba(0,179,255,.38));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-13px) scale(1.025); }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 17px;
  border-radius: 100px;
  font-size: 12.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.pill.is-live { color: #fff; }
.pill.is-live .dot {
  background: #ff2f4e;
  box-shadow: 0 0 0 0 rgba(255,47,78,.75);
  animation: ping 1.7s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(255,47,78,.75); }
  70%  { box-shadow: 0 0 0 9px rgba(255,47,78,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,47,78,0); }
}

h1 { font-size: clamp(44px, 8.5vw, 82px); font-weight: 800; }
h1 .line { display: block; }

.grad {
  background: linear-gradient(100deg, var(--c1), var(--c2) 28%, var(--c3) 55%, var(--c4) 78%, var(--c5));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% auto;
  animation: shift 9s linear infinite;
}
@keyframes shift { to { background-position: 220% center; } }

.lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 500px;
  margin: 18px auto 34px;
}

.cta { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════
   SECTIONS / PANELS
   ════════════════════════════════════════════════════════════ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 20px;
}

.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: 27px; }
.section-head p  { color: var(--muted); margin: 5px 0 0; font-size: 15px; }

.panel {
  border-radius: var(--r-lg);
  padding: 22px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-head h2 { font-size: 18px; }

.chip {
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--glass-line);
  border-radius: 100px;
  padding: 3px 11px;
}

/* player */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--glass-line);
}
.player iframe { width: 100%; height: 100%; border: 0; display: block; }

.player-empty,
.clip-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  color: var(--muted);
  font-size: 14px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--glass-line);
  border-radius: 6px;
  padding: 2px 6px;
}

/* ════════════════════════════════════════════════════════════
   CLIPS
   ════════════════════════════════════════════════════════════ */
.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.clip {
  border-radius: var(--r-lg);
  padding: 11px;
  transition: transform .2s ease, border-color .2s ease;
}
.clip:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.2); }

.clip-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  margin-bottom: 12px;
}
.clip-frame iframe,
.clip-frame video { width: 100%; height: 100%; border: 0; display: block; }
.clip-frame video { object-fit: contain; background: #000; }

/* thumbnail button — the iframe only loads once you click */
.clip-play {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
}
.clip-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, opacity .25s ease;
  opacity: .88;
}
.clip:hover .clip-play img { transform: scale(1.05); opacity: 1; }

.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #fff;
  padding-left: 3px;
  background: linear-gradient(100deg, var(--c1), var(--c2) 32%, var(--c3) 62%, var(--c4) 88%);
  box-shadow: 0 6px 22px -6px rgba(255,47,214,.8);
  transition: transform .2s ease;
}
.clip:hover .play-badge { transform: translate(-50%, -50%) scale(1.12); }

.dur {
  position: absolute;
  right: 8px; bottom: 8px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 2px 7px;
}

.clip-meta { padding: 0 5px 4px; }
.clip-meta h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-sub {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--muted);
}
.clip-sub .chip {
  margin-left: auto;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-status {
  grid-column: 1 / -1;
  padding: 30px 22px;
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.clip-status a { color: var(--c1); }

.clip-more { display: flex; justify-content: center; margin-top: 22px; }

/* ════════════════════════════════════════════════════════════
   HOMIES — --h1 / --h2 are set per homie from config.js,
   so each tab and panel wears their own colours.
   ════════════════════════════════════════════════════════════ */
/* ── homie cards: the list on / and /homies ──────────────── */
.homie-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.homie-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.homie-card:hover { transform: translateY(-4px); border-color: var(--h1); }

.homie-card-glow {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--h1);
  filter: blur(90px);
  opacity: .28;
  top: -140px; right: -70px;
  pointer-events: none;
}

.homie-card-body { position: relative; flex: 1 1 auto; min-width: 0; }
.homie-card-body h2,
.homie-card-body h3 { font-size: 19px; margin-bottom: 3px; }

.homie-card-go {
  position: relative;
  font-size: 19px;
  color: var(--h1);
  flex: none;
  transition: transform .18s ease;
}
.homie-card:hover .homie-card-go { transform: translateX(4px); }

/* ── the individual homie page ───────────────────────────── */
.hero-sm { padding: 60px 20px 34px; }

.back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 20px;
  transition: color .18s;
}
.back:hover { color: var(--text); }

.homie-hero-av {
  width: 104px; height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 2px solid var(--h1);
  box-shadow: 0 0 36px -6px var(--h1);
}

.grad-homie {
  background: linear-gradient(100deg, var(--h1), var(--h2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── a homie page wears their colours end to end ──────────────
   --h1/--h2/--h3 are set on <body> from config.js, so every
   accent below follows whoever the page is for.
   ─────────────────────────────────────────────────────────── */

/* Background glow. Homie palettes run bright (greens, golds) where
   the site palette is deep, so these sit much lower than the .40 on
   the front page — otherwise the near-black ground washes out to mud
   and the body text loses contrast. */
.homie-page .blob { opacity: .17; }
.homie-page .blob.b1 { background: var(--h1); }
.homie-page .blob.b2 { background: var(--h2); }
.homie-page .blob.b3 { background: var(--h3, var(--h1)); }

/* clip accents */
.homie-page .play-badge {
  background: linear-gradient(100deg, var(--h1), var(--h2));
  box-shadow: 0 6px 22px -6px var(--h1);
}
.homie-page .clip:hover { border-color: var(--h1); }
.homie-page .clip-status a { color: var(--h1); }

/* section headings and the live panel */
.homie-page .section-head h2 {
  background: linear-gradient(100deg, var(--h1), var(--h2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}
.homie-page .player { border-color: color-mix(in srgb, var(--h1) 34%, transparent); }

/* small bits */
.homie-page ::selection { background: var(--h1); color: #0b0b0d; }
.homie-page .back:hover { color: var(--h1); }
.homie-page footer a:hover { color: var(--h1); }
.homie-page .btn-glass:hover { border-color: var(--h1); }

/* the live pill and the stream title share this line, so let it
   wrap cleanly instead of the two running into each other */
.homie-page .lede {
  max-width: 620px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.homie-tabs {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.homie-tab {
  position: relative;
  border-radius: 100px;
  padding: 11px 24px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border: 1px solid var(--glass-line);
  transition: color .2s, border-color .2s, transform .16s ease;
  overflow: hidden;
  isolation: isolate;
}
.homie-tab:hover { transform: translateY(-2px); color: var(--text); }

/* the tint sits behind the label and fades up when selected */
.homie-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--h1), var(--h2));
  opacity: 0;
  transition: opacity .25s ease;
  z-index: -1;
}
.homie-tab.is-on {
  color: #0b0b0d;
  border-color: transparent;
  box-shadow: 0 8px 26px -10px var(--h1);
}
.homie-tab.is-on::after { opacity: 1; }

.homie-panel { padding: 26px; margin-bottom: 20px; }

.homie-glow {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: var(--h1);
  filter: blur(110px);
  opacity: .30;
  top: -180px; right: -100px;
  pointer-events: none;
}

.homie-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.homie-av {
  width: 74px; height: 74px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid var(--h1);
  box-shadow: 0 0 26px -4px var(--h1);
}

.homie-text { flex: 1 1 220px; min-width: 0; }

.homie-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.homie-top h3 { font-size: 23px; }

.homie-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--glass-line);
  border-radius: 100px;
  padding: 4px 11px;
}
.homie-live.is-live { color: #fff; border-color: rgba(255,47,78,.45); }
.homie-live.is-live .dot {
  background: #ff2f4e;
  animation: ping 1.7s cubic-bezier(.4,0,.6,1) infinite;
}

.homie-sub {
  color: var(--muted);
  font-size: 14.5px;
  margin: 6px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.homie-acts { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-homie {
  background: linear-gradient(100deg, var(--h1), var(--h2));
  color: #0b0b0d;
  box-shadow: 0 8px 24px -9px var(--h1);
}
.btn-homie:hover { box-shadow: 0 14px 34px -9px var(--h1); }

/* ════════════════════════════════════════════════════════════
   DISCORD
   ════════════════════════════════════════════════════════════ */
.discord-panel { padding: 34px; }

.discord-glow {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: var(--c2);
  filter: blur(110px);
  opacity: .35;
  top: -190px; right: -110px;
  pointer-events: none;
}

.discord-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.discord-icon {
  width: 62px; height: 62px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: #c9c4ff;
  flex: none;
}

.discord-text { flex: 1 1 260px; }
.discord-text h2 { font-size: 26px; margin: 9px 0 7px; }
.discord-text p  { color: var(--muted); margin: 0; font-size: 15px; }

/* ════════════════════════════════════════════════════════════
   LINKS
   ════════════════════════════════════════════════════════════ */
.link-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 13px;
}

.link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 19px;
  border-radius: var(--r);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform .18s ease, border-color .18s ease;
}
.link:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.22); }
.link .ico { font-size: 17px; opacity: .85; }
.link .arrow { margin-left: auto; color: var(--muted); font-size: 15px; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 50px auto 0;
  padding: 26px 20px 50px;
  border-top: 1px solid var(--glass-line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.sep { opacity: .45; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE / MOTION
   ════════════════════════════════════════════════════════════ */
@media (max-width: 620px) {
  .nav-links { display: none; }
  .hero { padding: 60px 20px 48px; }
  .discord-panel { padding: 24px; }
  .discord-body { flex-direction: column; align-items: flex-start; }
  .discord-body .btn { width: 100%; justify-content: center; }
}

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