:root {
  --font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg-base: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.92), rgba(232, 236, 245, 0.85)), #eff3f8;
  --bg-overlay: rgba(255, 255, 255, 0.62);
  --bg-strong: rgba(255, 255, 255, 0.42);
  --line-soft: rgba(86, 96, 125, 0.16);
  --line-strong: rgba(86, 96, 125, 0.28);
  --text-primary: #0f172a;
  --text-muted: rgba(15, 23, 42, 0.62);
  --accent-grad: linear-gradient(140deg, #cdd5f5, #a8b4e6);
  --shadow-lg: 0 42px 110px -52px rgba(30, 41, 59, 0.42);
  --shadow-md: 0 30px 70px -50px rgba(30, 41, 59, 0.35);
  --shadow-sm: 0 20px 44px -36px rgba(30, 41, 59, 0.28);
  --glass-blur: 26px;
  --chip-bg: rgba(15, 23, 42, 0.08);
  --chip-muted: rgba(15, 23, 42, 0.16);
  --focus-ring: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

body.theme-dark {
  --bg-base: radial-gradient(circle at 18% 12%, rgba(54, 61, 89, 0.52), rgba(12, 16, 32, 0.95)), #030712;
  --bg-overlay: rgba(17, 23, 41, 0.76);
  --bg-strong: rgba(9, 14, 29, 0.72);
  --line-soft: rgba(226, 232, 240, 0.14);
  --line-strong: rgba(226, 232, 240, 0.26);
  --text-primary: #f8fafc;
  --text-muted: rgba(226, 232, 240, 0.68);
  --accent-grad: linear-gradient(140deg, #7c8aff, #4c5ad6);
  --chip-bg: rgba(148, 163, 184, 0.24);
  --chip-muted: rgba(148, 163, 184, 0.36);
  --shadow-lg: 0 44px 118px -56px rgba(2, 6, 23, 0.78);
  --shadow-md: 0 34px 76px -54px rgba(2, 6, 23, 0.68);
  --shadow-sm: 0 24px 48px -40px rgba(2, 6, 23, 0.5);
  --focus-ring: 0 0 0 3px rgba(129, 140, 248, 0.38);
}

* {
  box-sizing: border-box;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  padding: 0;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.45);
  outline-offset: 3px;
}

body.theme-dark button:focus-visible,
body.theme-dark input:focus-visible {
  outline-color: rgba(129, 140, 248, 0.55);
}

html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background 0.6s ease, color 0.6s ease;
  color-scheme: light dark;
}

body.dialog-open {
  overflow: hidden;
}

.scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.22), transparent 52%),
    radial-gradient(circle at 80% 10%, rgba(186, 196, 222, 0.25), transparent 46%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(182, 193, 216, 0.06));
  mix-blend-mode: screen;
  opacity: 0.85;
  z-index: 0;
}

body.theme-dark .scene {
  background: radial-gradient(circle at 18% 12%, rgba(129, 140, 248, 0.38), transparent 52%),
    radial-gradient(circle at 72% 18%, rgba(37, 99, 235, 0.28), transparent 50%),
    linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(15, 23, 42, 0.08));
  opacity: 0.75;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.2rem, 4vw, 2.8rem) 4rem;
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 3vw, 2.4rem);
}

.glass-panel {
  background: var(--bg-overlay);
  background: color-mix(in srgb, var(--bg-overlay) 92%, transparent);
  border: 1px solid var(--line-soft);
  border-radius: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 45%);
  pointer-events: none;
}

body.theme-dark .glass-panel::before {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(150deg, rgba(148, 163, 184, 0.22), transparent 52%);
}

.top-bar {
  padding: clamp(1.4rem, 3vw, 2.1rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.2rem, 2.6vw, 1.8rem);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.4rem);
  flex-wrap: wrap;
  min-width: min(280px, 100%);
}

.brand-emblem {
  width: clamp(54px, 10vw, 68px);
  aspect-ratio: 1;
  border-radius: 22px;
  background: var(--accent-grad);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.45), 0 20px 36px -26px rgba(31, 32, 40, 0.65);
  display: grid;
  place-items: center;
  position: relative;
}

.brand-shine {
  width: 60%;
  height: 60%;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.38);
  filter: blur(10px);
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -0.018em;
  font-weight: 600;
}

.brand-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.action-cluster {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.4rem);
}

