/* ===== reset / base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #000;
  --fg: #fff;
  --dim: #9a9a9a;
  --line: rgba(255,255,255,.18);
  --gap: clamp(16px, 4vw, 36px);
  --conscious: #6baaff;
  --turnt: #ff6b4a;
}
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .02em;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ===== intro ===== */
.intro {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--bg);
  transition: opacity 1.2s ease;
}
.intro__logo {
  animation: introLogo 1.7s ease both;
}
/* ロゴ画像共通 */
.logo-img { display: block; height: auto; object-fit: contain; }
.logo-img--intro { height: clamp(40px, 12vw, 90px); }
.logo-img--brand { height: clamp(24px, 6vw, 44px); }
.logo-img--about { height: clamp(30px, 8vw, 48px); }
@keyframes introLogo { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
.intro__tag {
  font-size: clamp(11px, 3vw, 14px); letter-spacing: .34em; text-transform: uppercase;
  color: rgba(255,255,255,.6); padding-left: .34em;
  animation: introFade 1.2s ease .9s both;
}
@keyframes introFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.intro__note {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 14px; max-width: min(420px, 84vw); text-align: center;
  animation: introFade 1.4s ease 1.8s both;
}
.intro__note-label {
  font-size: 9px; letter-spacing: .3em; color: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 2px 9px;
}
.intro__sub {
  font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.55);
  margin-top: 4px; letter-spacing: .04em;
}
.intro.is-out { opacity: 0; pointer-events: none; }

/* ===== chrome（UI要素の表示制御） ===== */
.chrome { opacity: 0; transition: opacity .7s ease; pointer-events: none; }
/* START前: chrome非表示。STARTタップ後に表示 */
body.is-started .chrome { opacity: 1; pointer-events: auto; }
body.is-started.is-idle .chrome { opacity: 0; pointer-events: none; }
body.is-started.is-idle { cursor: none; }
body.is-started.is-idle .scrim { opacity: 0; transition: opacity .7s ease; }
/* パルスガイド中: ⓘのあるツールバーだけ表示維持 */
body.guide-active.is-idle .top-right { opacity: 1; pointer-events: auto; }
/* ピン留め時はアイドルでもUI維持（START後のみ） */
body.is-started.is-pinned.is-idle .chrome { opacity: 1; pointer-events: auto; }
body.is-started.is-pinned.is-idle { cursor: auto; }
body.is-started.is-pinned.is-idle .scrim { opacity: 1; }
body.is-started.is-pinned .stage__nav.is-play { display: none !important; }
body.is-started.is-pinned .player { pointer-events: auto; cursor: pointer; }

/* ===== YouTube映像（フルブリード） ===== */
.video-bg {
  position: fixed; z-index: 0; background: #000; overflow: hidden;
  /* 全方向にはみ出してどんなデバイスでも隙間を作らない */
  inset: -10px;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .35s ease;
}
.video-bg.slide-out-left  { transform: translateX(-12%); opacity: 0; }
.video-bg.slide-out-right { transform: translateX(12%); opacity: 0; }
.video-bg.slide-in-left   { transform: translateX(12%); opacity: 0; transition: none; }
.video-bg.slide-in-right  { transform: translateX(-12%); opacity: 0; transition: none; }
#yt {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  /* 親(.video-bg)基準 — vw/vhのズレを回避 */
  width: 100%; height: 56.25vw;
  min-height: 100%; min-width: 177.78vh;
  border: 0; pointer-events: none;
  transition: width .5s ease, height .5s ease, min-width .5s ease, min-height .5s ease;
}
/* Fill mode: 4:3動画でも画面を覆うように拡大 */
body.is-fill #yt {
  width: 120%; height: 67.5vw;
  min-height: 120%; min-width: 213.33vh;
}
/* ランドスケープ: さらに攻める */
@media (orientation: landscape) {
  body.is-fill #yt {
    width: 150%; height: 93.75vw;
    min-height: 150%; min-width: 266.67vh;
  }
}
.icon-btn.is-fill { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); }
.icon-btn.is-fill .fill-icon { stroke: var(--conscious); }

