/* Layout: Apple風の白ベース。グループ化したリストを1枚のガラス面に載せ、検索とプレイヤーは浮いたガラスのカプセルにする。 */
:root {
  --bg: #fbfbfd;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --sep: rgba(60, 60, 67, 0.13);
  --accent: #0071e3;
  --accent-tint: rgba(0, 113, 227, 0.1);
  --on-accent: #ffffff;
  --danger: #ff3b30;
  --wave: #c7c7cc;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 10px 40px rgba(30, 40, 80, 0.10), 0 1px 3px rgba(30, 40, 80, 0.06);
  --skel: rgba(120, 120, 128, 0.12);
  --skel-hi: rgba(255, 255, 255, 0.7);
  --spring: cubic-bezier(0.32, 1.45, 0.55, 1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* display を指定した部品でも hidden で必ず消す */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 15px; line-height: 1.45; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 calc(150px + env(safe-area-inset-bottom, 0px));
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 35% at 8% 4%, rgba(110, 160, 255, 0.22), transparent 70%),
    radial-gradient(45% 35% at 100% 28%, rgba(255, 150, 205, 0.16), transparent 70%),
    radial-gradient(60% 40% at 40% 100%, rgba(110, 215, 200, 0.16), transparent 70%);
}
.wrap { max-width: 760px; margin: 0 auto; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button, .chip, .seekbar, .wave { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}
.press { transition: transform 0.35s var(--spring), background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.press:active { transform: scale(0.9); transition-duration: 0.12s; }

/* header */
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-block: 28px 14px; }
.top h1 { font-family: var(--font-display); font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.top p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.cap-btn { border: none; border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; color: var(--accent); cursor: pointer; flex: none; }

/* search + genres */
.tools { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 5; border-radius: 22px; padding: 10px; display: grid; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; background: rgba(118, 118, 128, 0.1); border-radius: 12px; padding: 0 12px; }
.search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.search input { border: none; background: transparent; padding: 9px 0; width: 100%; min-width: 0; outline: none; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px; margin: -1px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: none; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px var(--sep); padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip small { font-size: 12px; color: var(--muted); margin-left: 5px; font-variant-numeric: tabular-nums; transition: color 0.25s var(--ease); }
.chip[aria-pressed="true"] { background: var(--fg); color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.65); }

/* list */
.group { margin-top: 14px; border-radius: 22px; overflow: hidden; }
.list { list-style: none; margin: 0; padding: 0 14px; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 0 12px; align-items: center; padding-block: 12px; border-bottom: 0.5px solid var(--sep); }
.row:last-child { border-bottom: none; }
.row.in { animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.play { width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.play svg { width: 15px; height: 15px; }
.play svg.swap { animation: pop 0.3s var(--spring); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.row.is-current .play { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px rgba(0, 113, 227, 0.35); }
.row.is-current .title { color: var(--accent); }
.info { min-width: 0; display: grid; gap: 2px; }
.title { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.25s var(--ease); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 13px; color: var(--muted); }
.meta b { font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.genre { font-size: 12px; font-weight: 500; background: rgba(118, 118, 128, 0.12); border-radius: 999px; padding: 1px 8px; color: var(--fg); }
.actions { display: flex; gap: 6px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--accent); }
.icon-btn:hover { background: var(--accent-tint); }
.icon-btn svg { width: 19px; height: 19px; }
.text-btn { border: none; background: rgba(118, 118, 128, 0.12); border-radius: 999px; padding: 0 14px; height: 36px; font-size: 14px; font-weight: 500; cursor: pointer; }
.text-btn.warn { background: var(--danger); color: #fff; }
.loading { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 40px 0; color: var(--muted); text-align: center; }

/* waveform */
.wave { grid-column: 2 / 4; position: relative; height: 34px; margin-top: 8px; cursor: pointer; --p: 0%; }
.wave .layer { position: absolute; inset: 0; }
.wave svg { display: block; width: 100%; height: 100%; }
.wave .base { color: var(--wave); }
.wave .prog { color: var(--accent); clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.row.is-current .wave .base { color: #a9c7ef; }
.wave.ready .base svg, .wave.ready .prog svg { animation: grow 0.6s var(--ease) both; transform-origin: center; }
@keyframes grow { from { transform: scaleY(0.15); opacity: 0.4; } to { transform: none; opacity: 1; } }
.wave.pending .layer { display: none; }
.wave.pending { border-radius: 6px; }

/* skeleton */
.skel { background: var(--skel); border-radius: 8px; position: relative; overflow: hidden; }
.skel::after, .wave.pending::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, var(--skel-hi) 50%, transparent 80%);
  transform: translateX(-100%); animation: shimmer 1.3s ease-in-out infinite;
}
.wave.pending { background: var(--skel); overflow: hidden; height: 24px; margin-block: 13px 5px; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px 12px; align-items: center; padding-block: 14px; border-bottom: 0.5px solid var(--sep); }
.sk-row:last-child { border-bottom: none; }
.sk-row .c { width: 44px; height: 44px; border-radius: 50%; }
.sk-row .l { display: grid; gap: 8px; }
.sk-row .w { grid-column: 2; height: 24px; }
.sk-chip { flex: none; width: 64px; height: 34px; border-radius: 999px; }

/* editor */
.editor { margin-top: 14px; border-radius: 22px; padding: 18px; display: grid; gap: 12px; animation: rise 0.45s var(--ease) both; }
.editor h2 { margin: 0; font-size: 20px; font-weight: 700; }
.editor .note { margin: 0; font-size: 13px; color: var(--muted); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); min-width: 0; }
.form .full { grid-column: 1 / -1; }
.form input, .form select { background: rgba(255, 255, 255, 0.85); border: none; box-shadow: inset 0 0 0 1px var(--sep); border-radius: 12px; padding: 10px 12px; width: 100%; min-width: 0; font-size: 16px; color: var(--fg); }
.form input:focus, .form select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.keypair { display: flex; gap: 8px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.primary { background: var(--accent); color: var(--on-accent); border: none; border-radius: 999px; padding: 11px 22px; font-weight: 600; cursor: pointer; }
.ghost { background: rgba(118, 118, 128, 0.12); border: none; border-radius: 999px; padding: 11px 18px; font-weight: 500; cursor: pointer; }
.err { color: var(--danger); font-size: 13px; margin: 0; }

/* floating player */
.bar {
  position: fixed; z-index: 20;
  left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 736px; margin: 0 auto; border-radius: 28px; padding: 10px 16px 8px;
  transform: translateY(calc(100% + 40px)); transition: transform 0.6s var(--spring);
}
.bar.show { transform: none; }
.bar-in { display: grid; gap: 2px; }
.bar-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.transport { display: flex; align-items: center; gap: 2px; }
.transport .play { width: 46px; height: 46px; background: var(--fg); color: #fff; }
.transport .play svg { width: 17px; height: 17px; }
.skip { width: 44px; height: 44px; border: none; background: none; cursor: pointer; display: grid; place-items: center; color: var(--fg); border-radius: 50%; }
.skip svg { width: 18px; height: 18px; }
.now { min-width: 0; display: grid; }
.now strong { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scrub { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.seekbar { height: 30px; display: flex; align-items: center; cursor: pointer; touch-action: none; min-width: 0; }
.seekbar[aria-disabled="true"] { cursor: default; opacity: 0.5; }
.rail { position: relative; height: 5px; width: 100%; background: rgba(120, 120, 128, 0.2); border-radius: 3px; transition: height 0.25s var(--spring); }
.rail i { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--fg); border-radius: 3px; }
.rail b { position: absolute; top: 50%; left: 0%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); transition: transform 0.3s var(--spring); }
.seekbar.dragging .rail { height: 9px; }
.seekbar.dragging .rail b { transform: scale(1.5); }

.toast {
  position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  transform: translate(-50%, 16px) scale(0.96); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; max-width: calc(100% - 32px); text-align: center;
  transition: transform 0.45s var(--spring), opacity 0.25s var(--ease);
}
.toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; }

@media (hover: hover) { .row:hover .play:not(:active) { transform: scale(1.06); } }
@media (min-width: 700px) {
  .info { grid-template-columns: minmax(0, 1fr) 92px 84px 104px; align-items: center; gap: 12px; }
  .meta { display: contents; font-size: 13.5px; }
  .list { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== 本番版で足したもの ===== */
a.cap-btn, a.icon-btn { text-decoration: none; }
a.cap-btn { display: inline-block; }
.status { font-size: 13px; color: var(--muted); margin: 0; min-height: 1.45em; transition: color 0.25s var(--ease); }
.status.ok { color: #248a3d; }
.primary { position: relative; overflow: hidden; isolation: isolate; }
.primary[disabled] { opacity: 0.55; cursor: default; }
.primary .bar-fill { position: absolute; inset: 0 auto 0 0; width: var(--up, 0%); background: rgba(255, 255, 255, 0.28); z-index: -1; transition: width 0.2s linear; }
.retry { margin-top: 10px; }
.empty .ghost { margin-top: 12px; }

/* まとめて追加 */
.editor .note:empty { display: none; }
.bk-btn { display: inline-flex; align-items: center; color: var(--fg); font-size: 15px; }
#bulk.drop { box-shadow: inset 0 0 0 2px var(--accent); }
.bk-body { display: grid; gap: 12px; }
.bk-tags summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.bk-tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 10px; }
.bk-tag { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; background: rgba(255, 255, 255, 0.6); border-radius: 12px; padding: 6px 6px 6px 12px; min-width: 0; }
.bk-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-tag small { color: var(--muted); }
.bk-tag select { border: none; background: rgba(118, 118, 128, 0.12); border-radius: 9px; padding: 6px 8px; font-size: 14px; color: var(--fg); max-width: 60%; }
.bk-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; border-radius: 14px; background: rgba(255, 255, 255, 0.5); }
.bk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 12px; border-bottom: 1px solid var(--sep); font-size: 14px; }
.bk-row:last-child { border-bottom: none; }
.bk-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-m { grid-column: 1; font-size: 12px; color: var(--muted); }
.bk-s { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12px; color: var(--muted); text-align: right; }
.bk-row.work .bk-s { color: var(--accent); }
.bk-row.done .bk-s { color: #248a3d; }
.bk-row.fail .bk-s { color: var(--danger); }
.bk-row.skip { opacity: 0.55; }

/* 注意書き */
.notice { border-radius: 22px; padding: 14px 16px; margin-bottom: 12px; animation: rise 0.45s var(--ease) both; }
.notice .price { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 17px; }
.notice .price b { font-weight: 700; font-variant-numeric: tabular-nums; }
.notice .tag { font-size: 12px; font-weight: 600; background: var(--fg); color: #fff; border-radius: 999px; padding: 2px 9px; }
.notice ul { margin: 0; padding-left: 1.1em; font-size: 13px; color: var(--muted); display: grid; gap: 3px; }

/* 月・並べ方 */
.tools-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tools-row .chips { flex: 1; min-width: 0; }
.chip-new:not([aria-pressed="true"]) { color: var(--accent); }
.seg { flex: none; display: flex; background: rgba(118, 118, 128, 0.12); border-radius: 999px; padding: 2px; }
.seg button { border: none; background: transparent; border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--muted); white-space: nowrap; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--fg); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }

/* NEW・要相談の印 */
.badge { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; border-radius: 6px; padding: 1px 6px; margin-left: 7px; vertical-align: 2px; }
.badge.new { background: var(--accent); color: var(--on-accent); }
.badge.priv { background: rgba(118, 118, 128, 0.16); color: var(--fg); }

/* 編集フォームのチェック */
.form label.check { display: flex; align-items: center; gap: 8px; align-self: end; padding-bottom: 10px; color: var(--fg); font-size: 14px; }
.form label.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.search-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.search-row .search { flex: 1; min-width: 0; }
@media (max-width: 400px) { .seg button { padding: 6px 9px; font-size: 12.5px; } }
.notice a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* 注意書き：ストックビート・オーダービートの2枚と、連絡先 */
.notice-wrap { display: grid; gap: 10px; margin-bottom: 12px; }
.notice-wrap .notice { margin-bottom: 0; }
.notice-wrap .notice:nth-child(2) { animation-delay: 0.06s; }
.notice .price { flex-wrap: wrap; row-gap: 4px; }
.notice .kind { font-size: 13px; font-weight: 600; color: var(--muted); width: 100%; }
.notice-foot { display: grid; gap: 10px; padding: 2px 4px 0; animation: rise 0.45s var(--ease) 0.12s both; }
.notice-foot p { margin: 0; font-size: 13px; color: var(--muted); }
.dm-btn { justify-self: start; display: inline-flex; align-items: center; background: var(--fg); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 999px; padding: 10px 18px; }
@media (max-width: 400px) { .search input::placeholder { font-size: 14px; } }

/* ===== 2026-11-05 足した部品（ui.js） ===== */
html.locked, html.locked body { overflow: hidden; }
body { overscroll-behavior-y: contain; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top { position: relative; }

/* ハンバーガー */
.burger { width: 44px; height: 44px; border-radius: 50%; display: grid; place-content: center; gap: 4px; cursor: pointer; padding: 0; align-self: center; }
.burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform 0.35s var(--spring), opacity 0.2s var(--ease); }
.burger.x i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.x i:nth-child(2) { opacity: 0; }
.burger.x i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu { position: fixed; z-index: 41; top: calc(env(safe-area-inset-top, 0px) + 74px); right: max(16px, calc((100vw - 760px) / 2)); width: min(280px, calc(100vw - 32px)); border-radius: 20px; padding: 6px; display: grid; background: var(--glass-strong);
  transform-origin: top right; transform: scale(0.92) translateY(-6px); opacity: 0; transition: transform 0.35s var(--spring), opacity 0.2s var(--ease); }
.menu.open { transform: none; opacity: 1; }
.menu button, .menu a { border: none; background: none; text-align: left; padding: 13px 14px; border-radius: 14px; font-size: 15px; font-weight: 500; color: var(--fg); text-decoration: none; cursor: pointer; }
.menu button:hover, .menu a:hover, .menu :focus-visible { background: rgba(118, 118, 128, 0.12); }
.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, 0.28); opacity: 0; transition: opacity 0.3s var(--ease); }
.scrim.open { opacity: 1; }
.scrim.light { background: transparent; z-index: 40; }

/* 料金（アコーディオン） */
.info { border-radius: 22px; margin-bottom: 12px; overflow: hidden; animation: rise 0.45s var(--ease) both; }
.info summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; padding: 12px 14px; cursor: pointer; }
.info summary::-webkit-details-marker { display: none; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 13px; background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 1px var(--sep); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.pill b { font-weight: 700; font-variant-numeric: tabular-nums; }
.pill.dark { background: var(--fg); color: #fff; box-shadow: none; font-weight: 600; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--accent); font-weight: 600; }
.more svg { width: 14px; height: 14px; transition: transform 0.3s var(--spring); }
.info.is-open .more svg, .info[open] .more svg { transform: rotate(180deg); }
.info-body { display: grid; gap: 10px; padding: 0 10px 12px; overflow: hidden; }
.info-body .notice { margin: 0; background: rgba(255, 255, 255, 0.55); box-shadow: none; border: 1px solid var(--glass-edge); animation: none; }
.info-body .notice-foot { animation: none; }

/* 新着（カルーセル） */
.fresh { margin-bottom: 12px; }
.fresh-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 6px; }
.fresh-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.fresh-nav { display: none; }
@media (hover: hover) { .fresh-nav { display: flex; } .fresh-nav .skip { width: 34px; height: 34px; } }
.car { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px; padding: 2px 4px 8px; margin: 0 -4px; scrollbar-width: none; }
.car::-webkit-scrollbar { display: none; }
.card { flex: none; width: 156px; min-height: 150px; scroll-snap-align: start; border: 1px solid var(--glass-edge); border-radius: 18px; padding: 12px; text-align: left; cursor: pointer;
  background: var(--glass); box-shadow: 0 6px 20px rgba(30, 40, 80, 0.08); display: grid; grid-template-rows: 44px auto auto auto; gap: 3px; position: relative;
  animation: rise 0.45s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.card.skel { border: none; box-shadow: none; animation: none; }
.c-wave { color: var(--wave); display: block; height: 40px; }
.c-wave svg { width: 100%; height: 100%; display: block; }
.card.on .c-wave { color: var(--accent); }
.c-title { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.c-meta { font-size: 12px; color: var(--muted); }
.c-genre { justify-self: start; font-size: 11px; font-weight: 500; background: rgba(118, 118, 128, 0.12); border-radius: 999px; padding: 1px 8px; }
.c-play { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: #fff; }
.c-play svg { width: 12px; height: 12px; }
.card.on .c-play { background: var(--accent); }

/* 並べ方（ラジオボタンを切り替えの形に） */
fieldset.seg { border: none; margin: 0; min-width: 0; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.seg input:checked + span { background: #fff; color: var(--fg); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 400px) { .seg span { padding: 6px 9px; font-size: 12.5px; } }

/* BPM（プルダウン） */
.pull { flex: none; position: relative; }
.pull select { appearance: none; -webkit-appearance: none; border: none; background: rgba(118, 118, 128, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center / 12px;
  border-radius: 999px; padding: 7px 28px 7px 12px; font-size: 14px; font-weight: 500; cursor: pointer; }
.pull select:focus-visible { outline: 2px solid var(--accent); }

/* パンくず（今の絞り込み） */
.crumbs { display: flex; align-items: center; gap: 8px; margin: 12px 4px 0; font-size: 13px; color: var(--muted); animation: rise 0.3s var(--ease) both; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 0; padding: 0; flex: 1; min-width: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs button { border: none; background: none; color: var(--accent); font-weight: 500; padding: 4px 0; cursor: pointer; }
.crumbs [aria-current] { color: var(--fg); font-weight: 600; }
.crumb-x { flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(118, 118, 128, 0.12) !important; color: var(--fg) !important; font-size: 16px; line-height: 1; padding: 0 !important; }
.crumbs + .group { margin-top: 8px; }

/* ミニプレイヤーの曲名ボタン → ボトムシートを開く */
button.now { border: none; background: none; padding: 0; text-align: left; cursor: pointer; }
button.now strong::after { content: " ⌃"; color: var(--muted); font-weight: 400; font-size: 12px; }

/* 再生中（ボトムシート） */
.sheet { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; border-radius: 28px 28px 0 0; background: var(--glass-strong);
  padding: 6px 20px calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); transition: transform 0.5s var(--spring); touch-action: none; }
.sheet.open { transform: none; }
.sheet.drag { transition: none; }
.grab { display: grid; place-items: center; height: 22px; cursor: grab; }
.grab i { width: 38px; height: 5px; border-radius: 3px; background: rgba(60, 60, 67, 0.25); }
.sheet-in { display: grid; gap: 8px; }
.s-kicker { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--accent); min-height: 1em; }
.sheet h2 { margin: 0; font-family: var(--font-display); font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.s-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.s-meta b { color: var(--fg); }
.wave.big { grid-column: auto; height: 72px; margin-top: 10px; }
.s-time { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.s-transport { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 2px 0 6px; }
.play.big { width: 64px; height: 64px; background: var(--fg); color: #fff; }
.play.big svg { width: 22px; height: 22px; }
.s-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 14px; border: none; background: rgba(118, 118, 128, 0.12); color: var(--fg); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.s-btn svg { width: 18px; height: 18px; color: var(--accent); }
.s-btn.dark { background: var(--fg); color: #fff; }

/* モーダル */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.3); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity 0.2s var(--ease); }
.modal-back.open { opacity: 1; }
.modal { width: min(420px, 100%); border-radius: 24px; padding: 22px 20px 16px; background: var(--glass-strong); transform: scale(0.94); transition: transform 0.35s var(--spring); }
.modal-back.open .modal { transform: none; }
.modal h2 { margin: 0 0 8px; font-size: 19px; }
.modal p, .modal ol { margin: 0 0 10px; font-size: 14.5px; color: var(--fg); }
.modal .steps { padding-left: 1.3em; display: grid; gap: 4px; }
.m-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* 引っぱって更新 */
.ptr { position: fixed; z-index: 35; top: calc(env(safe-area-inset-top, 0px) + 6px); left: 0; right: 0; display: flex; justify-content: center; pointer-events: none;
  transform: translateY(calc(var(--d, 0px) - 60px)); opacity: 0; transition: transform 0.35s var(--spring), opacity 0.2s var(--ease); }
.ptr.pull { opacity: 1; transition: none; }
.ptr.busy { transition: transform 0.35s var(--spring); }
.ptr-in { display: inline-flex; align-items: center; gap: 8px; background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); border-radius: 999px; padding: 8px 14px; font-size: 13px; }
.ptr-in svg { width: 16px; height: 16px; }
.ptr.busy svg { animation: spin 0.9s linear infinite; }
.ptr.ready .ptr-in { color: var(--accent); }
