:root {
  color-scheme: dark;
  --ink: #f8f5ff;
  --muted: #a9a1b5;
  --pink: #ff2bbd;
  --violet: #8f4dff;
  --cyan: #16e6ff;
  --panel: rgba(9, 5, 18, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.68);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@property --profile-hue {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

* { box-sizing: border-box; }

html { width: 100%; height: 100%; min-width: 320px; overflow: hidden; background: #050208; }

body {
  width: 100%;
  height: 100svh;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: #050208;
  isolation: isolate;
}

button, input { font: inherit; }
button { color: inherit; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #050208 url("/assets/bg.png") center / cover no-repeat;
}

.background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.backdrop::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 1, 8, .32), rgba(4, 1, 8, .76)),
    radial-gradient(circle at 50% 44%, rgba(255, 43, 189, .12), transparent 38%);
}

.backdrop::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.018) 80px),
              repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.012) 80px);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000);
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 30px;
  pointer-events: none;
}

.station-mark, .header-status { pointer-events: auto; }
.station-mark {
  padding: 11px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  line-height: .9;
  letter-spacing: .06em;
  background: rgba(8, 4, 15, .64);
  box-shadow: inset 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.station-mark:hover { border-color: rgba(255,43,189,.55); background: rgba(255,43,189,.1); transform: translateY(-1px); }
.station-mark:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.station-mark span { display: block; color: var(--pink); font-size: .68rem; font-weight: 850; letter-spacing: .24em; }
.station-mark strong { display: block; margin-top: 8px; font-size: 1.55rem; font-weight: 950; letter-spacing: .18em; }

.live-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(8, 4, 15, .64);
  backdrop-filter: blur(14px);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.live-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 18px var(--pink); animation: livePulse 1.6s infinite; }

.header-status { display: flex; align-items: center; gap: 10px; }
.listener-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(8, 4, 15, .64);
  backdrop-filter: blur(14px);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 720;
  letter-spacing: .04em;
}
.listener-badge span + span { padding-left: 12px; border-left: 1px solid var(--line); }
.listener-badge strong { color: var(--ink); font-size: .8rem; }

.radio-shell {
  width: 100%;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 86px 320px 58px;
}

.radio-card-scene {
  --card-sheen-x: 50%;
  --card-sheen-y: 24%;
  position: relative;
  width: min(760px, 100%);
  height: min(720px, 100%);
  min-height: 0;
  perspective: 1900px;
  perspective-origin: 50% 45%;
  isolation: isolate;
}

.radio-card-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8%;
  right: 8%;
  bottom: -26px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  filter: blur(24px);
  opacity: .76;
  transform: scaleX(.9);
  transition: transform .8s cubic-bezier(.2,.72,.18,1), opacity .8s ease;
}

.radio-card-scene:has(.radio-card.is-chat-open)::after { transform: scaleX(.97); opacity: .9; }

.radio-card {
  --card-flip: 0deg;
  --card-tilt-x: 0deg;
  --card-tilt-y: 0deg;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--card-tilt-x)) rotateY(calc(var(--card-flip) + var(--card-tilt-y)));
  transition: transform .92s cubic-bezier(.2,.72,.18,1);
  will-change: transform;
}

.radio-card.is-chat-open { --card-flip: 180deg; }

.radio-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.09);
}

.radio-card-face::after {
  content: "";
  position: absolute;
  z-index: 30;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--card-sheen-x) var(--card-sheen-y), rgba(255,255,255,.12), transparent 35%);
  opacity: .72;
  pointer-events: none;
  mix-blend-mode: screen;
}

.radio-card-back { transform: rotateY(180deg); }

.visualizer-panel {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px clamp(22px, 5vw, 58px) 32px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(150deg, rgba(18, 8, 31, .77), var(--panel));
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.08);
}

.panel-glow { position: absolute; inset: -40% 15% auto; height: 60%; background: var(--pink); filter: blur(150px); opacity: .13; pointer-events: none; }

h1 { margin: 10px 0 4px; text-align: center; font-size: clamp(1.3rem, 2.5vw, 2.1rem); font-weight: 900; letter-spacing: -.035em; }

