/* Web player (decision 34). Dark, one amber accent, as drawn in the screen pictures. */
:root { --bg: #111317; --surface: #1B1E24; --line: #22262D; --border: #343944; --text: #F2F2F0;
        --muted: #A3A8B3; --accent: #F0A24B; --np: #161A21; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; }
h1 { margin: 0; font-size: 28px; font-weight: 700; }
h2 { margin: 0; font-size: 18px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--accent); }

#main { max-width: 960px; margin: 0 auto; padding: 24px 20px 150px; display: flex; flex-direction: column; gap: 24px; outline: none; }
section { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); }
.back svg, #tabs svg, .icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card .t { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cover { width: 100%; aspect-ratio: 1; border-radius: 8px; background: #2A3140; object-fit: cover; display: block; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { min-height: 56px; border-radius: 8px; background: var(--surface); display: flex; align-items: center; padding: 0 16px; font-weight: 500; }

.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--line);
  background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; }
.item .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item .num { width: 26px; flex-shrink: 0; font-size: 13px; color: var(--muted); text-align: right; }
.item .dur { font-size: 13px; color: var(--muted); }
.item.playing .t { color: var(--accent); }
.thumb { width: 48px; height: 48px; border-radius: 6px; background: #2A3140; object-fit: cover; flex-shrink: 0; }
.round { border-radius: 24px; }
.work { font-size: 13px; color: var(--accent); padding: 12px 0 4px; }
.disc { font-size: 13px; font-weight: 600; color: var(--muted); padding: 16px 0 4px; }

.btn { min-height: 46px; padding: 0 20px; border-radius: 23px; border: 1px solid var(--border); background: transparent; font-weight: 500; }
.btn.primary { background: var(--accent); color: var(--bg); border: 0; font-weight: 600; }
.btn.round-icon { width: 46px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--surface); border: 0; }
.pill.on { background: var(--text); color: var(--bg); font-weight: 600; }
.note { font-size: 13px; color: var(--muted); background: var(--surface); border-radius: 8px; padding: 10px 12px; line-height: 1.5; }
.empty { border: 1px dashed var(--border); border-radius: 10px; padding: 20px; color: var(--muted); line-height: 1.5; }

input[type=search], input[type=text], input[type=password] { height: 48px; width: 100%; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 16px; padding: 0 14px; font-family: inherit; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

.album-head { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.album-head .cover { width: 160px; height: 160px; }
.album-head .info { display: flex; flex-direction: column; gap: 4px; min-width: 200px; flex: 1; }

/* Now Playing */
.np { max-width: 460px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.np .cover { border-radius: 12px; }
.np h1 { font-size: 22px; }
.seek { width: 100%; accent-color: var(--accent); }
.times { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.controls { display: flex; justify-content: space-between; align-items: center; }
.ctl { width: 52px; height: 52px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; border-radius: 26px; }
.ctl.small { width: 44px; height: 44px; color: var(--muted); }
.ctl.on { color: var(--accent); }
.ctl svg { width: 28px; height: 28px; fill: currentColor; }
.ctl.small svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.ctl.play { width: 72px; height: 72px; border-radius: 36px; background: var(--accent); color: var(--bg); }
.heart svg { fill: none; stroke: currentColor; stroke-width: 2; width: 24px; height: 24px; }
.heart.on svg { fill: var(--accent); stroke: var(--accent); }

/* mini player and tabs */
#mini { position: fixed; left: 50%; transform: translateX(-50%); bottom: 72px; width: calc(100% - 24px); max-width: 936px;
  height: 60px; border-radius: 10px; background: #1F232A; display: flex; align-items: center; gap: 12px; padding: 0 6px 0 10px; z-index: 5; }
#mini[hidden] { display: none; }
#mini img { width: 40px; height: 40px; border-radius: 6px; background: #2A3140; object-fit: cover; }
.mini-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.mini-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mini-title { font-weight: 600; }
#mini-toggle { width: 48px; height: 48px; border: 0; background: transparent; color: var(--accent); }
#mini-toggle svg { width: 24px; height: 24px; fill: currentColor; }
#tabs { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; background: var(--bg); border-top: 1px solid #262A31;
  display: grid; grid-template-columns: repeat(3, 1fr); z-index: 5; padding-bottom: env(safe-area-inset-bottom); }
#tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: var(--muted); }
#tabs a.on { color: var(--accent); }
body.np-open #mini { display: none; }

#sheet { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
#sheet[hidden] { display: none; }
#sheet .panel { background: var(--surface); width: 100%; max-width: 520px; border-radius: 14px 14px 0 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; max-height: 80vh; overflow: auto; }
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 140px; background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 20; max-width: 90%; }
#toast[hidden] { display: none; }
.signin { max-width: 380px; margin: 60px auto 0; display: flex; flex-direction: column; gap: 16px; }
.error { color: #FF9B8A; }
