:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --card: rgba(255, 255, 255, 0.92);
  --border: rgba(2, 6, 23, 0.12);
  --text: rgba(15, 23, 42, 0.96);
  --muted: rgba(15, 23, 42, 0.68);
  --shadow: 0 16px 42px rgba(2, 6, 23, 0.12);
  --accent: #2563eb;
  --accent2: #7c3aed;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(860px 540px at 88% 28%, rgba(167, 139, 250, 0.22), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg));
  color: var(--text);
  overflow-x: hidden;
}

.ambient-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-stage__layer,
.ambient-stage__wash {
  position: absolute;
  inset: -6%;
}

.ambient-stage__layer {
  background-image: none;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: blur(30px) saturate(1.24) contrast(1.04);
  transform: scale(1.12);
  transition: opacity 1100ms ease;
  animation: ambientDrift 22s ease-in-out infinite alternate;
}

.ambient-stage__layer.is-active {
  opacity: 0.3;
}

.ambient-stage__wash {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 247, 251, 0.94));
}

body > *:not(.ambient-stage) {
  position: relative;
  z-index: 1;
}

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 12;
  opacity: 0;
  transition: opacity 180ms ease;
}

.confetti.is-on {
  opacity: 1;
}

@keyframes ambientDrift {
  0% {
    transform: scale(1.1) translate3d(-1.5%, -1.5%, 0);
  }
  50% {
    transform: scale(1.16) translate3d(1%, -0.5%, 0);
  }
  100% {
    transform: scale(1.12) translate3d(1.8%, 1.4%, 0);
  }
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 44px;
}

.topbar {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 16px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand__logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.brand__text {
  min-width: 0;
}

.brand__title {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.brand__subtitle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.screen.is-hidden {
  display: none;
}

.home-card,
.play-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--card));
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  touch-action: manipulation;
}

.tab__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tab__icon {
  width: 28px;
  height: 28px;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.tab__icon::before,
.tab__icon::after {
  content: "";
  position: absolute;
}

.tab__icon--all {
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.92);
}

.tab__icon--all::before {
  left: 5px;
  right: 5px;
  top: 7px;
  height: 3px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.78);
  box-shadow: 0 5px 0 rgba(124, 58, 237, 0.72), 0 10px 0 rgba(6, 182, 212, 0.68);
}

.tab__icon--artist {
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2) 42%, transparent 43%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.14)),
    rgba(255, 255, 255, 0.92);
}

.tab__icon--artist::before {
  width: 8px;
  height: 8px;
  left: 50%;
  top: 6px;
  margin-left: -4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
}

.tab__icon--artist::after {
  width: 14px;
  height: 9px;
  left: 50%;
  bottom: 6px;
  margin-left: -7px;
  border-radius: 999px 999px 7px 7px;
  background: rgba(15, 23, 42, 0.72);
}

.tab__icon--album {
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(6, 182, 212, 0.16), rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.92);
}

.tab__icon--album::before {
  inset: 5px;
  border-radius: 7px;
  border: 1.5px solid rgba(15, 23, 42, 0.66);
}

.tab__icon--album::after {
  width: 6px;
  height: 6px;
  right: 6px;
  bottom: 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.82);
}

.tab.is-active {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0.72));
}

.panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(2, 6, 23, 0.08);
}

.mode-panel.is-hidden {
  display: none;
}

.random-mode {
  display: grid;
  gap: 12px;
}

.random-mode__copy {
  display: grid;
  gap: 4px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-weight: 750;
  color: rgba(15, 23, 42, 0.86);
}

.search-field {
  min-width: 0;
}

.picker-toolbar {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

select,
input[type="search"],
input[type="text"] {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  touch-action: manipulation;
}

input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

.selection-status {
  margin-top: 12px;
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.picker-card {
  border: 1px solid rgba(2, 6, 23, 0.1);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
  touch-action: manipulation;
}

.picker-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.22);
}

.picker-card.is-selected {
  border-color: rgba(37, 99, 235, 0.38);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.08), rgba(255, 255, 255, 0.9));
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.14);
}

.picker-card__media {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(2, 6, 23, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.1);
}

.picker-card__media.is-avatar {
  border-radius: 999px;
}

.picker-card__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.picker-card__title {
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-card__subtitle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.picker-card__badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.82);
  font-size: 12px;
  font-weight: 750;
}

.picker-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(2, 6, 23, 0.14);
  background: rgba(255, 255, 255, 0.58);
}

