:root {
  color-scheme: dark;
  font-family: system-ui, "Segoe UI", Tahoma, sans-serif;
  --bg: #151215;
  --panel: #211b1e;
  --line: #4a383b;
  --text: #fff3e8;
  --muted: #dac5c2;
  --orange: #ff9b63;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 90% 10%, #3c241e 0, transparent 45%), var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}
header {
  display: flex;
  padding: 14px max(20px, calc((100vw - 1100px) / 2));
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #181417;
  border-bottom: 1px solid var(--line);
}
header strong { font-size: 1.3rem; letter-spacing: 0.04em; white-space: nowrap; }
header strong span, a { color: var(--orange); }
main { max-width: 1140px; padding: 28px 20px; margin: auto; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.2; margin: 10px 0; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
.intro, .detail, .status, .empty, .tip { color: var(--muted); }
.intro { margin-bottom: 22px; }
.layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 14px; }
section { background: var(--panel); padding: 18px; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.section-heading, .row, .fader { display: flex; align-items: center; gap: 8px; }
.section-heading, .fader { justify-content: space-between; }
.section-heading { flex-wrap: wrap; }
form { margin-top: 14px; }
label { display: block; font-weight: 650; font-size: 0.92rem; margin-bottom: 5px; }
button, .button, input, select { font: inherit; border-radius: 9px; min-height: 42px; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid transparent;
  color: #24110b;
  background: var(--orange);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}
button:hover:not(:disabled), .button:hover { filter: brightness(1.13); }
button:disabled { opacity: 0.45; cursor: default; }
.secondary { color: var(--text); background: #2a2327; border-color: var(--line); }
input:not([type=range]), select { padding: 6px 10px; color: var(--text); background: #191518; border: 1px solid var(--line); }
form input { flex: 1; width: 0; min-width: 0; }
input[type=range] { width: 100%; accent-color: var(--orange); min-height: 30px; margin: 0; }
select, meter { width: 100%; }
select { margin-bottom: 8px; }
:focus-visible { outline: 2px solid #ffd0ad; outline-offset: 3px; }
.status { margin: 10px 0; min-height: 1.6em; overflow-wrap: anywhere; }
.detail { margin: 6px 0 9px; font-size: 0.87rem; }
.source { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.level { margin-top: 10px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 0.85rem; }
.pill.active { border-color: #75af93; color: #a6e9c8; background: #18251f; }
ol { padding-inline-start: 24px; margin-bottom: 0; }
li { padding: 7px 0; border-bottom: 1px solid var(--line); }
li .row { justify-content: space-between; }
li .track { min-width: 0; width: 100%; justify-content: flex-start; text-align: start; overflow-wrap: anywhere; }
li .track[aria-current=true] { border-color: var(--orange); color: var(--orange); }
.empty { margin-top: 12px; }
.tip { margin-top: 14px; font-size: 0.9rem; }
.player-page { max-width: 800px; }
.video { background: #0f0d0f; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
#external { margin-inline-start: 12px; }
[hidden] { display: none !important; }
.hero {
  padding: 28px clamp(18px, 4vw, 42px);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: radial-gradient(ellipse at 100% 0%, #603220 0, transparent 68%), #22181b;
}
.hero .intro { margin-bottom: 12px; }
.setup { font-size: .9rem; color: var(--muted); }
.setup summary { width: fit-content; color: var(--orange); cursor: pointer; }
.setup li { border: 0; padding: 3px 0; }
header strong { display: flex; align-items: center; gap: .36em; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: var(--orange);
  margin-inline-end: .3em;
}
.brand-mark b { width: 3px; height: 9px; background: #281510; border-radius: 4px; }
.brand-mark b:nth-child(2) { height: 17px; }
.brand-mark b:nth-child(3) { height: 13px; }
.count, output { color: var(--orange); font-variant-numeric: tabular-nums; }
.count { margin-inline-start: .4em; font-size: .8rem; }
section { box-shadow: 0 12px 28px #09060945; }
#queue { max-height: 27rem; overflow: auto; scrollbar-color: var(--line) var(--panel); }
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  header, main { padding-inline: 12px; }
  section { padding: 14px; }
}
