/* ToolSewa Lyrics Finder — premium music-inspired UI */
:root {
  --bg: #05050d;
  --bg-deep: #080817;
  --panel: rgba(17, 17, 38, 0.62);
  --panel-solid: #121226;
  --panel-border: rgba(255, 255, 255, 0.1);
  --panel-border-strong: rgba(168, 132, 255, 0.36);
  --text: #f7f6ff;
  --muted: #a8a6c5;
  --faint: #777592;
  --violet: #a855f7;
  --purple: #7c3aed;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(124, 58, 237, 0.24), transparent 58%),
    radial-gradient(900px 560px at 92% 10%, rgba(59, 130, 246, 0.17), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 62%, #030308 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Ambient music lighting */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: float 16s ease-in-out infinite alternate; }
.orb-one { width: 380px; height: 380px; left: -120px; top: 16%; background: rgba(124, 58, 237, 0.42); }
.orb-two { width: 330px; height: 330px; right: -90px; top: 8%; background: rgba(59, 130, 246, 0.28); animation-delay: -5s; }
.orb-three { width: 300px; height: 300px; left: 48%; bottom: -140px; background: rgba(236, 72, 153, 0.18); animation-delay: -10s; }
.grid-glow {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 68%);
}
@keyframes float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(28px, -34px, 0) scale(1.08); } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 5, 13, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 8px 26px rgba(124, 58, 237, 0.35);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 16px; letter-spacing: -0.02em; }
.brand-copy small { font-size: 9px; color: var(--faint); letter-spacing: 0.07em; text-transform: uppercase; }

