:root {
  color-scheme: dark;
  --ink: #07090c;
  --ink-2: #0c1015;
  --ink-3: #121820;
  --paper: #f4f2ea;
  --muted: #7d8793;
  --line: rgba(255,255,255,.09);
  --line-hot: rgba(255,198,66,.32);
  --amber: #ffca48;
  --orange: #ff5a36;
  --ice: #7be7ff;
  --mint: #82ffc7;
  --violet: #a77cff;
  --danger: #ff5d6c;
  --rail: 248px;
  --player: 94px;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 60% -10%, rgba(42,77,112,.22), transparent 34%),
    linear-gradient(145deg, #07090c, #090c11 54%, #06080b);
  color: var(--paper);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, input, textarea, select { outline: none; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--ice);
}
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

.noise {
  position: fixed;
  z-index: 200;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.aurora {
  position: fixed;
  z-index: -1;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .09;
  pointer-events: none;
}
.aurora-a { top: -20vw; right: 8vw; background: var(--ice); }
.aurora-b { bottom: -25vw; left: 20vw; background: var(--orange); }

.app { min-height: 100vh; display: grid; grid-template-columns: var(--rail) 1fr; padding-bottom: var(--player); }
.rail {
  position: fixed;
  z-index: 50;
  inset: 0 auto var(--player) 0;
  width: var(--rail);
  padding: 24px 14px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(7,9,12,.88);
  backdrop-filter: blur(26px);
}

.brand {
  width: 100%;
  padding: 3px 8px 27px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--paper);
  text-align: left;
}
.brand-glyph { width: 34px; height: 30px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.brand-glyph i {
  width: 3px;
  border-radius: 99px;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(255,202,72,.28);
  animation: signal 2.4s ease-in-out infinite alternate;
}
.brand-glyph i:nth-child(1) { height: 10px; animation-delay: -.7s; }
.brand-glyph i:nth-child(2) { height: 24px; background: var(--orange); animation-delay: -.3s; }
.brand-glyph i:nth-child(3) { height: 30px; background: var(--paper); animation-delay: -.9s; }
.brand-glyph i:nth-child(4) { height: 19px; background: var(--ice); animation-delay: -.5s; }
.brand-glyph i:nth-child(5) { height: 8px; background: var(--mint); animation-delay: -.1s; }
@keyframes signal { to { transform: scaleY(.56); opacity: .68; } }
.brand-copy { display: grid; gap: 3px; }
.brand-copy b { font-size: 16px; letter-spacing: .08em; }
.brand-copy small { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .25em; }

.rail-nav { display: grid; gap: 4px; }
.rail-link {
  position: relative;
  width: 100%;
  min-height: 56px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #a9b0b9;
  text-align: left;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.rail-link:hover { background: rgba(255,255,255,.035); color: var(--paper); transform: translateX(2px); }
.rail-link.active {
  border-color: var(--line-hot);
  background: linear-gradient(90deg, rgba(255,202,72,.1), rgba(255,90,54,.035));
  color: var(--paper);
}
.rail-link.active::before {
  position: absolute;
  left: -15px;
  width: 3px;
  height: 26px;
  border-radius: 0 4px 4px 0;
  background: var(--amber);
  box-shadow: 0 0 18px var(--amber);
  content: "";
}
.nav-code { grid-row: 1 / 3; color: #5e6874; font: 700 9px/1 ui-monospace, monospace; }
.rail-link > span:nth-child(2) { font-size: 14px; font-weight: 700; }
.rail-link small { grid-column: 2; color: #66707c; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.rail-link.active .nav-code { color: var(--amber); }

.rail-section { margin-top: 28px; display: grid; gap: 4px; }
.rail-section > span { padding: 0 12px 10px; color: #515b67; font-size: 8px; font-weight: 800; letter-spacing: .2em; }
.rail-utility {
  width: 100%;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #9ba4ae;
  text-align: left;
}
.rail-utility:hover { background: rgba(255,255,255,.04); color: #fff; }
.utility-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--amber);
}
.rail-status {
  margin-top: auto;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}
.signal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.rail-status div { min-width: 0; display: grid; gap: 2px; }
.rail-status b { font-size: 10px; }
.rail-status small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.stage { grid-column: 2; min-width: 0; }
.command-bar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 82px;
  padding: 15px clamp(20px, 3.6vw, 62px);
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,.045);
  background: linear-gradient(180deg, rgba(7,9,12,.96), rgba(7,9,12,.76));
  backdrop-filter: blur(24px);
}
.mobile-logo { display: none; }
.command-search {
  width: min(620px, 52vw);
  height: 48px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  transition: border-color .2s, background .2s;
}
.command-search:focus-within { border-color: rgba(123,231,255,.4); background: rgba(123,231,255,.035); }
.command-search > span { color: var(--ice); font-size: 24px; }
.command-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--paper); font-size: 13px; }
.command-search input::placeholder { color: #59636e; }
.command-search kbd { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: #5c6672; font: 700 8px/1 ui-monospace, monospace; }
.command-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.command-button, .live-pill, .avatar-button {
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
}
.command-button:hover { border-color: var(--line-hot); background: rgba(255,202,72,.08); }
.live-pill { display: flex; align-items: center; gap: 7px; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); animation: blink 1.4s infinite; }
.live-pill span { color: #c9cdd2; font-size: 9px; letter-spacing: .12em; }
.live-pill b { color: var(--paper); }
@keyframes blink { 50% { opacity: .3; } }
.avatar-button { width: 40px; padding: 0; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--amber)); color: #111; }

.view { min-height: calc(100vh - 82px - var(--player)); padding: 26px clamp(20px, 3.6vw, 62px) 70px; }
.view-enter { animation: viewIn .42s cubic-bezier(.2,.8,.2,1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

.overline { margin: 0 0 10px; color: var(--amber); font: 800 9px/1.2 ui-monospace, monospace; letter-spacing: .22em; }
.page-head { margin: 4px 0 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.page-head h1 { margin: 0; font-size: clamp(35px, 5vw, 72px); line-height: .98; letter-spacing: -.065em; }
.page-head p:last-child { max-width: 560px; margin: 12px 0 0; color: var(--muted); line-height: 1.65; }
.section { margin-top: 42px; }
.section-head { margin-bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.section-head h2 { margin: 0; font-size: clamp(23px, 2.3vw, 34px); letter-spacing: -.04em; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.text-button { border: 0; background: transparent; color: var(--ice); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.home-hero {
  position: relative;
  min-height: 465px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 70px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(7,9,12,.96), rgba(7,9,12,.35)),
    radial-gradient(circle at 82% 35%, rgba(255,90,54,.24), transparent 24%),
    radial-gradient(circle at 70% 68%, rgba(123,231,255,.18), transparent 28%),
    #0c1015;
}
.home-hero::after {
  position: absolute;
  right: -9%;
  bottom: -35%;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid rgba(123,231,255,.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255,255,255,.012),
    0 0 0 84px rgba(255,255,255,.012),
    0 0 0 126px rgba(255,255,255,.012);
  content: "";
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 760px; margin: 0; font-size: clamp(52px, 7vw, 108px); line-height: .84; letter-spacing: -.085em; }
.hero-copy h1 span { display: block; color: transparent; -webkit-text-stroke: 1px rgba(244,242,234,.6); }
.hero-copy > p:not(.overline) { max-width: 550px; margin: 28px 0; color: #9ca5ae; font-size: 15px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.primary-action, .secondary-action {
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
.primary-action { background: var(--amber); color: #101010; box-shadow: 0 12px 35px rgba(255,202,72,.12); }
.primary-action:hover { background: #ffda76; transform: translateY(-1px); }
.secondary-action { border-color: var(--line); background: rgba(255,255,255,.03); color: var(--paper); }
.secondary-action:hover { border-color: rgba(123,231,255,.3); }
.hero-signal {
  position: relative;
  z-index: 2;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.signal-core {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,202,72,.25);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,202,72,.2), rgba(255,90,54,.07) 50%, transparent 70%);
}
.signal-core::before, .signal-core::after {
  position: absolute;
  border: 1px solid rgba(123,231,255,.18);
  border-radius: 50%;
  content: "";
  animation: radar 3.4s ease-out infinite;
}
.signal-core::before { inset: -50px; }
.signal-core::after { inset: -105px; animation-delay: -1.7s; }
@keyframes radar { 0% { transform: scale(.72); opacity: 0; } 35% { opacity: 1; } 100% { transform: scale(1.18); opacity: 0; } }
.signal-core b { font-size: 54px; letter-spacing: -.09em; }
.signal-core small { position: absolute; bottom: 31px; color: var(--amber); font: 800 7px/1 ui-monospace, monospace; letter-spacing: .18em; }
.city-label {
  position: absolute;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(7,9,12,.72);
  color: #8b949e;
  font: 700 8px/1 ui-monospace, monospace;
}
.city-label:nth-child(2) { top: 22px; left: 3%; }
.city-label:nth-child(3) { top: 80px; right: 0; }
.city-label:nth-child(4) { bottom: 44px; right: 5%; }
.city-label:nth-child(5) { bottom: 14px; left: 12%; }

.metric-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 0 0 18px 18px;
  background: rgba(255,255,255,.018);
}
.metric { padding: 18px 22px; display: grid; gap: 5px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { font-size: 23px; letter-spacing: -.04em; }
.metric span { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.rail-cards, .album-grid, .artist-grid { display: grid; gap: 14px; }
.rail-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.track-card { min-width: 0; }
.card-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    radial-gradient(circle at 70% 25%, var(--card-glow, rgba(255,90,54,.4)), transparent 33%),
    linear-gradient(145deg, #17202a, #090c10);
}
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .3s; }
.track-card:hover .card-art img { transform: scale(1.055); filter: saturate(1.1); }
.card-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.13); font-size: 48px; font-weight: 900; }
.card-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
  color: #0a0b0d;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.track-card:hover .card-play, .card-play:focus-visible { opacity: 1; transform: none; }
.card-index { position: absolute; top: 10px; left: 11px; color: rgba(255,255,255,.66); font: 700 9px/1 ui-monospace, monospace; }
.card-copy { padding: 11px 2px 0; display: grid; gap: 4px; }
.card-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.card-copy span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.pulse-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 14px; }
.pulse-main, .pulse-side {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.018);
}
.pulse-main { padding: 24px; }
.pulse-wave { height: 150px; display: flex; align-items: center; gap: 3px; }
.pulse-wave i { flex: 1; height: var(--h); border-radius: 2px; background: linear-gradient(180deg, var(--ice), var(--orange)); opacity: var(--o); }
.pulse-caption { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.pulse-caption h3 { margin: 0; font-size: 24px; }
.pulse-caption p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.round-play { width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); }
.pulse-side { padding: 8px; display: grid; }
.city-row { padding: 13px 14px; display: grid; grid-template-columns: 1fr auto; gap: 5px; border-bottom: 1px solid var(--line); }
.city-row:last-child { border: 0; }
.city-row b { font-size: 12px; }
.city-row small { grid-column: 1; color: var(--muted); font-size: 9px; }
.city-row span { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--amber); font: 700 10px/1 ui-monospace, monospace; }

.track-list { display: grid; border-top: 1px solid var(--line); }
.track-row {
  min-height: 68px;
  padding: 8px 6px;
  display: grid;
  grid-template-columns: 35px 48px minmax(0, 1.2fr) minmax(120px, .6fr) 72px 88px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.055);
  transition: background .18s;
}
.track-row:hover, .track-row.active { background: linear-gradient(90deg, rgba(255,202,72,.07), transparent); }
.row-play { width: 30px; height: 30px; border: 0; background: transparent; color: #6e7782; }
.track-row:hover .row-play, .track-row.active .row-play { color: var(--amber); }
.row-cover { width: 48px; height: 48px; overflow: hidden; display: grid; place-items: center; border-radius: 7px; background: #171d24; color: #59636e; font-size: 10px; font-weight: 900; }
.row-cover img { width: 100%; height: 100%; object-fit: cover; }
.row-main { min-width: 0; display: grid; gap: 4px; }
.row-main strong, .row-album { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main strong { font-size: 12px; }
.row-main span, .row-album, .row-time { color: var(--muted); font-size: 9px; }
.row-stat { color: #7d8793; font: 700 9px/1 ui-monospace, monospace; }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; }
.row-actions button { width: 31px; height: 31px; border: 0; border-radius: 50%; background: transparent; color: #68727d; }
.row-actions button:hover, .row-actions button.liked { color: var(--amber); background: rgba(255,255,255,.04); }

.air-hero {
  min-height: 390px;
  padding: clamp(28px, 5vw, 65px);
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background:
    radial-gradient(circle at 78% 45%, rgba(123,231,255,.22), transparent 27%),
    radial-gradient(circle at 58% 120%, rgba(255,90,54,.2), transparent 42%),
    #0b0f14;
}
.air-hero h1 { max-width: 700px; margin: 0; font-size: clamp(48px, 7vw, 92px); line-height: .92; letter-spacing: -.075em; }
.air-hero h1 span { color: var(--amber); }
.air-hero p:not(.overline) { max-width: 540px; color: var(--muted); line-height: 1.6; }
.air-disc {
  position: relative;
  width: 290px;
  height: 290px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #10151b 0 8px, #202831 9px 11px);
  box-shadow: 0 0 0 30px rgba(255,255,255,.012), 0 0 90px rgba(123,231,255,.13);
  animation: rotate 18s linear infinite;
}
.air-disc::after { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: #111; font-size: 28px; font-weight: 900; content: "SO"; }
@keyframes rotate { to { transform: rotate(360deg); } }
.moods { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.mood {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255,255,255,.025);
  color: #a5adb6;
  font-size: 10px;
}
.mood:hover, .mood.active { border-color: var(--line-hot); background: rgba(255,202,72,.09); color: var(--paper); }

.search-hero { max-width: 900px; margin: 60px auto 48px; text-align: center; }
.search-hero h1 { margin: 0; font-size: clamp(50px, 8vw, 105px); letter-spacing: -.08em; }
.search-hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(123,231,255,.7); }
.search-hero p { color: var(--muted); }
.search-large {
  height: 66px;
  margin-top: 28px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(123,231,255,.25);
  border-radius: 16px;
  background: rgba(123,231,255,.035);
}
.search-large span { color: var(--ice); font-size: 28px; }
.search-large input { flex: 1; border: 0; background: transparent; color: var(--paper); font-size: 17px; }
.genre-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.genre-card {
  position: relative;
  min-height: 130px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.008));
  color: var(--paper);
  text-align: left;
}
.genre-card::after { position: absolute; right: -20px; bottom: -38px; width: 110px; height: 110px; border: 18px solid var(--genre, var(--orange)); border-radius: 50%; opacity: .28; content: ""; }
.genre-card strong { display: block; font-size: 18px; }
.genre-card small { display: block; margin-top: 7px; color: var(--muted); }

.frames-head { margin-bottom: 22px; }
.frames-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.frame-card {
  position: relative;
  min-height: min(660px, calc(100vh - 205px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background:
    radial-gradient(circle at 70% 20%, var(--frame-color, rgba(255,90,54,.5)), transparent 34%),
    linear-gradient(155deg, #17202a, #090b0f 65%);
}
.frame-card img { width: 100%; height: 100%; object-fit: cover; }
.frame-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(5,7,10,.1) 50%, rgba(5,7,10,.95)); }
.frame-copy { position: absolute; right: 74px; bottom: 23px; left: 22px; }
.frame-copy strong { display: block; font-size: 20px; }
.frame-copy span { display: block; margin-top: 5px; color: #bbc0c6; font-size: 11px; }
.frame-play { position: absolute; top: 50%; left: 50%; width: 70px; height: 70px; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(4,6,8,.62); color: #fff; backdrop-filter: blur(12px); }
.frame-play:hover { background: var(--amber); color: #111; }
.frame-tools { position: absolute; right: 13px; bottom: 22px; display: grid; gap: 10px; }
.frame-tools button { width: 47px; height: 47px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; background: rgba(5,7,10,.58); color: #fff; backdrop-filter: blur(10px); }
.frame-tools button.liked { color: var(--amber); }

.library-tabs { display: flex; gap: 7px; margin: 0 0 22px; }
.library-tabs button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); font-size: 10px; }
.library-tabs button.active { border-color: var(--line-hot); background: rgba(255,202,72,.08); color: #fff; }
.empty {
  min-height: 260px;
  padding: 30px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,255,255,.13);
  border-radius: 17px;
  color: var(--muted);
  text-align: center;
}
.empty strong { display: block; margin-bottom: 8px; color: var(--paper); font-size: 19px; }

.studio-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.studio-card { min-height: 160px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.02); }
.studio-card > span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.studio-card strong { display: block; margin: 16px 0 8px; font-size: 36px; letter-spacing: -.06em; }
.mini-chart { height: 40px; display: flex; align-items: flex-end; gap: 3px; }
.mini-chart i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--amber), var(--orange)); opacity: .7; }
.studio-layout { margin-top: 12px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 12px; }
.studio-panel { padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.018); }
.studio-panel h3 { margin: 0 0 20px; }
.retention { height: 250px; display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid var(--line); }
.retention i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--ice), rgba(123,231,255,.05)); opacity: .76; }
.geo-row { margin: 15px 0; display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 10px; font-size: 10px; }
.geo-row i { height: 4px; border-radius: 9px; background: linear-gradient(90deg, var(--orange) var(--w), rgba(255,255,255,.06) var(--w)); }

