/* MUSIC EXPLORER — tema scuro, colori sobri con dettagli luminosi */
:root {
  --bg: #0a0b0f;
  --bg2: #0e1016;
  --panel: #13151c;
  --panel2: #191c25;
  --line: #262a36;
  --text: #eceef4;
  --muted: #8d93a6;
  --dim: #5d6274;
  --accent: #6ef2c1;
  --accent-d: #2fbf8f;
  --accent2: #9a8cff;
  --warm: #ffb86b;
  --danger: #ff6b7d;
  --r: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --glow: 0 0 0 1px rgba(110, 242, 193, .25), 0 0 24px rgba(110, 242, 193, .12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font);
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(154, 140, 255, .10), transparent 60%),
                    radial-gradient(900px 500px at -10% 10%, rgba(110, 242, 193, .07), transparent 60%);
  background-attachment: fixed; min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
code { background: var(--panel2); padding: 1px 6px; border-radius: 6px; font-size: .9em; color: var(--accent); }
.muted { color: var(--muted); } .small { font-size: 13px; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--text); }

/* ---------- barra superiore ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 22px 10px; background: rgba(10, 11, 15, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); letter-spacing: .18em; font-size: 14px; font-weight: 600; }
.brand b { color: var(--accent); font-weight: 800; text-shadow: 0 0 18px rgba(110, 242, 193, .45); }
.brand:hover { text-decoration: none; }
.tabs { display: flex; gap: 4px; }
.tabs a { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; }
.tabs a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.tabs a.active { color: var(--bg); background: var(--accent); box-shadow: 0 0 22px rgba(110, 242, 193, .35); }

main { max-width: 1040px; margin: 0 auto; padding: 20px 20px 120px; }
.view { display: none; }
.view.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- hero e ricerca ---------- */
.hero { padding: 26px 0 18px; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -.02em; font-weight: 750; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 680px; margin: 0; }

.search-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.searchbox {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 58px;
  padding: 8px 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; transition: .2s;
}
.searchbox:focus-within { border-color: var(--accent-d); box-shadow: var(--glow); }
.searchbox input { flex: 1 1 220px; min-width: 160px; background: none; border: 0; outline: 0; font-size: 17px; padding: 8px 6px; }
.chips { display: contents; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 5px; border-radius: 999px;
  background: var(--panel2); border: 1px solid var(--line); font-size: 14px; max-width: 100%;
}
.chip img, .chip .ph { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--line); flex: none; }
.chip.track img, .chip.track .ph { border-radius: 6px; }
.chip .k { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.chip .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.chip button { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 6px; }
.chip button:hover { color: var(--danger); }
.hint { color: var(--dim); font-size: 13px; margin: 10px 2px 0; }

.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 6px; max-height: 60vh; overflow: auto;
}
.suggest h6 { margin: 8px 10px 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.sug { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 10px; text-align: left; }
.sug:hover, .sug.sel { background: rgba(110, 242, 193, .08); }
.sug img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--line); }
.sug.track img { border-radius: 6px; }
.sug small { display: block; color: var(--muted); font-size: 12px; }