.tool-identity {
  display: flex; flex-direction: column; gap: 2px;
  padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.tool-name { font-size: 13px; font-weight: 700; }
.tool-badge {
  font-size: 8px; font-weight: 800; letter-spacing: 0.13em;
  color: #d8b4fe; text-transform: uppercase;
}

.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.desktop-nav a { font-size: 12px; color: var(--muted); transition: color 0.2s; }
.desktop-nav a:hover { color: #fff; }

.back-button, .ghost-button, .icon-action, .text-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  border-radius: 11px;
  padding: 9px 13px;
  font-size: 11px; font-weight: 650;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.back-button svg, .ghost-button svg { width: 15px; height: 15px; }
.back-button:hover, .ghost-button:hover, .icon-action:hover {
  background: rgba(168, 85, 247, 0.16); border-color: rgba(168, 85, 247, 0.4); transform: translateY(-1px);
}
.text-button { border: 0; background: transparent; color: #d8b4fe; padding: 4px 6px; }
.text-button:hover { color: #fff; }
.icon-action { width: 40px; height: 36px; padding: 0; font-size: 16px; }

.menu-button {
  display: none; margin-left: auto;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 11px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05); color: #fff;
}
.menu-button svg { width: 20px; height: 20px; }
.mobile-nav {
  position: absolute; left: 16px; right: 16px; top: 64px;
  display: grid; gap: 4px; padding: 12px;
  border-radius: 16px; border: 1px solid var(--panel-border);
  background: rgba(12, 12, 28, 0.96); box-shadow: var(--shadow);
}
.mobile-nav a { padding: 11px 12px; border-radius: 10px; font-size: 13px; color: var(--muted); }
.mobile-nav a:hover { background: rgba(168,85,247,0.12); color: #fff; }

/* Page */
.page-shell { position: relative; z-index: 1; width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Hero */
.hero { padding: 68px 0 26px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(124, 58, 237, 0.1);
  color: #d8b4fe; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #c084fc; box-shadow: 0 0 0 0 rgba(192,132,252,0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(192,132,252,0); } 100% { box-shadow: 0 0 0 0 rgba(192,132,252,0); } }

.hero h1 {
  margin: 20px auto 12px;
  max-width: 850px;
  font-size: clamp(2.35rem, 6.5vw, 4.6rem);
  line-height: 1.06; letter-spacing: -0.055em; font-weight: 850;
}
.hero h1 span {
  background: linear-gradient(100deg, #c084fc 0%, #818cf8 48%, #22d3ee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle { margin: 0 auto 30px; max-width: 650px; color: var(--muted); font-size: clamp(14px, 2vw, 17px); line-height: 1.65; }

.search-card {
  width: min(780px, 100%); margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 7px; border-radius: 22px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(16, 16, 36, 0.8);
  box-shadow: 0 20px 60px rgba(76, 29, 149, 0.26), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-card:focus-within {
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 22px 70px rgba(76, 29, 149, 0.38), 0 0 0 4px rgba(168, 85, 247, 0.09);
}
.search-icon { display: grid; place-items: center; width: 44px; height: 44px; color: #c4b5fd; flex-shrink: 0; }
.search-icon svg { width: 21px; height: 21px; }
.search-card input {
  flex: 1; min-width: 0; height: 48px; padding: 0 6px;
  border: 0; outline: 0; background: transparent; color: #fff; font-size: 15px;
}
.search-card input::placeholder { color: #777592; }
.search-card input::-webkit-search-cancel-button { display: none; }
.clear-button {
  width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0;
  border: 0; border-radius: 50%; background: rgba(255,255,255,0.07); color: var(--muted);
}
.clear-button:hover { color: #fff; background: rgba(255,255,255,0.14); }
.clear-button svg { width: 15px; height: 15px; }
.search-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-width: 122px; height: 48px; padding: 0 20px; flex-shrink: 0;
  border: 0; border-radius: 15px; color: #fff; font-size: 13px; font-weight: 800;
  background: linear-gradient(100deg, var(--purple), var(--blue));
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.36);
  transition: transform 0.2s, filter 0.2s, opacity 0.2s;
}
.search-button:hover { transform: translateY(-1px); filter: brightness(1.1); }
.search-button:disabled { opacity: 0.55; cursor: wait; transform: none; }
.search-button svg { width: 17px; height: 17px; }

.examples { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 17px; }
.examples > span { color: var(--faint); font-size: 11px; margin-right: 2px; }
.examples button {
  border: 1px solid rgba(255,255,255,0.09); border-radius: 999px;
  background: rgba(255,255,255,0.04); color: #c8c6dd;
  padding: 7px 12px; font-size: 11px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.examples button:hover { color: #fff; border-color: rgba(168,85,247,0.45); background: rgba(168,85,247,0.12); }
/* History / recent */
.chip-section { margin: 8px 0 0; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.025); }
.chip-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.chip-heading h2 { margin: 0; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.09); border-radius: 999px;
  background: rgba(124,58,237,0.09); color: #d7d3e8; padding: 7px 12px; font-size: 11px;
}
.chip:hover { border-color: rgba(168,85,247,0.45); color: #fff; }

/* States */
.state-panel {
  width: min(720px, 100%); min-height: 260px; margin: 26px auto 0;
  border-radius: var(--radius); padding: 34px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center;
}
.state-icon {
  width: 64px; height: 64px; display: grid; place-items: center;
  border-radius: 20px; font-size: 28px;
  background: linear-gradient(135deg, rgba(168,85,247,0.22), rgba(59,130,246,0.16));
  border: 1px solid rgba(168,85,247,0.3);
}
.state-panel h2 { margin: 2px 0 0; font-size: 20px; letter-spacing: -0.025em; }
.state-panel p { margin: 0; max-width: 460px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.state-panel .ghost-button { margin-top: 8px; }
.equalizer { display: flex; align-items: flex-end; gap: 5px; height: 54px; margin-bottom: 4px; }
.equalizer i { width: 7px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #c084fc, #6366f1); animation: eq 0.9s ease-in-out infinite alternate; }
.equalizer i:nth-child(1) { height: 24px; animation-delay: -0.7s; }
.equalizer i:nth-child(2) { height: 44px; animation-delay: -0.35s; }
.equalizer i:nth-child(3) { height: 32px; animation-delay: -0.55s; }
.equalizer i:nth-child(4) { height: 50px; animation-delay: -0.15s; }
.equalizer i:nth-child(5) { height: 19px; animation-delay: -0.85s; }
@keyframes eq { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.state-rate .state-icon { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.35); }

/* Results */
.results-section { padding: 28px 0 70px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-kicker { display: block; font-size: 9px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #c084fc; margin-bottom: 6px; }
.section-heading h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.04em; }
.result-count { color: var(--faint); font-size: 11px; white-space: nowrap; padding-bottom: 4px; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 14px; }
.song-card {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left;
  padding: 17px; border-radius: 18px; color: #fff;
  border: 1px solid rgba(255,255,255,0.09);
  background: linear-gradient(145deg, rgba(24,24,50,0.84), rgba(13,13,30,0.9));
  box-shadow: 0 14px 38px rgba(0,0,0,0.25);
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.song-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 20px 46px rgba(76,29,149,0.28);
}
.card-icon {
  position: relative; overflow: hidden;
  width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 14px; color: #ddd6fe;
  background: linear-gradient(135deg, rgba(168,85,247,0.28), rgba(59,130,246,0.2));
  border: 1px solid rgba(168,85,247,0.24);
}
.card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-icon.has-art { background: #101026; border-color: rgba(255,255,255,0.16); }
.card-icon.has-art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.card-art-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.card-art-fallback svg { width: 21px; height: 21px; opacity: 0.86; }
.card-art-initials {
  position: absolute; right: 5px; bottom: 4px;
  font-size: 9px; font-weight: 850; letter-spacing: 0.06em; opacity: 0.92;
}
.card-main { min-width: 0; flex: 1; }
.title-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-main h3 { margin: 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.mini-badge {
  flex-shrink: 0; border-radius: 999px; padding: 3px 7px; font-size: 8px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(34,211,238,0.12); color: #67e8f9; border: 1px solid rgba(34,211,238,0.22);
}
.mini-badge.close { background: rgba(168,85,247,0.16); color: #e9d5ff; border-color: rgba(168,85,247,0.34); }
.card-main p { margin: 5px 0 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.card-main .album { color: var(--faint); }
.card-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 10px; color: var(--faint); }
.available { color: #86efac; }
.unavailable { color: #fca5a5; }
.card-action { margin-top: 13px; display: inline-flex; align-items: center; gap: 6px; color: #d8b4fe; font-size: 11px; font-weight: 750; }
.card-action span:last-child { transition: transform 0.2s; }
.song-card:hover .card-action span:last-child { transform: translateX(3px); }

/* Lyrics view */
.lyrics-view { padding: 24px 0 72px; }
.lyrics-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.now-playing { display: inline-flex; align-items: center; gap: 9px; color: var(--faint); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.equalizer-mini { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.equalizer-mini i { width: 3px; border-radius: 2px; background: #c084fc; animation: eq 0.8s ease-in-out infinite alternate; }
.equalizer-mini i:nth-child(1) { height: 7px; }
.equalizer-mini i:nth-child(2) { height: 13px; animation-delay: -0.3s; }
.equalizer-mini i:nth-child(3) { height: 9px; animation-delay: -0.6s; }

.track-hero {
  display: flex; align-items: center; gap: 20px;
  padding: 24px; border-radius: 24px;
  background: linear-gradient(120deg, rgba(30,20,60,0.78), rgba(12,16,40,0.8));
  border-color: rgba(168,85,247,0.22);
}
.track-art {
  position: relative; overflow: hidden;
  width: 92px; height: 92px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 22px; color: #fff;
  background: linear-gradient(140deg, var(--purple), var(--blue) 65%, var(--cyan));
  box-shadow: 0 16px 36px rgba(79,70,229,0.35);
}
.track-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.track-art-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.track-art-fallback svg { width: 35px; height: 35px; opacity: 0.86; }
.track-art-initials {
  position: absolute; right: 8px; bottom: 6px;
  font-size: 10px; font-weight: 850; letter-spacing: 0.08em; opacity: 0.9;
}
.track-art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}
.track-meta { min-width: 0; flex: 1; }
.track-kicker { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: #c084fc; font-weight: 800; }
.track-meta h1 { margin: 6px 0 4px; font-size: clamp(23px, 4vw, 36px); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.track-artist { margin: 0; color: #ddd6fe; font-size: 14px; overflow-wrap: anywhere; }
.track-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: var(--faint); font-size: 11px; }
.fact-dot { color: rgba(168,85,247,0.6); }
.track-badges { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; max-width: 170px; }
.info-badge {
  border-radius: 999px; padding: 5px 9px; font-size: 9px; font-weight: 750;
  background: rgba(168,85,247,0.12); border: 1px solid rgba(168,85,247,0.26); color: #ddd6fe; white-space: nowrap;
}
.info-badge.blue { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.26); color: #bfdbfe; }

.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.action-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 17px; border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: #fff;
  font-size: 12px; font-weight: 750;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.action-button svg { width: 17px; height: 17px; }
.action-button:hover { transform: translateY(-1px); background: rgba(255,255,255,0.1); }
.action-button.primary { background: linear-gradient(100deg, var(--purple), var(--blue)); border-color: transparent; box-shadow: 0 12px 30px rgba(79,70,229,0.3); }
.action-button.accent { background: rgba(236,72,153,0.13); border-color: rgba(236,72,153,0.32); color: #fbcfe8; }
.action-button.preview { background: rgba(34,211,238,0.12); border-color: rgba(34,211,238,0.32); color: #a5f3fc; }
.action-button.preview.playing { background: rgba(34,211,238,0.22); box-shadow: 0 10px 26px rgba(34,211,238,0.16); }
.action-button.youtube { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.34); color: #fecaca; }
.action-button.youtube:hover { background: rgba(239,68,68,0.2); }
.action-button.youtube.loading { opacity: 0.72; cursor: wait; }

.youtube-panel { border-radius: 24px; overflow: hidden; margin: 0 0 18px; padding: 18px; }
.youtube-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.youtube-head h3 { margin: 0; font-size: 16px; letter-spacing: -0.01em; }
.youtube-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: #05050a; border: 1px solid rgba(255,255,255,0.08);
}
.youtube-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.reading-card { border-radius: 24px; overflow: hidden; }
.reading-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #c084fc;
}
.reading-hint { color: var(--faint); font-weight: 600; letter-spacing: 0.04em; text-transform: none; }
.lyrics-body {
  max-height: min(64vh, 720px); overflow-y: auto; overscroll-behavior: auto;
  padding: 36px clamp(22px, 5vw, 62px) 44px;
  font-size: 16px; line-height: 1.85; letter-spacing: 0.004em;
  color: #eeecff;
  scroll-behavior: smooth;
}
.lyrics-body:focus-visible { outline: 2px solid rgba(168,85,247,0.6); outline-offset: -4px; }
.lyric-paragraph { margin: 0 0 1.35em; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.lyric-paragraph:last-child { margin-bottom: 0; }
.lyrics-message { color: var(--muted); font-size: 15px; text-align: center; line-height: 1.8; }
.lyrics-body::-webkit-scrollbar, .karaoke-list::-webkit-scrollbar { width: 9px; }
.lyrics-body::-webkit-scrollbar-thumb, .karaoke-list::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.35); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }

/* Karaoke */
.karaoke-panel { margin-top: 18px; border-radius: 24px; padding: 22px; border-color: rgba(236,72,153,0.25); }
.karaoke-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.karaoke-head h3 { margin: 0; font-size: 18px; letter-spacing: -0.025em; }
.karaoke-head p { margin: 6px 0 0; color: var(--faint); font-size: 11px; }
.karaoke-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.karaoke-list { max-height: 55vh; overflow-y: auto; display: grid; gap: 7px; padding-right: 4px; }
.karaoke-line {
  display: flex; align-items: baseline; gap: 14px; width: 100%; text-align: left;
  padding: 12px 15px; border-radius: 13px;
  border: 1px solid transparent; background: rgba(255,255,255,0.025); color: #cecbe4;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.karaoke-line:hover { background: rgba(255,255,255,0.06); }
.karaoke-line.active {
  background: linear-gradient(90deg, rgba(168,85,247,0.2), rgba(59,130,246,0.12));
  border-color: rgba(168,85,247,0.42); color: #fff; transform: translateX(3px);
}
.karaoke-time { flex-shrink: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; color: #c084fc; }
.karaoke-text { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }

/* Toasts */
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 9px; width: min(330px, calc(100% - 36px)); }
.toast {
  padding: 12px 15px; border-radius: 13px; font-size: 12px; line-height: 1.5; color: #fff;
  background: rgba(18,18,40,0.96); border: 1px solid rgba(168,85,247,0.35);
  box-shadow: 0 16px 44px rgba(0,0,0,0.45);
  animation: toastIn 0.25s ease-out both;
}
.toast.error { border-color: rgba(248,113,113,0.45); }
.toast.success { border-color: rgba(74,222,128,0.45); }
.toast.out { animation: toastOut 0.25s ease-in both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* Responsive */
@media (max-width: 900px) {
  .desktop-nav, .back-button { display: none; }
  .menu-button { display: inline-flex; }
  .header-inner { min-height: 62px; }
  .mobile-nav { top: 58px; }
  .hero { padding-top: 48px; }
  .track-badges { max-width: 130px; }
}

@media (max-width: 640px) {
  .page-shell, .header-inner { width: min(100% - 22px, 1100px); }
  .brand-copy small { display: none; }
  .tool-identity { padding-left: 12px; }
  .tool-badge { font-size: 7px; }
  .hero { padding: 40px 0 18px; }
  .hero h1 { font-size: clamp(2.05rem, 10vw, 3rem); }
  .hero-subtitle { font-size: 13px; margin-bottom: 24px; }
  .search-card { padding: 5px; border-radius: 18px; }
  .search-icon { width: 36px; }
  .search-card input { font-size: 14px; }
  .search-button { min-width: 94px; height: 46px; padding: 0 13px; font-size: 12px; }
  .search-button span { display: none; }
  .search-button::after { content: "Go"; }
  .examples button { font-size: 10px; padding: 6px 10px; }
  .results-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .track-hero { align-items: flex-start; gap: 14px; padding: 18px; }
  .track-art { width: 66px; height: 66px; border-radius: 17px; }
  .track-art-fallback svg { width: 26px; height: 26px; }
  .track-meta h1 { font-size: 22px; }
  .track-badges { display: none; }
  .action-button { flex: 1 1 130px; padding: 0 12px; }
  .youtube-panel { padding: 13px; border-radius: 18px; }
  .youtube-head { flex-direction: column; gap: 8px; }
  .youtube-frame { border-radius: 12px; }
  .lyrics-body { padding: 24px 20px 34px; font-size: 15px; line-height: 1.85; }
  .karaoke-head { flex-direction: column; }
  .karaoke-controls { width: 100%; }
  .karaoke-controls .ghost-button { flex: 1; }
  .karaoke-text { font-size: 15px; }
}

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