:root {
  --bg: #07060c;
  --panel: #110e1b;
  --panel2: #1a1528;
  --line: #3a3150;
  --gold: #e8d49a;
  --gold2: #9c8350;
  --text: #f1ecff;
  --text2: rgba(241, 236, 255, .62);
  --text3: rgba(241, 236, 255, .36);
  --hot: #ff3d6e;
  --tint: #ff4a5c;
  --sat: 54px;
  --sab: 34px;
  --W: 393px;
  --H: 852px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --dot: "DotGothic16", ui-monospace, "Osaka-Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(900px 600px at 15% 15%, rgba(120, 40, 120, .25), transparent 60%),
    radial-gradient(900px 700px at 90% 90%, rgba(30, 50, 140, .22), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 3px),
    #050409;
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }

/* ---------- stage / device ---------- */
.stage { height: 100%; display: flex; align-items: center; justify-content: center; gap: 64px; padding: 20px; }
.device-wrap { width: calc(var(--W) + 28px); height: calc(var(--H) + 28px); flex: none; transform-origin: center; }
.device {
  width: 100%; height: 100%; border-radius: 68px; padding: 14px; position: relative;
  background: linear-gradient(145deg, #4b4852, #222027 30%, #17151c 70%, #3d3a44);
  box-shadow: 0 0 0 1.5px #0a0a0c inset, 0 0 0 4px #121216 inset, 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
}
.device::before, .device::after { content: ""; position: absolute; left: -3px; width: 4px; border-radius: 2px; background: #3a393f; }
.device::before { top: 180px; height: 64px; }
.device::after { top: 260px; height: 64px; }
.screen {
  position: relative; width: var(--W); height: var(--H); border-radius: 55px; overflow: hidden; background: #000; isolation: isolate;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Ccircle cx='18' cy='18' r='13' fill='rgba(255,255,255,.2)' stroke='rgba(255,255,255,.55)' stroke-width='1.5'/%3E%3C/svg%3E") 18 18, pointer;
}
html.bare .stage { padding: 0; display: block; }
html.bare .device-wrap { width: 100vw; height: 100dvh; transform: none !important; }
html.bare .device { border-radius: 0; padding: 0; background: none; box-shadow: none; }
html.bare .device::before, html.bare .device::after { display: none; }
html.bare .screen { width: 100vw; height: 100dvh; border-radius: 0; cursor: auto; }
html.bare { --sat: env(safe-area-inset-top, 20px); --sab: env(safe-area-inset-bottom, 0px); }
html.bare .statusbar, html.bare .island, html.bare .home-indicator, html.bare .notes { display: none; }

/* ---------- notes ---------- */
.notes { width: 340px; color: var(--text2); font-size: 13px; line-height: 1.7; }
.notes-kicker { font-family: var(--dot); font-size: 11px; letter-spacing: .1em; color: var(--text3); margin: 0 0 6px; }
.notes-title { font-family: var(--mincho); font-weight: 800; color: var(--gold); font-size: 36px; margin: 0 0 10px; letter-spacing: .06em; text-shadow: 0 0 18px rgba(232, 212, 154, .35); }
.notes-title span { font-family: var(--dot); font-size: 15px; font-weight: 400; color: var(--hot); letter-spacing: .1em; margin-left: 6px; text-shadow: none; }
.notes-lead { margin: 0 0 20px; }
.notes h2 { font-family: var(--dot); font-size: 12px; letter-spacing: .14em; color: var(--gold2); font-weight: 400; margin: 18px 0 6px; }
.notes ul { list-style: none; padding: 0; margin: 0; }
.notes li { padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.notes li b { color: var(--text); font-weight: 600; }
kbd { font-family: var(--dot); font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--gold); margin-right: 2px; }
@media (max-width: 980px) { .notes { display: none; } }

/* ---------- system chrome ---------- */
.statusbar { position: absolute; z-index: 60; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 4px 34px 0 52px; font-weight: 600; font-size: 17px; pointer-events: none; color: #fff; }
.sb-right { display: flex; align-items: center; gap: 6px; }
.home-indicator { position: absolute; z-index: 60; left: 50%; bottom: 8px; width: 139px; height: 5px; margin-left: -69.5px; border-radius: 3px; background: rgba(255, 255, 255, .85); pointer-events: none; }

.island { position: absolute; z-index: 70; top: 11px; left: 50%; width: 126px; height: 37px; transform: translateX(-50%); background: #000; border-radius: 20px; transition: width .5s var(--spring), height .5s var(--spring), border-radius .5s var(--spring); overflow: hidden; }
.island .is-compact, .island .is-expanded { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; pointer-events: none; }
.island.compact { width: 230px; }
.island.compact .is-compact { opacity: 1; transition-delay: .15s; }
.island.expanded { width: 371px; height: 172px; border-radius: 46px; }
.island.expanded .is-expanded { opacity: 1; transition-delay: .18s; pointer-events: auto; }
.is-compact { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 8px; font-family: var(--dot); font-size: 12px; color: var(--isl); }
.is-compact .art { width: 23px; height: 23px; border-radius: 4px; }
.is-expanded { padding: 22px 24px 18px; display: grid; grid-template-columns: 54px 1fr auto; grid-template-rows: 54px auto auto; gap: 12px; }
.is-expanded .art { width: 54px; height: 54px; border-radius: 8px; }
.ie-text { min-width: 0; align-self: center; }
.ie-k { font-family: var(--dot); font-size: 11px; color: var(--isl); letter-spacing: .08em; }
.ie-title { font-family: var(--mincho); font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ie-timer { font-family: var(--dot); font-size: 20px; color: var(--isl); align-self: center; }
.ie-progress { grid-column: 1 / -1; height: 6px; border: 1px solid rgba(255, 255, 255, .25); padding: 1px; }
.ie-progress i { display: block; height: 100%; background: var(--isl); }
.ie-ctl { grid-column: 1 / -1; display: flex; justify-content: center; gap: 36px; margin-top: -2px; }
.ie-ctl button { font-family: var(--dot); font-size: 15px; color: var(--gold); padding: 4px 10px; }

/* ---------- app ---------- */
.app-content {
  position: absolute; inset: 0; background: var(--bg); overflow: hidden;
  transform-origin: 50% 0;
  transform: translateY(calc(var(--sheet, 0) * 12px)) scale(calc(1 - var(--sheet, 0) * .06));
  border-radius: calc(var(--sheet, 0) * 44px);
  filter: brightness(calc(1 - var(--sheet, 0) * .5));
  transition: transform .5s var(--ease), border-radius .5s var(--ease), filter .5s var(--ease);
}
.screen.dragging .app-content { transition: none; }
.stack { position: absolute; inset: 0; overflow: hidden; }

.page { position: absolute; inset: 0; background: var(--bg); transition: transform .5s var(--ease); will-change: transform; }
.page.dragging { transition: none; }
.page::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.page.covered::after { opacity: .5; }
.page:not(.root) { box-shadow: -12px 0 30px rgba(0, 0, 0, .6); border-left: 1px solid var(--line); }

.scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y; padding-top: calc(var(--sat) + 52px); scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.bottom-space { height: calc(var(--sab) + 120px); }

.navbar { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: calc(var(--sat) + 48px); padding: var(--sat) 12px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.navbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 6, 12, .96), rgba(7, 6, 12, .82)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .2s; }
.page.scrolled .navbar::before { opacity: 1; }
.nav-title { grid-column: 2; font-family: var(--dot); font-size: 15px; letter-spacing: .12em; color: var(--gold); opacity: 0; transition: opacity .2s; }
.page.scrolled .nav-title { opacity: 1; }
.nav-back { grid-column: 1; justify-self: start; display: flex; align-items: center; gap: 6px; font-family: var(--dot); font-size: 14px; color: var(--gold); padding: 8px 10px 8px 4px; letter-spacing: .06em; }
.nav-back .cap { font-size: 12px; }

.ph { padding: 4px 22px 14px; position: relative; }
.ph-en { font-family: var(--dot); font-size: 26px; letter-spacing: .12em; color: var(--gold); text-shadow: 0 0 14px rgba(232, 212, 154, .35); line-height: 1.1; }
.ph-ja { font-family: var(--mincho); font-weight: 800; font-size: 13px; color: var(--text2); letter-spacing: .3em; margin-top: 4px; }
.ph::after { content: ""; display: block; margin-top: 12px; height: 1px; background: linear-gradient(90deg, var(--gold2), transparent); }

/* ---------- key caps ---------- */
.key {
  position: relative; display: grid; place-items: center;
  background: linear-gradient(180deg, #2a2338, #171223);
  border: 1px solid #4a3f63; border-bottom-width: 4px; border-radius: 10px;
  color: var(--gold); font-family: var(--dot);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 6px 14px rgba(0, 0, 0, .45);
  transition: transform .2s var(--spring), border-bottom-width .08s, margin-top .08s, filter .2s;
}
.key svg { width: 20px; height: 20px; }
.key.is-pressed { transform: translateY(3px); border-bottom-width: 1px; filter: brightness(1.25); transition: transform .06s, border-bottom-width .06s; }
.key-sm { width: 38px; height: 38px; border-radius: 9px; }
.key-sm svg { width: 18px; height: 18px; }

/* ---------- press feedback (generic) ---------- */
[data-press] { transition: transform .3s var(--spring), background-color .15s, filter .15s; }
[data-press].is-pressed { transform: scale(.96); transition: transform .1s ease-out, background-color .1s; }
.key[data-press].is-pressed { transform: translateY(3px); }
.row[data-press].is-pressed { transform: none; }

/* ---------- art ---------- */
.art { position: relative; overflow: hidden; background: #222; flex: none; }
.art > svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- title screen ---------- */
.title-page { background: #05040a; }
.title-page canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.title-page .title-veil { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 30%, transparent 30%, rgba(5, 4, 10, .85) 80%), linear-gradient(180deg, transparent 50%, rgba(5, 4, 10, .9)); pointer-events: none; }
.title-wrap { position: absolute; inset: 0; padding: calc(var(--sat) + 40px) 26px calc(var(--sab) + 104px); display: flex; flex-direction: column; }
.logo { text-align: left; animation: logoIn 1s var(--ease) both; }
.logo-en { font-family: var(--dot); font-size: 12px; letter-spacing: .32em; color: var(--hot); }
.logo-ja { font-family: var(--mincho); font-weight: 800; font-size: 88px; line-height: 1; letter-spacing: .02em; margin-top: 8px; color: #fff8e6;
  text-shadow: 0 0 2px #fff, 0 0 20px rgba(255, 61, 110, .55), 0 0 60px rgba(232, 212, 154, .35); }
.logo-sub { font-family: var(--mincho); font-weight: 600; font-size: 14px; color: var(--gold); letter-spacing: .3em; margin-top: 10px; }
@keyframes logoIn { from { opacity: 0; transform: translateY(14px); letter-spacing: .2em; filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.tmenu { margin-top: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.titem {
  position: relative; display: flex; align-items: baseline; gap: 12px; padding: 7px 4px 7px 30px;
  font-family: var(--dot); font-size: 21px; letter-spacing: .1em; color: rgba(241, 236, 255, .5);
  transition: color .2s, transform .35s var(--spring), text-shadow .2s;
  animation: menuIn .5s var(--ease) both;
}
.titem small { font-family: var(--mincho); font-weight: 600; font-size: 11px; letter-spacing: .2em; color: var(--text3); transition: color .2s; }
.titem.sel { color: #fff; transform: translateX(-10px); text-shadow: 0 0 10px var(--hot), 0 0 2px #fff; }
.titem.sel small { color: var(--gold); }
.titem.sel::before { content: ""; position: absolute; left: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--hot); transform: rotate(45deg); box-shadow: 0 0 12px var(--hot); animation: cursor 1s ease-in-out infinite; }
.titem.is-pressed { transform: translateX(-14px) scale(.97); }
@keyframes cursor { 50% { transform: rotate(45deg) scale(.6); opacity: .6; } }
@keyframes menuIn { from { opacity: 0; transform: translateX(30px); } }
.tfoot { display: flex; justify-content: space-between; margin-top: 18px; font-family: var(--dot); font-size: 11px; color: var(--text3); letter-spacing: .1em; }

/* ---------- music room ---------- */
.carousel {
  display: flex; gap: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 6px calc(50% - 98px) 14px; touch-action: pan-x pan-y; overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.mouse-drag { scroll-snap-type: none; }
.scard { flex: none; width: 196px; scroll-snap-align: center; padding: 0 8px; }
.scard-in { position: relative; height: 244px; border-radius: 6px; overflow: hidden; transform: scale(.84); opacity: .45; filter: saturate(.6); transition: transform .35s var(--ease), opacity .35s, filter .35s, box-shadow .35s; border: 1px solid rgba(255, 255, 255, .12); }
.scard.on .scard-in { transform: none; opacity: 1; filter: none; box-shadow: 0 0 0 1px var(--gold2), 0 0 30px color-mix(in srgb, var(--c) 45%, transparent), 0 18px 40px rgba(0, 0, 0, .6); }
.scard .art { position: absolute; inset: 0; }
.scard-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .8)); }
.scard-stage { position: absolute; left: 10px; top: 10px; font-family: var(--dot); font-size: 11px; letter-spacing: .14em; color: #fff; background: rgba(0, 0, 0, .5); padding: 2px 6px; }
.scard-name { position: absolute; left: 12px; right: 12px; bottom: 30px; font-family: var(--mincho); font-weight: 800; font-size: 22px; letter-spacing: .06em; }
.scard-en { position: absolute; left: 12px; right: 12px; bottom: 12px; font-family: var(--dot); font-size: 10px; letter-spacing: .06em; color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cats { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; touch-action: pan-x pan-y; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: flex; align-items: baseline; gap: 5px; padding: 6px 11px; border: 1px solid var(--line); background: var(--panel); font-family: var(--mincho); font-weight: 800; font-size: 13px; color: var(--text2); transition: color .2s, border-color .2s, background .2s; }
.cat small { font-family: var(--dot); font-weight: 400; font-size: 10px; color: var(--text3); }
.cat.on { color: #fff; border-color: var(--gold2); background: linear-gradient(180deg, #2a2038, var(--panel)); box-shadow: 0 0 12px rgba(232, 212, 154, .15); }
.cat.on small { color: var(--gold); }
.dots-count { font-family: var(--dot); font-size: 11px; color: var(--text3); letter-spacing: .1em; }
.dots-count b { color: var(--gold); font-weight: 400; }
.dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 4px; }
.dots i { width: 6px; height: 6px; transform: rotate(45deg); background: var(--line); transition: background .2s, box-shadow .2s; }
.dots i.on { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

.ainfo { margin: 12px 16px 0; padding: 12px 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel2), var(--panel)); position: relative; }
.ainfo::before, .ainfo::after { content: ""; position: absolute; width: 8px; height: 8px; border: 1px solid var(--gold2); }
.ainfo::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.ainfo::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.ainfo-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ainfo-title { font-family: var(--mincho); font-weight: 800; font-size: 19px; }
.ainfo-meta { font-family: var(--dot); font-size: 11px; color: var(--text3); letter-spacing: .08em; white-space: nowrap; }
.ainfo-en { font-family: var(--dot); font-size: 11.5px; color: var(--tint); margin-top: 2px; letter-spacing: .04em; }
.ainfo-btns { display: flex; gap: 10px; margin-top: 12px; }
.ainfo-btns .key { flex: 1; height: 40px; grid-auto-flow: column; gap: 8px; font-size: 13px; letter-spacing: .08em; }
.ainfo-btns .key svg { width: 16px; height: 16px; }

/* ---------- rows ---------- */
.list { margin: 10px 0 0; }
.list.fade { animation: listIn .35s var(--ease) both; }
@keyframes listIn { from { opacity: 0; transform: translateY(6px); } }
.row { position: relative; overflow: hidden; touch-action: pan-y; }
.row-inner {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 4px 6px 4px 18px;
  background: var(--bg); transition: transform .45s var(--spring), background-color .12s;
  border-bottom: 1px dashed rgba(255, 255, 255, .06);
}
.row.swiping .row-inner { transition: none; }
.row.is-pressed .row-inner { background: rgba(255, 255, 255, .06); }
.r-cur { width: 10px; flex: none; color: var(--hot); font-size: 11px; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .3s var(--spring); }
.r-no { font-family: var(--dot); font-size: 12px; color: var(--text3); width: 44px; flex: none; letter-spacing: .04em; }
.r-text { flex: 1; min-width: 0; }
.r-title { font-family: var(--mincho); font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-tag { font-family: var(--dot); font-size: 10.5px; color: var(--text3); letter-spacing: .06em; margin-top: 1px; }
.r-dur { font-family: var(--dot); font-size: 12px; color: var(--text3); }
.row-more { width: 36px; height: 36px; display: grid; place-items: center; color: var(--text3); flex: none; }
.row-more svg { width: 18px; height: 18px; }
.row.playing .row-inner { background: linear-gradient(90deg, color-mix(in srgb, var(--tint) 28%, transparent), transparent 75%); }
.row.playing .r-cur { opacity: 1; transform: none; animation: blink 1s steps(2) infinite; }
.row.playing .r-title { color: #fff; text-shadow: 0 0 10px color-mix(in srgb, var(--tint) 80%, transparent); }
.row.playing .r-no { color: var(--tint); }
body:not(.is-playing) .row.playing .r-cur { animation: none; }
@keyframes blink { 50% { opacity: .2; } }

.row-bg { position: absolute; inset: 0; display: flex; justify-content: space-between; }
.rb { display: flex; align-items: center; gap: 8px; padding: 0 20px; font-family: var(--dot); font-size: 13px; letter-spacing: .08em; flex: 1; opacity: 0; color: #fff; }
.rb svg { width: 20px; height: 20px; transition: transform .3s var(--spring); }
.rb-l { background: repeating-linear-gradient(135deg, #5d2a9e 0 10px, #4c2185 10px 20px); }
.rb-r { background: repeating-linear-gradient(135deg, #a8452a 0 10px, #8d3920 10px 20px); justify-content: flex-end; }
.row.dir-r .rb-l, .row.dir-l .rb-r { opacity: 1; }
.row.dir-r .rb-r, .row.dir-l .rb-l { display: none; }
.row.armed .rb svg { transform: scale(1.3); }
.row.armed .rb { text-shadow: 0 0 8px #fff; }

/* ---------- search ---------- */
.sfield { margin: 0 16px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text3); transition: border-color .2s, box-shadow .2s; }
.sfield:focus-within { border-color: var(--gold2); box-shadow: 0 0 0 3px rgba(232, 212, 154, .12); }
.sfield svg { width: 18px; height: 18px; flex: none; }
.sfield input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font-family: var(--mincho); font-weight: 600; font-size: 17px; caret-color: var(--hot); }
.sfield input::placeholder { color: var(--text3); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 0; }
.chip { padding: 6px 12px; border: 1px solid var(--line); font-family: var(--mincho); font-weight: 600; font-size: 13px; background: var(--panel); }
.sec-k { font-family: var(--dot); font-size: 11px; letter-spacing: .16em; color: var(--gold2); padding: 22px 18px 4px; }
.empty { padding: 50px 30px; text-align: center; color: var(--text3); font-family: var(--dot); font-size: 13px; letter-spacing: .06em; line-height: 1.8; }


/* ---------- title: today ---------- */
.today { margin-top: 26px; align-self: flex-start; display: grid; gap: 2px; padding: 10px 14px 10px 12px; border-left: 2px solid var(--tint); background: linear-gradient(90deg, rgba(0, 0, 0, .55), transparent); animation: menuIn .6s .2s var(--ease) both; }
.today-k { font-family: var(--dot); font-size: 10px; letter-spacing: .2em; color: var(--tint); }
.today-t { font-family: var(--mincho); font-weight: 800; font-size: 17px; color: #fff; text-shadow: 0 0 10px rgba(0, 0, 0, .8); }
.today-a { font-family: var(--dot); font-size: 10.5px; color: var(--text2); letter-spacing: .06em; }
.today.is-pressed { transform: translateX(4px) scale(.98); }

/* ---------- rows: liked mark ---------- */
.r-like { width: 14px; color: var(--hot); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--spring); }
.r-like svg { width: 13px; height: 13px; }
.row.liked .r-like { opacity: 1; transform: none; }
.rb-l { background: repeating-linear-gradient(135deg, #a8204a 0 10px, #8d1a3e 10px 20px); }
.rb-r { background: repeating-linear-gradient(135deg, #3a4ab0 0 10px, #2f3d96 10px 20px); }
.svc-badge { display: inline-block; font-family: var(--dot); font-size: 9.5px; padding: 0 5px; margin-right: 6px; border: 1px solid var(--svc); color: var(--svc); letter-spacing: .04em; }
.arow .r-no { color: var(--tint); }

/* ---------- listen sheet ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 50; }
.sheet-wrap[hidden] { display: none; }
.sheet-dim { position: absolute; inset: 0; background: rgba(3, 2, 8, .62); opacity: 0; transition: opacity .35s; }
.sheet-wrap.open .sheet-dim { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #16121f, #0b0912 40%);
  border-top: 1px solid var(--gold2); border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, .6);
  padding-bottom: calc(var(--sab) + 14px);
  transform: translateY(105%); transition: transform .5s var(--ease); touch-action: none;
}
.sheet-wrap.open .sheet { transform: none; }
.sheet.dragging { transition: none; }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); margin: 8px auto 8px; }
.sheet-hero { position: relative; height: 170px; margin: 0 12px; overflow: hidden; border: 1px solid var(--line); background: #020106; }
.sheet-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(2, 1, 6, .92)); pointer-events: none; }
.sheet-hero-text { position: absolute; left: 14px; right: 56px; bottom: 12px; z-index: 1; }
.sh-no { font-family: var(--dot); font-size: 11px; letter-spacing: .14em; color: var(--tint); }
.sh-title { font-family: var(--mincho); font-weight: 800; font-size: 21px; line-height: 1.3; margin-top: 3px; text-shadow: 0 0 12px color-mix(in srgb, var(--tint) 60%, transparent); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-sub { font-family: var(--dot); font-size: 11px; color: var(--text2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-like { position: absolute; right: 10px; bottom: 12px; z-index: 1; width: 38px; height: 38px; border-radius: 19px; display: grid; place-items: center; background: rgba(0, 0, 0, .5); border: 1px solid var(--line); color: var(--text2); }
.sh-like svg { width: 18px; height: 18px; }
.sh-like.on { color: var(--hot); border-color: color-mix(in srgb, var(--hot) 50%, transparent); }
.sh-like.pop svg { animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.5); } }
.sheet-body { padding: 14px 16px 0; }

.seg2 { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 40px; border: 1px solid var(--line); background: var(--panel); padding: 3px; }
.seg2-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: linear-gradient(180deg, #3a1f33, #22122a); border: 1px solid color-mix(in srgb, var(--hot) 60%, transparent); box-shadow: 0 0 14px rgba(255, 61, 110, .25); transition: transform .4s var(--spring); }
.seg2[data-v="arr"] .seg2-thumb { transform: translateX(100%); }
.seg2 button { position: relative; z-index: 1; font-family: var(--mincho); font-weight: 800; font-size: 15px; letter-spacing: .2em; color: var(--text3); transition: color .2s; }
.seg2[data-v="orig"] button[data-kind="orig"], .seg2[data-v="arr"] button[data-kind="arr"] { color: #fff; }
.sh-q { margin: 10px 2px 12px; font-family: var(--dot); font-size: 11px; color: var(--text3); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-q b { font-family: var(--sans); font-weight: 500; color: var(--text2); letter-spacing: 0; margin-left: 6px; }

.svc-list { display: grid; gap: 10px; }
.svc {
  position: relative; display: grid; grid-template-columns: 40px 1fr auto 22px; align-items: center; gap: 12px;
  height: 62px; padding: 0 14px 0 12px; text-align: left;
  background: linear-gradient(180deg, #221c30, #141020); border: 1px solid #4a3f63; border-bottom-width: 4px; border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 8px 18px rgba(0, 0, 0, .4);
  transition: transform .25s var(--spring), border-bottom-width .08s, filter .2s;
  overflow: hidden;
}
.svc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--svc); box-shadow: 0 0 12px var(--svc); }
.svc.first { border-color: color-mix(in srgb, var(--svc) 55%, #4a3f63); }
.svc.is-pressed { transform: translateY(3px); border-bottom-width: 1px; filter: brightness(1.2); }
.svc-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--svc); background: color-mix(in srgb, var(--svc) 14%, transparent); }
.svc-ic svg { width: 24px; height: 24px; }
.svc-name { display: grid; font-family: var(--mincho); font-weight: 800; font-size: 16px; }
.svc-name small { font-family: var(--dot); font-weight: 400; font-size: 10.5px; color: var(--text3); letter-spacing: .06em; margin-top: 1px; }
.svc-mode { font-family: var(--dot); font-size: 10px; letter-spacing: .04em; color: var(--text3); border: 1px solid var(--line); padding: 1px 6px; white-space: nowrap; }
.svc.ul .svc-mode { color: var(--svc); border-color: color-mix(in srgb, var(--svc) 50%, transparent); }
a.svc, a.ctx-item { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ctx-item small { margin-left: auto; font-family: var(--dot); font-size: 10px; color: var(--text3); }
.svc-go { color: var(--text3); }
.svc-go svg { width: 18px; height: 18px; }
.svc.launch { animation: launch .5s var(--ease); }
.svc.launch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--svc) 45%, transparent), transparent); animation: sweep .45s ease-out; }
@keyframes launch { 40% { transform: translateX(6px); } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.sh-foot { margin-top: 12px; text-align: center; font-family: var(--dot); font-size: 10.5px; color: var(--text3); letter-spacing: .08em; }

/* ---------- option ---------- */
.opt { padding: 0 16px; }
.opt-k { font-family: var(--dot); font-size: 11px; letter-spacing: .16em; color: var(--gold2); margin: 18px 2px 8px; }
.opt-svcs { display: grid; gap: 8px; }
.opt-svc { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border: 1px solid var(--line); background: var(--panel); font-family: var(--mincho); font-weight: 800; font-size: 15px; color: var(--text2); position: relative; }
.opt-svc svg { width: 22px; height: 22px; color: var(--svc); }
.opt-svc.on { color: #fff; border-color: var(--svc); box-shadow: 0 0 14px color-mix(in srgb, var(--svc) 25%, transparent); }
.opt-svc.on::after { content: "先頭"; position: absolute; right: 14px; font-family: var(--dot); font-weight: 400; font-size: 11px; color: var(--svc); }
.opt-clear { width: 100%; height: 44px; grid-auto-flow: column; gap: 8px; font-size: 13px; }
.opt-clear svg { width: 16px; height: 16px; }
.opt-note { font-size: 12px; line-height: 1.7; color: var(--text3); margin: 18px 2px 0; }

/* ---------- island (外部遷移の通知) ---------- */
.island .is-compact { gap: 8px; justify-content: flex-start; padding: 0 14px 0 12px; color: #fff; font-family: var(--dot); font-size: 12px; letter-spacing: .06em; }
.is-ic svg, .is-go svg { width: 16px; height: 16px; }
.is-go { margin-left: auto; color: var(--text3); }

/* ---------- context menu ---------- */
.ctx { position: absolute; inset: 0; z-index: 80; }
.ctx[hidden] { display: none; }
.ctx-dim { position: absolute; inset: 0; background: rgba(3, 2, 8, .6); backdrop-filter: blur(6px) saturate(.5); -webkit-backdrop-filter: blur(6px) saturate(.5); opacity: 0; transition: opacity .25s; }
.ctx.show .ctx-dim { opacity: 1; }
.ctx-preview { position: absolute; overflow: hidden; background: var(--panel2); border: 1px solid var(--gold2); box-shadow: 0 0 30px rgba(0, 0, 0, .7); transition: transform .4s var(--spring), top .4s var(--spring); pointer-events: none; }
.ctx.show .ctx-preview { transform: scale(1.03); }
.ctx-preview .row-inner { background: var(--panel2); border: 0; }
.ctx-menu {
  position: absolute; width: 236px; padding: 6px 0; background: rgba(14, 11, 22, .96); border: 1px solid var(--line);
  box-shadow: 0 0 0 3px #07060c, 0 0 0 4px var(--gold2), 0 20px 40px rgba(0, 0, 0, .6);
  opacity: 0; transform: scaleY(.2); transition: transform .35s var(--spring), opacity .15s;
}
.ctx.show .ctx-menu { opacity: 1; transform: none; }
.ctx-item { width: 100%; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; font-family: var(--mincho); font-weight: 600; font-size: 15px; text-align: left; position: relative; color: rgba(255, 255, 255, .85); }
.ctx-item svg { width: 18px; height: 18px; color: var(--gold2); }
.ctx-item.sep { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 6px; height: 46px; }
.ctx-item.svc svg { color: var(--hot); }
.ctx-item.is-pressed, .ctx-item:hover { transform: none; color: #fff; background: linear-gradient(90deg, color-mix(in srgb, var(--hot) 30%, transparent), transparent); }
.ctx-item.is-pressed svg, .ctx-item:hover svg { color: var(--hot); }

/* ---------- toast ---------- */
.toast {
  position: absolute; z-index: 90; left: 0; right: 0; top: calc(var(--sat) + 10px); display: flex; justify-content: center; align-items: center; gap: 8px;
  font-family: var(--dot); font-size: 14px; letter-spacing: .1em; color: var(--gold); text-shadow: 0 0 8px rgba(232, 212, 154, .6), 0 0 2px #000;
  pointer-events: none; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .4s var(--spring);
}
.toast::before { content: ""; position: absolute; left: 30px; right: 30px; top: -6px; bottom: -6px; z-index: -1; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .85) 20%, rgba(0, 0, 0, .85) 80%, transparent); }
.toast.show { opacity: 1; transform: none; }
.toast-ic svg { width: 16px; height: 16px; }

.screen.grabbing { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Ccircle cx='18' cy='18' r='11' fill='rgba(255,255,255,.32)' stroke='rgba(255,255,255,.7)' stroke-width='1.5'/%3E%3C/svg%3E") 18 18, grabbing; }
html.bare .screen.grabbing { cursor: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
