:root {
  --bg: #09090d;
  --panel: #111116;
  --panel-2: #17171d;
  --line: rgba(255,255,255,.09);
  --text: #f4f2ec;
  --muted: #8c8a92;
  --lime: #b7ff4a;
  --orange: #ff7948;
  --violet: #9b7bff;
  --cyan: #69e4d1;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 75% -10%, rgba(155,123,255,.12), transparent 34rem),
    radial-gradient(circle at 15% 15%, rgba(183,255,74,.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}
button, select { font: inherit; }
button { color: inherit; }
.app-shell { max-width: 1480px; margin: 0 auto; padding: 0 34px 70px; }
.topbar {
  height: 86px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; display: flex; gap: 3px; align-items: center; justify-content: center;
  background: var(--lime); color: #111; border-radius: 11px; box-shadow: 0 0 30px rgba(183,255,74,.15);
}
.brand-mark i { width: 3px; height: 12px; background: #111; border-radius: 4px; }
.brand-mark i:nth-child(2) { height: 21px; }
.brand-mark i:nth-child(3) { height: 16px; }
.brand-mark i:nth-child(4) { height: 25px; }
.brand-copy { display: grid; min-width: 0; }
.brand-copy strong { font-size: 17px; letter-spacing: -.02em; }
.brand-copy small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.top-actions, .listen-bottom, .filter-row { display: flex; align-items: center; gap: 10px; }
.live-pill, .status-badge, .latency, .track-tag {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-pill { color: #b8b6bc; font-size: 12px; display: flex; align-items: center; gap: 7px; }
.live-pill i, .latency i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.ghost-btn, .filter-btn, .demo-button {
  border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 11px;
  padding: 11px 14px; cursor: pointer; white-space: nowrap; transition: .2s ease;
}
.ghost-btn:hover, .filter-btn:hover, .demo-button:hover { border-color: rgba(183,255,74,.45); background: rgba(183,255,74,.06); }
.cloud-icon { color: var(--orange); margin-right: 6px; }
.avatar { border: 0; background: #e7e2d8; color: #111; width: 38px; height: 38px; border-radius: 50%; font-weight: 800; cursor: pointer; }
.hero { padding: 54px 0 42px; display: grid; grid-template-columns: minmax(280px, .78fr) minmax(520px, 1.22fr); gap: 58px; align-items: end; }
.eyebrow { margin: 0 0 10px; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.hero h1 { margin: 0; font-size: clamp(42px, 5vw, 74px); line-height: .95; letter-spacing: -.055em; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-note { max-width: 520px; color: #a5a3aa; line-height: 1.6; font-size: 14px; }
.listen-card {
  border: 1px solid rgba(255,255,255,.11); border-radius: 22px; padding: 23px;
  background: linear-gradient(145deg, rgba(27,27,34,.98), rgba(13,13,18,.96));
  box-shadow: 0 24px 80px rgba(0,0,0,.26); overflow: hidden; position: relative;
}
.listen-card::after { content: ""; position: absolute; inset: auto -50px -80px auto; width: 200px; height: 200px; background: var(--lime); opacity: .035; filter: blur(30px); border-radius: 50%; }
.listen-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.listen-top h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-badge { color: #bdbac1; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 99px; padding: 7px 10px; font-size: 10px; font-weight: 700; }
.status-badge.ready { background: var(--lime); color: #111; border-color: var(--lime); }
#waveform { width: 100%; height: 92px; margin: 12px 0; }
.listen-button {
  border: 0; border-radius: 12px; background: var(--lime); color: #10110d; height: 42px;
  padding: 0 16px; font-weight: 850; cursor: pointer; display: flex; align-items: center; gap: 9px; white-space: nowrap;
}
.listen-button.active { background: var(--orange); color: #fff; }
.listen-dot { width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; }
.demo-button { height: 42px; font-size: 12px; }
.latency { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.workspace { border-top: 1px solid var(--line); }
.current-track {
  display: grid; grid-template-columns: 58px minmax(180px, 1fr) auto 80px; gap: 16px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.cover { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; position: relative; overflow: hidden; }
.cover::before { content: ""; position: absolute; width: 110%; height: 7px; background: rgba(255,255,255,.62); transform: rotate(-35deg); box-shadow: 0 13px rgba(255,255,255,.18), 0 -13px rgba(0,0,0,.2); }
.cover span { position: relative; z-index: 1; font-size: 10px; font-weight: 900; letter-spacing: .08em; color: #0b0b0f; background: rgba(255,255,255,.76); padding: 3px 5px; border-radius: 4px; }
.cover-current { background: linear-gradient(135deg, #c9ff75, #2f6b56); }
.cover-gold { background: linear-gradient(135deg, #ffd676, #6a3a18); }
.cover-violet { background: linear-gradient(135deg, #bda7ff, #402577); }
.cover-coral { background: linear-gradient(135deg, #ff9a73, #74301f); }
.cover-cyan { background: linear-gradient(135deg, #83f6e4, #145f66); }
.track-main, .card-track { min-width: 0; display: grid; }
.track-main h2 { margin: 0 0 3px; font-size: 21px; }
.track-main p:last-child, .card-track span { margin: 0; color: var(--muted); font-size: 12px; }
.truncate, .card-track strong, .card-track span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-stats { display: flex; align-items: center; gap: 1px; }
.track-stats div { min-width: 76px; padding: 7px 15px; border-left: 1px solid var(--line); display: grid; }
.track-stats small, .mini-stat small, .confidence small, .key-chip small, .match-score small {
  color: var(--muted); font-size: 8px; letter-spacing: .12em; text-transform: uppercase;
}
.track-stats strong { font-size: 14px; margin-top: 2px; }
.confidence { width: 70px; height: 70px; border: 4px solid var(--lime); border-left-color: rgba(183,255,74,.18); border-radius: 50%; display: grid; place-content: center; text-align: center; }
.confidence span { font-size: 16px; font-weight: 850; }
.tabs { display: flex; align-items: center; gap: 5px; padding-top: 25px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: 0 0 auto; border: 0; background: none; padding: 14px 18px 17px; color: #7c7a82;
  font-size: 12px; font-weight: 750; cursor: pointer; white-space: nowrap;
}
.tab::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: transparent; }
.tab span { font-size: 9px; margin-right: 8px; }
.tab b { margin-left: 7px; color: #111; background: #525058; min-width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 99px; font-size: 9px; }
.tab.active { color: var(--text); }
.tab.active span { color: var(--lime); }
.tab.active b { background: var(--lime); }
.tab.active::after { background: var(--lime); }
.results-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; padding: 32px 0 17px; }
.results-head h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.filter-row > span { color: #aaa8af; font-size: 10px; white-space: nowrap; }
.filter-row > span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); margin: 0 7px 1px 0; }
.filter-btn { font-size: 10px; padding: 8px 10px; }
.track-list { display: grid; gap: 7px; }
.track-card {
  min-width: 0; display: grid; grid-template-columns: 38px 52px minmax(150px, 1fr) 62px 68px 60px 58px 104px 88px;
  gap: 13px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,.025), rgba(255,255,255,.012)); transition: .2s ease;
}
.track-card:hover { transform: translateY(-1px); border-color: rgba(183,255,74,.25); background: rgba(255,255,255,.035); }
.play-button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.17); background: #202027; cursor: pointer;
  font-size: 10px; display: grid; place-items: center; transition: .18s ease;
}
.play-button:hover, .play-button.playing { background: var(--lime); color: #111; border-color: var(--lime); }
.play-symbol { margin-left: 2px; }
.pause-bars { display: none; }
.play-button.playing .play-symbol { display: none; }
.play-button.playing .pause-bars { display: inline; }
.card-track strong { font-size: 13px; margin-bottom: 5px; }
.mini-stat { display: grid; }
.mini-stat strong { font-size: 12px; margin-top: 4px; }
.key-chip { display: grid; place-items: center; width: 52px; height: 43px; border: 1px solid rgba(183,255,74,.25); background: rgba(183,255,74,.055); border-radius: 10px; }
.key-chip span { color: var(--lime); font-size: 12px; font-weight: 850; }
.match-score { display: grid; text-align: center; }
.match-score span { font-size: 18px; font-weight: 850; letter-spacing: -.03em; }
.track-tag { justify-self: start; max-width: 104px; padding: 6px 8px; border-radius: 7px; background: rgba(255,255,255,.055); color: #aaa8af; font-size: 9px; }
.select-button { border: 0; border-radius: 10px; background: #24242b; height: 36px; padding: 0 12px; font-size: 10px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.select-button span { color: var(--lime); margin-left: 7px; }
.select-button:hover { background: var(--lime); color: #111; }
.select-button:hover span { color: #111; }
.sheet-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(0,0,0,.66); backdrop-filter: blur(12px); }
.playlist-sheet {
  position: absolute; right: 22px; top: 22px; bottom: 22px; width: min(440px, calc(100% - 44px)); background: #15151b;
  border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: -30px 0 90px rgba(0,0,0,.38);
}
.sheet-close { position: absolute; top: 20px; right: 20px; border: 0; background: #24242b; width: 35px; height: 35px; border-radius: 50%; font-size: 21px; cursor: pointer; }
.playlist-sheet h2 { font-size: 34px; margin: 0 0 24px; letter-spacing: -.05em; }
.selected-summary { display: grid; grid-template-columns: 52px minmax(0,1fr) 44px; gap: 13px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); margin-bottom: 26px; }
.selected-summary div:nth-child(2) { display: grid; min-width: 0; }
.selected-summary strong, .selected-summary span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selected-summary span { color: var(--muted); font-size: 11px; margin-top: 5px; }
.selected-summary b { color: var(--lime); }
.playlist-sheet label { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 8px; }
.playlist-sheet select { width: 100%; height: 50px; border: 1px solid var(--line); background: #0e0e13; border-radius: 11px; padding: 0 13px; }
.confirm-button { width: 100%; height: 52px; margin-top: 14px; border: 0; border-radius: 11px; background: var(--lime); color: #10110d; font-weight: 850; cursor: pointer; }
.sheet-note { text-align: center; color: #77757d; font-size: 10px; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 24px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; background: #eeece5; color: #111; border-radius: 99px; padding: 12px 18px; font-size: 11px; font-weight: 750; transition: .25s ease; white-space: nowrap; max-width: calc(100% - 30px); overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }
@media (max-width: 1100px) {
  .app-shell { padding-left: 22px; padding-right: 22px; }
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero-note { margin-bottom: 0; }
  .track-card { grid-template-columns: 38px 52px minmax(130px,1fr) 58px 58px 54px 78px; }
  .track-card .match-score, .track-card .track-tag { display: none; }
}
@media (max-width: 760px) {
  .app-shell { padding: 0 14px 40px; }
  .topbar { height: 72px; }
  .brand-copy small, .live-pill, .ghost-btn span:not(.cloud-icon), .avatar { display: none; }
  .ghost-btn { padding: 9px 11px; }
  .hero { padding: 34px 0 29px; }
  .hero h1 { font-size: 45px; }
  .listen-card { padding: 17px; border-radius: 18px; }
  .listen-bottom { display: grid; grid-template-columns: 1fr auto; }
  .listen-button { justify-content: center; }
  .latency { display: none; }
  .current-track { grid-template-columns: 52px minmax(0,1fr) 60px; gap: 12px; }
  .track-stats { display: none; }
  .confidence { width: 58px; height: 58px; }
  .tabs { padding-top: 18px; }
  .tab { padding-left: 12px; padding-right: 12px; }
  .tab::after { left: 12px; right: 12px; }
  .results-head { padding-top: 27px; }
  .results-head h2 { font-size: 22px; }
  .filter-row > span { display: none; }
  .track-card { grid-template-columns: 36px 48px minmax(0,1fr) 50px 44px; gap: 9px; padding: 10px; }
  .track-card .cover { width: 48px; height: 48px; }
  .track-card .mini-stat, .track-card .key-chip, .track-card .match-score, .track-card .track-tag { display: none; }
  .select-button { width: 44px; overflow: hidden; padding: 0; font-size: 0; }
  .select-button span { font-size: 18px; margin: 0; }
  .playlist-sheet { inset: auto 10px 10px; width: auto; bottom: 10px; top: auto; padding: 28px 20px; border-radius: 22px; }
  .playlist-sheet h2 { font-size: 28px; }
}
