:root {
  --bg: #f7f5f0; --bg-2: #efece5; --paper: #ffffff; --ink: #111; --ink-2: #3f3b36; --ink-3: #7d766d;
  --line: #1a1a1a; --line-soft: rgba(0,0,0,.14); --accent: #111; --accent-2: #2d6b5c; --chip: rgba(255,255,255,.55);
  --g1: 12; --g2: 45; --g3: 275; --g4: 200; --g-alpha: .62; --g-l: 64%;
  --glass: rgba(255,255,255,.58);
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -22px rgba(40,30,10,.45);
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wash-h: 30; --wash-s: 20%;
  --wash: hsl(var(--wash-h) var(--wash-s) 84%);
  --wash-deep: hsl(var(--wash-h) var(--wash-s) 70%);
}
:root[data-theme="dark"] {
    --bg: #0f0e0d; --bg-2: #181614; --paper: #1a1816; --ink: #f1ebe0; --ink-2: #c6bcae; --ink-3: #8a8175;
    --line: #e8e2d6; --line-soft: rgba(255,255,255,.14); --accent: #f1ebe0; --accent-2: #9ad0bb; --chip: rgba(255,255,255,.08);
    --g-alpha: .42; --g-l: 42%; --glass: rgba(20,18,16,.55);
    --shadow: 0 1px 0 rgba(255,255,255,.03), 0 18px 40px -22px rgba(0,0,0,.9);
    --wash: hsl(var(--wash-h) var(--wash-s) 20%);
    --wash-deep: hsl(var(--wash-h) var(--wash-s) 30%);
}
@property --g1 { syntax: "<number>"; inherits: true; initial-value: 12; }
@property --g2 { syntax: "<number>"; inherits: true; initial-value: 45; }
@property --g3 { syntax: "<number>"; inherits: true; initial-value: 275; }
@property --g4 { syntax: "<number>"; inherits: true; initial-value: 200; }
:root { transition: --g1 1.6s ease, --g2 1.6s ease, --g3 1.6s ease, --g4 1.6s ease; }
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
body::before {
  content: ""; position: fixed; inset: -25%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 34% at 14% 18%, hsl(var(--g1) 92% var(--g-l) / var(--g-alpha)), transparent 70%),
    radial-gradient(34% 38% at 84% 12%, hsl(var(--g2) 90% var(--g-l) / var(--g-alpha)), transparent 70%),
    radial-gradient(44% 40% at 78% 84%, hsl(var(--g3) 78% var(--g-l) / var(--g-alpha)), transparent 70%),
    radial-gradient(36% 36% at 18% 82%, hsl(var(--g4) 80% var(--g-l) / var(--g-alpha)), transparent 70%);
  filter: blur(48px) saturate(1.05);
  animation: drift 36s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(-2%, -1%) scale(1); } to { transform: translate(2%, 2%) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } .cmap .float { animation: none; } }
html { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
html { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0; letter-spacing: .01em; }
img { max-width: 100%; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.kicker::after { content: " →"; opacity: .5; }
.muted { color: var(--ink-3); font-size: 13px; }
.empty { color: var(--ink-3); font-size: 14px; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 12px clamp(16px, 4vw, 40px); background: var(--glass); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-weight: 800; font-size: 20px; letter-spacing: .14em; white-space: nowrap; }
.brand span { margin-left: 6px; font-weight: 400; font-style: italic; }
.search { flex: 1; display: flex; max-width: 520px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--glass); overflow: hidden; }
.search input { flex: 1; border: 0; background: transparent; padding: 8px 16px; font: inherit; color: inherit; outline: none; min-width: 0; }
.search button { border: 0; background: transparent; padding: 0 14px; cursor: pointer; color: var(--ink-3); font-size: 18px; }
.search button:hover { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: 14px; white-space: nowrap; }
.theme-btn { border: 1px solid var(--line-soft); background: var(--glass); border-radius: 999px; width: 32px; height: 32px; cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center; }
.theme-btn:hover { border-color: var(--line); }
.nav a[data-active="1"] { border-bottom: 1px solid var(--line); }
.dig-btn { border: 1px solid var(--line); color: var(--ink); background: transparent; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 14px; }
@media (hover: hover) { .dig-btn:hover { background: var(--ink); color: var(--bg); } }
.dig-btn[disabled] { opacity: .5; cursor: progress; }

/* ---- layout ---- */
.app { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 40px) 64px; }
.page { animation: fadein .35s ease-out; }
@keyframes fadein { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.foot { padding: 18px clamp(16px, 4vw, 40px) 28px; display: flex; flex-wrap: wrap; gap: 6px 40px; border-top: 1px solid var(--line); }
.rule-cap { display: inline-flex; gap: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.rule-cap span:first-child { color: var(--ink); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; margin-top: 28px; }
@media (max-width: 860px) {
  .two { grid-template-columns: minmax(0, 1fr); }
  .top { flex-wrap: wrap; gap: 6px 10px; padding: 8px 16px 9px; }
  .brand { font-size: 17px; letter-spacing: .1em; }
  .nav { gap: 8px; font-size: 13px; }
  .dig-btn { padding: 3px 11px; font-size: 13px; }
  .theme-btn { width: 28px; height: 28px; font-size: 13px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .search input { padding: 5px 14px; font-size: 16px; } /* 16px未満だとiOSがフォーカス時にズームする */
  .search button { padding: 0 12px; font-size: 16px; }
  .app { padding-top: 12px; }
  .side { top: 0; }
}
.story, .side, .hero-in { min-width: 0; max-width: 100%; }
.cmap-wrap, .shelf-wrap, .vgrid, .tracks { max-width: 100%; }
.cmap { max-width: 100%; }
.side { position: sticky; top: 76px; display: grid; gap: 20px; }
@media (max-width: 860px) { .side { position: static; } }

/* ---- hero ---- */
.hero { position: relative; min-height: 300px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; padding: 34px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); isolation: isolate; }
.hero-bg { position: absolute; right: -8%; top: -20%; width: 70%; height: 140%; z-index: -1; opacity: 0; transition: opacity 1s; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, rgba(0,0,0,.6) 45%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, rgba(0,0,0,.6) 45%, transparent 100%); }
.hero { overflow: clip; }
@media (max-width: 700px) { .hero-bg { right: -20%; top: 0; width: 110%; height: 100%; } }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(60px) saturate(1.3); transform: scale(1.2); }
.hero.has-photo .hero-bg { opacity: .5; }
.hero-in { position: relative; min-width: 0; }
.hero h1 { font-size: clamp(36px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.01em; margin: 10px 0 6px; text-wrap: balance; line-height: 1.08; }
.hero .alias { color: var(--ink-2); font-size: 15px; }
.hero .alias a { border-bottom: 1px solid var(--line-soft); }
.hero .spec { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.hero .tagline { margin-top: 12px; }
.hero .row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 18px; }
.hero-photo { width: 250px; max-width: 34vw; aspect-ratio: 4 / 5; border-radius: 125px 125px 8px 8px; overflow: hidden; box-shadow: var(--shadow); display: none; }
.hero.has-photo .hero-photo { display: block; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.05); }
.hero.album { grid-template-columns: auto minmax(0, 1fr); align-items: end; }
.hero-cover { width: 280px; max-width: 40vw; }
.hero-cover .cover { aspect-ratio: 1; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); background: var(--bg-2); display: grid; place-items: center; color: var(--ink-3); font-size: 13px; }
.hero-cover .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero.home { min-height: 380px; grid-template-columns: 1fr; align-items: center; border-top: 0; }
.hero.home h1 { font-size: clamp(38px, 7vw, 80px); }
.hero-p { color: var(--ink-2); max-width: 40ch; font-size: 16px; margin: 14px 0 0; }
.hero .actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
@media (max-width: 700px) { .hero { grid-template-columns: 1fr !important; padding: 24px 0 22px; } .hero h1 { font-size: clamp(32px, 11vw, 48px); } .kicker { letter-spacing: .12em; } .hero-photo { max-width: 60%; aspect-ratio: 1; } .hero-cover { max-width: 70%; } }