.visualizer-wrap {
  --bass-scale: 1;
  position: relative;
  width: clamp(220px, calc(100svh - 420px), 410px);
  max-width: 78vw;
  aspect-ratio: 1;
  margin: -5px 0 -10px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
#trapEq,
#ribbon3d { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; }
#ribbon3d { pointer-events: none; }
.visualizer-wrap.three-ribbon-active #trapEq { opacity: 0; }
.visualizer-wrap:not(.three-ribbon-active) #ribbon3d { display: none; }
.visualizer-core {
  position: relative;
  z-index: 1;
  width: clamp(102px, 29%, 126px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 32%, rgba(38,24,62,.96), rgba(7,4,14,.98) 68%);
  box-shadow: 0 0 0 5px rgba(255,43,189,.08), 0 0 38px rgba(255,43,189,.42), inset 0 1px rgba(255,255,255,.15);
  transform: scale(var(--bass-scale));
  transform-origin: center;
  will-change: transform;
}
.visualizer-core::before,
.visualizer-core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.visualizer-core::before { inset: -7px; border: 1px solid rgba(22,230,255,.2); }
.visualizer-core::after { inset: 5px; border: 1px solid rgba(255,43,189,.16); }
.visualizer-core img { position: relative; z-index: 1; display: block; width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.38)); }

.now-playing { width: min(570px, 100%); min-height: 94px; text-align: center; }
.now-playing > span { display: block; color: var(--pink); font-size: .66rem; font-weight: 850; letter-spacing: .22em; text-transform: uppercase; }
.now-playing strong { display: block; max-width: 100%; margin: 8px auto 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(1.05rem, 2.4vw, 1.5rem); }
.now-playing small { color: var(--muted); }

.controls { width: min(560px, 100%); display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.play-button {
  min-width: 142px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  background: linear-gradient(110deg, var(--pink), #9d36ff);
  box-shadow: 0 10px 34px rgba(255,43,189,.28);
  font-weight: 850;
}
.play-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.play-button:focus-visible, .dj-artwork:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.play-icon { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid white; }
.is-playing .play-icon { width: 10px; height: 12px; border: 0; background: linear-gradient(90deg, white 0 35%, transparent 35% 65%, white 65%); }
.volume-control { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.volume-control input { width: 120px; accent-color: var(--pink); }

.card-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 99px;
  color: #f8f5ff;
  background: rgba(10, 5, 18, .72);
  box-shadow: 0 8px 26px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card-switch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card-switch-chat { position: absolute; z-index: 35; top: 24px; right: 26px; color: var(--cyan); }
.card-switch-radio { color: var(--pink); white-space: nowrap; }
.card-switch:hover { border-color: currentColor; background: rgba(255,255,255,.08); box-shadow: 0 10px 30px rgba(0,0,0,.34), 0 0 22px color-mix(in srgb, currentColor, transparent 72%); transform: translateY(-1px); }
.card-switch:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.chat-panel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 34px clamp(24px, 5vw, 58px) 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 10%, rgba(22,230,255,.1), transparent 32%),
    linear-gradient(150deg, rgba(18, 8, 31, .77), var(--panel));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48), inset 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
}

/* Both panels are faces of the same card, not consecutive page sections. */
.radio-card > .radio-card-face {
  position: absolute;
  inset: 0;
  margin: 0;
}

