:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-elevated: #111113;
  --fg: #f4f4f5;
  --fg-secondary: #a1a1aa;
  --fg-muted: #71717a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 28px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --like: #4ade80;
  --like-bg: rgba(74, 222, 128, 0.1);
  --dislike: #fb7185;
  --dislike-bg: rgba(251, 113, 133, 0.1);
  --skip: #d4d4d8;
  --skip-bg: rgba(255, 255, 255, 0.06);
  --focus: #fafafa;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.75;
}

/* Soft prism wash — barely there */
.prism {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.prism-rays {
  position: absolute;
  top: -12%;
  right: -6%;
  width: min(560px, 42vw);
  height: min(560px, 42vw);
  background: conic-gradient(
    from 200deg at 50% 50%,
    rgba(255, 120, 90, 0.55) 0deg,
    rgba(255, 200, 90, 0.35) 50deg,
    rgba(90, 220, 180, 0.4) 110deg,
    rgba(90, 170, 255, 0.45) 160deg,
    rgba(150, 120, 255, 0.4) 210deg,
    transparent 250deg,
    transparent 360deg
  );
  filter: blur(42px) saturate(0.9);
  opacity: 0.14;
  transform: rotate(-12deg);
  mask-image: radial-gradient(closest-side, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, transparent 72%);
}

.prism-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 35% at 92% 4%, rgba(120, 140, 255, 0.07), transparent 60%),
    linear-gradient(180deg, transparent 0%, var(--bg) 68%);
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 28px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-name {
  font-weight: 600;
  font-size: 15px;
}

.ghost-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-secondary);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--fg);
}

.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.view[hidden] {
  display: none !important;
}

/* Start view */
#view-start {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.lede {
  margin: 0;
  color: var(--fg-secondary);
  font-size: 15.5px;
  max-width: 40ch;
}

.faves-form {
  background: rgba(17, 17, 19, 0.88);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-soft);
  padding: 8px;
  backdrop-filter: blur(16px);
}

.field-stack {
  display: grid;
  gap: 4px;
}

.field {
  display: grid;
  gap: 6px;
  padding: 12px 14px 10px;
  border-radius: var(--radius-sm);
  transition: background 160ms var(--ease);
}

.field:focus-within {
  background: rgba(255, 255, 255, 0.04);
}

.field-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--fg);
  caret-color: #a1a1aa;
}

.input::placeholder {
  color: #52525b;
}

.typeahead {
  position: relative;
}

.typeahead-menu {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(17, 17, 19, 0.96);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.typeahead-option {
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.typeahead-option[aria-selected="true"],
.typeahead-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.typeahead-name {
  font-size: 14px;
  color: var(--fg);
}

.typeahead-hint {
  font-size: 11px;
  color: var(--fg-muted);
}

.typeahead-empty {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--fg-muted);
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px;
}

.hint {
  margin: 0;
  font-size: 13px;
  color: var(--dislike);
  padding: 0 6px;
}

.primary-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: #fafafa;
  color: #09090b;
  min-height: 46px;
  padding: 0 16px;
  font-weight: 550;
  font-size: 14px;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease), background 160ms var(--ease);
}

.primary-btn:hover:not(:disabled) {
  background: #fff;
}

.primary-btn:active:not(:disabled) {
  transform: scale(0.985);
}

.primary-btn:disabled {
  opacity: 0.72;
  cursor: default;
}

.primary-btn.is-loading .btn-label {
  opacity: 0;
}

.primary-btn .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(9, 9, 11, 0.2);
  border-top-color: #09090b;
  animation: spin 0.7s linear infinite;
  position: absolute;
}

.primary-btn.is-loading .btn-spinner {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Play view */
#view-play {
  width: 100%;
  padding: 8px 0 24px;
}

.play-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.sidebar {
  display: grid;
  gap: 22px;
  padding-top: 8px;
}

