:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0b0d;
  color: #f4f4f5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #23150f 0, #0b0b0d 34rem); }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1120px, calc(100% - 28px)); margin: 0 auto; padding: 32px 0 60px; }
.card { background: rgba(24,24,27,.92); border: 1px solid #303036; border-radius: 18px; padding: 20px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.hidden { display: none !important; }
.logo { font-size: 34px; font-weight: 900; letter-spacing: -1.5px; }
.logo span { color: #ff5500; }
.logo.small { font-size: 23px; }
h1 { margin: 12px 0 8px; font-size: clamp(29px, 5vw, 50px); line-height: 1; }
h2 { margin-top: 0; }
h3 { margin-top: 0; }
p { line-height: 1.55; }
.muted { color: #9f9fa9; }
label { display: grid; gap: 7px; font-size: 14px; color: #b7b7bf; }
input { width: 100%; border: 1px solid #3a3a42; border-radius: 11px; padding: 12px 13px; background: #101012; color: white; outline: none; }
input:focus { border-color: #ff6a1a; box-shadow: 0 0 0 3px rgba(255,85,0,.12); }
button { border: 1px solid #3c3c43; border-radius: 11px; padding: 11px 14px; background: #27272c; color: #f4f4f5; }
button:hover { background: #323238; }
button.primary { background: #ff5500; border-color: #ff5500; color: white; font-weight: 750; }
button.primary:hover { background: #ff681f; }
.lobby { max-width: 560px; margin: 10vh auto 0; }
.lobby-actions { display: grid; gap: 12px; margin-top: 18px; }
.join-row, .track-row, .top-actions, .syncbar { display: flex; gap: 10px; align-items: center; }
.join-row input, .track-row input { flex: 1; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; }
.main-column { display: grid; gap: 18px; }
.player-card { min-height: 280px; }
#playerMount iframe { display: block; width: 100%; height: 166px; border: 0; border-radius: 12px; overflow: hidden; background: #111; }
.empty-player { min-height: 166px; display: grid; place-items: center; text-align: center; border: 1px dashed #3b3b43; border-radius: 12px; color: #81818b; padding: 24px; }
.syncbar { margin-top: 16px; justify-content: space-between; }
.pill { display: inline-flex; align-items: center; border: 1px solid #3c3c43; border-radius: 999px; padding: 4px 9px; color: #c9c9d0; font-size: 12px; }
.error { color: #ff8d8d; margin-bottom: 0; }
.members-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.members-card li { padding: 10px 11px; border-radius: 10px; background: #111114; border: 1px solid #2d2d32; display: flex; justify-content: space-between; gap: 10px; }
.members-card li.me::after { content: "du"; color: #ff7a36; font-size: 12px; }
.help p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .shell { width: min(100% - 18px, 1120px); padding-top: 14px; }
  .grid { grid-template-columns: 1fr; }
  .members-card { order: -1; }
  .topbar, .top-actions, .track-row, .syncbar { align-items: stretch; flex-direction: column; }
  .topbar { align-items: flex-start; }
  .top-actions { width: 100%; }
  .join-row { align-items: stretch; flex-direction: column; }
}
