:root {
  color-scheme: dark;
  --bg: #0d0b10;
  --panel: #141117;
  --panel-2: #1b171d;
  --panel-3: #241e26;
  --text: #f8f5f5;
  --muted: #a39ba5;
  --subtle: #746d77;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ff6248;
  --accent-2: #ee426f;
  --accent-soft: rgba(255, 98, 72, 0.16);
  --success: #65d28a;
  --sidebar: 244px;
  --player: 92px;
  --radius: 18px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-icon] { display: inline-grid; place-items: center; flex: 0 0 auto; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto var(--player) 0; z-index: 20; width: var(--sidebar); padding: 28px 18px 20px; display: flex; flex-direction: column; background: #0b090d; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 28px; color: var(--text); text-decoration: none; font: 800 22px/1 "Manrope", sans-serif; letter-spacing: -.6px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #ff7958, #e53e70); box-shadow: 0 8px 24px rgba(238, 66, 111, .28); }
.brand-mark svg { width: 22px; height: 22px; fill: white; stroke: none; }
.nav-list { display: grid; gap: 5px; }
.nav-item { position: relative; width: 100%; height: 45px; border: 0; border-radius: 10px; padding: 0 12px; display: flex; align-items: center; gap: 13px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 600; text-align: left; transition: .18s ease; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.045); }
.nav-item.active { color: white; background: var(--accent-soft); }
.nav-item.active::before { content: ""; position: absolute; left: -18px; width: 3px; height: 24px; border-radius: 0 3px 3px 0; background: var(--accent); }
.library-heading { margin-top: 28px; padding: 0 6px 12px 12px; display: flex; justify-content: space-between; align-items: center; color: #7e7680; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.icon-button:hover { color: white; background: rgba(255,255,255,.07); }
.icon-button:disabled { cursor: default; opacity: .36; }
.icon-button.active { color: var(--accent); background: var(--accent-soft); }
.library-heading .icon-button { width: 28px; height: 28px; }
.library-heading svg { width: 17px; height: 17px; }
.library-summary { padding: 8px; display: flex; align-items: center; gap: 11px; border-radius: 10px; cursor: pointer; }
.library-summary:hover { background: rgba(255,255,255,.04); }
.mini-cover { width: 44px; height: 44px; display: grid; place-items: center; color: #ffb4a4; background: linear-gradient(145deg, #5b2630, #2a1d2a); border-radius: 7px; }
.library-summary > div:last-child { min-width: 0; display: grid; gap: 4px; }
.library-summary strong { font-size: 13px; }
.library-summary span { color: var(--subtle); font-size: 11px; }
.sidebar-spacer { flex: 1; }
.install-card { width: 100%; margin-bottom: 14px; padding: 12px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,98,72,.2); border-radius: 12px; color: var(--text); background: linear-gradient(135deg, rgba(255,98,72,.13), rgba(238,66,111,.07)); cursor: pointer; text-align: left; }
.install-card:hover { border-color: rgba(255,98,72,.4); transform: translateY(-1px); }
.install-icon { width: 34px; height: 34px; border-radius: 50%; color: white; background: var(--accent); }
.install-card > span:last-child { display: grid; gap: 2px; }
.install-card strong { font-size: 12px; }
.install-card small { color: var(--muted); font-size: 10px; }
.privacy-note { display: flex; align-items: center; gap: 8px; padding: 0 9px; color: #665f68; font-size: 9px; line-height: 1.35; }
.privacy-note svg { width: 14px; height: 14px; }

.main-content { position: fixed; inset: 0 0 var(--player) var(--sidebar); overflow-y: auto; overflow-x: hidden; background: radial-gradient(circle at 84% 0%, rgba(109,47,63,.17), transparent 25%), var(--panel); scrollbar-color: #463e47 transparent; }
.topbar { position: sticky; top: 0; z-index: 15; height: 76px; padding: 0 38px; display: grid; grid-template-columns: auto minmax(280px, 520px) 1fr; align-items: center; gap: 18px; background: rgba(20,17,23,.88); border-bottom: 1px solid rgba(255,255,255,.045); backdrop-filter: blur(20px); }
.history-buttons { display: flex; gap: 5px; }
.icon-button.subtle { width: 32px; height: 32px; background: #0d0b0f; }
.global-search { height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 9px; color: #827b84; background: #211d23; border: 1px solid transparent; border-radius: 10px; transition: .2s ease; }
.global-search:focus-within { color: var(--muted); border-color: rgba(255,98,72,.38); background: #272129; box-shadow: 0 0 0 3px rgba(255,98,72,.06); }
.global-search input { min-width: 0; flex: 1; color: white; background: transparent; border: 0; outline: 0; font-size: 13px; }
input::placeholder { color: #6e6770; }
.global-search kbd { padding: 3px 6px; color: #716a73; background: #171419; border: 1px solid #332e35; border-radius: 5px; font: 9px/1.2 inherit; }
.round-add { justify-self: end; height: 38px; padding: 0 16px; display: flex; align-items: center; gap: 7px; color: white; background: var(--accent); border: 0; border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: 700; box-shadow: 0 8px 20px rgba(255,98,72,.18); }
.round-add:hover, .primary-button:hover { background: #ff755d; transform: translateY(-1px); }
.round-add svg { width: 16px; height: 16px; }

.view { display: none; min-height: calc(100vh - var(--player)); padding-bottom: 40px; animation: viewIn .28s ease; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.hero { position: relative; min-height: 390px; padding: 54px 6vw 44px; display: grid; grid-template-columns: minmax(380px, .9fr) 1fr; overflow: hidden; background: radial-gradient(circle at 72% 48%, rgba(153,61,69,.18), transparent 35%), linear-gradient(105deg, #1b161d, #161218); border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #d7cfd5; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.eyebrow.plain { color: var(--accent); }
.eyebrow.light { color: rgba(255,255,255,.78); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(101,210,138,.09); }
.hero h1, .page-intro h1, .discover-hero h1 { margin: 17px 0 15px; font: 700 clamp(44px, 5vw, 72px)/.98 "Manrope", sans-serif; letter-spacing: -3.8px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p { max-width: 480px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.hero-actions { margin-top: 28px; display: flex; gap: 10px; }
.primary-button, .secondary-button, .light-button { min-height: 42px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 22px; border: 0; cursor: pointer; font-size: 12px; font-weight: 700; transition: .18s ease; }
.primary-button { color: white; background: var(--accent); box-shadow: 0 8px 22px rgba(255,98,72,.19); }
.secondary-button { color: #d9d3d9; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); }
.secondary-button:hover { background: rgba(255,255,255,.09); }
.primary-button svg, .secondary-button svg, .light-button svg { width: 16px; height: 16px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 280px; }
.record-card { position: relative; z-index: 2; width: min(31vw, 360px); aspect-ratio: 1.42; padding: 22px; display: flex; align-items: center; gap: 23px; background: linear-gradient(135deg, rgba(57,46,57,.78), rgba(25,20,27,.88)); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; box-shadow: 0 35px 70px rgba(0,0,0,.42); backdrop-filter: blur(18px); transform: rotate(-4deg); }
.record { position: relative; flex: 0 0 55%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #171319 0 4px, #252027 5px 6px); box-shadow: 0 16px 35px rgba(0,0,0,.45); }
.record-ring { position: absolute; inset: 12%; border-radius: 50%; border: 1px solid rgba(255,255,255,.09); }
.record-label { position: absolute; inset: 34%; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: 50%; }
.record-label svg { width: 24px; height: 24px; }
.record-caption { min-width: 0; display: grid; gap: 8px; }
.record-caption span { color: var(--accent); font-size: 7px; font-weight: 700; letter-spacing: 1px; }
.record-caption strong { font: 700 15px/1.2 "Manrope"; }
.record-caption small { color: var(--subtle); font-size: 9px; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { width: 230px; height: 230px; background: rgba(255,98,72,.15); box-shadow: 0 0 80px rgba(255,98,72,.15); }
.orb-two { width: 95px; height: 95px; right: 7%; top: 10%; background: rgba(126,66,125,.22); }
.float-note { position: absolute; z-index: 3; display: grid; place-items: center; color: rgba(255,255,255,.75); background: rgba(70,57,70,.6); border: 1px solid rgba(255,255,255,.1); border-radius: 50%; backdrop-filter: blur(10px); }
.note-one { width: 46px; height: 46px; left: 4%; bottom: 17%; transform: rotate(10deg); }
.note-two { width: 35px; height: 35px; right: 10%; top: 18%; }

.section-heading { padding: 34px 4vw 18px; display: flex; justify-content: space-between; align-items: end; }
.section-heading h2 { margin: 7px 0 0; font: 700 22px/1.2 "Manrope"; letter-spacing: -.7px; }
.text-button { padding: 8px 0; display: flex; align-items: center; gap: 6px; color: var(--muted); background: none; border: 0; cursor: pointer; font-size: 11px; font-weight: 600; }
.text-button:hover { color: white; }
.text-button svg { width: 14px; height: 14px; }
.album-grid { min-height: 185px; padding: 0 4vw 12px; display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: 16px; }
.album-card { min-width: 0; cursor: pointer; }
.album-cover { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: linear-gradient(145deg, #422634, #1d1920); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-cover .fallback-letter { font: 800 38px/1 "Manrope"; color: rgba(255,255,255,.8); }
.album-play { position: absolute; right: 9px; bottom: 9px; width: 36px; height: 36px; display: grid; place-items: center; color: white; background: var(--accent); border: 0; border-radius: 50%; box-shadow: 0 8px 20px rgba(0,0,0,.35); opacity: 0; transform: translateY(5px); transition: .2s ease; }
.album-card:hover .album-play { opacity: 1; transform: none; }
.album-play svg { width: 15px; height: 15px; fill: currentColor; }
.album-card h3 { margin: 10px 0 3px; overflow: hidden; color: #e9e5e8; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.album-card p { margin: 0; overflow: hidden; color: var(--subtle); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.empty-card { grid-column: 1 / -1; min-height: 165px; padding: 28px; display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--muted); border: 1px dashed rgba(255,255,255,.11); border-radius: var(--radius); background: rgba(255,255,255,.018); text-align: left; }
.empty-card .empty-icon { width: 54px; height: 54px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 50%; }
.empty-card strong { display: block; margin-bottom: 4px; color: white; }
.empty-card p { margin: 0 0 10px; font-size: 11px; }
.empty-card button { padding: 0; color: var(--accent); background: none; border: 0; cursor: pointer; font-size: 11px; font-weight: 700; }
.songs-heading { padding-top: 28px; }
.song-actions { display: flex; gap: 8px; align-items: center; }
.icon-button.outlined { border: 1px solid var(--line); }
.primary-button.compact { min-height: 36px; padding: 0 16px; }
.primary-button.compact svg { fill: currentColor; }
.track-table-wrap { margin: 0 4vw; overflow: hidden; }
.track-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.track-table th { height: 34px; padding: 0 10px; color: #6f6872; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 600; letter-spacing: .8px; text-align: left; text-transform: uppercase; }
.track-table th:first-child, .track-table td:first-child { width: 42px; text-align: center; }
.track-table th:nth-child(2) { width: 44%; }
.track-table th:last-child, .track-table td:last-child { width: 82px; }
.track-row { height: 60px; border-bottom: 1px solid rgba(255,255,255,.035); cursor: default; }
.track-row:hover { background: rgba(255,255,255,.035); }
.track-row.playing { background: rgba(255,98,72,.065); }
.track-row td { padding: 7px 10px; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-number { color: #655e68; font-size: 10px; }
.track-row:hover .track-number { display: none; }
.row-play { display: none; width: 26px; height: 26px; place-items: center; margin: auto; color: white; background: transparent; border: 0; cursor: pointer; }
.track-row:hover .row-play, .track-row.playing .row-play { display: grid; }
.row-play svg { width: 14px; height: 14px; fill: currentColor; }
.track-title-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.track-thumb { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 6px; color: rgba(255,255,255,.75); background: linear-gradient(145deg, #4d2933, #241d26); }
.track-thumb img { width: 100%; height: 100%; object-fit: cover; }
.track-copy { min-width: 0; display: grid; gap: 3px; }
.track-copy strong { overflow: hidden; color: #eae6e9; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.track-copy span { overflow: hidden; color: #7e7680; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.track-row.playing .track-copy strong { color: var(--accent); }
.row-like { color: #665f68; }
.row-like.liked { color: var(--accent); }
.row-like svg { width: 16px; height: 16px; }
.row-like.liked svg { fill: currentColor; }
.table-empty { min-height: 230px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.table-empty svg { width: 30px; height: 30px; margin-bottom: 9px; color: var(--accent); }
.table-empty strong { display: block; color: white; font-size: 13px; }
.table-empty p { margin: 5px 0 0; font-size: 11px; }

.page-intro { padding: 60px 5vw 25px; }
.page-intro h1 { margin: 12px 0 8px; font-size: clamp(38px, 5vw, 65px); }
.page-intro p { margin: 0; color: var(--muted); }
.page-search { height: 58px; margin: 0 5vw; padding: 0 18px; display: flex; align-items: center; gap: 12px; color: var(--muted); background: #211c22; border: 1px solid var(--line); border-radius: 14px; }
.page-search:focus-within { border-color: rgba(255,98,72,.45); }
.page-search svg { width: 22px; height: 22px; }
.page-search input { width: 100%; color: white; background: transparent; border: 0; outline: 0; font-size: 16px; }
.filter-row { margin: 18px 5vw 8px; display: flex; gap: 8px; }
.chip { height: 30px; padding: 0 14px; color: var(--muted); background: #211d23; border: 1px solid transparent; border-radius: 16px; cursor: pointer; font-size: 10px; font-weight: 600; }
.chip.active { color: white; background: var(--accent-soft); border-color: rgba(255,98,72,.18); }
.result-summary { margin: 30px 5vw 12px; color: var(--muted); font-size: 11px; }
#view-search .track-table-wrap { margin: 0 5vw; }

.discover-hero { padding: 60px 7vw 48px; color: white; background: radial-gradient(circle at 80% 40%, rgba(255,171,137,.23), transparent 30%), linear-gradient(120deg, #b83d5c 0%, #e65956 45%, #e88768 100%); }
.discover-hero h1 { margin: 13px 0 14px; max-width: 730px; font-size: clamp(44px, 6vw, 78px); }
.discover-hero > p { max-width: 600px; margin: 0; color: rgba(255,255,255,.78); line-height: 1.6; }
.discover-form { max-width: 920px; margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.discover-form label > span { display: block; margin: 0 0 6px 3px; color: rgba(255,255,255,.73); font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.discover-form label > div { height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.7); background: rgba(56,24,37,.25); border: 1px solid rgba(255,255,255,.16); border-radius: 11px; backdrop-filter: blur(10px); }
.discover-form input { width: 100%; color: white; background: transparent; border: 0; outline: 0; }
.discover-form input::placeholder { color: rgba(255,255,255,.47); }
.light-button { height: 48px; color: #be4053; background: white; border-radius: 11px; }
.light-button:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(68,23,31,.2); }
.youtube-convert-form { max-width: 920px; margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.youtube-convert-form label > span { display: block; margin: 0 0 6px 3px; color: rgba(255,255,255,.73); font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.youtube-convert-form label > div { height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.7); background: rgba(56,24,37,.25); border: 1px solid rgba(255,255,255,.16); border-radius: 11px; backdrop-filter: blur(10px); }
.youtube-convert-form input { width: 100%; color: white; background: transparent; border: 0; outline: 0; }
.youtube-convert-form input::placeholder { color: rgba(255,255,255,.47); }
.youtube-convert-button { white-space: nowrap; }
.youtube-hint { margin: 12px 0 0; max-width: 720px; color: rgba(255,255,255,.72); font-size: 10px; line-height: 1.45; }
.youtube-badge { width: 20px; height: 14px; display: grid; place-items: center; color: white; background: rgba(255,255,255,.22); border-radius: 4px; font-size: 8px; }
.license-banner { margin: 28px 5vw 0; padding: 15px 18px; display: flex; align-items: center; gap: 13px; color: #b1aab2; background: rgba(101,210,138,.06); border: 1px solid rgba(101,210,138,.15); border-radius: 12px; }
.license-banner > span { width: 34px; height: 34px; color: var(--success); background: rgba(101,210,138,.1); border-radius: 50%; }
.license-banner strong { color: #d7e8dc; font-size: 11px; }
.license-banner p { margin: 3px 0 0; font-size: 10px; line-height: 1.45; }
.discover-results-heading { padding-left: 5vw; padding-right: 5vw; }
.discover-grid { min-height: 180px; padding: 0 5vw; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.discover-card { position: relative; min-height: 155px; padding: 19px; display: grid; grid-template-columns: 66px 1fr; gap: 14px; align-items: start; overflow: hidden; background: #1d1920; border: 1px solid var(--line); border-radius: 15px; }
.discover-card:hover { border-color: rgba(255,98,72,.25); background: #211b22; }
.discover-cover { width: 66px; height: 66px; display: grid; place-items: center; overflow: hidden; color: #e4c9d1; background: linear-gradient(145deg, #7a3949, #392532); border-radius: 10px; }
.discover-cover img { width: 100%; height: 100%; object-fit: cover; }
.discover-info { min-width: 0; }
.discover-info h3 { margin: 2px 0 5px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.discover-info p { margin: 0 0 9px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.license-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: 8px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.license-tag svg { width: 11px; height: 11px; }
.discover-card-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 2px; }
.discover-card-actions button, .discover-card-actions a { height: 30px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); background: #29232b; border: 0; border-radius: 7px; cursor: pointer; text-decoration: none; font-size: 9px; font-weight: 600; }
.discover-card-actions button:first-child { color: white; background: var(--accent); }
.discover-card-actions button:hover, .discover-card-actions a:hover { filter: brightness(1.12); }
.discover-card-actions svg { width: 12px; height: 12px; }
.loading-cards { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.skeleton { height: 155px; border-radius: 15px; background: linear-gradient(100deg, #1d1920 30%, #272129 50%, #1d1920 70%); background-size: 250% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position-x: -250%; } }

.liked-hero { min-height: 280px; padding: 50px 5vw 30px; display: flex; align-items: end; gap: 27px; background: linear-gradient(180deg, rgba(121,52,78,.5), rgba(20,17,23,.2)); }
.liked-cover { width: 180px; height: 180px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #e54468, #f58468); border-radius: 12px; box-shadow: 0 25px 55px rgba(0,0,0,.32); }
.liked-cover svg { width: 58px; height: 58px; fill: currentColor; stroke: none; }
.liked-hero h1 { margin: 7px 0 7px; font: 800 clamp(42px, 6vw, 72px)/1 "Manrope"; letter-spacing: -3px; }
.liked-hero p { margin: 0; color: var(--muted); font-size: 11px; }
.liked-actions { padding: 24px 5vw 12px; }
.primary-button.round { width: 50px; height: 50px; min-height: 50px; padding: 0; border-radius: 50%; }
.primary-button.round svg { width: 19px; height: 19px; fill: currentColor; }
#view-liked .track-table-wrap { margin: 0 5vw; }

.player { position: fixed; inset: auto 0 0 0; z-index: 50; height: var(--player); padding: 0 20px; display: grid; grid-template-columns: minmax(240px, 1fr) minmax(330px, 1.4fr) minmax(180px, 1fr); align-items: center; color: white; background: rgba(13,11,15,.97); border-top: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(24px); }
.now-playing { min-width: 0; display: flex; align-items: center; gap: 11px; }
.player-cover { width: 56px; height: 56px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; color: #a8828e; background: linear-gradient(145deg, #3d2630, #1f1a20); border-radius: 8px; }
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-track { min-width: 0; display: grid; gap: 4px; }
.player-track strong, .player-track span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-track strong { font-size: 12px; }
.player-track span { color: var(--subtle); font-size: 10px; }
.like-player { margin-left: 3px; }
.like-player.liked { color: var(--accent); }
.like-player.liked svg { fill: currentColor; }
.transport { display: grid; justify-items: center; gap: 5px; }
.transport-buttons { display: flex; align-items: center; gap: 7px; }
.transport-buttons .icon-button { width: 29px; height: 29px; }
.transport-buttons .icon-button svg { width: 16px; height: 16px; }
#repeatButton[data-mode="one"] { position: relative; }
#repeatButton[data-mode="all"]::after,
#repeatButton[data-mode="one"]::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  min-width: 12px;
  height: 12px;
  padding: 0 3px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--accent);
  border-radius: 6px;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
}
#repeatButton[data-mode="all"]::after { content: "all"; }
#repeatButton[data-mode="one"]::after { content: "1"; }
.play-button { width: 34px; height: 34px; display: grid; place-items: center; color: #181318; background: white; border: 0; border-radius: 50%; cursor: pointer; }
.play-button:hover { transform: scale(1.05); }
.play-button:disabled { opacity: .45; cursor: default; }
.play-button svg { width: 16px; height: 16px; fill: currentColor; stroke-width: 2; }
.timeline { width: min(100%, 530px); display: grid; grid-template-columns: 31px 1fr 31px; align-items: center; gap: 6px; color: #716a73; font-size: 8px; }
input[type="range"] { --value: 0%; height: 3px; margin: 0; appearance: none; background: linear-gradient(to right, var(--accent) var(--value), #39333b var(--value)); border-radius: 3px; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { width: 10px; height: 10px; appearance: none; background: white; border-radius: 50%; opacity: 0; }
input[type="range"]:hover::-webkit-slider-thumb { opacity: 1; }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; background: white; border: 0; border-radius: 50%; }
.player-tools { justify-self: end; display: flex; align-items: center; gap: 7px; color: #89818a; }
.player-tools svg { width: 16px; height: 16px; }
#volumeBar { width: 85px; }
.mobile-nav { display: none; }

.modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 20px; color: var(--text); background: rgba(6,5,7,.75); border: 0; backdrop-filter: blur(10px); }
.modal[open] { display: grid; place-items: center; animation: fadeIn .18s ease; }
.modal::backdrop { background: transparent; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card { position: relative; width: min(100%, 490px); padding: 40px; background: #1b171d; border: 1px solid rgba(255,255,255,.1); border-radius: 21px; box-shadow: 0 35px 90px rgba(0,0,0,.55); text-align: center; }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal-icon { width: 62px; height: 62px; margin: 0 auto 18px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--accent), var(--accent-2)); border-radius: 50%; box-shadow: 0 12px 28px rgba(238,66,111,.2); }
.modal-icon svg { width: 28px; height: 28px; }
.modal-icon.warm { color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.modal-card h2 { margin: 9px 0 9px; font: 700 25px/1.2 "Manrope"; letter-spacing: -.7px; }
.modal-card > p { margin: 0 auto; max-width: 390px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.import-options { margin-top: 25px; display: grid; gap: 9px; }
.import-options button { min-height: 69px; padding: 12px 15px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; color: var(--muted); background: #231e25; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-align: left; }
.import-options button:hover { color: white; border-color: rgba(255,98,72,.3); background: #282229; }
.option-icon { width: 40px; height: 40px; color: #e1b59f; background: rgba(225,181,159,.09); border-radius: 9px; }
.option-icon.accent { color: var(--accent); background: var(--accent-soft); }
.import-options button > span:nth-child(2) { display: grid; gap: 4px; }
.import-options strong { color: #e8e3e7; font-size: 12px; }
.import-options small { color: var(--subtle); font-size: 9px; }
.import-options button > [data-icon]:last-child svg { width: 16px; height: 16px; }
.modal-foot { margin-top: 19px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #6f6871; font-size: 9px; }
.modal-foot svg { width: 13px; height: 13px; }
.compact-modal { max-width: 400px; }
.compact-modal .wide { width: 100%; margin-top: 22px; }

.toast-region { position: fixed; z-index: 100; right: 20px; bottom: calc(var(--player) + 16px); display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 270px; max-width: 380px; padding: 12px 15px; display: flex; align-items: center; gap: 10px; color: #e9e5e8; background: #282229; border: 1px solid rgba(255,255,255,.11); border-radius: 11px; box-shadow: 0 14px 36px rgba(0,0,0,.4); font-size: 11px; animation: toastIn .25s ease; }
.toast.success > span:first-child { color: var(--success); }
.toast.error > span:first-child { color: #ff8b77; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
.loading-overlay { position: fixed; z-index: 90; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgba(10,8,11,.85); backdrop-filter: blur(8px); }
.loading-overlay[hidden] { display: none; }
.loading-overlay strong { margin-top: 7px; font-size: 14px; }
.loading-overlay span { color: var(--muted); font-size: 10px; }
.spinner { width: 38px; height: 38px; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .album-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { grid-template-columns: 1fr .8fr; }
  .record-card { width: 310px; }
  .discover-grid { grid-template-columns: repeat(2, 1fr); }
  .loading-cards { grid-template-columns: repeat(2, 1fr); }
  .track-table th:nth-child(3), .track-table td:nth-child(3) { display: none; }
}

@media (max-width: 820px) {
  :root { --player: 108px; }
  body { overflow: auto; padding-bottom: calc(var(--player) + 62px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .main-content { position: static; min-height: 100vh; overflow: visible; }
  .topbar { height: 65px; padding: 0 16px; grid-template-columns: 1fr auto; gap: 10px; }
  .history-buttons { display: none; }
  .global-search { min-width: 0; }
  .global-search kbd { display: none; }
  .round-add { width: 38px; padding: 0; justify-content: center; }
  .round-add > span:last-child { display: none; }
  .hero { min-height: auto; padding: 44px 24px 48px; grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(46px, 13vw, 66px); letter-spacing: -3px; }
  .hero-art { display: none; }
  .hero-actions { flex-wrap: wrap; }
  .section-heading { padding-left: 20px; padding-right: 20px; }
  .album-grid { padding-left: 20px; padding-right: 20px; grid-template-columns: repeat(2, 1fr); }
  .track-table-wrap, #view-search .track-table-wrap, #view-liked .track-table-wrap { margin-left: 12px; margin-right: 12px; }
  .track-table th:nth-child(4), .track-table td:nth-child(4) { display: none; }
  .track-table th:nth-child(2) { width: auto; }
  .page-intro { padding: 42px 20px 20px; }
  .page-search { margin: 0 20px; }
  .filter-row, .result-summary { margin-left: 20px; margin-right: 20px; }
  .discover-hero { padding: 46px 22px 38px; }
  .discover-hero h1 { letter-spacing: -3px; }
  .discover-form, .youtube-convert-form { grid-template-columns: 1fr; }
  .license-banner { margin: 20px 16px 0; align-items: flex-start; }
  .discover-results-heading { padding-left: 20px; padding-right: 20px; }
  .discover-grid { padding: 0 16px; grid-template-columns: 1fr; }
  .loading-cards { grid-template-columns: 1fr; }
  .liked-hero { min-height: 230px; padding: 36px 20px 24px; gap: 18px; }
  .liked-cover { width: 112px; height: 112px; }
  .liked-cover svg { width: 40px; height: 40px; }
  .liked-hero h1 { font-size: clamp(34px, 10vw, 52px); letter-spacing: -2px; }
  .liked-actions { padding-left: 20px; }
  .player { bottom: calc(58px + env(safe-area-inset-bottom)); height: var(--player); padding: 8px 12px 6px; grid-template-columns: 1fr; gap: 2px; border-bottom: 1px solid var(--line); }
  .player-cover { width: 42px; height: 42px; }
  .player-track { max-width: none; }
  .now-playing .like-player { display: none; }
  .transport { display: grid; width: 100%; }
  .transport-buttons { width: min(100%, 280px); margin: 0 auto; justify-content: space-between; gap: 0; }
  .transport-buttons #shuffleButton, .transport-buttons #previousButton, .transport-buttons #repeatButton { display: inline-grid; }
  .transport-buttons .icon-button { width: 42px; height: 42px; }
  .transport-buttons .icon-button svg { width: 18px; height: 18px; }
  .transport-buttons .play-button { width: 42px; height: 42px; color: white; background: var(--accent); }
  .timeline, .player-tools { display: none; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 55; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(13,11,15,.98); backdrop-filter: blur(20px); }
  .mobile-nav button { display: grid; place-content: center; justify-items: center; gap: 3px; color: #716a73; background: transparent; border: 0; }
  .mobile-nav button.active { color: white; }
  .mobile-nav button.active svg { color: var(--accent); }
  .mobile-nav svg { width: 19px; height: 19px; }
  .mobile-nav small { font-size: 8px; }
  .toast-region { left: 12px; right: 12px; bottom: calc(var(--player) + 66px + env(safe-area-inset-bottom)); }
  .toast { min-width: 0; max-width: none; }
  .modal-card { padding: 34px 20px 24px; }
}

@media (max-width: 430px) {
  .album-grid { gap: 12px; }
  .section-heading h2 { font-size: 20px; }
  .hero-actions > button { flex: 1; padding-left: 12px; padding-right: 12px; }
  .track-table th:first-child, .track-table td:first-child { width: 34px; padding-left: 4px; padding-right: 4px; }
  .track-row td { padding-left: 6px; padding-right: 6px; }
  .track-thumb { width: 38px; height: 38px; }
  .track-table th:last-child, .track-table td:last-child { width: 38px; }
  .liked-cover { width: 92px; height: 92px; }
  .discover-card { grid-template-columns: 55px 1fr; }
  .discover-cover { width: 55px; height: 55px; }
}

html.android, html.android body {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 0;
}
html.android { --player: 108px; }
html.android .app-shell { min-height: 100dvh; height: 100dvh; }
html.android .sidebar { display: none !important; }
html.android .history-buttons, html.android .global-search kbd { display: none; }
html.android .main-content {
  position: fixed !important;
  top: env(safe-area-inset-top, 0px);
  right: 0;
  left: 0;
  bottom: calc(var(--player) + 58px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
html.android .topbar {
  height: auto;
  min-height: 56px;
  padding: 8px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}
html.android .round-add { width: 38px; padding: 0; justify-content: center; }
html.android .round-add > span:last-child { display: none; }
html.android .hero, html.android .page-intro, html.android .discover-hero, html.android .liked-hero { padding-left: 18px; padding-right: 18px; }
html.android .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 28px; }
html.android .hero-art { display: none; }
html.android .hero h1, html.android .page-intro h1, html.android .discover-hero h1, html.android .liked-hero h1 {
  font-size: clamp(32px, 9vw, 44px);
  letter-spacing: -1.5px;
}
html.android .discover-form, html.android .youtube-convert-form { grid-template-columns: 1fr; }
html.android .album-grid, html.android .discover-grid { grid-template-columns: 1fr 1fr; padding-left: 16px; padding-right: 16px; }
html.android .section-heading, html.android .filter-row, html.android .result-summary, html.android .page-search { margin-left: 16px; margin-right: 16px; padding-left: 0; padding-right: 0; }
html.android .track-table-wrap, html.android #view-search .track-table-wrap, html.android #view-liked .track-table-wrap { margin-left: 10px; margin-right: 10px; }
html.android .player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  height: var(--player);
  padding: 8px 12px 6px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
html.android .timeline, html.android .player-tools, html.android .now-playing .like-player { display: none; }
html.android .transport { display: grid; width: 100%; }
html.android .transport-buttons {
  display: flex;
  width: min(100%, 280px);
  margin: 0 auto;
  justify-content: space-between;
  gap: 0;
}
html.android .transport-buttons #shuffleButton,
html.android .transport-buttons #previousButton,
html.android .transport-buttons #repeatButton { display: inline-grid; }
html.android .transport-buttons .icon-button { width: 42px; height: 42px; }
html.android .transport-buttons .play-button { width: 42px; height: 42px; color: white; background: var(--accent); }
html.android .mobile-nav {
  display: grid !important;
  position: fixed;
  inset: auto 0 0;
  z-index: 55;
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  grid-template-columns: repeat(4, 1fr);
  background: rgba(13, 11, 15, .98);
}
html.android .toast-region { left: 12px; right: 12px; bottom: calc(var(--player) + 70px + env(safe-area-inset-bottom, 0px)); }

/* Server-backed web fork */
.account-pill { min-width: 0; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; color: #b9b1ba; background: #0d0b0f; border: 1px solid var(--line); border-radius: 20px; font-size: 11px; font-weight: 700; }
.account-pill svg { width: 15px; height: 15px; color: var(--accent); }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.logout-button { height: 36px; padding: 0 13px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 18px; cursor: pointer; font-size: 11px; font-weight: 700; }
.logout-button:hover { color: white; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); }
#storageSummary { color: #776f78; font-size: 9px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.row-download { color: #665f68; text-decoration: none; }
.row-download:hover { color: var(--accent); }
.row-download svg { width: 15px; height: 15px; }

.login-page { min-height: 100vh; overflow: auto; background: #0d0b10; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(430px, .9fr); }
.login-brand-panel { position: relative; min-height: 100vh; padding: 42px clamp(36px, 6vw, 92px); display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(circle at 80% 26%, rgba(238,66,111,.2), transparent 25%), radial-gradient(circle at 25% 75%, rgba(255,98,72,.12), transparent 28%), linear-gradient(145deg, #161218, #0d0b10); border-right: 1px solid var(--line); }
.login-brand-panel::after { content: "♪"; position: absolute; right: -40px; bottom: -120px; color: rgba(255,255,255,.018); font: 700 560px/1 system-ui; transform: rotate(-9deg); pointer-events: none; }
.login-brand { position: relative; z-index: 1; padding: 0; }
.login-pitch { position: relative; z-index: 1; width: min(600px, 100%); margin: auto 0; }
.login-pitch h1 { margin: 22px 0 24px; font: 700 clamp(54px, 6.5vw, 96px)/.92 system-ui, sans-serif; letter-spacing: -5px; }
.login-pitch h1 em { color: var(--accent); font-style: normal; }
.login-pitch p { width: min(520px, 94%); margin: 0; color: var(--muted); font-size: clamp(15px, 1.5vw, 19px); line-height: 1.65; }
.login-security { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px 18px; color: #777079; font-size: 10px; font-weight: 600; }
.login-security span:nth-child(odd) { color: var(--success); }
.login-form-panel { min-height: 100vh; padding: 34px; display: grid; place-items: center; background: #121014; }
.login-card { width: min(430px, 100%); padding: 48px; background: linear-gradient(145deg, rgba(36,30,38,.95), rgba(24,20,26,.98)); border: 1px solid rgba(255,255,255,.08); border-radius: 24px; box-shadow: 0 32px 80px rgba(0,0,0,.32); }
.login-card h2 { margin: 12px 0 10px; font: 700 34px/1.08 system-ui, sans-serif; letter-spacing: -1.5px; }
.login-card > p { margin: 0 0 30px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-field { display: grid; gap: 8px; margin: 0 0 17px; }
.login-field > span { color: #bdb5be; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.login-field input { width: 100%; height: 50px; padding: 0 15px; color: white; background: #151217; border: 1px solid #39323b; border-radius: 11px; outline: 0; transition: .18s ease; }
.login-field input:focus { border-color: rgba(255,98,72,.75); box-shadow: 0 0 0 4px rgba(255,98,72,.08); }
.login-error { margin: 2px 0 16px; padding: 11px 13px; color: #ffb9ae; background: rgba(255,98,72,.1); border: 1px solid rgba(255,98,72,.2); border-radius: 9px; font-size: 12px; }
.login-submit { width: 100%; height: 50px; margin-top: 5px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: 0; border-radius: 12px; cursor: pointer; font-weight: 800; box-shadow: 0 14px 32px rgba(238,66,111,.2); }
.login-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.login-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.login-foot { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #766e78; font-size: 10px; text-align: center; }
.login-lock { color: var(--accent); font-size: 7px; }

@media (max-width: 820px) {
  .account-pill { display: none; }
  .topbar-actions { justify-self: end; }
  .logout-button { display: none; }
  .track-table th:last-child, .track-table td:last-child { width: 74px; }
  .login-shell { display: block; }
  .login-brand-panel { min-height: 360px; padding: 30px 28px 42px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-pitch { margin: 70px 0 20px; }
  .login-pitch h1 { font-size: 58px; letter-spacing: -3.5px; }
  .login-pitch p { font-size: 14px; }
  .login-security { display: none; }
  .login-form-panel { min-height: auto; padding: 38px 18px 58px; }
  .login-card { padding: 32px 24px; }
}

@media (max-width: 430px) {
  .topbar-actions .round-add { width: 38px; padding: 0; justify-content: center; }
  .topbar-actions .round-add span:last-child { display: none; }
  .track-table th:last-child, .track-table td:last-child { width: 70px; }
  .row-actions .icon-button { width: 31px; height: 31px; }
  .login-brand-panel { min-height: 330px; }
  .login-pitch { margin-top: 56px; }
  .login-pitch h1 { font-size: 48px; }
}

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