:root {
  color-scheme: dark;
  --bg: #000;
  --panel: rgba(12, 16, 18, 0.92);
  --panel-soft: rgba(24, 27, 30, 0.84);
  --text: #f8fbff;
  --muted: #9eb4bf;
  --red: #ff3b48;
  --cyan: #00d4ff;
  --green: #6cff8f;
  --yellow: #ffe86b;
  --line: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 600px;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
  color: inherit;
}

.app-shell {
  position: relative;
  width: 600px;
  height: 600px;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 59, 72, 0.1), transparent 36%),
    #000;
}

body.fullscreen-active .topbar,
body.fullscreen-active .meta-panel,
body.fullscreen-active .controls,
body.fullscreen-active .hint,
body.fullscreen-active #screen-list {
  display: none;
}

body.fullscreen-active .app-shell {
  padding: 0;
  background: #000;
}

body.fullscreen-active .screen {
  display: block;
}

body.fullscreen-active .player-shell {
  position: fixed;
  left: 0;
  top: 131px;
  z-index: 101;
  width: 600px;
  height: 338px;
  border: 0;
  border-radius: 0;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 56px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

h1 {
  width: 430px;
  margin: 0;
  overflow: hidden;
  font-size: 26px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  min-width: 86px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--yellow);
  font-size: 15px;
  font-weight: 950;
  text-align: center;
  background: rgba(255, 232, 107, 0.08);
}

.player-shell {
  position: relative;
  width: 572px;
  height: 276px;
  border: 2px solid rgba(255, 59, 72, 0.5);
  border-radius: 8px;
  overflow: hidden;
  background: #050505;
}

#player,
#player iframe {
  width: 100%;
  height: 100%;
}

.empty-player {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  text-align: center;
  background: #050505;
}

.empty-player strong,
.empty-player span {
  grid-column: 1;
  display: block;
}

.empty-player strong {
  color: var(--red);
  font-size: 34px;
  font-weight: 950;
}

.empty-player span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 850;
}

body.no-queue .empty-player {
  display: grid;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.meta-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8px;
  margin-top: 8px;
}

.meta-panel div {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.meta-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.meta-panel strong {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 7px;
}

#playPause {
  grid-column: 1;
}

#fullscreen {
  grid-column: 2;
}

#toggleAuto {
  grid-column: 3;
}

.command {
  min-height: 41px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  font-size: 15px;
  font-weight: 950;
}

.command.primary {
  border-color: rgba(255, 59, 72, 0.56);
  color: #fff;
  background: rgba(255, 59, 72, 0.22);
}

.focusable {
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.focusable:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.52);
  transform: translateY(-1px);
}

.hint {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.fullscreen-view {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 600px;
  height: 600px;
  pointer-events: none;
  background: #000;
  user-select: none;
}

.fullscreen-catcher {
  position: absolute;
  left: 0;
  top: 469px;
  width: 600px;
  height: 131px;
  border: 0;
  opacity: 0;
  pointer-events: auto;
}

.fullscreen-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  color: rgba(158, 180, 191, 0.82);
  font-size: 20px;
  font-weight: 850;
  text-align: center;
}

.hidden {
  display: none;
}

.list-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.list-top .command {
  min-height: 50px;
}

.queue-list {
  height: 394px;
  margin-top: 10px;
  overflow: hidden;
}

.queue-item {
  width: 100%;
  min-height: 70px;
  margin: 0 0 8px;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: left;
}

.queue-item.current {
  border-color: rgba(255, 59, 72, 0.58);
}

.queue-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-item strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}