.theme-toggle {
  width: 66px;
  height: 66px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62));
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease,
    background 0.45s ease;
  box-shadow: 0 22px 44px -36px rgba(32, 34, 43, 0.45);
  backdrop-filter: blur(var(--glass-blur));
}

.theme-toggle:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 52px -34px rgba(32, 34, 43, 0.5);
}

body.theme-dark .theme-toggle {
  background: linear-gradient(150deg, rgba(63, 76, 136, 0.48), rgba(26, 34, 68, 0.88));
  border-color: rgba(129, 140, 248, 0.42);
  box-shadow: 0 26px 60px -34px rgba(3, 5, 18, 0.68);
}

body.theme-dark .theme-toggle:hover {
  box-shadow: 0 30px 64px -36px rgba(3, 5, 18, 0.78);
}

.theme-toggle .icon {
  width: 38px;
  height: 38px;
  transition: transform 0.6s ease, color 0.6s ease;
}

.theme-toggle.is-dark .icon {
  transform: rotate(300deg) scale(1.05);
  color: rgba(255, 255, 255, 0.95);
}

.variant-toggle {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
}

.variant-toggle input {
  appearance: none;
  position: absolute;
  inset: 0;
  width: 0;
  height: 0;
}

.variant-track {
  position: relative;
  width: 74px;
  height: 34px;
  border-radius: 999px;
  background: var(--bg-strong);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 12px 24px -20px rgba(32, 34, 43, 0.35);
  transition: background 0.45s ease, border-color 0.45s ease;
}

.variant-thumb {
  position: absolute;
  top: 4px;
  left: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 14px 26px -18px rgba(32, 34, 43, 0.62);
  transition: transform 0.45s ease;
}

body.theme-dark .variant-track {
  background: rgba(28, 34, 58, 0.78);
  border-color: rgba(129, 140, 248, 0.38);
  box-shadow: inset 0 14px 26px -22px rgba(2, 6, 23, 0.72);
}

body.theme-dark .variant-thumb {
  box-shadow: 0 16px 32px -20px rgba(2, 6, 23, 0.72);
}

.variant-toggle input:checked + .variant-track .variant-thumb {
  transform: translateX(36px);
}

.control-row {
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 1.8rem);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.stat-pill {
  padding: 0.38rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.52));
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-weight: 600;
  backdrop-filter: blur(calc(var(--glass-blur) / 1.6));
}

body.theme-dark .stat-pill {
  background: linear-gradient(135deg, rgba(33, 41, 74, 0.84), rgba(18, 24, 49, 0.72));
  border-color: rgba(129, 140, 248, 0.36);
  color: rgba(226, 232, 240, 0.82);
}

.control-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.2rem);
  flex-wrap: wrap;
}

.copy-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(240, 242, 255, 0.78));
  box-shadow: 0 18px 44px -34px rgba(32, 34, 43, 0.48);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  backdrop-filter: blur(calc(var(--glass-blur) / 1.4));
}

.copy-all-btn .copy-all-label {
  font-size: 0.95rem;
}

.copy-all-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px -36px rgba(32, 34, 43, 0.52);
  border-color: rgba(130, 136, 162, 0.34);
}

body.theme-dark .copy-all-btn {
  background: linear-gradient(150deg, rgba(65, 76, 138, 0.88), rgba(28, 35, 68, 0.72));
  border-color: rgba(129, 140, 248, 0.42);
  box-shadow: 0 24px 60px -36px rgba(3, 6, 22, 0.72);
  color: rgba(226, 232, 240, 0.92);
}

body.theme-dark .copy-all-btn:hover:not(:disabled) {
  border-color: rgba(148, 163, 184, 0.42);
  box-shadow: 0 28px 70px -40px rgba(3, 6, 22, 0.8);
}

.copy-all-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: var(--bg-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  min-width: min(320px, 100%);
}

.search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.search input::placeholder {
  color: rgba(99, 102, 137, 0.65);
}

body.theme-dark .search {
  background: rgba(18, 24, 49, 0.78);
  border-color: rgba(129, 140, 248, 0.32);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.26);
}

body.theme-dark .search input::placeholder {
  color: rgba(203, 213, 225, 0.62);
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.4rem, 3vw, 2rem);
}

.song-card {
  position: relative;
  transform: translateZ(0);
}

.card-shell {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: clamp(24px, 3vw, 32px);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 28px 66px -44px rgba(43, 48, 64, 0.55);
  backdrop-filter: blur(calc(var(--glass-blur) + 4px));
  display: grid;
  gap: 1.5rem;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.card-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% -10%, rgba(255, 255, 255, 0.6), transparent 55%);
  opacity: 0.85;
  pointer-events: none;
}