.options { display: grid; gap: 14px; margin: 18px 2px 16px; }
.opt-slider { display: grid; gap: 6px; }
.opt-title { font-weight: 600; font-size: 14px; } .opt-title b { color: var(--accent); font-weight: 600; margin-left: 6px; }
.slider-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent2), var(--accent)); outline: 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(110, 242, 193, .3); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(110, 242, 193, .3); }
.opt-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.opt-select { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
select { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.toggle { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { width: 38px; height: 22px; border-radius: 22px; background: var(--line); position: relative; transition: .2s; flex: none; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #c7cbd8; transition: .2s; }
.toggle input:checked + span { background: var(--accent-d); }
.toggle input:checked + span::after { left: 19px; background: #fff; }
.toggle input:focus-visible + span { box-shadow: var(--glow); }
.toggle small { color: var(--dim); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 22px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #48d6e6); color: #06110d; font-weight: 700; font-size: 16px; letter-spacing: .01em;
  box-shadow: 0 8px 30px rgba(110, 242, 193, .25); transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 36px rgba(110, 242, 193, .35); }
.btn-primary:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-primary.small { width: auto; padding: 10px 16px; font-size: 14px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel2); font-size: 14px; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-d); color: var(--accent); }
.btn-ghost.danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.file-btn { cursor: pointer; }
.callout { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 184, 107, .08); border: 1px solid rgba(255, 184, 107, .25); font-size: 14px; color: #f3d7b6; }
.callout a { color: var(--warm); font-weight: 600; margin-left: 4px; }

/* ---------- avanzamento ---------- */
.progress { margin: 22px 0 6px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.progress-bar { height: 6px; background: var(--bg2); border-radius: 6px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent2), var(--accent)); box-shadow: 0 0 14px var(--accent); transition: width .4s ease; }
.progress-text { margin-top: 10px; font-size: 14px; color: var(--muted); }
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); }
.src i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.src.ok i { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.src.partial i { background: var(--warm); }
.src.error i { background: var(--danger); }
.src.off { opacity: .6; }

.notes { display: grid; gap: 8px; margin-top: 14px; }
.note { padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- risultati ---------- */
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: 28px 2px 12px; }
.results-head h2 { margin: 0; font-size: 22px; }
.results-head p { margin: 0; color: var(--muted); font-size: 13px; }
.results { display: grid; gap: 14px; }
.card {
  display: grid; grid-template-columns: 34px 92px 1fr; gap: 16px; padding: 16px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; transition: border-color .2s, transform .2s; animation: fade .3s ease both;
}
.card:hover { border-color: #33394a; }
.card.top3 { border-color: rgba(110, 242, 193, .28); box-shadow: 0 0 30px rgba(110, 242, 193, .05); }
.rank { font-size: 22px; font-weight: 800; color: var(--dim); text-align: center; padding-top: 4px; font-variant-numeric: tabular-nums; }
.card.top3 .rank { color: var(--accent); text-shadow: 0 0 14px rgba(110, 242, 193, .5); }
.avatar { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; background: linear-gradient(135deg, #1d2130, #262b3c); cursor: pointer; display: grid; place-items: center; color: var(--dim); font-size: 30px; font-weight: 700; }
.c-body { min-width: 0; }
.c-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.c-top h3 { margin: 0; font-size: 19px; cursor: pointer; }
.c-top h3:hover { color: var(--accent); }
.tier { font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tier.famoso { color: #ffd88a; border-color: rgba(255, 216, 138, .3); }
.tier.noto { color: #9fd0ff; border-color: rgba(159, 208, 255, .3); }
.tier.nicchia { color: var(--accent2); border-color: rgba(154, 140, 255, .35); }
.tier.sconosciuto { color: var(--accent); border-color: rgba(110, 242, 193, .35); background: rgba(110, 242, 193, .06); }
.fans { font-size: 12px; color: var(--dim); }
.aff { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; font-size: 13px; color: var(--muted); }
.aff .bar { flex: 0 1 220px; height: 6px; background: var(--bg2); border-radius: 6px; overflow: hidden; }
.aff .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.aff b { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }
.aff .sub { color: var(--dim); font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tag { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--panel2); color: #c9cdda; border: 1px solid var(--line); }
.tag.sound { color: var(--accent); border-color: rgba(110, 242, 193, .2); }
.reason { margin: 8px 0; color: var(--muted); font-size: 14px; }
.tracks { display: grid; gap: 4px; margin: 10px 0; }
.trk { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--bg2); min-width: 0; }
.trk .tt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.trk .tt small { color: var(--dim); margin-left: 6px; }
.trk a { font-size: 12px; color: var(--muted); padding: 3px 8px; border-radius: 8px; border: 1px solid var(--line); white-space: nowrap; }
.trk a:hover { color: var(--text); text-decoration: none; border-color: var(--muted); }
.trk a.yt:hover { color: #ff6b6b; border-color: #ff6b6b; } .trk a.sp:hover { color: #1ed760; border-color: #1ed760; }
.play { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--accent); color: #06110d; display: grid; place-items: center; flex: none; }
.play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.play:disabled { background: var(--line); color: var(--dim); cursor: default; }
.play.on { box-shadow: 0 0 0 4px rgba(110, 242, 193, .25); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px; border: 1px solid var(--line); background: none; font-size: 13px; color: var(--muted); }
.act:hover { color: var(--text); border-color: var(--muted); }
.act svg { width: 15px; height: 15px; }
.act.fav.on { color: var(--danger); border-color: rgba(255, 107, 125, .4); }
.act.fav.on svg { fill: currentColor; }
.act.primary { color: var(--accent); border-color: rgba(110, 242, 193, .35); }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 13px; }
.links a { color: var(--muted); } .links a:hover { color: var(--text); }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }
.skeleton { height: 124px; border-radius: 18px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- preferiti / cronologia / impostazioni ---------- */
.view-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0; }
.view-head h2, #view-settings > h2 { margin: 0; font-size: 26px; }
#view-settings > h2 { margin: 18px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.fcard { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.fcard .img { aspect-ratio: 1; background: linear-gradient(135deg, #1d2130, #262b3c); cursor: pointer; display: grid; place-items: center; font-size: 40px; color: var(--dim); font-weight: 700; }
.fcard .img img { width: 100%; height: 100%; object-fit: cover; }
.fcard .in { padding: 12px; display: grid; gap: 8px; }
.fcard h4 { margin: 0; font-size: 16px; }
.fcard .row { display: flex; gap: 6px; flex-wrap: wrap; }
.hist { display: grid; gap: 10px; }
.hitem { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.hitem .what { flex: 1 1 260px; min-width: 0; }
.hitem .what b { display: block; }
.hitem .what small { color: var(--dim); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; }
.panel h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; font-size: 17px; }
.panel p { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
.steps { color: var(--muted); font-size: 14px; padding-left: 20px; margin: 0 0 14px; }
.steps li { margin-bottom: 4px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.field-row input { flex: 1 1 240px; }
.panel input[type=text], textarea { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; outline: 0; }
.panel input[type=text]:focus, textarea:focus { border-color: var(--accent-d); box-shadow: var(--glow); }
textarea { resize: vertical; margin-bottom: 10px; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); }
.badge.ok { color: var(--accent); border-color: rgba(110, 242, 193, .35); }
.badge.err { color: var(--danger); border-color: rgba(255, 107, 125, .35); }

/* ---------- scheda artista ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(4, 5, 8, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet-panel {
  position: relative; width: min(760px, 100%); max-height: 92vh; overflow: auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); animation: up .25s ease; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 24px; line-height: 1; }
.sh-hero { position: relative; min-height: 220px; display: flex; align-items: flex-end; padding: 22px; background-size: cover; background-position: center 30%; }
.sh-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 21, 28, .1), rgba(19, 21, 28, .65) 55%, var(--panel)); }
.sh-hero > * { position: relative; }
.sh-hero h2 { margin: 0 0 6px; font-size: 32px; letter-spacing: -.01em; }
.sh-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: 13px; }
.sh-body { padding: 4px 22px 24px; }
.sh-body h4 { margin: 22px 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.bio { color: var(--muted); font-size: 14px; }
.breakdown { display: grid; gap: 8px; }
.bd { display: grid; grid-template-columns: minmax(120px, 210px) 1fr 44px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.bd .bar { height: 6px; background: var(--bg2); border-radius: 6px; overflow: hidden; }
.bd .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.bd b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.bd small { display: block; color: var(--dim); font-size: 11px; }
.facets { display: grid; gap: 6px; }
.facet { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.facet > span { color: var(--dim); min-width: 110px; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.album { font-size: 12px; color: var(--muted); }
.album img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line); display: block; margin-bottom: 6px; }
.album b { display: block; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpm { font-size: 11px; color: var(--accent2); border: 1px solid rgba(154, 140, 255, .3); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }

/* ---------- lettore ---------- */
.player {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + var(--safe-b)); z-index: 40; width: min(460px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(25, 28, 37, .95); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden;
}
.player[hidden] { display: none; }
.player img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--line); }
.player-info { flex: 1; min-width: 0; display: grid; }
.player-info b, .player-info span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-info span { color: var(--muted); font-size: 13px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #06110d; display: grid; place-items: center; }
.icon-btn svg { fill: currentColor; stroke: none; }
.player-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.player-progress i { display: block; height: 100%; width: 0; background: var(--accent); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 60; padding: 10px 16px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; max-width: calc(100% - 30px); }

/* ---------- smartphone ---------- */
@media (max-width: 720px) {
  /* backdrop-filter crea un contenitore per gli elementi "fixed": su mobile va tolto, altrimenti la barra in basso finisce in alto */
  .topbar { padding-left: 16px; padding-right: 16px; position: static; backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-bottom: 0; }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-around; gap: 0; padding: 6px 6px calc(6px + var(--safe-b));
    background: rgba(14, 16, 22, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .tabs a { flex-direction: column; gap: 3px; font-size: 11px; padding: 6px 10px; border-radius: 12px; }
  .tabs a.active { background: none; color: var(--accent); box-shadow: none; }
  .tabs a svg { width: 22px; height: 22px; }
  main { padding: 12px 14px 150px; }
  .hero { padding-top: 12px; }
  .search-panel { padding: 14px; border-radius: 18px; }
  .searchbox input { font-size: 16px; }
  .card { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px 12px; }
  .rank { display: none; }
  .avatar { width: 56px; height: 56px; border-radius: 12px; font-size: 22px; }
  .aff { flex-wrap: wrap; row-gap: 2px; }
  .aff .sub { flex-basis: 100%; }
  .trk { flex-wrap: wrap; row-gap: 4px; }
  .trk .tt { flex: 1 1 calc(100% - 44px); }
  .trk .play + .tt + a, .trk .play + .tt + .bpm { margin-left: 40px; }
  .trk a { padding: 2px 8px; }
  .c-top h3 { font-size: 17px; }
  .player { bottom: calc(72px + var(--safe-b)); }
  .sheet { align-items: flex-end; }
  .sheet-panel { border-radius: 22px 22px 0 0; max-height: 94vh; padding-bottom: var(--safe-b); }
  .sh-hero { min-height: 180px; }
  .sh-hero h2 { font-size: 26px; }
  .bd { grid-template-columns: 1fr 70px 40px; }
}
@media (hover: none) { .card:hover { border-color: var(--line); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