.sidebar-block {
  display: grid;
  gap: 10px;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-title {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.count {
  font-size: 12px;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

.seed-list,
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.seed-list li,
.history-list li {
  font-size: 13.5px;
  letter-spacing: -0.01em;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  color: var(--fg);
  backdrop-filter: blur(8px);
}

.history-list {
  max-height: min(48vh, 420px);
  overflow: auto;
  padding-right: 2px;
}

.history-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: rise 280ms var(--ease) both;
}

.history-list li.history-item {
  cursor: pointer;
  transition: background 140ms var(--ease), border-color 140ms var(--ease),
    transform 120ms var(--ease);
}

.history-list li.history-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.history-list li.history-item:active {
  transform: scale(0.99);
}

.history-list li.history-item:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.history-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-empty {
  color: var(--fg-muted) !important;
  background: transparent !important;
  border-style: dashed !important;
  cursor: default !important;
  pointer-events: none;
}

.tag {
  flex: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
}

.tag-like {
  color: var(--like);
  background: var(--like-bg);
}

.tag-dislike {
  color: var(--dislike);
  background: var(--dislike-bg);
}

.tag-skip {
  color: var(--skip);
  background: var(--skip-bg);
}

.stage {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.card {
  background: rgba(17, 17, 19, 0.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 36px);
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: 20px;
  backdrop-filter: blur(18px);
  transition: transform 240ms var(--ease), opacity 240ms var(--ease), box-shadow 240ms var(--ease);
}

.card.is-busy,
.actions.is-busy {
  opacity: 0.72;
}

.actions.is-busy {
  pointer-events: none;
}

.card.is-swap {
  animation: cardIn 320ms var(--ease);
}

@keyframes cardIn {
  from {
    opacity: 0.4;
    transform: translateY(8px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-secondary);
}

.card-index {
  font-size: 12px;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

.artist-block {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 140px;
}

.artist-kicker {
  margin: 0;
  font-size: 13px;
  color: var(--fg-muted);
}

.artist-name {
  margin: 0;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.artist-sub {
  margin: 0;
  color: var(--fg-secondary);
  font-size: 14px;
}

.previews {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.previews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.previews-title {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.previews-status {
  font-size: 12px;
  color: var(--fg-muted);
  text-align: right;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-progress {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.preview-progress-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.preview-progress-fill {
  display: block;
  height: 100%;
  width: 10%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a1a1aa, #fafafa);
  transition: width 280ms var(--ease);
}

.preview-progress.is-error .preview-progress-fill {
  background: #fb7185;
}

.preview-progress.is-done .preview-progress-fill {
  background: #4ade80;
}

.preview-progress-msg {
  margin: 0;
  font-size: 12.5px;
  color: var(--fg-secondary);
  letter-spacing: -0.01em;
}

.preview-progress-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  max-height: 7.5rem;
  overflow: auto;
}

.preview-progress-log li {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  padding-left: 10px;
  position: relative;
}

.preview-progress-log li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.preview-progress-log li[data-kind="step"]::before {
  background: #a1a1aa;
}

.preview-progress-log li[data-kind="done"] {
  color: #86efac;
}

.preview-progress-log li[data-kind="done"]::before {
  background: #4ade80;
}

.preview-progress-log li[data-kind="error"] {
  color: #fda4af;
}

.preview-progress-log li[data-kind="error"]::before {
  background: #fb7185;
}

.preview-progress-log li[data-kind="detail"] {
  opacity: 0.75;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
}

.preview-list {
  display: grid;
  gap: 8px;
}

.preview-seek {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.preview-time {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--fg-muted);
  min-width: 2.4em;
}

.preview-time:last-child {
  text-align: right;
}

.preview-seek-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
  margin: 0;
  accent-color: #fafafa;
}

.preview-seek-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: transparent;
}

.preview-seek-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  border: 0;
  background: #fafafa;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 120ms var(--ease);
}

.preview-seek-range::-webkit-slider-thumb:hover {
  transform: scale(1.08);
}

.preview-seek-range::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
}

.preview-seek-range::-moz-range-progress {
  height: 4px;
  border-radius: 99px;
  background: rgba(250, 250, 250, 0.55);
}

.preview-seek-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fafafa;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.preview-seek-range:disabled {
  opacity: 0.45;
  cursor: default;
}

.preview-volume {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 4px 10px 2px;
}

.preview-mute {
  appearance: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.preview-mute:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.preview-volume-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
  margin: 0;
  accent-color: #fafafa;
}

.preview-volume-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: transparent;
}

.preview-volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  border: 0;
  background: #fafafa;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.preview-volume-range::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
}

.preview-volume-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fafafa;
}

.preview-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.preview-row.is-skeleton {
  pointer-events: none;
}

.preview-cover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  flex: none;
}

.preview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.preview-title {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-title:hover {
  opacity: 0.8;
}

.preview-artist {
  font-size: 12px;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-line {
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  width: 70%;
}

.preview-line.short {
  width: 42%;
  height: 8px;
  opacity: 0.7;
}

.preview-play-slot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.preview-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.preview-play {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}

.preview-play:hover {
  background: rgba(255, 255, 255, 0.1);
}

.preview-play[data-playing="true"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.preview-open {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.preview-open:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}

.preview-empty {
  margin: 0;
  font-size: 13px;
  color: var(--fg-muted);
  padding: 8px 2px;
}

.preview-debug {
  margin-top: 4px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--fg-muted);
  font-size: 11px;
}

.preview-debug summary {
  cursor: pointer;
  color: var(--fg-secondary);
  font-weight: 500;
}

.preview-debug pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  line-height: 1.45;
  color: #d4d4d8;
  max-height: 180px;
  overflow: auto;
}

.preview-player {
  margin-top: 2px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  display: none;
}

.preview-player.is-open {
  display: block;
}

.preview-player iframe {
  display: block;
  width: 100%;
  height: 190px;
  border: 0;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ghost-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rate-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  min-height: 52px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease),
    color 160ms var(--ease);
}

.rate-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.rate-btn:active {
  transform: scale(0.98);
}

.rate-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.rate-icon {
  display: inline-flex;
  opacity: 0.9;
}

.rate-icon svg {
  display: block;
}

.rate-like:hover {
  border-color: rgba(74, 222, 128, 0.4);
  background: var(--like-bg);
  color: var(--like);
}

.rate-dislike:hover {
  border-color: rgba(251, 113, 133, 0.4);
  background: var(--dislike-bg);
  color: var(--dislike);
}

.rate-skip:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--skip-bg);
}

.keys-hint {
  margin: 0;
  text-align: center;
  color: var(--fg-muted);
  font-size: 12px;
}

kbd {
  display: inline-block;
  min-width: 1.4em;
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  font: 500 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--fg-secondary);
}

.stage-error {
  margin: 0;
  text-align: center;
  color: var(--dislike);
  font-size: 13px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-top: 18px;
  color: var(--fg-muted);
  font-size: 12px;
}

.dot {
  opacity: 0.5;
}

@media (max-width: 820px) {
  .play-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sidebar {
    order: 2;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .sidebar-block:first-child {
    grid-column: 1 / -1;
  }

  .history-list {
    max-height: 220px;
  }

  .prism-rays {
    opacity: 0.1;
  }
}

@media (max-width: 560px) {
  .app {
    padding: 14px 14px 22px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .rate-btn {
    justify-content: flex-start;
    padding-left: 16px;
  }

  .keys-hint {
    display: none;
  }

  .card {
    min-height: 0;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