body.theme-dark .card-shell {
  background: linear-gradient(155deg, rgba(44, 54, 99, 0.72), rgba(16, 23, 52, 0.82));
  border-color: rgba(129, 140, 248, 0.32);
  box-shadow: 0 34px 84px -46px rgba(3, 6, 22, 0.78);
}

body.theme-dark .card-shell::before {
  background: radial-gradient(circle at 18% -16%, rgba(129, 140, 248, 0.42), transparent 65%);
  opacity: 0.75;
}

.song-card:hover .card-shell {
  transform: translateY(-10px);
  box-shadow: 0 34px 82px -40px rgba(43, 48, 64, 0.6);
  border-color: rgba(142, 148, 176, 0.4);
}

body.theme-dark .song-card:hover .card-shell {
  box-shadow: 0 40px 92px -46px rgba(3, 6, 22, 0.86);
  border-color: rgba(129, 140, 248, 0.46);
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.card-header h2 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.card-open {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--bg-strong);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.card-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px -28px rgba(32, 34, 43, 0.54);
  border-color: rgba(130, 136, 162, 0.34);
}

body.theme-dark .card-open {
  background: rgba(18, 24, 49, 0.78);
  border-color: rgba(129, 140, 248, 0.32);
  box-shadow: 0 18px 36px -28px rgba(3, 6, 22, 0.68);
  color: rgba(226, 232, 240, 0.92);
}

body.theme-dark .card-open:hover {
  border-color: rgba(148, 163, 184, 0.42);
  box-shadow: 0 22px 44px -30px rgba(3, 6, 22, 0.78);
}

.card-preview {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: var(--bg-strong);
  padding: 1.2rem 1.1rem 1.6rem;
  display: grid;
}

body.theme-dark .card-preview {
  border-color: rgba(129, 140, 248, 0.28);
  background: rgba(15, 23, 42, 0.78);
}

.card-preview pre {
  margin: 0;
  font-family: 'Manrope', monospace;
  font-size: 0.98rem;
  line-height: 1.55;
  max-height: 27.5rem;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-primary);
}

.preview-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 68px;
  background: linear-gradient(0deg, var(--bg-strong), transparent);
  pointer-events: none;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.style-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 100%;
}

.chip {
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(16px);
  overflow-wrap: anywhere;
  white-space: normal;
}

.chip.muted {
  background: var(--chip-muted);
}

body.theme-dark .chip {
  border-color: rgba(129, 140, 248, 0.32);
  color: rgba(226, 232, 240, 0.8);
}

.copy-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: var(--bg-strong);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 32px -28px rgba(32, 34, 43, 0.56);
  border-color: rgba(130, 136, 162, 0.34);
}

body.theme-dark .icon-btn {
  background: rgba(18, 24, 49, 0.78);
  border-color: rgba(129, 140, 248, 0.32);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.24);
  color: rgba(226, 232, 240, 0.92);
}

body.theme-dark .icon-btn:hover {
  border-color: rgba(148, 163, 184, 0.42);
  box-shadow: 0 22px 38px -30px rgba(3, 6, 22, 0.78);
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  stroke-dasharray: 72;
  stroke-dashoffset: 72;
  transition: transform 0.35s ease, color 0.35s ease;
  pointer-events: none;
}

.icon path,
.icon circle,
.icon line,
.icon polyline,
.icon rect {
  stroke-dasharray: inherit;
  stroke-dashoffset: inherit;
}

.icon--pulse {
  animation: icon-bloom 0.42s ease;
}

.icon--pulse path,
.icon--pulse circle,
.icon--pulse line,
.icon--pulse polyline,
.icon--pulse rect {
  animation: icon-trace 0.42s ease forwards;
}

.empty {
  grid-column: 1 / -1;
}

.empty-surface {
  padding: 2.6rem;
  border-radius: 28px;
  background: var(--bg-overlay);
  border: 1px solid var(--line-soft);
  text-align: center;
  color: var(--text-muted);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
  place-items: center;
}

body.theme-dark .empty-surface {
  background: rgba(18, 24, 49, 0.78);
  border-color: rgba(129, 140, 248, 0.32);
  color: rgba(226, 232, 240, 0.76);
}

.song-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(760px, 92vw);
  color: inherit;
}

