.reader-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.reader-mode-control { white-space: nowrap; cursor: pointer; }

html[data-reader-mode="mobile"] .hero,
html[data-reader-mode="mobile"] .episodes,
html[data-reader-mode="mobile"] .reader { width: min(100%, 480px) !important; }

html[data-reader-mode="mobile"] .hero { padding-inline: 14px; }
html[data-reader-mode="mobile"] .cover { width: min(86vw, 390px); }

html[data-reader-mode="pc"] .hero,
html[data-reader-mode="pc"] .episodes { width: min(100% - 28px, 980px) !important; }

html[data-reader-mode="pc"] .reader { width: min(100%, 980px) !important; }

.reader-mode-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 5, 8, .84);
  backdrop-filter: blur(18px);
}

.reader-mode-backdrop[hidden] { display: none; }

.reader-mode-dialog {
  width: min(100%, 500px);
  padding: 28px;
  border: 1px solid rgba(241, 238, 231, .18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(26, 20, 21, .98), rgba(8, 11, 16, .98));
  box-shadow: 0 32px 100px rgba(0, 0, 0, .68);
  color: #f1eee7;
}

.reader-mode-dialog p { margin: 0 0 10px; color: #d8c9aa; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.reader-mode-dialog h2 { margin: 0; font: 500 clamp(27px, 7vw, 38px)/1.1 Georgia, "Noto Serif KR", serif; letter-spacing: -.045em; }
.reader-mode-dialog > span { display: block; margin: 13px 0 22px; color: #aaa8a3; font-size: 13px; line-height: 1.65; }
.reader-mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reader-mode-options button { min-height: 94px; padding: 16px; border: 1px solid rgba(241, 238, 231, .15); border-radius: 5px; background: rgba(255,255,255,.035); color: inherit; text-align: left; cursor: pointer; }
.reader-mode-options button:hover,.reader-mode-options button:focus-visible { border-color: rgba(216,201,170,.7); background: rgba(181,72,63,.13); outline: none; }
.reader-mode-options strong { display: block; font-size: 16px; }
.reader-mode-options small { display: block; margin-top: 7px; color: #aaa8a3; font-size: 11px; line-height: 1.5; }
.reader-mode-options em { display: inline-block; margin-top: 8px; color: #d8c9aa; font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .07em; }
body.reader-mode-open { overflow: hidden; }

@media (max-width: 620px) {
  .topbar { gap: 8px !important; }
  .reader-actions { gap: 5px; }
  .reader-mode-control { padding-inline: 9px !important; font-size: 0 !important; }
  .reader-mode-control::after { content: attr(data-short-label); font-size: 10px; }
  .reader-mode-dialog { padding: 24px 20px; }
  .reader-mode-options { grid-template-columns: 1fr; }
}

/* compact mobile controls: full labels, no zoom hint chips */
.panel.landscape::after,
.panel.landscape.is-zoomed::after {
  content: none !important;
  display: none !important;
}
@media (max-width: 620px) {
  .reader-mode-control {
    padding-inline: 8px !important;
    font-size: 11px !important;
  }
  .reader-mode-control::after,
  #fullscreen.control::after {
    content: none !important;
    display: none !important;
  }
  #fullscreen.control {
    padding-inline: 8px !important;
    font-size: 11px !important;
  }
}