.profile-panel { display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: center; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.02); }
.profile-avatar { width: 180px; height: 180px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--amber), var(--orange) 55%, #31141a); color: #111; font-size: 68px; font-weight: 900; }
.profile-panel h1 { margin: 0; font-size: clamp(36px, 6vw, 74px); letter-spacing: -.07em; }
.profile-panel p { color: var(--muted); }

.player {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--player);
  padding: 11px 20px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(310px, 1.4fr) minmax(170px, .7fr);
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(255,202,72,.22);
  background: rgba(8,10,14,.94);
  box-shadow: 0 -20px 60px rgba(0,0,0,.28);
  backdrop-filter: blur(28px);
}
.player-track { min-width: 0; padding: 0; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: var(--paper); text-align: left; }
.player-cover { flex: 0 0 58px; width: 58px; height: 58px; overflow: hidden; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg, #2a3540, #131920); color: #89939d; }
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-cover b { font-size: 12px; }
.player-meta { min-width: 0; display: grid; gap: 4px; }
.player-meta strong, .player-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-meta strong { font-size: 11px; }
.player-meta small { color: var(--muted); font-size: 9px; }
.player-transport { display: flex; align-items: center; gap: 5px; }
.player-transport button, .player-tools button, .now-controls button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8c96a1;
}
.player-transport button:hover, .player-tools button:hover { color: var(--paper); background: rgba(255,255,255,.04); }
.main-play { width: 48px !important; height: 48px !important; background: var(--paper) !important; color: var(--ink) !important; }
.main-play span { display: block; width: 0; height: 0; margin-left: 3px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; }
.playing .main-play span, .main-play.playing span { width: 10px; height: 14px; margin: 0; border: 0; border-right: 4px solid currentColor; border-left: 4px solid currentColor; }
.player-line { min-width: 0; display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; gap: 8px; color: #68727d; font: 700 8px/1 ui-monospace, monospace; }
input[type="range"] { width: 100%; height: 3px; accent-color: var(--amber); cursor: pointer; }
.player-tools { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.player-tools input { max-width: 90px; }
.player-tools > span { color: #68727d; }
.player-tools button.active { color: var(--amber); }

.now-playing {
  position: fixed;
  z-index: 140;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(5,7,10,.96);
  backdrop-filter: blur(25px);
}
.now-bg { position: absolute; inset: 0; opacity: .12; background-position: center; background-size: cover; filter: blur(50px) saturate(1.6); }
.now-playing header { position: relative; z-index: 2; height: 76px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.now-playing header button { border: 0; background: transparent; color: #fff; font-size: 24px; }
.now-playing header span { color: var(--muted); font: 800 9px/1 ui-monospace, monospace; letter-spacing: .18em; }
.now-content { position: relative; z-index: 2; width: min(560px, calc(100% - 34px)); margin: 10px auto 50px; }
.now-art { width: min(470px, 100%); aspect-ratio: 1; margin: auto; overflow: hidden; display: grid; place-items: center; border-radius: 28px; background: linear-gradient(145deg, #1d2933, #0c1015); box-shadow: 0 35px 80px rgba(0,0,0,.45); color: #5d6873; font-size: 80px; }
.now-art img { width: 100%; height: 100%; object-fit: cover; }
.now-copy { margin: 28px 0 20px; }
.now-copy h1 { margin: 0; font-size: clamp(29px, 7vw, 45px); letter-spacing: -.055em; }
.now-copy p { margin: 6px 0 0; color: var(--muted); }
.now-times { margin-top: 7px; display: flex; justify-content: space-between; color: var(--muted); font: 700 9px/1 ui-monospace, monospace; }
.now-controls { margin: 22px 0; display: flex; align-items: center; justify-content: center; gap: 22px; }
.now-controls button { width: 50px; height: 50px; color: #fff; }
.now-controls .main-play { width: 72px !important; height: 72px !important; }
.now-secondary { display: flex; justify-content: space-between; }
.now-secondary button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: #a3acb5; }

.scrim { position: fixed; z-index: 180; inset: 0; padding: 24px; display: grid; place-items: center; overflow: auto; background: rgba(3,5,7,.82); backdrop-filter: blur(18px); }
.dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: linear-gradient(145deg, #121820, #0b0f14);
  box-shadow: 0 35px 100px rgba(0,0,0,.55);
  animation: dialogIn .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes dialogIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.dialog-close { position: absolute; top: 17px; right: 17px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #89929c; font-size: 20px; }
.dialog h2 { margin: 0 0 12px; font-size: 34px; letter-spacing: -.05em; }
.dialog-lead { color: var(--muted); font-size: 12px; line-height: 1.6; }
.dialog-mark { margin-bottom: 25px; }
.auth-tabs { margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); }
.auth-tabs button.active { border-color: var(--amber); color: #fff; }
.form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 7px; color: #929ba5; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: var(--paper);
  font-size: 12px;
  text-transform: none;
}
.form select option { background: #111820; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: rgba(123,231,255,.38); }
.form-error { min-height: 16px; margin: 0; color: var(--danger); font-size: 10px; line-height: 1.5; }
.upload-dialog { width: min(820px, 100%); }
.drop-field {
  min-height: 150px;
  display: grid !important;
  place-items: center;
  align-content: center;
  gap: 8px !important;
  border: 1px dashed rgba(123,231,255,.28);
  border-radius: 16px;
  background: rgba(123,231,255,.025);
  text-align: center;
}
.drop-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-symbol { width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid rgba(123,231,255,.24); border-radius: 50%; color: var(--ice); font-size: 25px; }
.drop-field strong { color: var(--paper); font-size: 15px; text-transform: none; }
.drop-field small { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.upload-analysis { padding: 11px 13px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,202,72,.15); border-radius: 9px; color: #a9a18b; font-size: 10px; }
.upload-analysis i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: blink 1s infinite; }
.upload-progress { position: relative; height: 34px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(123,231,255,.18); border-radius: 9px; background: rgba(123,231,255,.04); color: var(--paper); font: 800 10px/1 ui-monospace, monospace; }
.upload-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(123,231,255,.25), rgba(255,202,72,.34)); transition: width .2s ease; }
.upload-progress span { position: relative; z-index: 1; }
.upload-options { display: flex; flex-wrap: wrap; gap: 8px 15px; }
.upload-options label { display: flex; grid-template: none; align-items: center; gap: 7px; color: #9ba4ad; font-weight: 500; letter-spacing: 0; text-transform: none; }
.upload-options input { width: 16px; height: 16px; padding: 0; accent-color: var(--amber); }
.queue-dialog { width: min(600px, 100%); }
.queue-list { display: grid; }
.queue-item { padding: 9px 0; display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.queue-item button { width: 45px; height: 45px; border: 0; border-radius: 8px; background: #171e25; color: var(--amber); }
.queue-item div { min-width: 0; display: grid; gap: 3px; }
.queue-item strong, .queue-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-item strong { font-size: 11px; }
.queue-item span, .queue-item small { color: var(--muted); font-size: 9px; }
.toast-stack { position: fixed; z-index: 250; right: 18px; bottom: calc(var(--player) + 18px); display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px; background: #151c23; color: #dfe2e5; font-size: 11px; box-shadow: 0 15px 45px rgba(0,0,0,.35); animation: toastIn .25s ease; }
.toast.error { border-color: rgba(255,93,108,.35); }
@keyframes toastIn { from { opacity: 0; transform: translateX(14px); } }
body.offline .signal-dot { background: var(--danger); box-shadow: 0 0 14px rgba(255,93,108,.5); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

.mobile-dock { display: none; }
.skeleton { overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.035); }
.skeleton::after { width: 100%; height: 100%; display: block; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); animation: shimmer 1.5s infinite; content: ""; }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 1220px) {
  .rail-cards { grid-template-columns: repeat(4, 1fr); }
  .frames-grid { grid-template-columns: repeat(2, 1fr); }
  .home-hero { grid-template-columns: 1fr .7fr; }
  .studio-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --player: 76px; }
  .app { display: block; padding-bottom: calc(var(--player) + 64px + env(safe-area-inset-bottom)); }
  .rail { display: none; }
  .stage { min-width: 0; }
  .command-bar { height: 68px; padding: 10px 14px; gap: 9px; }
  .mobile-logo { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #0e1319; }
  .mobile-logo .brand-glyph { transform: scale(.72); }
  .command-search { width: auto; flex: 1; height: 44px; }
  .command-search, .command-search input { min-width: 0; }
  .command-search kbd, .live-pill, .command-actions .command-button { display: none; }
  .command-actions { margin: 0; }
  .command-actions #loginButton:not(.hidden) {
    width: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 0;
  }
  .command-actions #loginButton::after {
    color: var(--amber);
    font-size: 17px;
    content: "↪";
  }
  .avatar-button:not(.hidden) { display: grid !important; place-items: center; }
  .view { min-height: calc(100vh - 68px - var(--player) - 64px); padding: 18px 14px 42px; }
  .mobile-dock {
    position: fixed;
    z-index: 105;
    right: 0;
    bottom: calc(var(--player) + env(safe-area-inset-bottom));
    left: 0;
    height: 64px;
    padding: 5px 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(7,9,12,.96);
    backdrop-filter: blur(22px);
  }
  .mobile-dock button { display: grid; place-items: center; align-content: center; gap: 3px; border: 0; background: transparent; color: #68727d; }
  .mobile-dock button > span { font-size: 19px; }
  .mobile-dock small { font-size: 8px; }
  .mobile-dock button.active { color: var(--amber); }
  .mobile-dock button.active > span { filter: drop-shadow(0 0 8px rgba(255,202,72,.34)); }

  .home-hero { min-height: 580px; padding: 30px 23px; display: block; }
  .hero-copy h1 { margin-top: 20px; font-size: clamp(57px, 16vw, 82px); }
  .hero-copy > p:not(.overline) { font-size: 13px; }
  .hero-signal { position: absolute; right: -42px; bottom: -80px; width: 280px; height: 280px; opacity: .8; }
  .signal-core { width: 130px; height: 130px; }
  .city-label { display: none; }
  .metric-line { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .rail-cards { display: flex; overflow-x: auto; gap: 11px; margin-right: -14px; padding-right: 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .rail-cards::-webkit-scrollbar { display: none; }
  .rail-cards .track-card { flex: 0 0 44vw; scroll-snap-align: start; }
  .card-play { opacity: 1; transform: none; }
  .pulse-grid, .studio-layout { grid-template-columns: 1fr; }
  .track-row { grid-template-columns: 30px 48px minmax(0,1fr) 52px; }
  .row-album, .row-stat { display: none; }
  .row-actions button:not([data-like]) { display: none; }
  .air-hero { min-height: 590px; padding: 30px 22px; display: block; }
  .air-hero h1 { font-size: 58px; }
  .air-disc { position: absolute; right: -65px; bottom: -60px; width: 250px; height: 250px; opacity: .8; }
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .frames-grid { display: flex; overflow-x: auto; margin: 0 -14px; padding: 0 14px 6px; gap: 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .frames-grid::-webkit-scrollbar { display: none; }
  .frame-card { flex: 0 0 calc(100vw - 40px); min-height: calc(100vh - 68px - var(--player) - 64px - 130px); scroll-snap-align: center; }
  .profile-panel { grid-template-columns: 110px 1fr; padding: 22px; }
  .profile-avatar { width: 110px; height: 110px; font-size: 40px; }

  .player {
    bottom: env(safe-area-inset-bottom);
    height: var(--player);
    padding: 8px 12px;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
  }
  .player-cover { flex-basis: 50px; width: 50px; height: 50px; }
  .player-transport { gap: 0; }
  .player-transport #shuffleButton, .player-transport #repeatButton { display: none; }
  .player-transport button { width: 32px; }
  .player-transport .main-play { width: 46px !important; height: 46px !important; }
  .player-line, .player-tools { display: none; }
  .toast-stack { right: 10px; bottom: calc(var(--player) + 74px + env(safe-area-inset-bottom)); left: 10px; }
  .toast { max-width: none; }
}

@media (max-width: 560px) {
  .command-bar { padding-inline: 10px; }
  .mobile-logo { flex-basis: 40px; width: 40px; height: 40px; }
  .command-actions #loginButton:not(.hidden) { width: 38px; }
  .command-search { height: 40px; }
  .command-search input::placeholder { color: transparent; }
  .page-head { display: block; }
  .page-head h1 { font-size: 46px; }
  .section { margin-top: 32px; }
  .section-head h2 { font-size: 25px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; max-width: 220px; }
  .metric { padding: 14px; }
  .metric strong { font-size: 20px; }
  .pulse-main { padding: 17px; }
  .pulse-wave { height: 110px; }
  .search-hero { margin: 25px auto 34px; text-align: left; }
  .search-hero h1 { font-size: 54px; }
  .search-large { height: 58px; }
  .frames-head { margin-bottom: 15px; }
  .studio-metrics { grid-template-columns: 1fr 1fr; }
  .studio-card { min-height: 135px; padding: 15px; }
  .studio-card strong { font-size: 27px; }
  .profile-panel { display: block; text-align: center; }
  .profile-avatar { margin: 0 auto 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .dialog { padding: 27px 20px; border-radius: 18px; }
  .scrim { padding: 10px; place-items: end center; }
  .upload-dialog { max-height: 94vh; border-radius: 24px 24px 10px 10px; }
}

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