/* ===== UIレイヤー ===== */
.player { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.scrim { position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none; transition: opacity .7s ease; }
.scrim--top { top: 0; height: 240px; background: linear-gradient(rgba(0,0,0,.7), transparent); }
.scrim--bottom { bottom: 0; height: 340px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }

/* ===== 右上：Pin + About ===== */
.top-right {
  position: absolute; z-index: 2;
  top: calc(var(--gap) + env(safe-area-inset-top));
  right: calc(var(--gap) + env(safe-area-inset-right));
  display: flex; gap: 8px;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--fg);
  background: rgba(0,0,0,.38); backdrop-filter: blur(4px);
  border: 1px solid var(--line); transition: background .15s;
  text-decoration: none;
}
.icon-btn:hover { background: rgba(0,0,0,.7); }
.icon-btn svg { display: block; }
.lang-toggle {
  height: 40px; border-radius: 999px; padding: 0 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  background: rgba(0,0,0,.38); backdrop-filter: blur(4px);
  border: 1px solid var(--line); transition: background .15s;
  white-space: nowrap; display: flex; align-items: center; gap: 2px;
}
.lang-toggle:hover { background: rgba(0,0,0,.7); }
.lang-opt { color: rgba(255,255,255,.35); transition: color .2s; }
.lang-opt.is-active { color: #fff; }
.lang-sep { color: rgba(255,255,255,.25); font-weight: 400; margin: 0 1px; }
.icon-btn--text {
  font-size: 13px; font-weight: 700; font-family: 'Inter', -apple-system, sans-serif;
  letter-spacing: .02em; line-height: 1;
}
/* ピン留めON状態 */
.icon-btn.is-pinned { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); color: var(--turnt); text-shadow: 0 0 4px var(--turnt); }

/* ===== brand（左上） ===== */
.brand {
  position: absolute; z-index: 1;
  top: calc(var(--gap) + env(safe-area-inset-top));
  left: calc(var(--gap) + env(safe-area-inset-left));
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.brand__logo {
  line-height: 1;
}
.brand__tag {
  font-size: clamp(5px, 1.1vw, 9px); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-top: -2px;
}

/* ===== 地域フィルター ===== */
.regions {
  margin-top: 12px;
  display: flex; gap: 4px; flex-wrap: nowrap;
  max-width: calc(100vw - 220px);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-right: 12px;
}
.regions::-webkit-scrollbar { display: none; }
.regions > *:last-child { margin-right: 24px; }
.region__btn {
  font-size: 14px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0,0,0,.4);
  backdrop-filter: blur(6px); color: rgba(255,255,255,.65);
  transition: .15s; white-space: nowrap;
}
.region__btn:hover { color: var(--fg); border-color: rgba(255,255,255,.4); }
.region__btn.is-active { color: #000; background: var(--fg); border-color: var(--fg); font-weight: 600; }

/* ===== 年代フィルター ===== */
.eras {
  margin-top: 6px;
  display: flex; gap: 4px; flex-wrap: nowrap;
  max-width: calc(100vw - 220px);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.eras::-webkit-scrollbar { display: none; }
.eras > *:last-child { margin-right: 24px; }
.era__btn {
  font-size: 13px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0,0,0,.4);
  backdrop-filter: blur(6px); color: rgba(255,255,255,.65);
  transition: .15s; white-space: nowrap; letter-spacing: .06em; font-weight: 600;
}
.era__btn:hover { color: var(--fg); border-color: rgba(255,255,255,.4); }
.era__btn.is-active { color: #000; background: var(--fg); border-color: var(--fg); }

/* ===== CONSCIOUS↔TURNT バランス ===== */
.balance {
  margin-top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  width: 242px;
}
.balance__zone {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--fg); min-height: 14px;
  font-weight: 800; text-shadow: 0 0 3px #000, 0 0 5px #000, 0 1px 2px rgba(0,0,0,0.8);
  margin-left: 7px;
}
.balance__row { display: flex; align-items: center; gap: 8px; width: calc(100% - 7px); margin-left: 7px; }
.balance__end {
  font-size: 10px; letter-spacing: .08em; color: rgba(255,255,255,.85); flex-shrink: 0; text-transform: uppercase;
  font-weight: 800; text-shadow: 0 0 3px #000, 0 0 5px #000, 0 1px 2px rgba(0,0,0,0.8);
}
.balance__end--conscious { color: var(--conscious); }
.balance__end--turnt { color: var(--turnt); }
.balance__range {
  flex: 1; -webkit-appearance: none; appearance: none; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, var(--conscious), rgba(255,255,255,.55) 50%, var(--turnt)); cursor: pointer;
}
.balance__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  border: 2px solid var(--vibe-color, rgba(255,255,255,.85));
  box-shadow: 0 0 10px var(--vibe-color, rgba(255,255,255,.35)), inset 0 1px 2px rgba(255,255,255,.5);
  cursor: pointer;
  transition: transform .1s, border-color .2s, box-shadow .2s;
}
.balance__range:active::-webkit-slider-thumb {
  transform: scale(1.18);
}
.balance__range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  border: 2px solid var(--vibe-color, rgba(255,255,255,.85));
  box-shadow: 0 0 10px var(--vibe-color, rgba(255,255,255,.35)), inset 0 1px 2px rgba(255,255,255,.5);
  cursor: pointer;
  transition: transform .1s, border-color .2s, box-shadow .2s;
}
.balance__range:active::-moz-range-thumb {
  transform: scale(1.18);
}