/* ---- buttons / chips ---- */
.btn { border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 8px 18px; cursor: pointer; font-size: 14px; backdrop-filter: blur(8px); }
@media (hover: hover) { .btn:hover { background: var(--ink); color: var(--bg); } }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { opacity: .85; }
.btn.small { padding: 3px 12px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: progress; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bm { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); background: var(--glass); backdrop-filter: blur(10px); border-radius: 999px; padding: 10px 20px; cursor: pointer; font-size: 15px; font-weight: 600; letter-spacing: .02em; line-height: 1.2; transition: transform .15s ease, background .2s, color .2s, box-shadow .2s; }
@media (hover: hover) { .bm:hover { transform: translateY(-1px); background: var(--ink); color: var(--bg); box-shadow: 0 12px 24px -14px rgba(0,0,0,.55); } }
.bm .ico, .bm .arr { font-size: 15px; opacity: .8; }
.bm .arr { transition: transform .2s; }
.bm.primary { background: var(--ink); color: var(--bg); padding: 11px 24px; font-size: 16px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
@media (hover: hover) { .bm.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(0,0,0,.65); } .bm.primary:hover .arr { transform: translateX(4px); } }
.bm[data-on="1"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (max-width: 700px) { .acts { display: grid; grid-template-columns: 1fr 1fr; } .acts .bm { justify-content: center; } .acts .bm.primary { grid-column: 1 / -1; padding: 14px 24px; font-size: 17px; } .acts .share { display: flex; } .acts .share .bm { flex: 1; } }
.hero .row { margin-top: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.links a { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; border: 1px solid var(--line-soft); border-radius: 6px; padding: 3px 9px; background: var(--glass); }
.links a:hover { border-color: var(--line); }
.links a.sp { border-color: #1db954; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; background: var(--chip); border: 1px solid var(--line-soft); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--ink-2); backdrop-filter: blur(6px); }
@media (hover: hover) { a.chip:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); } }
.chip.sim { font-size: 13px; padding: 4px 12px; }
.chip.sim small { color: var(--ink-3); margin-left: 4px; }

/* ---- sections ---- */
.section { margin-top: 40px; }
.section > h2, .story h2 { display: flex; flex-direction: column; gap: 4px; font-size: 26px; margin: 44px 0 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.section > h2 { margin-top: 0; }
.section > h2 small, .story h2 small { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.story h2 .kicker, .section > h2 .kicker { font-size: 10px; }

/* ---- clue cards ---- */
.clues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; }
@media (max-width: 700px) { .clues { grid-template-columns: 1fr 1fr; } .clues .pick { grid-column: span 2; } }
.clue { background: var(--glass); border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.clue .big { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; margin-top: 4px; }
.clue .sm { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.clue .sm.strong { color: var(--ink); font-weight: 500; }
.clue.pick { padding: 12px; }
.clue.pick:hover { border-color: var(--line); color: inherit; }
.clue .cv { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bg-2); margin-top: 4px; display: grid; place-items: center; color: var(--ink-3); font-size: 12px; text-align: center; padding: 8px; max-height: 150px; }
.clue .cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avs { display: flex; margin-top: 6px; }
.av { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--bg-2); border: 2px solid var(--paper); margin-left: -10px; display: grid; place-items: center; font-family: var(--serif); color: var(--ink-3); box-shadow: var(--shadow); transition: transform .2s; }
.av:first-child { margin-left: 0; }
.av:hover { transform: translateY(-3px) scale(1.06); z-index: 1; }
.av img { width: 100%; height: 100%; object-fit: cover; }

/* ---- story ---- */
.story .lead { font-family: var(--serif); font-size: 19px; line-height: 1.95; text-wrap: pretty; }
.story p { margin: 0 0 16px; }
.para { margin: 20px 0; padding-left: 16px; border-left: 1px solid var(--line); }
.para .src { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-3); margin-bottom: 4px; display: flex; gap: 8px; }
.para .src a { color: var(--accent-2); }
.para .src .warn { color: #c2431f; }
.para .txt { white-space: pre-wrap; }
.para .txt.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.para .more { border: 0; background: none; padding: 2px 0; color: var(--ink); border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.polish { margin-top: 24px; padding: 16px; border: 1px dashed var(--line-soft); border-radius: 10px; background: var(--glass); }
.polish .txt { white-space: pre-wrap; font-family: var(--serif); font-size: 16px; line-height: 1.95; }
.trail { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.trail a { color: var(--accent-2); }

/* ---- facts / side ---- */
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.facts { padding-top: 10px; border-top: 1px solid var(--line); }
.facts dt { color: var(--ink-3); font-family: var(--mono); font-size: 11px; padding-top: 3px; }
.facts dd { margin: 0; }
.embed { border-radius: 12px; overflow: hidden; }
.embed iframe { display: block; border: 0; width: 100%; }
.srcs { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .02em; }
.srcs span { display: inline-block; margin-right: 8px; }
.srcs .ng { color: #c2431f; }

/* ---- ties ---- */
.ties { display: grid; gap: 4px; font-size: 14px; }
.ties .r { display: flex; gap: 8px; align-items: baseline; }
.ties .lb { color: var(--ink-3); font-family: var(--mono); font-size: 11px; min-width: 6em; }
.ties .rl { color: var(--ink-3); font-size: 12px; }
.ties .ended { color: var(--ink-3); }

/* ---- shelves ---- */
.shelf-wrap { margin-bottom: 18px; }
.shelf-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.shelf-label small { margin-left: 8px; opacity: .7; }
.shelf { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 4px 14px; margin: 0 -4px; scrollbar-width: thin; }
.rg { flex: 0 0 176px; scroll-snap-align: start; display: block; }
.rg .cv { aspect-ratio: 1; background: var(--bg-2); border-radius: 8px; overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.rg .cv .ph { color: var(--ink-3); font-family: var(--serif); font-size: 13px; text-align: center; padding: 10px; }
.rg .cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg:hover .cv { transform: translateY(-4px); box-shadow: 0 24px 40px -18px rgba(0,0,0,.6); }
.rg .t { font-size: 14px; margin-top: 8px; font-weight: 500; line-height: 1.35; }
.rg .y { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
details.more-d { margin-top: 8px; }
details.more-d summary { cursor: pointer; color: var(--ink-3); font-size: 13px; margin-bottom: 8px; }

/* ---- album ---- */
.tracks { display: grid; gap: 2px; }
.trk { position: relative; display: grid; grid-template-columns: 2.4em 1fr 4em; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: 6px; font-size: 14px; overflow: hidden; }
.trk::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: linear-gradient(90deg, hsl(var(--g1) 85% 60% / .35), hsl(var(--g2) 85% 62% / .2)); border-radius: 6px; z-index: -1; transition: width .6s ease-out; }
.trk .n { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-align: right; }
.trk .t small { display: block; color: var(--ink-3); font-size: 11px; }
.trk .l { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-align: right; }
.trk.medium { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding-top: 14px; }
.credits { display: grid; gap: 8px; }
.cr { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cr .role { font-family: var(--mono); font-size: 11px; color: var(--ink-3); min-width: 9em; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.vid { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.vid img, .vid .noimg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.vid:hover img { transform: scale(1.04); }
.vid .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-size: 12px; line-height: 1.3; }
.vid .cap small { display: block; opacity: .7; font-family: var(--mono); font-size: 10px; }
.pn { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; font-size: 14px; }
.pn a { flex: 1; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--glass); backdrop-filter: blur(10px); }
.pn a.next { justify-content: flex-end; text-align: right; }
.pn small { display: block; font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.pn-cv { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: var(--bg-2); flex: none; }
.pn-cv img { width: 100%; height: 100%; object-fit: cover; }

/* ---- search results ---- */
.result { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.result .t { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.result .t .ja { font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--ink-3); margin-left: 8px; }
.result .d { color: var(--ink-3); font-size: 13px; }
.result .tags { margin-left: auto; }

/* ---- tiles (home / notes) ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tiles.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile { display: block; }
.tile-art { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 70% 62%), hsl(calc(var(--h) + 60) 70% 70%)); display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .25s; }
.tile-art.artist { border-radius: 50%; }
.tile:hover .tile-art { transform: translateY(-4px); }
.tile-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-art .ini { font-family: var(--serif); font-size: 40px; color: rgba(255,255,255,.6); }
.tile-t { font-family: var(--serif); font-weight: 600; font-size: 15px; margin-top: 8px; line-height: 1.35; }
.tile-s { font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.tile-n { font-size: 12px; color: var(--ink-2); margin-top: 4px; white-space: pre-wrap; }
.note { width: 100%; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--glass); padding: 8px 10px; font: inherit; color: inherit; resize: vertical; min-height: 60px; }
.row-actions { display: flex; gap: 8px; margin-top: 8px; }

/* ---- misc ---- */
.loading { padding: 60px 0; color: var(--ink-3); text-align: center; font-family: var(--serif); }
.loading small { display: block; font-family: var(--mono); font-size: 11px; margin-top: 8px; }
.error { padding: 20px; border: 1px solid #c2431f; border-radius: 10px; color: #c2431f; }

/* ---- constellation ---- */
.cmap-wrap { margin: 4px 0 8px; }
.cmap { width: 100%; height: auto; display: block; font-family: var(--sans); }
.cmap .orbit { fill: none; stroke: var(--line-soft); stroke-dasharray: 2 6; }
.cmap .ray { stroke: var(--ink-3); stroke-width: 1; }
.cmap .ray.fm { stroke: hsl(var(--g1) 80% 50%); }
.cmap .ray.lb { stroke: hsl(var(--g3) 60% 50%); }
.cmap .node { cursor: pointer; }
.cmap .node.center { cursor: default; }
.cmap .float { animation: cfloat 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes cfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.cmap .halo { fill: var(--bg); }
.cmap .ini { fill: rgba(255,255,255,.55); font-family: var(--serif); font-weight: 600; pointer-events: none; }
.cmap .ring { fill: none; stroke: var(--line-soft); stroke-width: 1.5; }
.cmap .node.fm .ring { stroke: hsl(var(--g1) 80% 50%); }
.cmap .node.lb .ring { stroke: hsl(var(--g3) 60% 50%); }
.cmap .node.center .ring { stroke: var(--ink); stroke-width: 2; }
.cmap .lbl { fill: var(--ink-2); font-size: 12px; pointer-events: none; }
.cmap .node.center .lbl { fill: var(--ink); font-family: var(--serif); font-size: 15px; font-weight: 600; }
.cmap a:hover .float { transform: scale(1.12); animation: none; }
.cmap a:hover .lbl { fill: var(--ink); font-weight: 600; }
.cmap .float, .cmap a:hover .float { transform-box: fill-box; transform-origin: center; transition: transform .25s; }
.cmap-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.cmap-legend .k::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.cmap-legend .k.fm::before { background: hsl(var(--g1) 80% 50%); }
.cmap-legend .k.lb::before { background: hsl(var(--g3) 60% 50%); }
@media (max-width: 600px) { .cmap .lbl { font-size: 15px; } }

/* ---- share ---- */
.share { position: relative; display: inline-block; }
.share-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 180px; display: grid; background: var(--glass); backdrop-filter: blur(16px); border: 1px solid var(--line-soft); border-radius: 10px; padding: 6px; box-shadow: var(--shadow); }
.share-menu a, .share-menu button { display: block; text-align: left; padding: 7px 10px; border: 0; background: none; border-radius: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.share-menu a:hover, .share-menu button:hover { background: var(--ink); color: var(--bg); }

/* ---- tag page ---- */
.hero.tag { grid-template-columns: 1fr; min-height: 0; }
.hero.tag h1 { text-transform: lowercase; }

/* ---- home: genres / decades ---- */
.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.genre { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: linear-gradient(135deg, hsl(var(--h) 85% 88% / .9), hsl(calc(var(--h) + 50) 85% 92% / .9)); transition: transform .15s; min-height: 64px; justify-content: center; }
:root[data-theme="dark"] .genre { background: linear-gradient(135deg, hsl(var(--h) 45% 26% / .9), hsl(calc(var(--h) + 50) 45% 20% / .9)); }
.genre .en { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink); }
.genre .ja { font-family: var(--serif); font-size: 16px; font-weight: 600; }
@media (hover: hover) { .genre:hover { transform: translateY(-3px); border-color: var(--line); color: inherit; } }
.decades { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.decade { display: flex; align-items: baseline; gap: 4px; padding: 16px 16px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--glass); backdrop-filter: blur(10px); transition: transform .15s, background .2s; }
.decade .y { font-family: var(--serif); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.decade .s { font-size: 12px; color: var(--ink-3); }
@media (hover: hover) { .decade:hover { transform: translateY(-3px); border-color: var(--line); color: inherit; } }
.genres.collapsed .genre:nth-child(n+17) { display: none; }
@media (max-width: 700px) { .genres.collapsed .genre:nth-child(n+11) { display: none; } }

/* ---- mixcloud ---- */
.mixes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.mix.playing { grid-column: 1 / -1; }
.mix-cover { position: relative; display: block; width: 100%; aspect-ratio: 1; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: var(--bg-2); cursor: pointer; box-shadow: var(--shadow); }
.mix-cover img, .mix-cover .noimg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.mix-cover .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 16px; padding-left: 3px; backdrop-filter: blur(4px); transition: transform .2s, background .2s; }
@media (hover: hover) { .mix-cover:hover img { transform: scale(1.04); } .mix-cover:hover .play { transform: translate(-50%, -50%) scale(1.1); background: rgba(0,0,0,.75); } }
.mix-t { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mix-s { font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-top: 3px; }
.mix iframe { display: block; border-radius: 10px; }
.tile.busy { opacity: .6; cursor: progress; }
.lang-btn { width: auto; padding: 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }

/* ---- skeleton ---- */
.skel { display: grid; gap: 10px; margin: 16px 0 24px; }
.skel-line { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--line-soft), transparent 40%, var(--line-soft) 80%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.para-skel { padding-left: 16px; border-left: 1px solid var(--line-soft); }

.vid.playing { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.vid iframe { width: 100%; height: 100%; display: block; }

/* ---- daily ---- */
.daily-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px; border-radius: 16px; border: 1px solid var(--line-soft); background: var(--glass); backdrop-filter: blur(14px); }
@media (max-width: 700px) { .daily-card { grid-template-columns: 1fr; } }
.daily-art { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; box-shadow: 0 30px 60px -24px rgba(0,0,0,.5); }
.daily-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.daily-art .ini { font-family: var(--serif); font-size: 48px; color: var(--ink-3); }
.daily-t { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.2; margin-top: 8px; }
.daily-a { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.daily-lead { font-family: var(--serif); font-size: 15px; line-height: 1.8; margin: 10px 0 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.daily-card:hover { color: inherit; border-color: var(--line); }

.lbl-link { border-bottom: 1px solid var(--line); }
button.chip { cursor: pointer; font: inherit; font-size: 12px; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---- timeline ---- */
.tl-wrap { margin: 4px 0 8px; overflow-x: auto; }
.tl { width: 100%; height: auto; min-width: 560px; display: block; font-family: var(--mono); }
.tl .tick { stroke: var(--line-soft); stroke-dasharray: 2 4; }
.tl .yr { fill: var(--ink-3); font-size: 11px; }
.tl-frame { fill: none; stroke: var(--line-soft); }
.tl-al:hover .tl-frame { stroke: var(--ink); stroke-width: 2; }
.tl-bar { stroke: hsl(var(--g1) 70% 45%); stroke-width: 4; stroke-linecap: round; }
.tl-bar.ended { stroke: var(--ink-3); opacity: .6; }
.tl-name { fill: var(--ink-2); font-size: 10.5px; }
.cmap .node.ended .disc { opacity: .5; }

/* ---- mine ---- */
.mine-card { border: 1px solid var(--line-soft); border-radius: 14px; background: var(--glass); backdrop-filter: blur(12px); padding: 14px 16px; margin-bottom: 12px; }
.mine-h { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 10px; }
.mine-h b { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.mine-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.mine-in { border: 1px solid var(--line-soft); border-radius: 999px; background: var(--glass); padding: 7px 14px; font: inherit; color: inherit; font-size: 14px; min-width: 180px; }
.mine-in.sel { min-width: 0; }
.mine-file { font-size: 13px; }

/* ---- help ---- */
details.help { margin: 2px 0 12px; font-size: 13px; }
details.help summary { cursor: pointer; color: var(--ink); border-bottom: 1px solid var(--line); display: inline; }
details.help ol { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); line-height: 1.7; }
details.help li { margin-bottom: 4px; }
details.help a { color: var(--accent-2); border-bottom: 1px solid var(--line-soft); }

/* ---- wall ---- */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
@media (max-width: 700px) { .wall { grid-template-columns: repeat(3, 1fr); gap: 4px; } }
.wtile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.wtile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.wcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 8px 8px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: 11px; line-height: 1.3; opacity: 0; transition: opacity .2s; }
.wcap b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcap i { font-style: normal; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
@media (hover: hover) { .wtile:hover img { transform: scale(1.05); } .wtile:hover .wcap { opacity: 1; } }
.wtile.busy { opacity: .6; }
.wall-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.wall-chips .chip { flex: none; white-space: nowrap; }
.wall-status { text-align: center; padding: 20px; }
.wall-sentinel { height: 1px; }
.wall-entry { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--glass); backdrop-filter: blur(12px); }
.wall-entry-t { font-family: var(--serif); font-size: 20px; font-weight: 600; }
