/* BGM MODE（音楽プレーヤー）：タイトルの世界観（夜の青緑・ミント・珊瑚・Jost の英字）。CSS の filter・ぼかしは使わない（軽く） */
@font-face { font-family: "Jost"; src: url(fonts/Jost-latin.woff2) format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Montserrat Black"; src: url(fonts/Montserrat-Black.woff2) format("woff2"); font-display: swap; }
:root {
  --ui: "Jost", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --mint: #7fe3c4; --coral: #ff7a6b; --deep: #06141f; --ice: #e6f6ff; --sky: #7cc8ff;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
  --line: rgba(230,246,255,.16);
  /* v0.57.0：下メニュー（56px＋画面下の余白）と、そのすぐ上の下のプレーヤー。中身の下の余白はこの 2 つの分 */
  --tabs: 56px; --mini-h: 92px;
  --bottom: calc(var(--sb) + var(--tabs) + var(--mini-h) + 16px);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--deep); color: var(--ice); overscroll-behavior: none; overflow-x: hidden; }
/* v0.58.0（11/11 塾長「再生画面を左右になぞると移動して余白が出る」）：縦に動く枠は、iPhone では横にも動ける（回る輪の .wave の外枠が回転で横にはみ出す分も数える）。
   縦に動く枠はすべて横には動かさない（overflow-x: hidden・横の引っぱりも止める）。シークの棒・歌詞枠の縦の動きはそのまま */
.lib, .c-body, .sheet-in, .f-body, .lb-view, .lyr-view, .st-talk { overflow-x: hidden; overscroll-behavior-x: none; }
.stage { overflow: clip; }
body { font-family: var(--ui); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
/* アイコンの線：太さ 2（24×24 の中で）・端と角は丸く・色は文字の色。16px より小さい印だけ 3 */
svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* v0.55.21：最初の描画（曲の一覧・件数・前回の曲のミニプレーヤー）が終わるまで、一覧とミニプレーヤーは隠す（js が .boot を外す）。
   js が動かない時のために 5 秒で必ず見せる。見出し（GAME・BGM MODE）は先に出す＝「曲が 0 の空の画面」を見せない */
body.boot .pane, body.boot .mini, body.boot .tabs { visibility: hidden; animation: bootShow 0s linear 5s forwards; }
@keyframes bootShow { to { visibility: visible; } }
#app { position: relative; max-width: 560px; height: 100%; margin: 0 auto; overflow: hidden; }
.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; pointer-events: none; }

.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(6,20,31,.45); font: 500 11px/1 var(--ui); letter-spacing: .2em; color: rgba(230,246,255,.9); text-decoration: none; white-space: nowrap; }
.pill svg { width: 16px; height: 16px; color: var(--mint); }
.pill:active { background: rgba(127,227,196,.18); }
.ic { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--ice); position: relative; }
.ic svg { width: 26px; height: 26px; }
.ic:active { background: rgba(127,227,196,.14); }