/* 再生順トグル */
.order {
  margin-top: 8px; display: flex; width: 108%; gap: 2px; padding: 2px;
  background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(6px);
}
.order__btn {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.55); padding: 5px 12px; border-radius: 999px;
  transition: color .15s, background .15s;
  flex: 1; text-align: center;
}
.order__btn:hover { color: rgba(255,255,255,.85); }
.order__btn.is-active { color: #000; background: var(--fg); }

/* 投稿モーダル内バランス */
.balance--form { width: 100%; flex-direction: row; align-items: center; gap: 8px; margin-top: 2px; }
.balance--form .balance__formval { font-size: 12px; color: var(--dim); flex: 0 0 64px; text-align: right; font-variant-numeric: tabular-nums; }

/* 曲数 */
.track-count {
  margin-top: 6px; white-space: nowrap;
  color: rgba(255,255,255,.7);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  pointer-events: none;
  margin-left: 7px;
}
.track-count:empty { display: none; }
.track-count b { font-weight: 700; color: var(--fg); }
.track-count.is-filtered { color: var(--conscious); }
.track-count.is-filtered b { color: var(--conscious); }

/* ===== nav buttons ===== */
.stage__nav {
  position: absolute; z-index: 1; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: var(--fg);
  background: rgba(0,0,0,.38); backdrop-filter: blur(4px);
  transition: background .15s, opacity .7s;
}
.stage__nav svg { display: block; }
.stage__nav:hover { background: rgba(0,0,0,.7); }
.stage__nav.is-prev { left: clamp(8px, 2.5vw, 28px); }
.stage__nav.is-next { right: clamp(8px, 2.5vw, 28px); }
.stage__nav.is-play { left: 50%; transform: translate(-50%, -50%); }
.stage__nav.is-play .ic-play { display: none; }
.stage__nav.is-play.is-paused .ic-pause { display: none; }
.stage__nav.is-play.is-paused .ic-play { display: block; }

/* ===== ピンON時タップフィードバック ===== */
.tap-indicator {
  position: fixed; z-index: 5;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(0,0,0,.5); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0;
  animation: tapFlash .6s ease-out forwards;
  pointer-events: none;
}
.tap-indicator__play { display: none; }
.tap-indicator.is-paused .tap-indicator__pause { display: none; }
.tap-indicator.is-paused .tap-indicator__play { display: block; }
@keyframes tapFlash {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.8); }
  30% { opacity: .9; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
}

