/* よるのラジオ — 深夜のラジオブース
   トークン：夜紺 × 琥珀 × ON AIR の朱。UI は丸ゴシック、語りは手書きの温度、数字は等幅 */
:root {
  --night: #0b1530;
  --night-2: #121e3f;
  --night-3: #1a2850;
  --night-4: #23335f;
  --ink: #f3ead8;
  --mute: #c2baa8;
  --dim: #a59f92;
  --amber: #ffb547;
  --amber-2: #e8912a;
  --amber-ink: #ffc970;
  --ember: #ff7a3d;
  --line: rgba(255, 181, 71, .22);
  --hair: rgba(243, 234, 216, .1);

  --ff: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ff-say: "Klee One", "Zen Maru Gothic", serif;
  --ff-num: "DM Mono", ui-monospace, monospace;

  --r: 18px;
  --r-lg: 26px;
  --glow: 0 0 0 1px rgba(255, 181, 71, .25), 0 0 26px rgba(255, 181, 71, .25);
  --slow: cubic-bezier(.25, .8, .25, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --dock-h: 64px;
  --mini-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; background: #070e22; }
body {
  background: #070e22;
  color: var(--ink);
  font-family: var(--ff);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.75;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
svg { display: block; }
[hidden] { display: none !important; }
.num { font-family: var(--ff-num); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.nw { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.radio {
  position: relative;
  height: 100vh; height: 100dvh;
  max-width: 430px; margin: 0 auto;
  overflow: hidden;
  background: var(--night);
  isolation: isolate;
}
@media (min-width: 600px) {
  html, body { background: radial-gradient(900px 500px at 50% 0, #14244a, #050a19); }
  .radio { box-shadow: 0 0 0 1px rgba(255, 181, 71, .15), 0 40px 90px rgba(0, 0, 0, .55); }
}
.views { position: absolute; inset: 0; }
.fallback { padding: 50% 28px 0; text-align: center; }
.fallback__t { font-size: 24px; font-weight: 900; color: var(--amber-ink); }

.v { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--night); overflow: hidden; }
.v::before { content: ""; position: absolute; left: -30%; right: -30%; top: -160px; height: 360px; background: radial-gradient(closest-side, rgba(255, 181, 71, .12), transparent); pointer-events: none; }
.v__body { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-bottom: 32px; }
.v--tab .v__body { padding-bottom: calc(var(--dock-h) + var(--safe-b) + 28px); }
.has-mini .v--tab .v__body { padding-bottom: calc(var(--dock-h) + var(--mini-h) + var(--safe-b) + 36px); }

/* 遷移：ゆっくり。再生画面は下からせり上がる */
.in-fade { animation: fIn .38s var(--slow) both; z-index: 2; }
.out-fade { animation: fOut .3s ease both; }
.in-push { animation: rIn .42s var(--slow) both; z-index: 2; }
.out-push { animation: lOut .42s var(--slow) both; }
.in-pop { animation: lIn .42s var(--slow) both; }
.out-pop { animation: rOut .42s var(--slow) both; z-index: 2; }
.in-up { animation: uIn .46s var(--slow) both; z-index: 4; }
.out-up { animation: fOut .46s ease both; }
.in-down { animation: fIn .3s ease both; }
.out-down { animation: dOut .42s var(--slow) both; z-index: 4; }
@keyframes fIn { from { opacity: 0; } }
@keyframes fOut { to { opacity: 0; } }
@keyframes rIn { from { transform: translateX(100%); } }
@keyframes lOut { to { transform: translateX(-24%); opacity: .4; } }
@keyframes lIn { from { transform: translateX(-24%); opacity: .4; } }
@keyframes rOut { to { transform: translateX(100%); } }
@keyframes uIn { from { transform: translateY(100%); } }
@keyframes dOut { to { transform: translateY(100%); } }

/* ---------- 見出し ---------- */
.mast { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(16px + var(--safe-t)) 20px 12px; background: var(--night); }
.mast__brand { display: flex; align-items: center; gap: 10px; }
.mast__n { font-weight: 900; font-size: 24px; letter-spacing: .08em; color: var(--ink); word-break: keep-all; }
.mast--plain .mast__n { font-size: 26px; letter-spacing: .04em; }
.mast__clock { font-size: 15px; color: var(--amber-ink); padding: 3px 10px; border-radius: 8px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); }
.lamp { width: 12px; height: 12px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 3px rgba(255, 122, 61, .2), 0 0 16px rgba(255, 122, 61, .8); animation: lamp 2.4s ease-in-out infinite; }
.lamp--sm { width: 8px; height: 8px; }
@keyframes lamp { 50% { opacity: .55; box-shadow: 0 0 0 3px rgba(255, 122, 61, .1), 0 0 6px rgba(255, 122, 61, .4); } }

.bar { position: relative; z-index: 3; flex: none; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; min-height: calc(56px + var(--safe-t)); padding: var(--safe-t) 6px 0; background: var(--night); }
.bar__t { text-align: center; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--amber-ink); transition: transform .15s, background-color .15s; }
.ibtn:active { transform: scale(.88); background: var(--night-3); }
.ibtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ibtn.is-on svg { fill: var(--ember); stroke: var(--ember); }
.ibtn--sp { pointer-events: none; }

.h { padding: 26px 20px 8px; font-size: 19px; font-weight: 900; letter-spacing: .04em; word-break: keep-all; }
.sub { padding: 0 20px 10px; margin-top: -4px; font-size: 13px; color: var(--mute); }
.sect { position: relative; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; word-break: keep-all; text-align: center; transition: transform .15s, box-shadow .2s; }
.btn:active { transform: scale(.96); }
.btn--amber { background: var(--amber); color: #1b1203; box-shadow: 0 8px 24px rgba(255, 181, 71, .28); }
.btn--line { background: var(--night-2); color: var(--amber-ink); box-shadow: inset 0 0 0 1.5px rgba(255, 181, 71, .5); }
.btn--ember { background: #c4471b; color: #fff; }
.btn--wide { display: flex; width: calc(100% - 40px); margin: 18px 20px 0; }
.btn__ic { display: grid; place-items: center; }
.btn__ic svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- 番組：今夜の放送 ---------- */
.tonight { position: relative; margin: 6px 16px 0; border-radius: var(--r-lg); overflow: hidden; background: var(--night-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--hair); }
.tonight__ph { height: 230px; background: #1a2850 url(/app-development/apps/a098/img/booth.webp) center 38% / cover no-repeat; }
.tonight__plate { position: relative; padding: 16px 18px 18px; background: var(--night-2); }
.tonight__plate::before { content: ""; position: absolute; left: 0; right: 0; top: -60px; height: 60px; background: linear-gradient(transparent, var(--night-2)); pointer-events: none; }
.kick { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--amber-ink); }
.tonight__t { margin-top: 6px; font-family: var(--ff-say); font-weight: 600; font-size: 23px; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.tonight__m { margin-top: 4px; font-size: 13px; color: var(--mute); }
.tonight__btns { display: flex; gap: 10px; margin-top: 14px; }
.tonight__btns .btn { flex: 1; padding: 0 12px; }

/* ---------- チューナー ---------- */
.tuner { margin: 0 16px; padding: 14px 0 10px; border-radius: var(--r); background: linear-gradient(#1b2a52, #0f1a38); box-shadow: inset 0 0 0 1px var(--line), inset 0 10px 30px rgba(0, 0, 0, .35); }
.tuner__win { position: relative; margin: 0 12px; border-radius: 12px; background: #2a2414; box-shadow: inset 0 2px 10px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 181, 71, .35); overflow: hidden; }
.tuner__win::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 100%, rgba(255, 181, 71, .28), transparent); pointer-events: none; z-index: 1; }
.tuner__scroll { position: relative; height: 92px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 0 50%; cursor: grab; touch-action: pan-x; overscroll-behavior-x: contain; }
.tuner__scroll::-webkit-scrollbar { display: none; }
.tuner__scale {
  position: relative; height: 100%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 201, 112, .9) 0 2px, transparent 2px 64px) 0 100% / 100% 30px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 201, 112, .55) 0 1px, transparent 1px 32px) 0 100% / 100% 20px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 201, 112, .3) 0 1px, transparent 1px 6.4px) 0 100% / 100% 12px no-repeat;
}
.tuner__lbl { position: absolute; bottom: 32px; transform: translateX(-50%); font-size: 14px; color: #ffe2b0; }
.tuner__st { position: absolute; top: 10px; width: 14px; height: 14px; margin-left: -7px; }
.tuner__st i { position: absolute; inset: 2px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(255, 181, 71, .9); transition: transform .25s; }
.tuner__st.is-on i { transform: scale(1.5); background: #fff1d1; }
.tuner__needle { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; z-index: 2; background: var(--ember); box-shadow: 0 0 10px rgba(255, 122, 61, .9); pointer-events: none; }
.tuner__freq { margin-top: 8px; text-align: center; font-size: 16px; color: var(--amber-ink); }

.station { margin: 12px 16px 0; min-height: 168px; }
.stn { display: flex; gap: 14px; padding: 12px; border-radius: var(--r); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--hair); animation: tuneIn .45s var(--slow); transition: transform .15s; }
.stn:active { transform: scale(.98); }
@keyframes tuneIn { from { opacity: 0; filter: blur(4px); } }
.stn__art { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; flex: none; }
.stn__tx { display: flex; flex-direction: column; min-width: 0; }
.stn__f { font-size: 13px; color: var(--amber-ink); }
.stn__n { font-weight: 900; font-size: 18px; line-height: 1.4; word-break: keep-all; }
.stn__h { font-size: 13px; color: var(--mute); }
.stn__l { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.stn__btns { display: flex; gap: 10px; margin-top: 10px; }
.stn__btns .btn { flex: 1; padding: 0 10px; }
.static { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 168px; padding: 16px; border-radius: var(--r); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--hair); text-align: center; }
.static__bars { display: flex; gap: 4px; height: 26px; align-items: flex-end; margin-bottom: 6px; }
.static__bars i { width: 4px; height: 30%; border-radius: 2px; background: var(--dim); animation: noise .5s steps(3) infinite alternate; }
.static__bars i:nth-child(2n) { animation-delay: -.2s; }
.static__bars i:nth-child(3n) { animation-delay: -.35s; }
@keyframes noise { 0% { height: 20%; } 50% { height: 90%; } 100% { height: 45%; } }
.static__t { font-weight: 700; }
.static__d { font-size: 13px; color: var(--mute); }

/* ---------- 一覧の行 ---------- */
.rows { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.row { display: flex; align-items: center; gap: 6px; padding: 10px 8px 10px 10px; border-radius: var(--r); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--hair); }
.row__main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; }
.row__art { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; flex: none; }
.row__tx { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.5; }
.row__p { font-size: 12px; color: var(--amber-ink); font-weight: 700; }
.row__t { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__m { font-size: 13px; color: var(--mute); }
.row__bar { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: var(--night-4); overflow: hidden; }
.row__bar i { display: block; height: 100%; background: var(--amber); }
.row__play { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--night-3); color: var(--amber); transition: transform .15s; }
.row__play:active { transform: scale(.88); }
.row__play svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- 番組のエピソード ---------- */
.pg { position: relative; margin: 4px 16px 0; }
.pg__art { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
.pg__plate { position: relative; margin: -40px 14px 0; padding: 14px 16px; border-radius: var(--r); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .4); }
.pg__freq { font-size: 13px; color: var(--amber-ink); }
.pg__n { font-weight: 900; font-size: 24px; line-height: 1.35; word-break: keep-all; }
.pg__host { font-size: 14px; color: var(--mute); }
.pg__about { text-wrap: pretty; margin: 16px 20px 0; font-size: 15px; line-height: 1.9; }
.pg__tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 16px 10px; }
.pg__count { font-weight: 900; font-size: 17px; padding-left: 4px; }
.toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--hair); }
.toggle__b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--mute); white-space: nowrap; transition: background-color .2s, color .2s; }
.toggle__b[aria-checked="true"] { background: var(--amber); color: #1b1203; }
.toggle__b b { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--night-4); color: var(--ink); font-size: 12px; font-weight: 500; text-align: center; }
.toggle__b[aria-checked="true"] b { background: #1b1203; color: var(--amber-ink); }
.toggle--wide { display: flex; margin: 4px 16px 14px; }
.toggle--wide .toggle__b { flex: 1; padding: 0 6px; }
.eps { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.ep { display: flex; align-items: stretch; gap: 4px; padding: 12px 8px 12px 12px; border-radius: var(--r); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--hair); }
.ep.is-now { box-shadow: inset 0 0 0 1.5px var(--amber), 0 0 24px rgba(255, 181, 71, .15); }
.ep__main { flex: 1; min-width: 0; display: flex; gap: 12px; }
.ep__no { flex: none; width: 40px; padding-top: 2px; font-size: 15px; color: var(--amber-ink); }
.ep__tx { display: flex; flex-direction: column; min-width: 0; }
.ep__t { font-family: var(--ff-say); font-weight: 600; font-size: 17px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.ep__m { font-size: 13px; color: var(--mute); }
.ep__done { color: var(--amber-ink); }
.ep__line { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep.is-done .ep__t { color: var(--mute); }
.ep__acts { display: flex; flex-direction: column; gap: 6px; }
.ep__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--night-3); color: var(--amber); transition: transform .15s; }
.ep__btn:active { transform: scale(.88); }
.ep__btn svg { width: 18px; height: 18px; fill: currentColor; }
.ep__later { background: transparent; color: var(--mute); }
.ep__later svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.ep__later.is-on { color: var(--amber); }
.ep__later.is-on svg { fill: currentColor; }

/* ---------- 再生画面 ---------- */
.v-player { background: linear-gradient(#0e1a3a, var(--night) 40%); }
.pbar { position: relative; z-index: 3; flex: none; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; min-height: calc(56px + var(--safe-t)); padding: var(--safe-t) 6px 0; }
.pbar__prog { justify-self: center; max-width: 100%; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--amber-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck { position: relative; margin: 2px 20px 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--hair); }
.deck__ph { height: 176px; background-color: var(--night-3); background-size: cover; background-position: center; }
.deck__panel { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 12px; padding: 12px 16px 14px; background: #171206; box-shadow: inset 0 1px 0 rgba(255, 181, 71, .3); }
.onair { grid-row: 1; display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 5px 12px; border-radius: 8px; background: #2b1a12; color: #d8b5a4; font-family: var(--ff-num); font-weight: 500; font-size: 13px; letter-spacing: .14em; box-shadow: inset 0 0 0 1px rgba(255, 122, 61, .3); transition: background-color .4s, color .4s, box-shadow .4s; }
.onair i { width: 8px; height: 8px; border-radius: 50%; background: #6b3a26; }
.onair.is-on { background: #c4471b; color: #fff; box-shadow: 0 0 20px rgba(255, 122, 61, .55); }
.onair.is-on i { background: #fff; animation: lamp 1.6s ease-in-out infinite; }
.vu { grid-row: 1 / span 2; grid-column: 2; width: 132px; height: auto; border-radius: 10px; background: radial-gradient(circle at 50% 110%, #fff1d1, #f2d49b 70%); box-shadow: inset 0 0 0 2px #6b4b18, inset 0 6px 16px rgba(107, 75, 24, .35); }
.vu__arc { fill: none; stroke: #3a2a0c; stroke-width: 2; }
.vu__red { fill: none; stroke: #c4471b; stroke-width: 5; }
.vu__ticks line { stroke: #3a2a0c; stroke-width: 2; }
.vu__needle { stroke: #1b1203; stroke-width: 2.2; stroke-linecap: round; }
.vu__hub { fill: #3a2a0c; }
.deck__freq { grid-row: 2; font-size: 14px; color: var(--amber-ink); }
.np { padding: 16px 24px 0; }
.np__p { font-size: 13px; font-weight: 700; color: var(--amber-ink); }
.np__t { margin-top: 2px; font-family: var(--ff-say); font-weight: 600; font-size: 24px; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.cap { margin: 12px 20px 0; min-height: 152px; padding: 14px 16px; border-radius: var(--r); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--hair); }
.cap__prev { font-family: var(--ff-say); font-weight: 600; font-size: 14px; line-height: 1.7; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cap__now { text-wrap: pretty; margin-top: 8px; font-family: var(--ff-say); font-weight: 600; font-size: 20px; line-height: 1.75; }
.cap__now.is-in { animation: capIn .5s var(--slow); }
@keyframes capIn { from { opacity: 0; transform: translateY(8px); } }
.cap__said { color: var(--amber-ink); }
.cap__rest { color: var(--mute); }
.seek { position: relative; margin: 18px 24px 0; }
.seek__track { position: relative; height: 6px; border-radius: 3px; background: var(--night-4); }
.seek__ticks i { position: absolute; top: -3px; width: 1px; height: 12px; background: rgba(243, 234, 216, .28); }
.seek__fill { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, var(--amber-2), var(--amber)); transform-origin: left; transform: scaleX(0); }
.seek__knob { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff1d1; box-shadow: 0 0 0 4px rgba(255, 181, 71, .25), 0 2px 8px rgba(0, 0, 0, .5); }
.seek__in { position: absolute; left: -10px; right: -10px; top: -19px; width: calc(100% + 20px); height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.seek__t { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--mute); }
.transport { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 8px; }
.tbtn { position: relative; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--night); transition: transform .15s; }
.tbtn:active { transform: scale(.88) rotate(-8deg); }
.tbtn svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tbtn span { position: absolute; font-size: 11px; top: 21px; }
.pbtn { width: 80px; height: 80px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: #1b1203; box-shadow: 0 10px 30px rgba(255, 181, 71, .35), inset 0 -4px 0 rgba(0, 0, 0, .12); transition: transform .18s, box-shadow .3s; }
.pbtn:active { transform: scale(.92); }
.pbtn svg { width: 32px; height: 32px; fill: currentColor; }
.pbtn.is-on { box-shadow: 0 0 0 8px rgba(255, 181, 71, .14), 0 10px 40px rgba(255, 181, 71, .45); }
.knobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 20px 0; }
.knob { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 60px; padding: 8px 4px; border-radius: 16px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--hair); transition: transform .15s, background-color .2s; }
.knob:active { transform: scale(.95); background: var(--night-3); }
.knob__k { font-size: 12px; color: var(--mute); font-weight: 700; }
.knob__v { font-size: 15px; color: var(--amber-ink); font-weight: 700; white-space: nowrap; }
.mode { display: flex; align-items: flex-start; gap: 8px; margin: 16px 24px 0; font-size: 13px; color: var(--mute); line-height: 1.6; }
.mode__dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: #5fd38a; }
.mode__dot.is-cap { background: var(--amber); }

/* ---------- ミニプレイヤー ---------- */
.mini { position: absolute; left: 10px; right: 10px; bottom: calc(var(--dock-h) + var(--safe-b) + 8px); z-index: 20; display: flex; align-items: center; gap: 6px; height: var(--mini-h); padding: 0 8px 0 8px; border-radius: 18px; background: #1d2b55; box-shadow: 0 14px 34px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line); overflow: hidden; animation: fIn .3s ease; }
.mini__open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; }
.mini__art { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.mini__tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.mini__t { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__c { font-family: var(--ff-say); font-weight: 600; font-size: 13px; color: var(--amber-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: #1b1203; transition: transform .15s; }
.mini__btn:active { transform: scale(.88); }
.mini__btn svg { width: 18px; height: 18px; fill: currentColor; }
.mini__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.mini__bar i { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); transition: transform .1s linear; }
.on-player .mini { display: none; }
.no-dock .mini { bottom: calc(10px + var(--safe-b)); }
.has-mini .v:not(.v--tab) .v__body { padding-bottom: calc(var(--mini-h) + var(--safe-b) + 32px); }

/* ---------- 下の操作盤（タブ） ---------- */
.dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(3, 1fr); height: calc(var(--dock-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: #0a1229; box-shadow: 0 -1px 0 var(--hair); }
.dock__a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--dim); transition: color .2s; }
.dock__a svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.dock__a:active svg { transform: scale(.86); }
.dock__a.is-on { color: var(--amber-ink); }
.dock__a.is-on::after { content: ""; position: absolute; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* ---------- ライブラリ・設定 ---------- */
.empty { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.empty img { width: 100%; height: 320px; object-fit: cover; }
.empty__plate { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 16px; text-align: center; border-radius: var(--r); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); }
.empty__t { font-weight: 900; font-size: 17px; }
.empty__d { margin: 4px 0 12px; font-size: 14px; color: var(--mute); }
.group { margin: 0 16px; border-radius: var(--r); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.gi { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; padding: 10px 16px; text-align: left; }
.gi + .gi { box-shadow: 0 -1px 0 var(--hair); }
.gi--col { flex-direction: column; align-items: stretch; gap: 8px; }
.gi--btn { transition: background-color .15s; }
.gi--btn:active { background: var(--night-3); }
.gi--btn > svg { width: 20px; height: 20px; fill: none; stroke: var(--dim); stroke-width: 2; flex: none; }
.gi__tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.gi__t { font-weight: 700; }
.gi__d { font-size: 13px; color: var(--mute); }
.gi--danger .gi__t { color: #ff9f7a; }
.sel { width: 100%; height: 46px; padding: 0 36px 0 12px; border: 0; border-radius: 12px; background: var(--night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23ffc970' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 18px no-repeat; box-shadow: inset 0 0 0 1px var(--line); -webkit-appearance: none; appearance: none; color: var(--ink); font-weight: 700; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 2px; border-radius: 999px; background: var(--night); box-shadow: inset 0 0 0 1px var(--hair); }
.stepper button { width: 44px; height: 40px; border-radius: 999px; color: var(--amber-ink); font-size: 18px; font-weight: 700; }
.stepper button:active { background: var(--night-3); }
.stepper .num { min-width: 46px; text-align: center; }
.sw { position: relative; flex: none; width: 52px; height: 32px; border-radius: 999px; background: var(--night-4); transition: background-color .25s; }
.sw i { position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #e9e2d2; transition: transform .3s var(--slow); }
[aria-checked="true"] > .sw { background: var(--amber); }
[aria-checked="true"] > .sw i { transform: translateX(20px); background: #fff; }
.ver { margin-top: 24px; text-align: center; font-size: 13px; color: var(--mute); }
.about { display: flex; flex-direction: column; align-items: center; padding: 14px 20px 4px; text-align: center; }
.about__ic { width: 108px; height: 108px; border-radius: 26px; box-shadow: var(--glow); }
.about__n { margin-top: 14px; font-weight: 900; font-size: 24px; letter-spacing: .06em; }
.about__d { font-size: 14px; color: var(--mute); }
.paper { margin: 16px 20px 0; padding: 14px 16px; border-radius: var(--r); background: var(--night-2); font-size: 14px; line-height: 1.85; box-shadow: inset 0 0 0 1px var(--line); }
.paper--sub { margin-top: 10px; color: var(--mute); box-shadow: inset 0 0 0 1px var(--hair); }
.tech { margin: 0 20px; }
.tech li { display: flex; flex-direction: column; padding: 10px 0; box-shadow: 0 -1px 0 var(--hair); }
.tech b { color: var(--amber-ink); font-family: var(--ff-num); font-weight: 500; }
.tech span { font-size: 14px; color: var(--mute); }

/* ---------- シート・お知らせ ---------- */
.sheet { position: absolute; inset: 0; z-index: 60; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(3, 7, 18, .6); opacity: 0; transition: opacity .3s; }
.sheet__p { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82%; overflow-y: auto; padding: 10px 0 calc(20px + var(--safe-b)); border-radius: 26px 26px 0 0; background: var(--night-2); box-shadow: 0 -1px 0 var(--line), 0 -20px 50px rgba(0, 0, 0, .5); transform: translateY(105%); transition: transform .4s var(--slow); }
.sheet.is-on .sheet__scrim { opacity: 1; }
.sheet.is-on .sheet__p { transform: none; }
.sheet__grip { display: block; width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: var(--night-4); }
.sheet__t { padding: 0 20px; font-weight: 900; font-size: 19px; }
.sheet__b { padding: 0 20px; }
.sheet__d { margin-top: 6px; font-size: 14px; color: var(--mute); }
.sheet__p > .btn--wide { margin-top: 16px; }
.opts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.opts--grid { display: grid; grid-template-columns: 1fr 1fr; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 50px; padding: 0 16px; border-radius: 14px; background: var(--night); box-shadow: inset 0 0 0 1px var(--hair); font-weight: 700; text-align: left; transition: transform .12s, box-shadow .2s; }
.opt:active { transform: scale(.97); }
.opt small { font-size: 12px; color: var(--mute); font-weight: 500; }
.opt.is-on { box-shadow: inset 0 0 0 2px var(--amber); color: var(--amber-ink); }
.opt svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.vol { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.vol__k { font-weight: 700; font-size: 14px; white-space: nowrap; }
.vol input { flex: 1; height: 44px; accent-color: var(--amber); }
.vol__v { min-width: 32px; text-align: right; color: var(--amber-ink); }
.script { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.script__l { display: block; width: 100%; padding: 10px 12px; border-radius: 12px; text-align: left; font-family: var(--ff-say); font-weight: 600; font-size: 15px; line-height: 1.75; color: var(--ink); transition: background-color .15s; }
.script__l:active { background: var(--night-3); }
.script__l.is-now { background: var(--night); color: var(--amber-ink); box-shadow: inset 3px 0 0 var(--amber); }
.note { position: absolute; left: 16px; right: 16px; top: calc(12px + var(--safe-t)); z-index: 70; display: flex; justify-content: center; pointer-events: none; opacity: 0; transform: translateY(-10px); transition: opacity .3s, transform .35s var(--slow); }
.note span { padding: 10px 16px; border-radius: 14px; background: #24345f; color: var(--ink); font-size: 14px; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--line); text-align: center; }
.note.is-on { opacity: 1; transform: none; }
.goodnight { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(4, 8, 20, .94); animation: fIn 1s ease; transition: opacity .8s; }
.goodnight svg { width: 56px; height: 56px; fill: var(--amber); stroke: none; filter: drop-shadow(0 0 18px rgba(255, 181, 71, .6)); }
.goodnight__t { font-family: var(--ff-say); font-weight: 600; font-size: 26px; }
.goodnight__d { font-size: 14px; color: var(--mute); }
.goodnight.is-off { opacity: 0; }

.splash { position: absolute; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(70% 50% at 50% 45%, #1a2850, var(--night)); transition: opacity .3s; }
.splash img { width: 112px; height: 112px; border-radius: 26px; box-shadow: var(--glow); }
.splash__n { font-weight: 900; font-size: 24px; letter-spacing: .1em; }
.splash__air { display: flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 8px; background: #c4471b; color: #fff; font-family: var(--ff-num); font-size: 13px; letter-spacing: .16em; }
.splash__air i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: lamp 1s ease-in-out infinite; }
.splash.is-off { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.favs { display: flex; gap: 12px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.favs::-webkit-scrollbar { display: none; }
.fav { flex: none; width: 132px; display: flex; flex-direction: column; gap: 2px; transition: transform .15s; }
.fav:active { transform: scale(.96); }
.fav img { width: 132px; height: 132px; border-radius: 20px; object-fit: cover; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.fav__f { margin-top: 6px; font-size: 12px; color: var(--amber-ink); }
.fav__n { font-weight: 700; font-size: 14px; line-height: 1.45; word-break: keep-all; }
.fav__plus { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 20px; background: var(--night-2); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--amber-ink); font-size: 34px; }
.fav--add .fav__n { margin-top: 8px; color: var(--amber-ink); }