/* ───── 見出し ───── */
.hd { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(var(--st) + 12px) 14px 8px; }
.hd .ttl { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.hd .ttl small { font: 500 9px/1 var(--ui); letter-spacing: .4em; padding-left: .4em; white-space: nowrap; color: var(--mint); }
.hd .ttl b { font: 400 16px/1 var(--ui); letter-spacing: .24em; padding-left: .24em; color: #fff; white-space: nowrap; }
.hd .pill { padding: 0 10px; font-size: 10px; letter-spacing: .12em; gap: 5px; }
.hd .back { padding-left: 6px; }
.hd .ttl { flex: 1; min-width: 0; }
.hd .hd-sp { flex: none; width: 76px; }   /* 右は空き（GAME と同じ幅で、見出しを真ん中に） */

/* ───── ライブラリ（曲の一覧） ───── */
.lib, .pane { position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--st) + 64px); bottom: 0; }
.lib { overflow-y: auto; padding: 4px 14px var(--bottom); -webkit-overflow-scrolling: touch; }
.lib-hd { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 4px 10px; font: 500 11px/1 var(--ui); letter-spacing: .4em; color: var(--mint); }
.lib-hd .cnt { letter-spacing: .12em; color: rgba(230,246,255,.55); font-weight: 400; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tr { display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 4px 4px 4px; border-radius: 10px; text-align: left; background: rgba(6,20,31,.38); border: 1px solid transparent; cursor: pointer; }
.tr:active { background: rgba(127,227,196,.12); }
.tr img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; background: #0b2433; aspect-ratio: 1; }   /* 読み込み前も同じ大きさの色の箱（行の高さが動かない） */
.tr .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tr .en { display: flex; align-items: center; gap: 6px; min-width: 0; font: 400 14px/1.1 var(--ui); letter-spacing: .1em; color: #fff; white-space: nowrap; overflow: hidden; }
.tr .en .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr .sub { font: 400 10.5px/1.2 var(--jp); color: rgba(230,246,255,.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .sub .ar { color: var(--mint); }
.tr .r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font: 400 12px/1 var(--ui); letter-spacing: .06em; color: rgba(230,246,255,.6); font-variant-numeric: tabular-nums; }
.tr .sv { width: 14px; height: 14px; border-radius: 999px; border: 1px solid rgba(230,246,255,.25); display: inline-flex; align-items: center; justify-content: center; }
.tr .sv svg { width: 10px; height: 10px; stroke-width: 3; opacity: 0; }
.tr.saved .sv { background: var(--mint); border-color: var(--mint); color: var(--deep); }
.tr.saved .sv svg { opacity: 1; }
.tr.cur { border-color: rgba(127,227,196,.6); background: rgba(127,227,196,.1); }
.tr.cur .en { color: var(--mint); }
.eq { display: none; flex: none; gap: 2px; align-items: flex-end; height: 12px; }   /* 鳴っている印：曲名（.en）の左。右側は動かさない */
.eq i { width: 3px; height: 12px; background: var(--mint); border-radius: 1px; transform-origin: bottom; transform: scaleY(.35); }
.tr.cur .eq { display: inline-flex; }   /* 一時停止中も出す（棒は止まったまま） */
.playing .tr.cur .eq i { animation: eq .9s ease-in-out infinite; }
.playing .tr.cur .eq i:nth-child(2) { animation-delay: -.3s; } .playing .tr.cur .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* 保存：場所はそのまま（一覧の下）。小さい丸ボタン＋1 行の文字 */
.dl { position: relative; overflow: hidden; margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(127,227,196,.35); background: rgba(127,227,196,.06); }
.dl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(127,227,196,.12); }   /* 保存の進み棒：枠の下の縁に細く（枠は大きくしない） */
.dl-bar[hidden] { display: none; }
.dl-bar i { display: block; height: 100%; width: 0; background: var(--mint); transition: width .25s linear; }
.dl-btn { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--mint); color: var(--deep); box-shadow: 0 0 0 4px rgba(127,227,196,.12); }
.dl-btn svg { width: 20px; height: 20px; }
.dl-btn:active { transform: scale(.94); }
.dl-btn:disabled { opacity: .6; }
.dl-btn.done { background: rgba(127,227,196,.18); color: var(--mint); box-shadow: none; }
.dl-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dl-info { margin: 0; font: 500 12px/1.2 var(--ui); letter-spacing: .06em; color: var(--mint); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-note { margin: 0; font: 400 10px/1.3 var(--jp); color: rgba(230,246,255,.5); }

/* ───── お気に入り・プレイリスト ───── */
.card, .pl { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 8px 6px 6px; border-radius: 12px; background: rgba(6,20,31,.5); border: 1px solid rgba(230,246,255,.1); text-align: left; }
.card:active, .pl:active { background: rgba(127,227,196,.12); }
.cv { flex: none; width: 48px; height: 48px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #0b2433; overflow: hidden; }
.cv.liked { background: linear-gradient(135deg, var(--coral), #8b5cf6); color: #fff; }
.cv svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.cv.big { width: 96px; height: 96px; border-radius: 12px; } .cv.big svg { width: 44px; height: 44px; }
.card .cm { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.card .cm b { font: 500 13px/1 var(--ui); letter-spacing: .22em; color: #fff; }
.card .cm small { font: 400 11px/1 var(--jp); color: rgba(230,246,255,.6); }
.chev { flex: none; width: 18px; height: 18px; color: rgba(230,246,255,.4); }
.mo { flex: none; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; background: #0b2433; }
.cv.big .mo { width: 96px; height: 96px; }
.mo img, .mo i { display: block; width: 100% !important; height: 100% !important; min-width: 0; min-height: 0; border-radius: 0 !important; object-fit: cover; background: #0e2c3c; }
.pls { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pl .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pl .en { font: 400 14px/1.1 var(--jp); letter-spacing: .04em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl .sub { font: 400 10.5px/1.2 var(--ui); letter-spacing: .06em; color: rgba(230,246,255,.6); }
.pl-empty, .empty { font: 400 12px/1.6 var(--jp); color: rgba(230,246,255,.45); padding: 6px 4px; list-style: none; }
.mini-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(127,227,196,.6); color: var(--mint); font: 500 10px/1 var(--ui); letter-spacing: .18em; }
.mini-btn svg { width: 14px; height: 14px; stroke-width: 3; }   /* 16px より小さい印だけ線を 3（細く見えないように）。決まりは HOW-WE-BUILD「アイコンの決まり」 */
.lib-hd { padding-top: 16px; }
.lib-hd:first-child { padding-top: 6px; }
.hrt { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: rgba(230,246,255,.55); }
.hrt svg { width: 20px; height: 20px; }
.hrt.on { color: var(--coral); } .hrt.on svg { fill: var(--coral); }
.hrt.ic svg { width: 26px; height: 26px; }
.more { flex: none; width: 32px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: rgba(230,246,255,.55); }
.more svg { width: 20px; height: 20px; }
.tr .r .du { font-size: 11px; }
.rowctl { display: inline-flex; gap: 2px; }
.rc { width: 32px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--mint); }
.rc svg { width: 20px; height: 20px; } .rc:disabled { opacity: .25; } .rc.rm { color: var(--coral); }
.rc:active { background: rgba(127,227,196,.14); }

.coll { position: absolute; inset: 0; z-index: 4; background: linear-gradient(180deg, #0b2a38 0%, #071a26 46%, var(--deep) 100%); transform: translateX(100%); transition: transform .32s cubic-bezier(.16,1,.3,1); display: flex; flex-direction: column; visibility: hidden; }
.coll.on { transform: none; visibility: visible; }
.coll[hidden] { display: none; }
.c-body { flex: 1; overflow-y: auto; padding: 8px 14px var(--bottom); -webkit-overflow-scrolling: touch; }
.c-top { display: flex; align-items: center; gap: 14px; padding: 6px 4px 12px; }
.c-nm { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.c-nm b { font: 500 20px/1.2 var(--jp); letter-spacing: .04em; color: #fff; word-break: break-all; }
.c-nm small { font: 400 11px/1 var(--ui); letter-spacing: .12em; color: var(--mint); }
.c-act { display: flex; align-items: center; gap: 10px; padding: 0 4px 12px; }
.c-act .ic.big { width: 56px; height: 56px; background: var(--mint); color: var(--deep); }
.c-act .ic.big svg { width: 28px; height: 28px; }
.c-act button:disabled { opacity: .4; }
.c-edit { display: flex; gap: 8px; padding: 0 4px 12px; }
.pill.danger { border-color: rgba(255,122,107,.7); color: var(--coral); }
.pill.hi { border-color: rgba(127,227,196,.8); background: rgba(127,227,196,.16); }
.pill.hi.danger { background: rgba(255,122,107,.16); }
.sheet .btns { display: flex; gap: 10px; justify-content: center; }
.sheet .btns .pill { min-width: 110px; justify-content: center; }
.name-in { -webkit-user-select: text; user-select: text; width: 100%; height: 46px; border-radius: 12px; border: 1px solid rgba(127,227,196,.5); background: rgba(6,20,31,.7); color: #fff; padding: 0 14px; font: 400 16px/1 var(--jp); outline: none; }
.mn-hd { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; }
.mn-hd img { width: 48px; height: 48px; border-radius: 8px; }
.mn-hd span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mn-hd b { font: 400 15px/1.1 var(--ui); letter-spacing: .08em; color: #fff; }
.mn-hd small { font: 400 11px/1.1 var(--jp); color: rgba(230,246,255,.6); }
.mn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 6px; border-radius: 10px; font: 400 14px/1.2 var(--jp); color: #fff; text-align: left; }
.mn:active { background: rgba(127,227,196,.12); }
.mn > svg { width: 22px; height: 22px; color: var(--mint); flex: none; }
.mn img { width: 40px; height: 40px; border-radius: 6px; flex: none; }
.mn .mo { width: 40px; height: 40px; }
.mn .mm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mn .mm small { font: 400 10.5px/1 var(--ui); letter-spacing: .06em; color: rgba(230,246,255,.55); }
.mn .ck { opacity: 0; width: 20px; height: 20px; } .mn.in .ck { opacity: 1; }
.sheet-in { max-height: 82%; overflow-y: auto; }

/* ───── 下のプレーヤー（v0.57.0：1 つだけ。下メニューのすぐ上） ───── */
.mini { position: absolute; z-index: 5; left: 8px; right: 8px; bottom: calc(var(--sb) + var(--tabs) + 6px); height: var(--mini-h); display: flex; flex-direction: column; padding: 0 4px 6px 8px; border-radius: 16px; background: rgba(9,32,44,.97); border: 1px solid rgba(127,227,196,.35); box-shadow: 0 10px 30px rgba(0,0,0,.45); overflow: hidden; }
.mini[hidden] { display: none; }
/* 上の段：今の時刻・タイムゲージ・残り。段の高さ 32px 全部が押せる範囲（線は 3px・押している間は 6px になってつまみが出る）。色は --mint */
.mini-seek { flex: none; position: relative; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 2px; touch-action: none; cursor: pointer; }
.mini-seek .mt { flex: none; min-width: 36px; font: 400 11px/1 var(--ui); letter-spacing: .04em; color: rgba(230,246,255,.7); font-variant-numeric: tabular-nums; pointer-events: none; }
.mini-seek .mt:last-child { text-align: right; }
.ms-track { position: relative; flex: 1; height: 3px; border-radius: 2px; background: rgba(230,246,255,.18); transition: height .12s; }
.ms-track > i:first-child { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--mint); }
.ms-thumb { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 999px; background: #fff; opacity: 0; transform: scale(.4); transition: opacity .12s, transform .12s; pointer-events: none; }
.mini-seek.on .ms-track { height: 6px; }
.mini-seek.on .ms-thumb { opacity: 1; transform: none; }
.mini-seek.on .mt { color: #fff; }
.mini-row { flex: 1; min-height: 0; display: flex; align-items: center; gap: 2px; }
.mini-tip { position: absolute; z-index: 6; left: 50%; bottom: calc(var(--sb) + var(--tabs) + 6px + var(--mini-h) + 8px); transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: rgba(9,32,44,.96); border: 1px solid rgba(127,227,196,.35); font: 500 12px/1 var(--ui); letter-spacing: .08em; color: #fff; pointer-events: none; font-variant-numeric: tabular-nums; }
.mini-tip[hidden] { display: none; }
.mini-open { flex: 1; min-width: 0; height: 52px; display: flex; align-items: center; gap: 10px; text-align: left; border-radius: 10px; }
.mini-open:active { background: rgba(127,227,196,.1); }
.mini-open img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: none; background: #0b2433; }
.mini-meta { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mini-meta b { font: 400 14px/1.1 var(--ui); letter-spacing: .08em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta small { font: 400 11px/1.1 var(--jp); color: rgba(230,246,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .ic { flex: none; width: 46px; height: 46px; }
.mini .ic svg { width: 26px; height: 26px; }
.mini .mini-play { width: 50px; height: 50px; margin: 0 2px; background: var(--mint); color: var(--deep); }
.mini .mini-play:active { transform: scale(.95); background: var(--mint); }

/* ───── 下メニュー（v0.57.0）：高さ 56px＋画面下の余白。選んでいるタブは --mint、ほかは白 55%。Jost 10px ───── */
.tabs { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: calc(var(--tabs) + var(--sb)); padding-bottom: var(--sb); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(6,20,31,.97); border-top: 1px solid rgba(230,246,255,.08); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; color: rgba(255,255,255,.55); }
.tab svg { width: 24px; height: 24px; }
.tab span { font: 500 10px/1 var(--ui); letter-spacing: .1em; padding-left: .1em; white-space: nowrap; }
.tab.on { color: var(--mint); }
.tab:active { background: rgba(127,227,196,.08); }

/* ───── SETTINGS（v0.57.0）：今ある保存・ホーム画面に追加・版をまとめた画面 ───── */
.set .dl { margin-top: 0; }
.set-note { margin: 8px 6px 0; font: 400 11px/1.6 var(--jp); color: rgba(230,246,255,.55); }
.set-row .cv { background: rgba(127,227,196,.12); color: var(--mint); }
.set-row .cv svg { fill: none; stroke: currentColor; }
.set-row.done { opacity: .55; }
.set-ver { margin: 0; padding: 4px 6px; font: 400 12px/1.6 var(--ui); letter-spacing: .12em; color: rgba(230,246,255,.6); font-variant-numeric: tabular-nums; }

/* ───── 再生中の大きな画面・歌詞（下から出る） ───── */
.full, .lyr { position: absolute; inset: 0; z-index: 10; background: linear-gradient(180deg, #0b2a38 0%, #071a26 46%, var(--deep) 100%); transform: translateY(100%); transition: transform .38s cubic-bezier(.16,1,.3,1); display: flex; flex-direction: column; visibility: hidden; }
.full.on, .lyr.on { transform: none; visibility: visible; }
.lyr { z-index: 12; }
.f-hd { flex: none; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--st) + 8px) 10px 4px; }
.f-lbl { font: 500 11px/1 var(--ui); letter-spacing: .45em; padding-left: .45em; color: var(--mint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.f-body { flex: 1; overflow-y: auto; padding: 0 22px calc(var(--sb) + 24px); -webkit-overflow-scrolling: touch; }
.stage { position: relative; width: min(100%, 330px, 40vh); aspect-ratio: 1; margin: 10px auto 0; --beat: 0; display: flex; align-items: center; justify-content: center; }
.wave { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(var(--rot, 0deg)); }
.wave line { stroke: var(--mint); stroke-width: 1.6; opacity: .55; }
.wave .rg { transform: scale(calc(1 + .03 * var(--beat))); transform-origin: 0 0; }
.wave circle { stroke: rgba(127,227,196,.35); stroke-width: .8; transform: scale(calc(.97 + .05 * var(--beat))); transform-origin: 0 0; opacity: calc(.25 + .6 * var(--beat)); }
.f-jk { position: relative; width: 58%; height: 58%; border-radius: 12px; object-fit: cover; box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(230,246,255,.1); transform: scale(calc(1 + .012 * var(--beat))); background: #0b2433; }
.f-row { margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.f-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.f-meta .area { font: 500 11px/1 var(--jp); letter-spacing: .3em; color: var(--mint); }
.f-meta .en { font: 300 24px/1.1 var(--ui); letter-spacing: .08em; color: #fff; }
.f-meta .ja { font: 400 13px/1.2 var(--jp); color: rgba(230,246,255,.65); }
.seek { margin-top: 18px; }
.seek input { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; --p: 0%; }
.seek input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--mint) var(--p), rgba(230,246,255,.18) var(--p)); }
.seek input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--mint) var(--p), rgba(230,246,255,.18) var(--p)); }
.seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 999px; background: #fff; border: 0; }
.seek input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 999px; background: #fff; border: 0; }
.times { display: flex; justify-content: space-between; font: 400 11px/1 var(--ui); letter-spacing: .06em; color: rgba(230,246,255,.6); font-variant-numeric: tabular-nums; }
.ctl { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.ctl .ic { width: 52px; height: 52px; }
.ctl .ic svg { width: 32px; height: 32px; }
.ctl .ic.sm svg { width: 22px; height: 22px; }
.ctl .ic.big { width: 72px; height: 72px; background: var(--mint); color: var(--deep); box-shadow: 0 0 0 calc(6px * var(--beat, 0)) rgba(127,227,196,.18); }
.ctl .ic.big svg { width: 34px; height: 34px; }
.ctl .ic.big:active { transform: scale(.95); }
.ic.sm { color: rgba(230,246,255,.55); }
.ic.sm.on { color: var(--mint); }
.ic.sm.on::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 999px; background: var(--mint); }
.ic .one { display: none; position: absolute; top: 9px; right: 7px; font: 700 9px/1 var(--ui); font-style: normal; background: var(--mint); color: var(--deep); border-radius: 999px; width: 13px; height: 13px; align-items: center; justify-content: center; }
#btnRepeat[data-mode="one"] .one { display: inline-flex; }
/* 歌詞枠（Spotify の歌詞枠のように、再生プレーヤーの下の角丸の色つき枠） */
.lbox { --tint: #0f3a47; margin-top: 22px; border-radius: 20px; background: var(--tint, #0f3a47); overflow: hidden; position: relative; }
.lb-hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 0 18px; font: 500 11px/1 var(--ui); letter-spacing: .4em; color: rgba(255,255,255,.85); }
.lb-exp { width: 40px; height: 40px; border-radius: 999px; background: rgba(0,0,0,.28); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.lb-exp svg { width: 18px; height: 18px; }
.lb-view { position: relative; height: 230px; overflow-y: auto; padding: 0 18px; margin-top: -8px; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 84%, transparent 100%); }
.lb-in { padding: 54px 0 150px; }
.lbox .ln { padding: 6px 0; font: 700 18px/1.65 var(--jp); color: rgba(255,255,255,.4); transform: none; }
.lbox .ln.past { color: rgba(255,255,255,.4); }
.lbox .ln.on { color: #fff; transform: none; }
.lbox .ln.on .w, .lbox .ln.on .w.r, .lbox .ln.on .w.b { color: #fff; }
.lbox .ln.on .w.now { text-shadow: none; }
.lbox .ln.sec { margin-top: 10px; }
.lbox .ln rt { font-size: 8px; }
.queue { margin-top: 26px; }
.q-hd { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 8px; font: 500 11px/1 var(--ui); letter-spacing: .4em; color: var(--mint); }
.q-hd small { font: 400 10px/1 var(--ui); letter-spacing: .2em; color: rgba(230,246,255,.5); }
.queue ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.queue .tr { background: transparent; border-color: transparent; padding: 6px 4px; }
.queue .tr img { width: 42px; height: 42px; }
.queue .empty { font: 400 12px/1.6 var(--jp); color: rgba(230,246,255,.45); padding: 6px 4px; }

/* ───── 歌詞（Spotify の歌詞画面のように：今の行が大きく明るく、前後は薄く。行が変わると次の行がなめらかに真ん中へ） ───── */
.lyr-view { flex: 1; overflow-y: auto; padding: 0 26px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 80%, transparent 100%); }
.lyr-in { padding: 34vh 0 50vh; }
.ln { margin: 0; padding: 10px 0; font: 700 23px/1.75 var(--jp); color: rgba(230,246,255,.32); transition: color .35s, transform .35s; transform-origin: left center; cursor: pointer; letter-spacing: .02em; }
.ln.past { color: rgba(230,246,255,.4); }
.ln.on { color: rgba(230,246,255,.55); transform: scale(1.06); }
.ln.on .w.sung { color: #fff; }
.ln.on .w.now { color: #fff; text-shadow: 0 0 14px rgba(127,227,196,.85); }
.ln .w { transition: color .15s; }
.ln .w.r { color: rgba(255,122,107,.42); }
.ln .w.b { color: rgba(124,200,255,.42); }
.ln.on .w.r.sung, .ln.on .w.r.now { color: var(--coral); }
.ln.on .w.b.sung, .ln.on .w.b.now { color: var(--sky); }
.ln.on .w.r.now { text-shadow: 0 0 14px rgba(255,122,107,.8); }
.ln.on .w.b.now { text-shadow: 0 0 14px rgba(124,200,255,.8); }
.ln rt { font: 500 9px/1 var(--jp); letter-spacing: .05em; color: inherit; opacity: .9; }
.ln.sec { margin-top: 18px; }
.lyr-none { padding-top: 30vh; text-align: center; font: 400 14px/2 var(--ui); letter-spacing: .3em; color: rgba(230,246,255,.55); }
.lyr-none small { display: block; font: 400 12px/1.8 var(--jp); letter-spacing: .04em; }

/* ───── ホーム画面に追加の案内・トースト ───── */
.sheet { position: absolute; inset: 0; z-index: 30; background: rgba(3,10,16,.78); display: flex; align-items: flex-end; justify-content: center; padding: 14px 14px calc(var(--sb) + 14px); }
.sheet[hidden] { display: none; }
.sheet-in { width: 100%; max-width: 420px; background: #0b2433; border: 1px solid rgba(127,227,196,.4); border-radius: 20px; padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.sheet-in > b { font: 700 18px/1.3 var(--jp); color: #fff; }
.sheet .lead { margin: 0; font: 400 13px/1.7 var(--jp); color: rgba(230,246,255,.8); }
.sheet .lead b { color: var(--mint); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 12px; font: 400 13px/1.6 var(--jp); color: rgba(230,246,255,.88); }
.steps li b { color: var(--mint); }
.steps .no { flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--mint); color: var(--deep); font: 600 13px/24px var(--ui); text-align: center; }
.steps .art { flex: none; width: 74px; height: 46px; }
.steps .art svg { width: 100%; height: 100%; stroke: rgba(230,246,255,.5); stroke-width: 1.6; }
.steps .art .hi { stroke: var(--mint); stroke-width: 2.4; }
.steps .art text { fill: var(--mint); stroke: none; font: 700 12px var(--jp); }
.sheet .pill { align-self: center; min-width: 120px; justify-content: center; border-color: rgba(127,227,196,.7); font-size: 13px; }
.toast { position: absolute; z-index: 40; left: 50%; top: 40%; transform: translate(-50%, -50%); padding: 12px 20px; border-radius: 999px; background: rgba(6,20,31,.94); border: 1px solid rgba(127,227,196,.5); font: 500 13px/1.4 var(--jp); color: #fff; white-space: nowrap; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .full, .lyr { transition: none; } .lyr-view { scroll-behavior: auto; } .playing .tr.cur .eq i { animation: none; } }
@media (max-height: 700px) { .stage { width: min(100%, 36vh); margin-top: 4px; } .f-row { margin-top: 10px; } }

/* 作った人（v0.62.2）：再生画面の曲名の下に小さく。主張しすぎない色 */
.f-meta .by { margin-left: 12px; font: 500 11px/1 var(--ui); letter-spacing: .14em; color: rgba(127,227,196,.75); white-space: nowrap; }   /* v0.62.3：行を増やさず、日本語の曲名の右に（♪ なし） */

/* ───── 曲の世界を曲の詳細の後ろに流す（11/19 塾長）───── */
.full .f-bg { position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
.full > .f-hd, .full > .f-body { position:relative; z-index:1; }
#fBg #play, #fBg .bg { position:absolute; inset:0; }
#fBg #cbgl { position:absolute; inset:0; width:100%; height:100%; }
.full:not(.wv) #fBg #play { display:none; }
.f-blur { position:absolute; left:-40px; top:-40px; width:calc(100% + 80px); height:calc(100% + 80px); object-fit:cover; filter:blur(16px) brightness(.6) saturate(1.15); opacity:.5; }
.f-shade { position:absolute; inset:0; opacity:0; transition:opacity .4s;
  background:linear-gradient(180deg, rgba(4,12,20,.55) 0%, rgba(4,12,20,.08) 26%, rgba(4,12,20,.08) 52%, rgba(4,12,20,.72) 78%, rgba(4,12,20,.9) 100%); }
.full.wv .f-shade { opacity:1; }
.full.jkoff .stage > .f-jk, .full.jkoff .stage > .wave { opacity:0; }   /* ジャケット オフ：見えなくするだけ（場所は残す・タップでまた出せる） */
.stage > .f-jk, .stage > .wave { transition:opacity .3s; }   /* ジャケット オフ：ジャケットと円のマークを消す（場所は残す＝並びが動かない） */
.f-lock { width:max-content; max-width:92%; margin:10px auto 0; padding:7px 13px; border-radius:999px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  font:600 clamp(10px, 3vw, 12px)/1.2 var(--jp, sans-serif); letter-spacing:.02em; color:rgba(255,255,255,.88); background:rgba(0,0,0,.38); box-shadow:inset 0 0 0 1px rgba(255,255,255,.16); }
.f-lock { display:flex; align-items:center; gap:6px; }
.f-lock::before { content:""; flex:none; width:12px; height:12px; background:currentColor;   /* 鍵のアイコン（絵文字は使わない） */
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1.5A1.5 1.5 0 0 1 20 11.5v9A1.5 1.5 0 0 1 18.5 22h-13A1.5 1.5 0 0 1 4 20.5v-9A1.5 1.5 0 0 1 5.5 10H7Zm2.5 0h5V7a2.5 2.5 0 0 0-5 0v3Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1.5A1.5 1.5 0 0 1 20 11.5v9A1.5 1.5 0 0 1 18.5 22h-13A1.5 1.5 0 0 1 4 20.5v-9A1.5 1.5 0 0 1 5.5 10H7Zm2.5 0h5V7a2.5 2.5 0 0 0-5 0v3Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.f-new { position:absolute; left:50%; bottom:-4px; transform:translateX(-50%); z-index:2; display:flex; align-items:center; gap:8px; padding:6px 12px; border-radius:4px; white-space:nowrap;
  font:500 12px/1.3 var(--jp, sans-serif); color:#fff; background:rgba(6,26,34,.82); box-shadow:inset 0 0 0 1px rgba(127,227,196,.6), 0 6px 18px rgba(0,0,0,.4); }
.f-new b { font:500 10px/1 var(--ui, sans-serif); letter-spacing:.32em; color:var(--mint); }
/* 並び：上＝ジャケット、下＝1 行の歌詞・曲名・シーク・再生ボタン（最初の画面の一番下にそろえる。UP NEXT はその下） */
.f-main { display:flex; flex-direction:column; min-height:100%; }
.f-main > .stage { margin-top:auto; margin-bottom:auto; cursor:pointer; }
.f-main > .stage:has(+ .f-lock:not([hidden])) { margin-bottom:0; }   /* 鍵の表示があればジャケットのすぐ下に付け、2 つまとめて上下のまん中へ */
.f-main > .f-lock { margin-top:4px; margin-bottom:auto; }
.f-main > .lbox { margin-top:12px; }
.f-main > .lbox[hidden] + .f-row { margin-top:12px; }
.full .lbox { border-radius:14px; background:rgba(4,14,22,.42); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }
.full .lb-hd { position:absolute; right:4px; top:50%; transform:translateY(-50%); padding:0; z-index:1; }
.full .lb-hd > span { display:none; }
.full .lb-exp { width:34px; height:34px; background:rgba(0,0,0,.25); }
.full .lb-view { height:40px; margin-top:0; padding:0 42px 0 14px; overflow:hidden; display:flex; align-items:center; -webkit-mask-image:none; mask-image:none; }
.full .lb-in { padding:0; width:100%; }
.full .lbox .ln { display:none; }
.full .lbox .ln.on { display:block; white-space:nowrap; text-align:center; padding:0; font-size:17px; line-height:1.15; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.6); }
.full .lbox .ln rt { font-size:7px; }
/* ふりがなと字を 1 つの箱に（Safari と Chrome で、ふりがなの置き方がちがって上下がずれるため）。高さを決めて、枠の上下のまん中へ */
.full .lbox .ln.on { display:flex; justify-content:center; align-items:flex-end; margin:0; height:29px; line-height:20px; }
.full .lbox .ln.on.nr { align-items:center; }   /* ふりがなの無い行は、字だけをまん中に */
.full .lbox .ln.on .w { line-height:20px; }
.full .lbox .ln.on ruby { display:inline-flex; flex-direction:column-reverse; align-items:center; line-height:20px; }
.full .lbox .ln.on rt { display:block; font-size:7px; line-height:8px; height:8px; margin-bottom:1px; text-align:center; }

/* 全画面の歌詞 → この曲の STUDY へ（11/19 塾長） */
.lyr-study { flex:none; align-self:center; margin:6px auto calc(var(--sb, 0px) + 16px); min-height:40px; padding:0 18px; gap:8px; white-space:nowrap; border-color:rgba(127,227,196,.7); color:#fff; font:600 13px/1 var(--jp, sans-serif); letter-spacing:.04em; background:rgba(6,20,31,.6); }
.lyr-study svg { width:18px; height:18px; color:var(--mint); }
.lyr-study[hidden] { display:none; }

/* 歌詞の言葉のすき間（11/19 塾長：英字の区切りが分かるように・続く言葉を見やすく） */
.ln .w.g2 { margin-left:.32em; }
.ln .w.g1 { margin-left:.14em; }