.picker-empty strong {
  font-size: 15px;
}

.home-actions {
  margin-top: 14px;
}

.continue-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(2, 6, 23, 0.08);
  display: grid;
  gap: 10px;
}

.continue-panel.is-hidden {
  display: none;
}

.continue-panel__head {
  display: grid;
  gap: 4px;
}

.continue-card {
  width: 100%;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(235, 244, 255, 0.88));
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.12);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
  touch-action: manipulation;
}

.continue-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.14);
}

.continue-card__media {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}

.continue-card__cover {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(2, 6, 23, 0.1);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 28px rgba(2, 6, 23, 0.14);
}

.continue-card__artist {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 22px rgba(2, 6, 23, 0.16);
}

.continue-card__body {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 5px;
}

.continue-card__title {
  font-weight: 850;
  letter-spacing: -0.01em;
}

.continue-card__meta {
  line-height: 1.35;
}

.continue-card__bar {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(37, 99, 235, 0.12);
}

.continue-card__bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.92), rgba(124, 58, 237, 0.9));
  transition: width 180ms ease;
}

.home-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(2, 6, 23, 0.08);
}

.random-marquee {
  border: 1px solid rgba(2, 6, 23, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 46px rgba(2, 6, 23, 0.12);
  overflow: hidden;
  position: relative;
}

.random-marquee::before,
.random-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}

.random-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
}

.random-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
}

.random-marquee__row {
  overflow: hidden;
  padding: 12px 16px;
}

.random-marquee__row--a {
  --lane-duration: 28s;
}

.random-marquee__row--b {
  --lane-duration: 34s;
}

.random-marquee__row--c {
  --lane-duration: 30s;
}

.random-marquee__track {
  display: inline-flex;
  align-items: center;
  will-change: transform;
  animation: marqueeLeft var(--lane-duration, 28s) linear infinite;
}

.random-marquee__row--reverse .random-marquee__track {
  animation-name: marqueeRight;
}

.random-marquee__seq {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  flex: 0 0 auto;
}

.random-marquee__item {
  width: clamp(180px, 28vw, 230px);
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.86));
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.12);
}

.random-marquee__media {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(2, 6, 23, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.random-marquee__media.is-avatar {
  border-radius: 999px;
}

.random-marquee__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.random-marquee__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.random-marquee__subtitle {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes marqueeLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.btn {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  touch-action: manipulation;
}

.btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--xl {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  font-size: 16px;
}

.btn--primary {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(124, 58, 237, 0.9));
  color: white;
}

.btn--secondary {
  border-color: rgba(2, 6, 23, 0.14);
  background: rgba(255, 255, 255, 0.86);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.34);
}

.theme-toggle {
  min-width: 44px;
  padding-inline: 12px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__media {
  position: relative;
  flex: 0 0 auto;
  padding: 0 8px 8px 0;
}

.hero__text {
  min-width: 0;
}

.cover {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 1px solid rgba(2, 6, 23, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.16);
  object-fit: cover;
}

.artist-thumb {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 28px rgba(2, 6, 23, 0.18);
  object-fit: cover;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 23, 0.1);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  color: rgba(15, 23, 42, 0.86);
  max-width: 100%;
}

.chip__icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.chip__icon::before,
.chip__icon::after {
  content: "";
  position: absolute;
}

.chip__icon--artist {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.12)), rgba(255, 255, 255, 0.94);
}

.chip__icon--artist::before {
  width: 6px;
  height: 6px;
  left: 50%;
  top: 4px;
  margin-left: -3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
}

.chip__icon--artist::after {
  width: 10px;
  height: 6px;
  left: 50%;
  bottom: 4px;
  margin-left: -5px;
  border-radius: 999px 999px 6px 6px;
  background: rgba(15, 23, 42, 0.72);
}

.chip__icon--album {
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.14), rgba(255, 255, 255, 0.94)), rgba(255, 255, 255, 0.94);
}

.chip__icon--album::before {
  inset: 4px;
  border-radius: 5px;
  border: 1.5px solid rgba(15, 23, 42, 0.66);
}

.chip__icon--album::after {
  width: 4px;
  height: 4px;
  right: 4px;
  bottom: 4px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.82);
}

