:root {
  --bg: #0b0a0d;
  --card: rgba(255, 255, 255, .045);
  --card-hover: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .09);
  --gold: #e2b65a;
  --gold-soft: rgba(226, 182, 90, .16);
  --text: #f3efe8;
  --muted: #9d968b;
  --radius: 18px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold); text-underline-offset: 3px; }
.hidden { display: none !important; }

/* Blurred cover art behind everything; falls back to a warm glow. */
.backdrop {
  position: fixed; inset: -80px; z-index: -1;
  background: radial-gradient(circle at 30% 10%, #2a2010 0%, var(--bg) 55%) center / cover;
  filter: blur(70px) saturate(1.3) brightness(.45);
  transition: background-image 1.2s ease;
}

.radio { max-width: 1180px; margin: 0 auto; padding: 22px 20px 56px; }
.radio-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
h1 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.logo-mark { width: 12px; height: 12px; border-radius: 3px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 18px var(--gold); }
h2 { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.listeners { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 13px; white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* Start screen */
.gate { max-width: 560px; margin: 8vh auto 0; text-align: center; }
.gate-title { font-size: 30px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text); margin: 22px 0 8px; }
.gate p { color: var(--muted); margin: 0 0 14px; }
.gate-note { font-size: 13px; }
.play-big { width: 104px; height: 104px; border-radius: 50%; border: 0; cursor: pointer; background: var(--gold); color: #1a1407; display: inline-grid; place-items: center; box-shadow: 0 0 0 0 rgba(226, 182, 90, .5), 0 18px 50px rgba(226, 182, 90, .28); animation: ring 2.4s infinite; transition: transform .2s; }
.play-big:hover { transform: scale(1.06); }
.play-big svg { width: 44px; height: 44px; fill: currentColor; margin-left: 4px; }
@keyframes ring { 70% { box-shadow: 0 0 0 26px rgba(226, 182, 90, 0), 0 18px 50px rgba(226, 182, 90, .28); } 100% { box-shadow: 0 0 0 0 rgba(226, 182, 90, 0), 0 18px 50px rgba(226, 182, 90, .28); } }

/* Now playing */
.hero { position: relative; display: flex; gap: 32px; align-items: center; padding: 28px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(18px); overflow: hidden; }
.cover-wrap { position: relative; flex: 0 0 260px; aspect-ratio: 1; }
.cover { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: #15131a; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; animation: coverin .6s ease; }
.hero:hover .cover { transform: scale(1.03) rotate(-1deg); }
@keyframes coverin { from { opacity: 0; transform: scale(1.08); } }
.meta { flex: 1; min-width: 0; }
.chan { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.chan a { color: inherit; }
.title { margin-top: 16px; font-size: clamp(26px, 4.2vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.artist { margin-top: 8px; font-size: 20px; color: var(--gold); overflow-wrap: anywhere; }
.album { margin-top: 2px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.meta.swap .title, .meta.swap .artist, .meta.swap .album { animation: swap .5s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }

.eq { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin: 22px 0 12px; }
.eq i { width: 5px; height: 4px; border-radius: 3px; background: var(--gold); opacity: .35; }
.eq.on i { opacity: 1; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(1) { animation-duration: .9s; } .eq i:nth-child(2) { animation-duration: .6s; }
.eq i:nth-child(3) { animation-duration: 1.1s; } .eq i:nth-child(4) { animation-duration: .7s; }
.eq i:nth-child(5) { animation-duration: .95s; } .eq i:nth-child(6) { animation-duration: .65s; }
.eq i:nth-child(7) { animation-duration: 1.2s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 26px; } }

.bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--gold), #fff1c9); transition: width 1s linear; }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; font-variant-numeric: tabular-nums; }

/* DJ break: the cover gives way to a pulsing microphone. */
.onair { position: absolute; inset: 0; display: none; place-items: center; border-radius: 16px; background: radial-gradient(circle, #3a1420, #15131a 70%); }
.onair b { font-size: 72px; font-weight: 400; position: relative; }
.onair span { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 2px solid #ff5c7a; animation: wave 2s infinite; }
.onair span:nth-child(2) { animation-delay: 1s; }
@keyframes wave { from { transform: scale(.8); opacity: .9; } to { transform: scale(2); opacity: 0; } }
.hero.break .onair { display: grid; }
.hero.break .chan { background: rgba(255, 92, 122, .16); color: #ff8ba0; }
.hero.break .eq i { background: #ff8ba0; }

/* Live reactions float up over the hero for everyone. */
.floaters { position: absolute; inset: 0; pointer-events: none; }
.floaters span { position: absolute; bottom: -10px; font-size: 30px; animation: floatup 2.6s ease-out forwards; }
@keyframes floatup { 10% { opacity: 1; } to { transform: translateY(-260px) rotate(var(--r, 10deg)) scale(1.5); opacity: 0; } }

/* Controls */
.controls { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 18px 0 30px; padding: 12px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 17px; cursor: pointer; }
.icon-btn:hover { background: var(--card-hover); }
.controls input[type=range] { flex: 1 1 110px; max-width: 200px; min-width: 0; accent-color: var(--gold); }
.reactions { display: flex; gap: 4px; margin-left: auto; }
.reactions button { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; font-size: 20px; cursor: pointer; transition: transform .15s, background .15s; }
.reactions button:hover { background: var(--card-hover); transform: translateY(-3px) scale(1.15); }
.reactions button:active { transform: scale(.9); }
.skip { position: relative; overflow: hidden; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--gold); background: transparent; color: var(--gold); font: inherit; font-weight: 600; cursor: pointer; }
.skip-fill { position: absolute; inset: 0; width: 0; background: var(--gold-soft); transition: width .4s ease; }
.skip-label { position: relative; white-space: nowrap; }
.skip:hover:not(:disabled) { background: var(--gold-soft); }
.skip:disabled { cursor: default; opacity: .75; }

/* Channel vote + history */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.panel { min-width: 0; }
.channels { display: grid; gap: 10px; }
.chan-btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.chan-btn:hover:not(:disabled) { transform: translateX(4px); background: var(--card-hover); }
.chan-btn:disabled { opacity: .5; cursor: default; }
.chan-btn.on { border-color: var(--gold); }
.chan-btn.mine .chan-votes { color: var(--gold); }
.chan-fill { position: absolute; inset: 0; width: 0; background: var(--gold-soft); transition: width .5s ease; }
.chan-name, .chan-votes { position: relative; }
.chan-name { font-weight: 600; }
.chan-name small { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: #1a1407; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chan-votes { color: var(--muted); font-size: 13px; white-space: nowrap; }
.hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }

.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: var(--card); border: 1px solid transparent; animation: swap .5s ease; }
.history img, .history .ph { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #15131a; }
.history div { min-width: 0; }
.history b, .history span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history b { font-weight: 600; font-size: 14px; }
.history span { color: var(--muted); font-size: 13px; }
.history .empty { color: var(--muted); font-size: 13px; background: transparent; padding: 0; }

/* DJ console (shares this stylesheet) */
.btn { padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.btn:hover:not(:disabled) { background: var(--card-hover); }
.btn-gold { border-color: var(--gold); color: var(--gold); }
.field { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--text); font: inherit; margin-right: 8px; }
.now { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.dj-now { display: block; }
.dj-now .title { font-size: 26px; margin-top: 12px; }
.dj-console h2 { margin-top: 30px; }
.dj-console .controls { margin: 0; }
.dj-console .controls input[type=range] { max-width: none; }
.dj-console .channels { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.monitor { width: 100%; height: 760px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
code { color: var(--gold); }

@media (max-width: 980px) { .grid { grid-template-columns: 1fr 1fr; } .grid .panel:last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .hero { flex-direction: column; align-items: stretch; padding: 18px; gap: 20px; }
  .cover-wrap { flex: none; width: 100%; max-width: 340px; margin: 0 auto; }
  .grid { grid-template-columns: 1fr; }
  .reactions { margin-left: 0; order: 3; width: 100%; justify-content: space-between; }
  .skip { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Hunting-ground tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.tag:hover { background: var(--card-hover); transform: translateY(-2px); }
.tag b { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; text-align: center; }
.tag.mine { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.tag.mine b { background: var(--gold); color: #1a1407; }
.tag-add { margin-top: 12px; padding: 7px 12px; border-radius: 999px; border: 1px dashed var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.tag-add:hover { color: var(--gold); border-color: var(--gold); }
.spot-picker { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.spot-picker .field { width: 100%; margin: 0; }
.spot-list { max-height: 260px; overflow-y: auto; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.spot-list h3 { flex: 0 0 100%; margin: 8px 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spot-list .tag { font-weight: 500; padding: 5px 10px; }
.floaters .float-tag { padding: 6px 14px; border-radius: 999px; background: var(--gold); color: #1a1407; font-size: 15px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 24px rgba(226, 182, 90, .35); }

.meter { flex: 1 1 120px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: linear-gradient(90deg, #4ade80, var(--gold), #ff5c7a); transition: width .08s linear; }

.mic-state { margin-top: 14px; font-size: 28px; font-weight: 800; letter-spacing: -.01em; color: var(--gold); font-variant-numeric: tabular-nums; }
.mic-state.live { color: #ff5c7a; animation: onairpulse 1.4s ease-in-out infinite; }
@keyframes onairpulse { 50% { opacity: .55; } }

/* Chat */
.col { display: grid; gap: 26px; align-content: start; min-width: 0; }
.chat { display: flex; flex-direction: column; }
.chat-log { list-style: none; margin: 0; padding: 12px; height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; border-radius: 14px 14px 0 0; background: var(--card); border: 1px solid var(--line); border-bottom: 0; }
.chat-log:empty::before { content: 'No messages yet. Say hi.'; color: var(--muted); font-size: 13px; }
.chat-log li { animation: swap .3s ease; }
.chat-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.chat-head b { color: var(--gold); overflow-wrap: anywhere; }
.chat-head span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.chat-head time { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.chat-log p { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.chat-form { padding: 10px; border-radius: 0 0 14px 14px; background: var(--card); border: 1px solid var(--line); }
.chat-form .field { width: 100%; min-width: 0; margin: 0; }
.chat-name { margin-bottom: 8px !important; }
.chat-row { display: flex; gap: 8px; }
.chat-row .btn { flex: none; }
.chat-form .hint:empty { display: none; }

/* Stream channels have no known song length. */
.chan-name em { display: block; margin-top: 1px; font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.livestream .times { visibility: hidden; }
.livestream .bar-fill { width: 100% !important; opacity: .3; transition: none; }

.cover:empty::after { content: "¶B"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 96px; color: var(--gold); opacity: .35; }