/* ===== dock（下部） ===== */
.dock {
  position: absolute; z-index: 1; left: 0; right: 0;
  bottom: calc(var(--gap) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 0 var(--gap);
}
.meta { text-align: center; min-height: 60px; opacity: 0; transform: translateY(6px); transition: .4s ease; }
.meta.is-show { opacity: 1; transform: none; }
.meta__title { font-size: clamp(16px, 4vw, 22px); font-weight: 600; }
.meta__desc {
  margin-top: 5px; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.7;
  max-width: 100%; margin-inline: auto;
}
.meta__foot { margin-top: 6px; display: flex; gap: 12px; justify-content: center; align-items: center; font-size: 13px; color: rgba(255,255,255,.5); }

/* ===== pill buttons ===== */
.pill {
  font-size: 15px; color: var(--fg);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; background: rgba(0,0,0,.4);
  backdrop-filter: blur(6px); transition: .15s;
}
.pill:hover { color: #000; background: var(--fg); border-color: var(--fg); }
.pill--primary { font-weight: 600; }
.pill.is-fav { color: #000; background: var(--fg); border-color: var(--fg); }

.actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.actions__row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.actions__links { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; }
.report-link { font-size: 12px; color: var(--dim); }
.report-link:hover { color: var(--fg); }
#favOpen.is-active { color: var(--fg); font-weight: 600; }
#favOpen.is-active::before { content: "▶ "; }

/* ===== unmute (START) ===== */
.unmute {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 35;
  display: flex; align-items: center; gap: 10px;
  background: var(--fg); color: #000; font-family: 'Bebas Neue', sans-serif; font-size: 22px;
  letter-spacing: .15em; text-transform: uppercase;
  border-radius: 999px; padding: 16px 36px;
  box-shadow: 0 6px 24px rgba(0,0,0,.5), 0 0 0 0 rgba(255,255,255,.4);
  animation: unmutePulse 2s ease-in-out infinite;
}
@keyframes unmutePulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(0,0,0,.5), 0 0 0 0 rgba(255,255,255,.4); }
  50% { box-shadow: 0 6px 24px rgba(0,0,0,.5), 0 0 0 14px rgba(255,255,255,0); }
}
.unmute__icon { font-size: 16px; }

/* ===== fav toast ===== */
.fav-toast {
  position: fixed; left: 50%; z-index: 45;
  bottom: calc(var(--gap) + 160px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  display: flex; flex-direction: column; gap: 9px; align-items: flex-start;
  max-width: min(420px, 88vw);
  background: rgba(18,18,18,.94); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 17px; box-shadow: 0 10px 34px rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease;
}
.fav-toast.is-show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.fav-toast__msg { font-size: 12.5px; line-height: 1.55; color: var(--fg); }
.fav-toast__check { font-size: 11px; color: var(--dim); display: flex; align-items: center; gap: 7px; cursor: pointer; }
.fav-toast__check input { width: 14px; height: 14px; accent-color: #fff; cursor: pointer; }

/* ===== modal ===== */
.modal {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
}
.modal__panel {
  width: 100%; max-width: 460px; max-height: 92vh; overflow: auto;
  background: #111; border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  padding: 26px var(--gap) calc(26px + env(safe-area-inset-bottom));
  position: relative;
}
.modal__close { position: absolute; top: 14px; right: 18px; font-size: 24px; color: var(--dim); }
.modal__h { font-size: 18px; font-family: 'Bebas Neue', sans-serif; letter-spacing: .04em; }
.modal__lead { margin-top: 6px; color: var(--dim); font-size: 13px; line-height: 1.6; }
.field { display: block; margin-top: 16px; }
.field > span { display: block; font-size: 12px; color: var(--dim); margin-bottom: 5px; }
.field__opt { font-size: 10px; color: rgba(255,255,255,.3); margin-left: 4px; letter-spacing: .04em; }
.field__req { font-size: 10px; color: var(--turnt); margin-left: 4px; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  width: 100%; background: #000; color: var(--fg);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.preview { margin-top: 14px; display: flex; gap: 12px; align-items: center; background: #000; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.preview img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.preview p { font-size: 13px; line-height: 1.5; }
.modal__submit { width: 100%; margin-top: 20px; background: var(--fg); color: #000; font-weight: 600; border-radius: 999px; padding: 12px; }
.modal__submit:disabled { opacity: .4; cursor: default; }
.modal__note { margin-top: 10px; color: #666; font-size: 11px; line-height: 1.6; }

/* ===== About overlay ===== */
.about-ov {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(22px) saturate(1.1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: clamp(44px, 9vw, 80px) clamp(22px, 7vw, 64px) 100px;
  animation: aboutIn .3s ease;
}
@keyframes aboutIn { from { opacity: 0; } }
.about-ov__inner { max-width: 680px; margin: 0 auto; line-height: 1.9; }
.about-icon { vertical-align: -2px; opacity: .8; display: inline; }
.about-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 9px; font-weight: 700; font-family: 'Inter', sans-serif;
  color: var(--fg); border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  line-height: 1; vertical-align: middle; margin: 0 2px;
}
.about-ov__close {
  position: sticky; top: 14px; float: right;
  z-index: 61;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; color: var(--fg);
  background: rgba(255,255,255,.08); border: 1px solid var(--line); backdrop-filter: blur(6px);
}
.about-ov__close:hover { background: rgba(255,255,255,.18); }
.about-ov__logo { line-height: 1; }
.about-ov .tag { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.about-ov h1 { font-size: clamp(22px, 6vw, 30px); font-weight: 800; margin: 36px 0 16px; letter-spacing: .01em; }
.about-ov h2 { font-size: clamp(15px, 4vw, 18px); font-weight: 700; margin: 40px 0 12px; }
.about-ov p { color: rgba(255,255,255,.82); margin-bottom: 14px; font-size: 15px; }
.about-ov .lead { font-size: clamp(16px, 4.4vw, 19px); color: var(--fg); line-height: 1.8; margin-top: 34px; }
.about-ov strong { color: #fff; font-weight: 700; }
.about-ov .conscious { color: var(--conscious); }
.about-ov .turnt { color: var(--turnt); }
.about-ov ul { margin: 0 0 14px; padding-left: 1.1em; color: rgba(255,255,255,.82); font-size: 15px; }
.about-ov li { margin-bottom: 8px; }
.about-ov hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.about-ov .en { color: var(--dim); font-size: 14px; line-height: 1.85; }
.about-ov .en h2 { color: var(--fg); }

/* ===== fav list ===== */
.fav-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.fav-item { display: flex; align-items: center; gap: 12px; background: #000; border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; transition: .12s; }
.fav-item:hover { border-color: rgba(255,255,255,.4); }
.fav-item__thumb { width: 80px; flex-shrink: 0; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.fav-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fav-item__title { font-size: 13px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fav-item__sub { font-size: 11px; color: var(--dim); }
.fav-item__btn { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--dim); border: 1px solid var(--line); transition: background-color .15s, color .15s, border-color .15s; }
.fav-item__btn:hover { color: var(--fg); border-color: rgba(255,255,255,.4); }
.fav-item__del { font-size: 20px; }

/* ===== responsive ===== */
@media (min-width: 720px) {
  .modal { align-items: center; }
  .modal__panel { border-radius: 18px; }
}

@media (max-width: 540px) {
  /* ブランド: 左上に固定、サイズを少し拡大し上マージン微調整 */
  .brand {
    top: calc(10px + env(safe-area-inset-top));
    left: calc(16px + env(safe-area-inset-left));
    right: auto; transform: none;
    align-items: flex-start; text-align: left; gap: 6px;
  }
  .brand__logo .logo-img--brand { height: 30px; }
  .brand__tag { display: none; }

  /* フィルター: 超コンパクト化（画面幅いっぱいに広げてスクロール領域を最大化） */
  .regions { margin-top: 20px; gap: 4px; max-width: none; width: calc(100vw - 32px); }
  .region__btn { font-size: 12px; padding: 6px 10px; min-height: 34px; }
  .eras { margin-top: 4px; gap: 4px; max-width: none; width: calc(100vw - 32px); }
  .era__btn { font-size: 11px; padding: 5px 9px; min-height: 34px; }

  /* バランススライダー: 横幅縮小 */
  .balance { margin-top: 6px; width: 242px; gap: 3px; align-items: flex-start; }
  .balance__zone { font-size: 11px; }
  .balance__row { width: 93%; margin-left: 7px; }
  .balance__end { font-size: 9px; }

  /* 再生順: 小さく */
  .order { margin-top: 7px; width: 96%; }
  .order__btn { font-size: 10px; padding: 4px 10px; letter-spacing: .15em; }

  /* 曲数 */
  .track-count { margin-top: 4px; font-size: 11px; }

  /* ナビボタン: 小さく */
  .stage__nav { width: 40px; height: 40px; }
  .stage__nav svg { width: 18px; height: 18px; }
  .stage__nav.is-play { transform: translate(-50%, -50%); }

  /* 右上ボタン: コンパクト化し、上マージンを微調整 */
  .top-right { gap: 4px; top: calc(11px + env(safe-area-inset-top)); right: calc(16px + env(safe-area-inset-right)); }
  .icon-btn { width: 28px; height: 28px; }
  .icon-btn--text { font-size: 11px; }
  .lang-toggle { height: 28px; padding: 0 10px; font-size: 11px; }

  /* dock: 下部をコンパクトに */
  .dock { gap: 8px; }
  .meta { gap: 2px; }
  .meta__title { font-size: 16px; }
  .meta__desc { font-size: 13px; }
  .meta__user { font-size: 11px; }
  .dock__actions { gap: 8px; }
  .pill { font-size: 13px; padding: 8px 14px; }
  .dock__sub { gap: 10px; font-size: 11px; }

  /* scrim: モバイルではグラデーション短く */
  .scrim--top { height: 160px; }
  .scrim--bottom { height: 200px; }
}

/* ===== landscape phone ===== */
@media (orientation: landscape) and (max-height: 540px) {
  :root { --gap: 10px; }
  .brand {
    top: calc(7px + env(safe-area-inset-top));
    left: calc(12px + env(safe-area-inset-left)); right: auto; transform: none;
    align-items: flex-start; text-align: left; gap: 6px;
  }
  .brand__logo .logo-img--brand { height: 28px; }
  .brand__tag { display: none; }
  .regions { margin-top: 6px; gap: 4px; max-width: calc(100vw - 32px); }
  .region__btn { font-size: 12px; padding: 6px 10px; min-height: 34px; }
  .eras { margin-top: 4px; gap: 4px; max-width: calc(100vw - 32px); }
  .era__btn { font-size: 11px; padding: 5px 8px; min-height: 34px; }
  .balance {
    position: fixed; z-index: 2;
    top: calc(10px + env(safe-area-inset-top));
    left: 50%; transform: translateX(-50%);
    margin-top: 0; width: 242px; align-items: center; gap: 3px;
  }
  .balance__zone { font-size: 11px; }
  .balance__row { width: 93%; margin-left: 7px; }
  .stage__nav { width: 38px; height: 38px; }
  .stage__nav svg { width: 20px; height: 20px; }
  .icon-btn { width: 26px; height: 26px; }
  .icon-btn--text { font-size: 11px; }
  .lang-toggle { height: 26px; padding: 0 10px; font-size: 11px; }
  .order { width: 96%; }
  .dock { bottom: calc(8px + env(safe-area-inset-bottom)); gap: 6px; }
  .meta { min-height: 0; }
  .meta__title { font-size: 15px; }
  .meta__desc { margin-top: 2px; font-size: 13px; }
  .meta__foot { margin-top: 3px; }
  .actions { gap: 6px; }
  .pill { padding: 7px 14px; font-size: 13px; }
  .unmute { top: 38%; padding: 12px 24px; font-size: 18px; }
  .intro__logo { font-size: min(48px, 12vw); }
}

/* ===== progress bar ===== */
.progress {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; height: 3px;
  background: rgba(255,255,255,.08); pointer-events: none;
}
.progress__bar {
  height: 100%; width: 0; background: rgba(255,255,255,.35);
  transition: width .4s linear;
}

/* ===== toast notification (replaces alert()) ===== */
.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 50;
  transform: translate(-50%, 12px);
  max-width: min(420px, 88vw);
  background: rgba(18,18,18,.94); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 18px; font-size: 13px; line-height: 1.5; color: var(--fg);
  box-shadow: 0 10px 34px rgba(0,0,0,.55); backdrop-filter: blur(8px);
  text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ===== ⓘ パルスガイド =====*/
.guide-pulse {
  position: relative;
  z-index: 10;
}
.guide-pulse::before,
.guide-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .6);
  animation: pulseRing 1.8s ease-out infinite;
  pointer-events: none;
}
.guide-pulse::after {
  animation-delay: .6s;
}
@keyframes pulseRing {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(3); opacity: 0; }
}

/* ===== アクセシビリティ: モーション軽減 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .modal, .about-ov, .stage__nav, .fav-toast, .toast, .regions, .eras {
    backdrop-filter: none !important;
  }
}