.chip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.snippet {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(2, 6, 23, 0.1);
  background: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.snippet-line {
  margin: 0;
}

.title-block {
  margin-top: 14px;
}

.masked {
  margin-top: 6px;
  font-size: 18px;
  letter-spacing: 0.02em;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(2, 6, 23, 0.1);
  background: rgba(255, 255, 255, 0.76);
}

.guessbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.stat {
  border: 1px solid rgba(2, 6, 23, 0.1);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(2, 6, 23, 0.08);
}

.result.is-hidden {
  display: none;
}

.result__title {
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 23, 0.14);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.16);
  color: rgba(15, 23, 42, 0.9);
  max-width: calc(100vw - 32px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

@media (min-width: 720px) {
  .picker-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

@media (max-width: 520px) {
  .brand__subtitle {
    display: none;
  }

  .guessbar {
    grid-template-columns: 1fr;
  }

  .topbar__actions {
    gap: 8px;
  }

  .tabs {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: flex-start;
  }

  .picker-grid {
    grid-template-columns: 1fr;
  }

  .continue-card {
    align-items: flex-start;
  }

  .random-marquee__item {
    width: clamp(170px, 70vw, 220px);
  }
}

@media (min-width: 840px) {
  .home-card,
  .play-card {
    padding: 18px;
  }

  .container {
    padding: 24px 16px 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-stage__layer,
  .random-marquee__track {
    animation: none !important;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09111e;
  --card: rgba(8, 15, 29, 0.86);
  --border: rgba(148, 163, 184, 0.18);
  --text: rgba(226, 232, 240, 0.96);
  --muted: rgba(226, 232, 240, 0.72);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] body {
  background: radial-gradient(900px 520px at 12% 18%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(860px 540px at 88% 28%, rgba(167, 139, 250, 0.18), transparent 60%),
    linear-gradient(180deg, #0b1424, var(--bg));
}

:root[data-theme="dark"] .ambient-stage__wash {
  background: linear-gradient(180deg, rgba(9, 17, 30, 0.74), rgba(9, 17, 30, 0.94));
}

:root[data-theme="dark"] .home-card,
:root[data-theme="dark"] .play-card,
:root[data-theme="dark"] .tab,
:root[data-theme="dark"] .picker-card,
:root[data-theme="dark"] .picker-empty,
:root[data-theme="dark"] .continue-card,
:root[data-theme="dark"] .random-marquee,
:root[data-theme="dark"] .random-marquee__item,
:root[data-theme="dark"] select,
:root[data-theme="dark"] input[type="search"],
:root[data-theme="dark"] input[type="text"],
:root[data-theme="dark"] .btn:not(.btn--primary),
:root[data-theme="dark"] .cover,
:root[data-theme="dark"] .artist-thumb,
:root[data-theme="dark"] .chip,
:root[data-theme="dark"] .snippet,
:root[data-theme="dark"] .masked,
:root[data-theme="dark"] .stat,
:root[data-theme="dark"] .toast {
  background: rgba(8, 15, 29, 0.84);
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.30);
}

:root[data-theme="dark"] .btn--secondary {
  background: rgba(15, 23, 42, 0.88);
}

:root[data-theme="dark"] .btn--ghost {
  background: rgba(148, 163, 184, 0.10);
}

:root[data-theme="dark"] input[type="search"]::placeholder,
:root[data-theme="dark"] input[type="text"]::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

:root[data-theme="dark"] .tab.is-active,
:root[data-theme="dark"] .picker-card.is-selected,
:root[data-theme="dark"] .continue-card,
:root[data-theme="dark"] .random-marquee__item {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.86));
}

:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .continue-panel,
:root[data-theme="dark"] .home-footer,
:root[data-theme="dark"] .result {
  border-color: rgba(148, 163, 184, 0.16);
}

:root[data-theme="dark"] .tab__icon,
:root[data-theme="dark"] .chip__icon,
:root[data-theme="dark"] .picker-card__media,
:root[data-theme="dark"] .continue-card__cover,
:root[data-theme="dark"] .continue-card__artist,
:root[data-theme="dark"] .random-marquee__media,
:root[data-theme="dark"] .cover,
:root[data-theme="dark"] .artist-thumb {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .picker-card__badge {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
}

:root[data-theme="dark"] .random-marquee::before {
  background: linear-gradient(90deg, rgba(8, 15, 29, 0.98), rgba(8, 15, 29, 0));
}

:root[data-theme="dark"] .random-marquee::after {
  background: linear-gradient(270deg, rgba(8, 15, 29, 0.98), rgba(8, 15, 29, 0));
}