.song-dialog::backdrop {
  background: rgba(6, 8, 12, 0.58);
  backdrop-filter: blur(16px);
  animation: fade-in 0.35s ease;
}

.dialog-surface {
  border-radius: clamp(24px, 3vw, 32px);
  background: var(--bg-overlay);
  border: 1px solid var(--line-strong);
  box-shadow: 0 48px 90px -48px rgba(6, 8, 12, 0.85);
  backdrop-filter: blur(calc(var(--glass-blur) + 6px));
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: grid;
  gap: 1.6rem;
  max-height: 80vh;
  overflow: hidden;
}

body.theme-dark .dialog-surface {
  background: rgba(17, 23, 41, 0.82);
  border-color: rgba(129, 140, 248, 0.36);
  box-shadow: 0 52px 110px -52px rgba(2, 6, 22, 0.82);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.dialog-title {
  display: grid;
  gap: 0.75rem;
}

.dialog-title h2 {
  margin: 0;
  font-size: 1.4rem;
  word-break: break-word;
}

.dialog-icons {
  display: flex;
  gap: 0.6rem;
}

.dialog-close {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  width: 44px;
  height: 44px;
  background: var(--bg-strong);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.dialog-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px -26px rgba(32, 34, 43, 0.5);
  border-color: rgba(130, 136, 162, 0.34);
}

body.theme-dark .dialog-close {
  background: rgba(18, 24, 49, 0.78);
  border-color: rgba(129, 140, 248, 0.32);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.24);
  color: rgba(226, 232, 240, 0.92);
}

body.theme-dark .dialog-close:hover {
  border-color: rgba(148, 163, 184, 0.42);
  box-shadow: 0 24px 38px -28px rgba(3, 6, 22, 0.76);
}

.dialog-section {
  display: grid;
  gap: 0.8rem;
}

.dialog-section h3 {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.dialog-styles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dialog-lyrics {
  margin: 0;
  font-family: 'Manrope', monospace;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 44vh;
  overflow-y: auto;
  padding-right: 0.3rem;
  scrollbar-width: thin;
}

.dialog-lyrics::-webkit-scrollbar {
  width: 0.5rem;
}

.dialog-lyrics::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
}

body.theme-dark .dialog-lyrics::-webkit-scrollbar-thumb {
  background: rgba(129, 140, 248, 0.55);
}

.toast {
  position: fixed;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
  box-shadow: 0 24px 50px -36px rgba(6, 8, 12, 0.75);
  backdrop-filter: blur(14px);
  z-index: 1000;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.theme-dark .toast {
  background: rgba(17, 24, 39, 0.92);
  color: rgba(226, 232, 240, 0.92);
  box-shadow: 0 28px 60px -38px rgba(3, 6, 22, 0.8);
}

@keyframes icon-bloom {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes icon-trace {
  0% {
    stroke-dashoffset: 72;
  }
  60% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .control-row {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .search {
    width: 100%;
  }

  .control-tools {
    justify-content: stretch;
  }

  .copy-all-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-block {
    justify-content: space-between;
  }

  .action-cluster {
    width: 100%;
    justify-content: space-between;
  }

  .variant-toggle {
    justify-content: space-between;
    width: 100%;
  }

  .theme-toggle {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 520px) {
  .control-row {
    gap: 1.2rem;
  }

  .copy-all-btn {
    padding: 0.8rem 1.2rem;
  }

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

  .card-shell {
    padding: 1.4rem 1.2rem 1.8rem;
  }

  .card-footer {
    align-items: stretch;
    gap: 0.8rem;
  }

  .copy-group {
    width: 100%;
    justify-content: flex-end;
  }

  .dialog-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }

  .dialog-icons {
    flex-wrap: wrap;
  }

  .dialog-close {
    align-self: flex-end;
  }
}

@media (max-width: 420px) {
  .app {
    padding: 1.4rem 0.85rem 3rem;
  }

  .brand-copy h1 {
    font-size: 1.4rem;
  }

  .theme-toggle {
    width: 56px;
    height: 56px;
  }

  .variant-toggle {
    gap: 0.6rem;
    font-size: 0.9rem;
  }

  .copy-group {
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  .app {
    padding: 1.7rem 1rem 3.4rem;
  }

  .action-cluster {
    width: 100%;
    justify-content: space-between;
  }

  .top-bar {
    border-radius: 22px;
  }

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

  .card-footer {
    align-items: stretch;
  }

  .copy-group {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