.chat-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.chat-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.chat-kicker { color: var(--cyan); font-size: .64rem; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
.chat-header h2 { margin: 3px 0 0; font-size: 1.4rem; }
.chat-account { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.chat-user { min-width: 0; display: flex; align-items: center; gap: 9px; color: #d9d2e0; font-size: .76rem; font-weight: 760; }
.chat-user img { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.discord-login,
.chat-account button,
.chat-form button,
.chat-clear,
.chat-action {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  color: var(--ink);
  background: #251b38;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}
.discord-login { padding: 10px 14px; background: #5865f2; }
.chat-account button { padding: 7px 10px; color: var(--muted); background: rgba(255,255,255,.04); font-size: .68rem; }
.discord-login:hover, .chat-form button:hover { filter: brightness(1.1); }
.chat-account button:hover, .chat-clear:hover, .chat-action:hover { border-color: var(--pink); color: var(--ink); }
.discord-login:focus-visible,
.chat-account button:focus-visible,
.chat-form button:focus-visible,
.chat-clear:focus-visible,
.chat-action:focus-visible,
.chat-form textarea:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.chat-notice { min-height: 1.2em; margin: 0 0 12px; color: var(--muted); font-size: .76rem; }
.chat-notice.is-error { color: #ff92b6; }
.chat-messages {
  min-height: 100px;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(4, 2, 8, .62);
  scrollbar-color: #56346e transparent;
}
.chat-empty { margin: 0; padding: 28px 10px; color: #837a8d; text-align: center; }
.chat-message { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 10px; border-radius: 10px; }
.chat-message + .chat-message { border-top: 1px solid rgba(255,255,255,.06); }
.chat-message:hover { background: rgba(255,255,255,.025); }
.chat-message-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #251b38; }
.chat-message-main { min-width: 0; }
.chat-message-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.chat-message-name { color: var(--cyan); font-size: .82rem; font-weight: 850; }
.chat-message-time { color: #766d80; font-size: .64rem; }
.chat-message-text { margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; color: #eee8f2; font-size: .88rem; line-height: 1.45; }
.chat-message-actions { display: inline-flex; gap: 6px; margin-left: auto; }
.chat-action { padding: 3px 7px; color: #aca3b5; background: transparent; font-size: .61rem; }
.chat-action[data-action="ban"] { color: #ff9caf; }
.chat-form { margin-top: 12px; }
.chat-form textarea { width: 100%; resize: vertical; min-height: 68px; max-height: 150px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: var(--ink); background: rgba(4, 2, 8, .72); line-height: 1.4; }
.chat-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.chat-form-actions span { color: #7c7387; font-size: .68rem; }
.chat-form button { padding: 9px 18px; border: 0; background: linear-gradient(110deg, var(--pink), #8f4dff); }
.chat-clear { margin-top: 12px; padding: 7px 10px; color: #ff9caf; background: rgba(255,255,255,.03); font-size: .68rem; }
.chat-bans { margin-top: 14px; color: var(--muted); font-size: .72rem; }
.chat-bans summary { width: max-content; cursor: pointer; font-weight: 760; }
.chat-bans summary:hover { color: var(--ink); }
.chat-ban-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; }
.chat-ban-item button { padding: 5px 8px; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; color: var(--cyan); background: transparent; cursor: pointer; font: inherit; font-weight: 800; }

.dj-artwork {
  position: fixed;
  z-index: 25;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .25s ease, filter .25s ease;
}
.dj-artwork:hover { transform: translateY(-5px) scale(1.02); filter: brightness(1.08); }
.dj-artwork img { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 32px rgba(0,0,0,.55)); }
.dj-avatar { left: 16px; bottom: 12px; width: min(280px, 25vw); }
.dj-avatar img { max-height: 48vh; object-fit: contain; object-position: bottom left; border-radius: 18px; }
.artwork-hint { position: absolute; left: 18px; bottom: 10px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; background: rgba(5,2,8,.72); backdrop-filter: blur(10px); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transition: opacity .2s ease; }
.dj-avatar:hover .artwork-hint, .dj-avatar:focus-visible .artwork-hint { opacity: 1; }
.dj-logo { right: 18px; top: 15%; width: min(290px, 25vw); }
.dj-logo img { max-height: 210px; object-fit: contain; object-position: top right; }

.site-footer { position: fixed; z-index: 15; inset: auto 28px 20px; display: flex; justify-content: center; gap: 28px; color: #81798b; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { color: #cbc3d5; text-decoration: none; }
.site-footer a:hover { color: var(--pink); }
.motion-toggle { position: fixed; z-index: 16; right: 28px; bottom: 20px; padding: 0; border: 0; color: #81798b; background: transparent; cursor: pointer; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.motion-toggle:hover { color: #aaa2b2; }
.motion-toggle:focus-visible { outline: 1px solid #81798b; outline-offset: 5px; }
.motion-toggle[aria-pressed="true"] { color: #aaa2b2; }

.profile-dialog { --profile-hue: 0; --profile-accent: hsl(var(--profile-hue) 92% 62%); width: min(650px, calc(100% - 28px)); max-height: min(800px, calc(100svh - 28px)); padding: 0; overflow: visible; border: 1px solid #403744; border-radius: 18px; color: var(--ink); background: #0d0b10; box-shadow: 0 40px 140px #000; animation: profileHueCycle 45s linear infinite; animation-play-state: running; }
.profile-dialog::backdrop { background: rgba(3,1,6,.8); backdrop-filter: blur(12px); }
.profile-card { overflow-x: hidden; overflow-y: auto; max-height: min(800px, calc(100svh - 28px)); border-radius: inherit; }
.dialog-close { position: absolute; z-index: 4; right: 18px; top: 18px; width: 38px; height: 38px; border: 1px solid #63596a; border-radius: 8px; background: #17131a; cursor: pointer; font-size: 1.45rem; line-height: 1; }
.dialog-close:hover { border-color: var(--profile-accent); color: var(--profile-accent); }
.dialog-close:focus-visible { outline: 2px solid var(--profile-accent); outline-offset: 3px; }
.profile-banner { position: relative; min-height: 210px; display: flex; align-items: flex-end; gap: 24px; padding: 54px 38px 32px; overflow: visible; background: linear-gradient(112deg, #251b29 0 2%, #18131b 2% 68%, #221723); border-bottom: 1px solid #3b313e; }
.profile-banner::after { content:""; position:absolute; right: 32px; bottom: 22px; width: 92px; height: 3px; background: var(--profile-accent); opacity: .8; }
.profile-banner > * { position: relative; z-index: 1; }
.profile-avatar-frame { width: 124px; height: 104px; flex: 0 0 124px; border: 1px solid #695c6d; border-radius: 12px; background: linear-gradient(145deg, #2c2530, #120f15); box-shadow: 0 14px 34px rgba(0,0,0,.38); }
.profile-avatar-frame img { position: absolute; z-index: 2; left: 50%; bottom: 0; width: auto; height: 156px; max-width: 150px; object-fit: contain; object-position: center bottom; transform: translateX(-50%); filter: drop-shadow(0 10px 12px rgba(0,0,0,.45)); }
.profile-heading { min-width: 0; padding-bottom: 3px; }
.profile-source { color: var(--profile-accent); font-size: .65rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.profile-banner h2 { margin: 5px 0 2px; font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1; }
.profile-banner p { margin: 0; color: #c2bacb; }
#profileContent { padding: 26px 34px 34px; }
.profile-loading { padding: 24px 34px 0; color: var(--profile-accent); }
.profile-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 28px; }
.profile-facts[hidden], .profile-section[hidden] { display: none; }
.profile-facts div { padding: 14px 16px; border: 1px solid #342e37; border-left: 3px solid var(--profile-accent); border-radius: 5px; background: #141117; }
.profile-facts dt, .profile-section h3 { color: #91899c; font-size: .65rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.profile-facts dd { margin: 4px 0 0; font-weight: 750; }
.profile-section { margin-top: 24px; }
.profile-section h3 { margin: 0 0 10px; }
.profile-section p { margin: 0; color: #d2cbd8; line-height: 1.65; }
.style-tags, .media-links { display: flex; flex-wrap: wrap; gap: 8px; }
.style-tags span { padding: 7px 11px; border: 1px solid #493d4d; border-radius: 5px; color: #e9e1eb; background: #17131a; font-size: .76rem; }
.media-links a { --platform: #8c7f91; display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px 9px 10px; border: 1px solid color-mix(in srgb, var(--platform), transparent 45%); border-radius: 6px; color: #f5f1f6; background: #151217; font-size: .76rem; font-weight: 780; text-decoration: none; }
.platform-logo { width: 18px; height: 18px; flex: 0 0 18px; object-fit: contain; }
.media-links a[data-platform="nightwave"] .platform-logo { border-radius: 4px; box-shadow: 0 0 9px rgba(22, 185, 255, .2); }
.media-links a:hover { border-color: var(--platform); transform: translateY(-1px); }
.media-links a[data-platform="nightwave"] { --platform: #f1a43c; order: -1; }
.media-links a[data-platform="twitch"] { --platform: #9146ff; }
.media-links a[data-platform="youtube"] { --platform: #ff334c; }
.media-links a[data-platform="soundcloud"] { --platform: #ff7700; }
.media-links a[data-platform="mixcloud"] { --platform: #52aad8; }
.media-links a[data-platform="bandlab"] { --platform: #f12c18; }
.media-links a[data-platform="kick"] { --platform: #53fc18; }
.media-links a[data-platform="vimeo"] { --platform: #1ab7ea; }
.media-links a[data-platform="dailymotion"] { --platform: #00aaff; }
.media-links a[data-platform="tiktok"] { --platform: #fe2c55; }
.media-links a[data-platform="instagram"] { --platform: #e1306c; }
.media-links a[data-platform="facebook"] { --platform: #1877f2; }
.media-links a[data-platform="audiomack"] { --platform: #ffa200; }
.media-links a[data-platform="hearthis"] { --platform: #c30d23; }
.media-links a[data-platform="spotify"] { --platform: #1db954; }
.media-links a[data-platform="bandcamp"] { --platform: #629aa9; }
.profile-notice { margin: 28px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--line); color: #827a8b !important; font-size: .72rem; }
.profile-notice a { color: var(--profile-accent); font-weight: 750; text-decoration: none; }
.profile-notice a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes livePulse { 50% { opacity: .35; transform: scale(.8); } }
@keyframes profileHueCycle { to { --profile-hue: 360; } }

.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
.reduce-motion .background-video { display: none; }
.reduce-motion .profile-dialog { animation: profileHueCycle 45s linear infinite !important; }

@media (max-width: 1050px) {
  .radio-shell { padding-inline: clamp(24px, 15vw, 160px); }
  .dj-avatar, .dj-logo { width: 190px; }
}

@media (max-width: 760px) {
  .site-header { padding: 18px; }
  .header-status { align-items: flex-end; flex-direction: column-reverse; }
  .listener-badge { gap: 8px; padding: 7px 10px; font-size: .62rem; }
  .listener-badge span + span { padding-left: 8px; }
  .station-mark strong { font-size: 1.2rem; }
  .radio-shell { padding: 108px 12px 54px; }
  .radio-card-scene { height: 100%; }
  .visualizer-panel { min-height: 0; padding-inline: 18px; border-radius: 26px; }
  .chat-panel { padding: 18px 14px; border-radius: 26px; }
  .chat-header { align-items: flex-start; }
  .chat-header-actions { align-items: flex-end; flex-direction: column-reverse; }
  .chat-account { align-items: flex-end; flex-direction: column; }
  .chat-user span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dj-avatar { width: 132px; left: 4px; bottom: 36px; }
  .dj-avatar img { max-height: 190px; }
  .dj-logo { width: 132px; right: 8px; top: auto; bottom: 74px; }
  .dj-logo img { max-height: 100px; }
  .site-footer { inset: auto auto 12px 12px; justify-content: flex-start; }
  .site-footer span { display: none; }
  .motion-toggle { right: 12px; bottom: 12px; }
  .controls { flex-direction: column; gap: 16px; }
  .profile-dialog { width: calc(100vw - 20px); max-width: calc(100vw - 20px); margin-inline: auto; }
  .profile-banner { min-height: 190px; padding: 56px 22px 24px; gap: 16px; }
  .profile-avatar-frame { width: 96px; height: 86px; flex-basis: 96px; }
  .profile-avatar-frame img { height: 132px; max-width: 118px; }
  .profile-heading { max-width: calc(100% - 112px); }
  .profile-banner h2 { overflow-wrap: anywhere; }
  .profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #profileContent { padding: 22px; }
}

@media (max-width: 420px) {
  .live-badge { font-size: 0; padding: 10px; }
  .live-badge span { margin: 0; }
  .listener-badge { flex-direction: column; align-items: flex-end; gap: 2px; border-radius: 13px; }
  .listener-badge span + span { padding: 0; border: 0; }
  .radio-card-scene { height: 100%; }
  .visualizer-panel { min-height: 0; }
  .visualizer-wrap { width: clamp(210px, calc(100svh - 400px), 350px); max-width: 92vw; margin-top: 2px; }
  .card-switch-chat { top: 18px; right: 18px; padding: 9px; }
  .card-switch-chat span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .card-switch-radio { padding: 8px 10px; font-size: .62rem; }
  .chat-message { grid-template-columns: 32px minmax(0, 1fr); padding-inline: 5px; }
  .chat-message-avatar { width: 30px; height: 30px; }
  .chat-message-actions { width: 100%; margin: 4px 0 0; }
  .profile-banner { align-items: flex-end; }
  .profile-banner h2 { font-size: 1.55rem; }
}

@media (max-height: 700px) {
  .radio-shell { padding-top: 76px; padding-bottom: 48px; }
  .visualizer-panel { padding-top: 22px; padding-bottom: 22px; }
  .visualizer-wrap { width: clamp(200px, calc(100svh - 390px), 310px); }
  .now-playing { min-height: 76px; }
  .controls { padding-top: 14px; }
  .chat-panel { padding-top: 22px; padding-bottom: 20px; }
  .chat-header { margin-bottom: 7px; }
  .chat-notice { margin-bottom: 7px; }
  .chat-messages { min-height: 72px; }
  .chat-form textarea { min-height: 56px; }
  .chat-bans { margin-top: 8px; }
  .chat-clear { margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .background-video { display: none; }
  .profile-dialog { animation: profileHueCycle 45s linear infinite !important; }
}
