:root {
  --bg: #0b0b10; --bg2: #14141c; --bg3: #1d1d28; --line: #2a2a38;
  --fg: #f3f3f7; --muted: #9a9ab0; --red: #e3132b; --blue: #1f8bff; --blue2: #5fb0ff;
  --radius: 14px; --player-h: 92px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body { padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom)); }
a { color: var(--blue2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }

.h-display, .wordmark { font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif; letter-spacing: 0.04em; }
.h-display { font-size: clamp(3rem, 12vw, 7rem); line-height: 0.9; margin: 0; background: linear-gradient(100deg, var(--fg) 0%, var(--blue2) 55%, var(--red) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-section { font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: 0.06em; font-size: 1.8rem; color: var(--muted); margin: 2.4rem 0 0.8rem; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line); background: rgba(11,11,16,0.85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.brand { color: var(--fg); display: flex; align-items: center; gap: 0.6rem; }
.brand:hover { text-decoration: none; }
.wordmark { font-size: 1.7rem; }
.back { color: var(--muted); font-size: 1.2rem; }
.links { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: 0.85rem; }
.links a { color: var(--muted); }
.links a:hover { color: var(--fg); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 1.5rem 1.2rem 3rem; }
.intro { padding: 1.5rem 0 2rem; }
.tagline { color: var(--muted); margin: 0.8rem 0 0; font-size: 1.1rem; max-width: 50ch; }
.empty { color: var(--muted); padding: 3rem 0; text-align: center; }

.set { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.set .art img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--bg3); }
.set .meta { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; }
.set .title { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.set .title a { color: var(--fg); }
.set .sub { color: var(--muted); font-size: 0.9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2rem 0.5rem; border-radius: 999px; background: var(--bg3); color: var(--muted); }
.tag.explicit { background: var(--red); color: #fff; font-weight: 700; padding: 0.1rem 0.45rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }
.btn { border: 1px solid transparent; border-radius: 999px; padding: 0.55rem 1.05rem; font-weight: 600; font-size: 0.92rem; background: var(--blue); color: #fff; display: inline-flex; align-items: center; gap: 0.4rem; }
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.danger { background: var(--red); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.desc { margin: 0.3rem 0 0; color: #d6d6e2; white-space: normal; font-size: 0.95rem; }
.tracklist summary { cursor: pointer; color: var(--blue2); font-weight: 600; font-size: 0.92rem; padding: 0.3rem 0; list-style: none; }
.tracklist summary::-webkit-details-marker { display: none; }
.tracklist summary::before { content: "\25B8  "; }
.tracklist[open] summary::before { content: "\25BE  "; }
.tracklist ol { margin: 0.4rem 0 0; padding: 0; list-style: none; counter-reset: tr; }
.tracklist li { border-top: 1px solid var(--line); }
.tracklist .seek { width: 100%; text-align: left; background: none; border: 0; color: var(--fg); padding: 0.5rem 0.2rem; display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.92rem; border-radius: 6px; }
.tracklist .seek:hover { background: var(--bg3); }
.tracklist .seek .t { color: var(--blue2); font-variant-numeric: tabular-nums; min-width: 4.2em; font-size: 0.85rem; }
.tracklist .seek .a { font-weight: 600; }
.tracklist .seek .s { color: #d6d6e2; }
.tracklist li.now .seek { background: var(--bg3); box-shadow: inset 3px 0 0 var(--red); }

.set.hero { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .set.hero { grid-template-columns: 380px minmax(0, 1fr); }
  .set.hero .art img { height: 100%; }
  .set.hero .title { font-size: 1.9rem; }
}
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.single .listen-on { margin-top: 2rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.listen-on h3 { margin: 0 0 0.6rem; font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: 0.06em; font-size: 1.4rem; }
.listen-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.listen-links a { border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; color: var(--fg); font-size: 0.9rem; }
.listen-links a:hover { border-color: var(--blue2); text-decoration: none; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 0.9rem 0 0; }
.hint code.embed { display: block; margin-top: 0.3rem; padding: 0.6rem; background: var(--bg); border-radius: 8px; word-break: break-all; user-select: all; }

.foot { max-width: 1040px; margin: 0 auto; padding: 1rem 1.2rem 2rem; color: var(--muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; border-top: 1px solid var(--line); }

/* ---- sticky player ---- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.8rem; padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(20,20,28,0.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); min-height: var(--player-h); }
.player[hidden] { display: none; }
.p-art { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--bg3); }
.p-main { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.p-titles { min-width: 0; }
.p-title { font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-track { color: var(--muted); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.1em; }
.p-row { display: flex; align-items: center; gap: 0.45rem; }
.p-btn { background: none; border: 0; color: var(--fg); font-size: 1.05rem; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.p-btn:hover { background: var(--bg3); }
.p-play { background: var(--blue); width: 42px; height: 42px; font-size: 1.1rem; }
.p-play:hover { background: var(--blue2); }
.p-time { font-variant-numeric: tabular-nums; font-size: 0.78rem; color: var(--muted); min-width: 3.4em; text-align: center; }
.p-seek { flex: 1; min-width: 60px; accent-color: var(--red); height: 4px; }
.p-close { color: var(--muted); }
.p-loading .p-play { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

/* ---- embed ---- */
.embed-body { background: var(--bg2); padding: 0; margin: 0; }
.embed-card { display: flex; gap: 0.8rem; padding: 0.7rem; align-items: center; }
.embed-art { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.embed-main { min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.embed-title { color: var(--fg); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.embed-sub { color: var(--muted); font-size: 0.8rem; }
.embed-player { position: static; min-height: 0; border-top: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); }
.embed-body .embed-card:has(+ .player:not([hidden])) { display: none; }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--player-h) + 16px); background: var(--fg); color: var(--bg); padding: 0.6rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; z-index: 30; box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
