/* Topic 07: the first song only; all text lives outside its complete picture. */
#stageScene.song-review-active > #chapterSet { display:none; }
#chapterShell.song-review-layout {
  position:absolute; inset:0; width:100%; height:100%; max-height:none;
  box-sizing:border-box; display:grid;
  grid-template-rows:auto minmax(0,1fr) auto auto auto;
  gap:7px; padding:10px max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  background:#140d0b; overflow:hidden; transform:none;
}
#chapterShell.song-review-layout > header {
  position:relative; inset:auto!important; grid-row:1; min-height:35px;
  display:flex; align-items:center; justify-content:center; gap:12px;
  margin:0; padding:0 100px; text-align:center; text-shadow:none;
}
#chapterShell.song-review-layout > header::after { display:none; }
#chapterShell.song-review-layout > header > * { opacity:1; transform:none; animation:none; }
#chapterShell.song-review-layout #chapterTitle { font-size:24px; line-height:1.2; margin:0; }
#chapterShell.song-review-layout #chapterKicker { font-size:11px; margin:0; color:#c5a87e; }
#chapterShell.song-review-layout #chapterSubtitle { display:none; }
#chapterShell.song-review-layout #mainSongFullscreen {
  position:absolute; right:0; top:0; min-height:34px; padding:4px 10px;
  border:1px solid #796049; background:#251911; color:#f7e5c8;
  font:inherit; font-size:13px; cursor:pointer;
}
#chapterShell.song-review-layout #mainSongFilm {
  position:relative; inset:auto; grid-row:2; width:100%; height:100%; min-height:0;
  background:#080605; opacity:1; transition:none;
}
#chapterShell.song-review-layout #mainSongVideo {
  position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto;
  object-fit:contain; transform:none; transition:none;
}
#chapterShell.song-review-layout .main-song-film-grade {
  width:var(--song-picture-width); height:var(--song-picture-height);
  left:50%; top:50%; right:auto; bottom:auto; transform:translate(-50%,-50%);
}
#chapterShell.song-review-layout #mainSongExperience { display:contents; }
#chapterShell.song-review-layout .main-song-lyrics {
  position:relative; inset:auto; grid-row:3; width:100%; min-height:0;
  transform:none; text-shadow:none; padding:0; box-sizing:border-box; height:90px;
  display:flex; flex-direction:column; justify-content:center;
}
#chapterShell.song-review-layout .main-song-section { min-height:0; font-size:10px; line-height:1.2; }
#chapterShell.song-review-layout .main-song-lyric-previous,
#chapterShell.song-review-layout .main-song-lyric-next { min-height:0; line-height:1.3; font-size:12px; }
#chapterShell.song-review-layout .main-song-lyric-current {
  min-height:32px; padding:3px 0; font-size:24px; line-height:1.35;
  animation:none; transform:none; opacity:1; text-wrap:balance;
}
#chapterShell.song-review-layout .main-song-player {
  position:relative; inset:auto; grid-row:4; min-height:44px; padding:3px 8px;
  grid-template-columns:38px 40px minmax(40px,1fr) 40px 38px 85px minmax(90px,auto);
  gap:8px; background:#21160f; box-sizing:border-box;
}
#chapterShell.song-review-layout .main-song-volume-wrap,
#chapterShell.song-review-layout .main-song-status { display:flex; }
#chapterShell.song-review-layout .main-song-icon-button { min-width:0; min-height:34px; width:34px; height:34px; }
#chapterShell.song-review-layout .song-bottom-navigation {
  grid-row:5; display:flex; align-items:center; justify-content:space-between; gap:8px;
  min-height:40px; pointer-events:auto;
}
#chapterShell.song-review-layout #trilogyNavigation { display:contents; }
#chapterShell.song-review-layout #trilogyNavigation[hidden],
#chapterShell.song-review-layout #trilogyNavigation button[hidden],
#chapterShell.song-review-layout #trilogyNextButton { display:none!important; }
#chapterShell.song-review-layout .song-bottom-navigation button {
  position:static; transform:none; opacity:1; animation:none; transition:none;
  min-height:40px; min-width:100px; margin:0; padding:6px 14px;
  font:inherit; font-size:14px; color:#f7e5c8; border:1px solid #796049;
  background:#251911; cursor:pointer;
}
#chapterShell.song-review-layout #backToMenuButton { margin-left:auto; }
#chapterShell.song-review-layout button:focus-visible,
#chapterShell.song-review-layout input:focus-visible { outline:2px solid #ffdf9a; outline-offset:2px; }
#chapterShell.song-review-layout:fullscreen { height:100dvh; width:100vw; opacity:1; }
/* Preserve the accepted reveal and its timing, fitting it to the same picture
   rectangle as the upcoming player while the curtain is fully closed. */
#memoryEntry.song-layout-prepared { background:#140d0b; }
#memoryEntry.song-layout-prepared .memory-entry-film,
#memoryEntry.song-layout-prepared .memory-entry-grade {
  left:var(--song-entry-left); top:var(--song-entry-top);
  width:var(--song-entry-width); height:var(--song-entry-height);
  right:auto; bottom:auto; transform:none;
}
@media (max-width:760px), (max-height:520px) {
  #chapterShell.song-review-layout { gap:5px; padding-top:6px; }
  #chapterShell.song-review-layout > header { min-height:32px; padding:0 72px 0 0; }
  #chapterShell.song-review-layout #chapterKicker,
  #chapterShell.song-review-layout .main-song-section,
  #chapterShell.song-review-layout .main-song-lyric-previous,
  #chapterShell.song-review-layout .main-song-lyric-next { display:none; }
  #chapterShell.song-review-layout #chapterTitle { font-size:20px; }
  #chapterShell.song-review-layout .main-song-lyric-current { font-size:22px; }
  #chapterShell.song-review-layout .main-song-lyrics { height:60px; }
  #chapterShell.song-review-layout .main-song-player { grid-template-columns:34px 34px minmax(30px,1fr) 34px 34px; gap:5px; padding:3px; }
  #chapterShell.song-review-layout .main-song-status { display:none; }
  #chapterShell.song-review-layout .main-song-volume-wrap { grid-column:1/-1; width:100%; height:16px; }
  #chapterShell.song-review-layout .song-bottom-navigation button { font-size:13px; padding:5px 12px; }
}
@media (max-height:450px) and (min-width:600px) {
  #chapterShell.song-review-layout .main-song-player { grid-template-columns:34px 34px minmax(30px,1fr) 34px 34px 90px; }
  #chapterShell.song-review-layout .main-song-volume-wrap { grid-column:auto; }
  #chapterShell.song-review-layout .main-song-lyric-current { min-height:28px; font-size:21px; padding:0; }
  #chapterShell.song-review-layout .main-song-lyrics { height:32px; }
}
