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

:root {
  --bg: #0b0612;
  --bg-2: #130a1f;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 210, 235, 0.10);
  --line-2: rgba(255, 210, 235, 0.18);
  --text: #fbf3ff;
  --muted: #b9a6c9;
  --berry: #ff3d8b;
  --berry-deep: #c2185b;
  --blue: #7c6cff;
  --leaf: #3ddc97;
  --gold: #ffcf5a;
  --loss: #ff6b6b;
  --live: #ff2e63;
  --radius: 18px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(124, 108, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 61, 139, 0.14), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--body);
  overflow-x: hidden;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

#berries { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .nav, .footer { position: relative; z-index: 1; }

/* ── NAV ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(11, 6, 18, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--display); letter-spacing: -0.02em; }
.brand-avatar {
  border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3a1840, #1a0b22);
  box-shadow: 0 0 0 2px var(--berry); transition: transform .4s cubic-bezier(.3,1.6,.5,1);
}
.brand:hover .brand-avatar { transform: rotate(-14deg) scale(1.12); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; color: var(--muted); white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6b5a7a; flex: none; }
body[data-live="true"] .live-pill { color: #fff; background: var(--live); border-color: var(--live); box-shadow: 0 0 24px rgba(255, 46, 99, .5); }
body[data-live="true"] .dot { background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }

/* ── HERO ────────────────────────────────────────── */
.hero { padding: clamp(48px, 9vw, 120px) var(--gutter) 56px; min-height: min(calc(100vh - 140px), 860px); display: grid; align-content: center; }
.hero-offline { display: grid; gap: 48px; align-items: center; }
.hero-scene {
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #1a0b22;
  border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(255, 61, 139, .45);
}
.hero-scene video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 1000px) {
  .hero-offline { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
  .hero-offline .mega { font-size: clamp(64px, 10.5vw, 210px); }
  .hero-scene { transform: rotate(1.2deg); }
}
.hero-avatar {
  width: clamp(96px, 12vw, 136px); height: auto; aspect-ratio: 1; margin-bottom: 26px;
  border-radius: 50%; padding: 4px;
  background:
    radial-gradient(circle at 50% 35%, #3a1840, #1a0b22) content-box,
    linear-gradient(135deg, var(--berry), var(--blue)) border-box;
  box-shadow: 0 18px 50px -18px rgba(255, 61, 139, .65);
}
.eyebrow { color: var(--leaf); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.eyebrow::before { content: "● "; }
.mega { font: 900 clamp(64px, 17vw, 240px)/0.86 var(--display); letter-spacing: -0.055em; text-transform: lowercase; }
.mega-line { display: block; }
.berry-text {
  background: linear-gradient(100deg, var(--berry) 0%, #ff8fc1 35%, var(--blue) 70%, var(--berry) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s ease-in-out infinite;
  padding-bottom: .06em;
}
@keyframes shimmer { 50% { background-position: 100% 0; } }
.tagline { max-width: 560px; margin-top: 26px; font-size: clamp(17px, 2vw, 21px); color: var(--muted); }

.next-up {
  margin-top: 34px; max-width: 520px;
  display: grid; grid-template-columns: 1fr auto; gap: 2px 20px; align-items: end;
}
.next-label { grid-column: 1 / -1; font-size: 11px; color: var(--berry); text-transform: uppercase; letter-spacing: .14em; }
.next-title { font: 700 20px var(--display); letter-spacing: -0.02em; }
.next-when { grid-column: 1; color: var(--muted); font-size: 14px; }
.countdown { grid-column: 2; grid-row: 2 / 4; font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 12px; font-weight: 700; text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s; cursor: pointer; border: 0; font-family: inherit; font-size: 15px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--berry), var(--berry-deep)); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 61, 139, .7); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }

/* live hero */
.hero-live { width: 100%; }
body[data-live="true"] .hero { min-height: auto; padding-top: 32px; }
.live-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--live); font: 900 14px var(--display); letter-spacing: .06em; flex: none; box-shadow: 0 0 30px rgba(255, 46, 99, .5); }
.live-badge .dot { background: #fff; animation: pulse 1.4s infinite; }
.live-title { font: 700 clamp(18px, 2.4vw, 28px)/1.2 var(--display); letter-spacing: -0.02em; }
.live-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
#liveUptime { color: var(--gold); }
.player-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 12px; }
.player { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(255, 61, 139, .45); }
.chat-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #18181b; }
.player iframe, .chat-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── TICKER ──────────────────────────────────────── */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,61,139,.10), rgba(124,108,255,.10)); padding: 12px 0; }
.ticker-track { display: flex; width: max-content; gap: 48px; animation: tick 40s linear infinite; font: 700 14px var(--mono); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.ticker-track span::before { content: ""; display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 48px; background: url("art/berry-1-18.png") center / contain no-repeat; image-rendering: pixelated; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── SECTIONS ────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 110px) var(--gutter) 0; max-width: 1400px; margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font: 700 clamp(28px, 4.4vw, 52px)/1 var(--display); letter-spacing: -0.04em; }
main { counter-reset: section; }
.section { counter-increment: section; }
.num { font-size: .32em; color: var(--berry); vertical-align: super; margin-right: 6px; }
.num::before { content: counter(section, decimal-leading-zero); }
.link-out { color: var(--muted); font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.link-out:hover { color: var(--text); border-color: var(--berry); }
.sub-head { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 48px 0 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(6px); }
.card-title { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 18px; font-weight: 700; }

/* ── SCHEDULE ────────────────────────────────────── */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 16px 14px; min-height: 170px; display: flex; flex-direction: column; gap: 10px; }
.day.today { border-color: var(--berry); box-shadow: inset 0 0 0 1px var(--berry), 0 10px 40px -20px var(--berry); }
.day-name { font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: .1em; display: flex; justify-content: space-between; }
.day-name small { color: var(--muted); font-weight: 500; }
.day.off .day-name { color: var(--muted); }
.slot { border-radius: 12px; padding: 10px; background: linear-gradient(160deg, rgba(255,61,139,.22), rgba(124,108,255,.16)); border: 1px solid rgba(255,61,139,.3); }
.slot-time { font: 700 12px var(--mono); color: var(--gold); }
.slot-title { font-weight: 700; font-size: 14px; line-height: 1.25; margin-top: 4px; }
.slot.now { background: var(--live); border-color: var(--live); }
.slot.now .slot-time { color: #fff; }
.day-off { margin-top: auto; color: var(--muted); font-size: 13px; opacity: .6; }

/* ── CLIPS ───────────────────────────────────────── */
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.clip { position: relative; display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); transition: transform .25s, border-color .25s; }
.clip:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--berry); }
.clip-thumb { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.clip:hover .clip-thumb img { transform: scale(1.06); }
.clip-thumb::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; background: rgba(11,6,18,.45); opacity: 0; transition: opacity .25s; }
.clip:hover .clip-thumb::after { opacity: 1; }
.clip-badge { position: absolute; z-index: 1; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.75); font: 700 11px var(--mono); }
.clip-badge.l { left: 8px; } .clip-badge.r { right: 8px; }
.clip-body { padding: 12px 14px 14px; }
.clip-title { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clip-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.clip.top { grid-column: span 2; grid-row: span 2; }
.clip.top .clip-title { font: 700 20px/1.25 var(--display); letter-spacing: -0.02em; }
.vods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.clips-empty { text-align: center; padding: 48px 24px; }
.clips-empty .big { font: 700 22px var(--display); letter-spacing: -0.02em; margin-bottom: 8px; }
.clips-empty em { color: var(--berry); font-style: normal; }
kbd { font: 700 12px var(--mono); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); }

/* ── CHAT ────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.commands { list-style: none; display: grid; gap: 8px; }
.commands li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid transparent; cursor: pointer; transition: border-color .2s, background .2s; }
.commands li:hover { border-color: var(--line-2); background: var(--surface-2); }
.commands code { font: 700 14px var(--mono); color: var(--berry); min-width: 92px; }
.commands .copied code { color: var(--leaf); }
.commands span { color: var(--muted); font-size: 14px; }
.setup { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.setup div { padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.setup dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); }
.setup dd { font-weight: 700; margin-top: 2px; }
.panel-stack { display: grid; gap: 16px; align-content: start; }
.panel-banner { margin-bottom: 18px; }
.panel-banner img { width: 100%; max-width: 320px; height: auto; border-radius: 12px; }
.about { color: var(--muted); }

/* ── FOOTER ──────────────────────────────────────── */
.footer { margin-top: 110px; padding: 40px var(--gutter) 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; font-size: 14px; transition: background .2s, border-color .2s; }
.footer-links a:hover { background: var(--berry); border-color: var(--berry); }
.pop-count { background: none; border: 0; color: var(--berry); font: inherit; cursor: help; }

.toast { position: fixed; z-index: 20; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 14px 20px; border-radius: 14px; background: var(--live); color: #fff; font-weight: 700; box-shadow: 0 20px 50px -10px rgba(255,46,99,.6); animation: toastIn .4s cubic-bezier(.3,1.5,.5,1); max-width: calc(100vw - 32px); }
.toast a { color: #fff; }
@keyframes toastIn { from { transform: translate(-50%, 30px); opacity: 0; } }

.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 12px; min-height: 44px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1100px) {
  .player-wrap { grid-template-columns: 1fr; }
  .chat-embed { height: 420px; }
}
@media (max-width: 860px) {
  .week { grid-template-columns: 1fr; }
  .day { min-height: 0; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .day-name { min-width: 100px; }
  .day-off { margin: 0; }
  .split { grid-template-columns: 1fr; }
  .clip.top { grid-column: auto; grid-row: auto; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .live-pill { margin-left: auto; }
  .next-up { grid-template-columns: 1fr; }
  .countdown { grid-column: 1; grid-row: auto; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
