/* reading.css - the look of the Reading tab (reading.js; READING 0002, and
   READING 0003's highlighter: the marks .hy and .hb, the lit button .mky
   and .mkb, render lines 375 to 381 and 477 to 479)
   ------------------------------------------------------------------------
   Every number here is the approved render's, Concept Art/reading_tab.html
   (CONCEPT_ART §1l; D1480, D1483): the texts page (.sbody, .sscroll, .wkp,
   .wkh, .wkl, .trow, .ttx, .tname, .pdfb; the class picker is nav.js's and
   nav.css's since CLASS_PICKER 0001), the reader
   (.ts1 to .ts4, .rbody, .rscroll, .slab,
   .rtitle, .rby, .rtext, .rhead, .w, .nn, .tg, .act), its two buttons
   (.rchips, .rchip, .aa, .szs, .szd, .lit), its pop-up (.lk, .lkhd, .lkw,
   .lkx, .lkd, .lksep, .lkn, .lkt, .lk.long, .lkscr) and, wide, the column
   and the panel (.wread, .wpage, .wpage.shift, .wcol, .wpanel, .wlist,
   .wscroll); the four band colors (.band4 to .band7). The report of READING
   0002 gives each number's line. Loaded from this origin, which is what the
   page's Content Security Policy allows: style-src 'self', so there is no
   inline style anywhere; a size reading.js computes (the pop-up's top and
   height, a bean) is set through the element's style object. Where the
   render sets no line height (.slab, .rby, .lkn) its lines are the
   browser's own, "normal", written out here because the shell's body is 1.5.
   The free page (R6 and R7 until FREE_SAMPLES 0001) is free_samples.css's.

   ⛔ No media query on the device: wide is nav's .nv-wide on the screen
      (L695). The bean's look is nav.css's own (.nv-bean-track, .nv-bean).

   Where the render is flat, ART_FIX 0001's look governs (D1647, D1676;
   web-shell.md's "the art every screen shares"), with D1699's light: each
   week's panel of texts is a list bubble, lit by shell.css's tokens; every
   other panel, the pop-up, the wide panel and the wide
   column are flat, the column keeping its 1 px ring (reading.js still names
   them .sf-light, a class that draws nothing now); every heading the frames
   draw takes the headlines' font (--font-headline, shell.css's), and the
   Burmese keeps Noto Sans Myanmar. ⛔ No @font-face and no font file here:
   the shell loads the one headline font, and nothing lies over the whole
   screen. */

.rd-page,
.rd-reader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* The four band colors (.band4 to .band7): a course's label takes its
   element's. */
.rd-earth { color: #35E07E; }
.rd-water { color: #4E9BF0; }
.rd-fire { color: #ED6A76; }
.rd-air { color: #F2C14E; }

/* A scrolling area: the box, its scroller with no bar of its own, and the
   bean (§1e) beside it. */
.rd-box {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.rd-scroll {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rd-scroll::-webkit-scrollbar,
.rd-lkin::-webkit-scrollbar {
  display: none;
}

/* ══ THE TEXTS PAGE (R1, R2, R3; W5, W6): one panel per week, newest first,
   14 px from each side upright and 24 px wide, 10 px apart. ══ */
.rd-lcol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px;
}

.nv-wide .rd-lcol {
  padding: 2px 24px 0;
}

.nv-wide .rd-box > .nv-bean-track {
  right: 9px;
}

.rd-wkp {
  flex: none;
  overflow: hidden;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background: #1D2739;
  /* A list bubble: the light, shell.css's tokens (D1699). */
  background-image: var(--lit-bubble);
  box-shadow: var(--lit-bubble-shadow);
}

/* A week's heading: 32 px tall, its line centered in it (WRITING_PANELS
   0001 Amendment A, D1721; R1 drew 54). */
.rd-wkh {
  height: 32px;
  display: flex;
  align-items: center;
  column-gap: 10px;
  padding: 0 16px 0 18px;
}

.rd-wkl .tt-text p {
  /* A week's heading: the headlines' font (ART_FIX 0001, ruling 3). */
  font-family: var(--font-headline);
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
}

/* A text's row: its title, and the download mark at its right end. */
.rd-trow {
  min-height: 54px;
  display: flex;
  align-items: center;
  column-gap: 12px;
  padding: 5px 14px 5px 18px;
  border-top: 1px solid #253045;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rd-ttx {
  flex: 1;
  min-width: 0;
}

.rd-tname {
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
  color: #EAF0FA;
}

.rd-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* The download mark: §1b's neutral treatment, outlined, 44 x 44. */
.rd-pdfb {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  color: #C8D3E4;
}

.rd-pdfb .rd-icon {
  width: 19px;
  height: 19px;
}

.rd-icon {
  display: block;
  overflow: visible;
}

/* ══ THE READER (V1 to V5): almost all text. Four sizes (D1476 (2)), the
   pop-up following them (D1476 (4)): --rd-fs the text, --rd-pt a pop-up's
   title, --rd-pb its words, --rd-pl its small label. ══ */
.rd-ts1 { --rd-fs: 15px; --rd-pt: 16.5px; --rd-pb: 14px; --rd-pl: 11px; }
.rd-ts2 { --rd-fs: 17px; --rd-pt: 18px; --rd-pb: 15.5px; --rd-pl: 12px; }
.rd-ts3 { --rd-fs: 19.5px; --rd-pt: 20.5px; --rd-pb: 17.5px; --rd-pl: 13px; }
.rd-ts4 { --rd-fs: 22px; --rd-pt: 23px; --rd-pb: 19.5px; --rd-pl: 14px; }

/* The reading area (.rbody) and, upright, the sheet that fills it. */
.rd-area {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.rd-sheet {
  position: absolute;
  inset: 0;
}

.rd-sheet > .rd-box {
  position: absolute;
  inset: 0;
}

/* 150 px kept free under the last line, so the end of the text scrolls
   clear of the two buttons: 14 + 46 + 11 + 46 + 14 = 131. */
.rd-col {
  position: relative;
  padding: 4px 24px 150px 22px;
}

.rd-slab .tt-text p {
  white-space: nowrap;
  line-height: normal;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-size: 12.5px;
  font-weight: 700;
}

.rd-title {
  /* The reader's title: the headlines' font. */
  font-family: var(--font-headline);
  margin-top: 7px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.3px;
  color: #FFFFFF;
}

.rd-by {
  margin-top: 5px;
  font-size: 14.5px;
  line-height: normal;
  color: #8FA0B8;
}

.rd-title,
.rd-by,
.rd-text {
  -webkit-user-select: text;
  user-select: text;
}

.rd-text {
  margin-top: 20px;
  font-size: var(--rd-fs);
  line-height: 1.62;
  color: #D3DCEA;
}

.rd-text p {
  margin: 0 0 .82em;
}

.rd-head {
  margin: 1.3em 0 .45em;
  font-size: var(--rd-fs);
  font-weight: 700;
  line-height: 1.4;
  color: #FFFFFF;
}

/* What can be tapped: a bold phrase (white, a faint blue underline) and a
   note number (a small blue tag whose tap area is 44 px, more than it
   shows). A phrase and the number joined to it are one target. */
.rd-w {
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: rgba(111, 174, 255, .5);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .24em;
  cursor: pointer;
}

.rd-nn {
  position: relative;
  top: -.5em;
  display: inline;
  margin-left: .1em;
  padding: 0 .42em;
  border-radius: .55em;
  background: rgba(111, 174, 255, .16);
  font-size: .64em;
  font-weight: 700;
  line-height: 1.45;
  color: #8FC0FF;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.rd-nn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.rd-tg {
  white-space: nowrap;
  cursor: pointer;
}

/* ══ THE MARKS (V6 to V8; READING 0003): the highlighter's two colors
   (.hy, .hb), pastel fills with dark words; inside a mark a bold phrase
   goes dark with a darker underline and a note number's tag darker. The
   wide reader uses the same (D1667). ══ */
.rd-hy {
  border-radius: 3px;
  background: #F1DA8E;
  color: #141C2E;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.rd-hb {
  border-radius: 3px;
  background: #9CC6F5;
  color: #141C2E;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.rd-hy .rd-w,
.rd-hb .rd-w {
  color: #141C2E;
  text-decoration-color: rgba(20, 28, 46, .45);
}

.rd-hy .rd-nn,
.rd-hb .rd-nn {
  background: rgba(20, 28, 46, .12);
  color: #1F3F6E;
}

/* LIT: over the text the phone's own selection is off, with its long-press
   menu, and the browser keeps only up-and-down scrolling and two-finger
   zoom, so a first movement sideways is the highlighter's. While a marking
   drag runs, the two buttons let the finger through to the text. */
.rd-marking .rd-scroll {
  touch-action: pan-y pinch-zoom;
}

.rd-marking .rd-title,
.rd-marking .rd-by,
.rd-marking .rd-text {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.rd-dragging .rd-chips {
  pointer-events: none;
}

/* The open target, lit, so the eye joins it to its pop-up or panel. */
.rd-act {
  border-radius: 5px;
  background: rgba(255, 255, 255, .15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .15);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ══ THE TWO BUTTONS: the flashcard chips' size and place (§1a, D501): 46
   px, 11 px apart, 14 px from the right and from the bottom; solid, the
   chip's own color over navy. ══ */
.rd-chips {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  row-gap: 11px;
}

.rd-chip {
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #3E4451;
  border-radius: 13px;
  background: #2D3342;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .38);
  color: #DCE5F2;
}

.rd-chip .rd-icon {
  width: 23px;
  height: 23px;
}

.rd-aa {
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.2px;
}

.rd-szs {
  display: flex;
  column-gap: 3px;
  margin-top: 5px;
}

.rd-szd {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #56627A;
}

.rd-szd.rd-lit {
  background: #DCE5F2;
}

/* The highlighter's button, lit (V6, V7; .mky, .mkb): filled with the color
   it marks in, its pen dark. */
.rd-chip.rd-mky {
  border-color: #F1DA8E;
  background: #F1DA8E;
  color: #141C2E;
}

.rd-chip.rd-mkb {
  border-color: #9CC6F5;
  background: #9CC6F5;
  color: #141C2E;
}

/* ══ THE POP-UP (V2, V3, V5) AND THE PANEL (W2 to W4): §1c's shape, 330
   px, 20 px corners, #22304A on a #37476B edge, the ✕ inside it, flush
   left (D1483 (4)); no scrim. ══ */
.rd-look {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 15px 20px 18px;
  border: 1px solid #37476B;
  border-radius: 20px;
  background: #22304A;
  text-align: left;
}

.rd-pop {
  left: 50%;
  z-index: 11;
  width: 330px;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
}

.rd-lkhd {
  flex: none;
  display: flex;
  align-items: flex-start;
  column-gap: 10px;
}

.rd-lkw {
  /* The pop-up's and the panel's title: the headlines' font. */
  font-family: var(--font-headline);
  flex: 1;
  min-width: 0;
  padding-top: 4px;
  font-size: var(--rd-pt);
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
}

.rd-lkx {
  flex: none;
  width: 32px;
  height: 32px;
  margin: -1px -9px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #AEBBD0;
}

.rd-lkx .rd-icon {
  width: 19px;
  height: 19px;
}

/* The words, under the title row: they scroll under it with the bean when
   the pop-up is long, and always in the panel. */
.rd-lkscr {
  flex: 0 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-right: -20px;
}

.rd-long .rd-lkscr,
.rd-panel .rd-lkscr {
  margin-top: 8px;
}

.rd-long .rd-lkscr {
  flex: 1 1 auto;
}

.rd-lkin {
  flex: 0 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 20px;
  scrollbar-width: none;
}

.rd-lkscr > .nv-bean-track {
  top: 4px;
  bottom: 4px;
}

.rd-lkd {
  margin-top: 6px;
  font-size: var(--rd-pb);
  line-height: 1.5;
  color: #C8D3E4;
}

.rd-lksep {
  height: 1px;
  margin: 14px 0 12px;
  background: #37476B;
}

.rd-lkn {
  line-height: normal;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-size: var(--rd-pl);
  font-weight: 700;
  color: #7D8CA5;
}

.rd-lkt {
  margin-top: 6px;
  font-size: var(--rd-pb);
  line-height: 1.55;
  color: #C8D3E4;
}

/* The pop-up's and the panel's one ဘာသာပြန် link (READING 0004; CONCEPT_ART
   §1l TRANSLATE, D1819 (2); not drawn): the shared piece's group link,
   translate_text.css's own look and size (10 px under the words, centered,
   30 px tall, never following the text size), the box's last child after
   the part that scrolls, so a long pop-up keeps it in view; it never
   shrinks. */
.rd-look > .tt-link {
  flex: none;
}

/* ══ WIDE (W1 to W4): one centered column, 666 px, its text 600 inside 32
   px margins, the moving background both sides; a click on a target
   slides it left a quarter second and opens the 330 px panel beside it,
   the two centered together (90 + 666 + 24 + 330 + 90 = 1200). Narrower,
   the panel keeps its 330 and the column takes what is left: 24 + 581.3 +
   24 + 330 + 24 = 983.3 on a tablet on its side, its text 517.3. The
   column and the panel sit over the background's faint copy (5 and 6
   against its 4). ══ */
.nv-wide .rd-sheet {
  top: 0;
  bottom: 0;
  left: calc((100% - min(666px, calc(100% - 402px))) / 2);
  right: auto;
  z-index: 5;
  width: min(666px, calc(100% - 402px));
  overflow: hidden;
  border-radius: 18px;
  background: #1D2739;
  box-shadow: 0 0 0 1px #2C3850;
  transition: left .25s ease;
}

.nv-wide .rd-sheet.rd-shift {
  left: calc((100% - min(666px, calc(100% - 402px)) - 354px) / 2);
}

.nv-wide .rd-col {
  padding: 22px 32px 150px;
}

.rd-panel {
  top: 0;
  left: calc((100% - min(666px, calc(100% - 402px)) - 354px) / 2 + min(666px, calc(100% - 402px)) + 24px);
  z-index: 6;
  width: 330px;
  max-height: 100%;
}

/* After ဘာသာပြန်: the Founder's Burmese in Noto Sans Myanmar at 1.95,
   never the headlines' font (ART_FIX 0001; translate_text.js sets each
   Burmese word whole). */
.rd-page translate-text[lang="my"] p,
.rd-reader translate-text[lang="my"] p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.95;
  letter-spacing: 0;
}

/* ══ THE LINE (READING_LINK 0001; D1888 (2), D1907): writing.html E3's
   one-line pop-up, its values copied here (⛔ never a class of
   writing.css): 330 px in the middle of the frame, a scrim over everything,
   the one sentence, its Close 54 px, one ဘာသာပြန် 10 px under it. THE
   WAITING PAGE's box is the doors' one, in pulses.css (.rd-wait). ══ */
.rd-lscrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(6, 9, 16, .62);
}

.rd-line {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 11;
  width: 330px;
  max-width: calc(100% - 32px);
  transform: translate(-50%, -50%);
  padding: 24px 20px 20px;
  border: 1px solid #37476B;
  border-radius: 20px;
  background-color: #22304A;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #C8D3E4;
  -webkit-user-select: none;
  user-select: none;
}

.rd-line,
.rd-line * {
  box-sizing: border-box;
}

.rd-lbody {
  display: block;
}

.rd-lbody p {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: #AEBBD0;
}

.rd-lbody .tt-text p:only-child {
  margin-top: 0;
}

.rd-lbody[lang="my"] p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.95;
}

.rd-lrow {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.rd-button.rd-lbtn {
  flex: 1;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  font-size: 16px;
  font-weight: 600;
  color: #C8D3E4;
  text-align: center;
}

/* Close's word, rd.close, set inside the button (TranslateText's piece). */
.rd-lbtn translate-text.rd-lw,
.rd-lbtn .rd-lw .tt-text,
.rd-lbtn .rd-lw .tt-text p {
  display: inline;
  margin: 0;
}

/* ══ THE PLAYER (READ_AUDIO 0004; D2169, D2268): reading_tab.html P1 to P8,
   W1 to W4 and its §4b block decide where each part sits and how big it
   is; every mark is kit.html §2's (play, pause and stop on the round
   button, the small round button, back 10 and forward 10, the speed chip,
   the speed list, the player's line, the button waiting) and §1's caret 3
   down, their declarations copied word for word from the kit under rd-
   names (held to kit.html and reading_tab.html by a test). The back 10,
   forward 10 and tick drawings are reading.js's SVG, the kit's own data
   (img-src 'self' allows no data: mask). ══ */

/* kit.html §2: the round play button (sprints_tab.html .aplay). */
.rd-aplay {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: #4E9BF0;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* kit.html §2: play, pause and stop. */
.rd-play3 {
  width: 0;
  height: 0;
  flex: none;
  position: relative;
  left: 1px;
  border-left: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.rd-pause3 {
  width: 10.5px;
  height: 12px;
  flex: none;
  border-left: 3.5px solid currentColor;
  border-right: 3.5px solid currentColor;
}

.rd-stop3 {
  width: 10px;
  height: 10px;
  flex: none;
  background: currentColor;
  border-radius: 1.5px;
}

/* kit.html §2: the small round button under the author. */
.rd-aplay.rd-sm {
  width: 32px;
  height: 32px;
}

.rd-aplay.rd-sm .rd-play3 {
  border-left-width: 8px;
  border-top-width: 5px;
  border-bottom-width: 5px;
}

.rd-aplay.rd-sm .rd-stop3 {
  width: 9px;
  height: 9px;
}

/* kit.html §2: the round play button, waiting: half strength, breathing
   (1.2 s). */
.rd-aplay.rd-pwait {
  opacity: .5;
}

.rd-rplay .rd-aplay.rd-pwait {
  animation: rd-breathe 1.2s ease-in-out infinite;
}

@keyframes rd-breathe {
  0%, 100% { opacity: .5; }
  50% { opacity: .3; }
}

/* kit.html §2: the speed chip. */
.rd-spd {
  width: 74px;
  height: 30px;
  flex: none;
  box-sizing: border-box;
  border-radius: 9px;
  background: #2D3342;
  border: 1px solid #3E4451;
  color: #DCE5F2;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  font-variant-numeric: tabular-nums;
}

.rd-spd .rd-c3 {
  color: #8FA2BF;
}

/* kit.html §1: caret 3, down, at 7 px. */
.rd-c3 {
  width: 9px;
  height: 9px;
  position: relative;
  flex: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.rd-c3.rd-down {
  transform: rotate(45deg);
  top: -2px;
}

.rd-c3.rd-s7 {
  width: 7px;
  height: 7px;
}

/* kit.html §2: the speed list, the class picker's list. */
.rd-spdpop {
  width: 132px;
  background: #22304A;
  border: 1px solid #37476B;
  border-radius: 18px;
  padding: 6px 0;
  box-shadow: 0 14px 34px rgba(0,0,0,.50);
}

.rd-spdpop .rd-spdrow {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.rd-spdpop .rd-spdname {
  font-size: 16px;
  color: #EAF0FA;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.rd-spdpop .rd-spdname.rd-spdcur {
  font-weight: 700;
  color: #FFF;
}

.rd-spdpop .rd-spdtick {
  width: 16px;
  height: 16px;
  color: #6FAEFF;
}

.rd-spdpop .rd-spdtick .rd-icon {
  width: 16px;
  height: 16px;
  display: block;
}

/* kit.html §2: the player's line. */
.rd-pline {
  position: relative;
  width: 150px;
  height: 3px;
  border-radius: 2px;
  background: #26314A;
  overflow: hidden;
}

.rd-pline i {
  display: block;
  height: 100%;
  background: #4E9BF0;
  border-radius: 2px;
}

/* ── Where each part sits (reading_tab.html §4b's block, P1 to P8). ── */

/* P1: under the author, before the story: the small button and the
   reading's length; its tap is 44 px, more than it shows. */
.rd-rsm {
  display: flex;
  align-items: center;
  column-gap: 10px;
  margin-top: 12px;
}

.rd-rsmlen {
  font-size: 14.5px;
  color: #8FA0B8;
  font-variant-numeric: tabular-nums;
}

.rd-rplay .rd-aplay,
.rd-rsm .rd-aplay {
  font-size: 0;
}

.rd-rsm .rd-aplay.rd-sm {
  position: relative;
}

.rd-rsm .rd-aplay.rd-sm::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

/* The player comes down from under the top bar in a quarter second,
   moving the reading area down (upright, P2) or the column's text (wide,
   W2): its holder grows from 0, the player standing at its foot, clipped
   while it slides. */
.rd-pwrap {
  flex: none;
  position: relative;
  z-index: 8;
  height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: height .25s ease;
}

.rd-pwrap.rd-pdown {
  height: 56px;
  overflow: visible;
}

.rd-pwrap.rd-sliding {
  overflow: hidden;
}

/* P2: 56 px, lined up with the text's edges. */
.rd-rplay {
  flex: none;
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 56px;
  margin: 0 24px 0 22px;
  padding-bottom: 6px;
  z-index: 8;
}

.rd-pskip {
  width: 44px;
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #DCE5F2;
}

.rd-pskip .rd-icon {
  width: 28px;
  height: 28px;
}

.rd-pskip.rd-b10 {
  margin-left: 10px;
}

.rd-pskip.rd-f10 {
  margin-left: 2px;
}

.rd-ptime {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: #8FA0B8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rd-rplay .rd-spd {
  margin-left: 12px;
}

/* P3: the list opens under the chip, their right edges lined up. */
.rd-rplay .rd-spdpop {
  position: absolute;
  top: 46px;
  right: 0;
  z-index: 9;
}

.rd-rplay .rd-pline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
}

/* W2, W4: at the top of the column, 66 px, moving with it; the text 12 px
   under it. */
.nv-wide .rd-pwrap.rd-pdown {
  height: 66px;
}

.nv-wide .rd-rplay {
  height: 66px;
  margin: 0 32px;
  padding: 6px 0 8px;
}

.nv-wide .rd-rplay .rd-pline {
  bottom: 4px;
}

.nv-wide .rd-sheet.rd-voiced {
  display: flex;
  flex-direction: column;
}

.nv-wide .rd-sheet.rd-voiced > .rd-box {
  position: relative;
  inset: auto;
}

.nv-wide .rd-sheet.rd-voiced .rd-col {
  transition: padding-top .25s ease;
}

.nv-wide .rd-sheet.rd-pdown .rd-col {
  padding-top: 12px;
}

/* ══ O10 (P7; PAGE_MAP O10): the app's one audio message over the reader,
   its values P7's (.scrim, .dialog, .dtitle, .dbody, .drow, .dbtn.blue),
   the reader's own one-line pop-up's way (⛔ never a class of study.css):
   o.audio's first line the title, its second the body, OK blue, one
   ဘာသာပြန် under it. ══ */
.rd-oscrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(6, 9, 16, .62);
}

.rd-odialog {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 11;
  width: 330px;
  max-width: calc(100% - 32px);
  transform: translate(-50%, -50%);
  padding: 24px 20px 20px;
  border: 1px solid #37476B;
  border-radius: 20px;
  background: #22304A;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.rd-odialog,
.rd-odialog * {
  box-sizing: border-box;
}

.rd-obody {
  display: block;
}

.rd-obody .tt-text p {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: #AEBBD0;
}

.rd-obody .tt-text p:first-child {
  margin-top: 0;
  line-height: normal;
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
}

.rd-obody[lang="my"] p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.95;
}

.rd-orow {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.rd-button.rd-obtn {
  flex: 1;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  font-size: 16px;
  font-weight: 600;
  color: #C8D3E4;
  text-align: center;
}

.rd-button.rd-obtn.rd-blue {
  border-color: #6FAEFF;
  color: #6FAEFF;
  background: rgba(111, 174, 255, .07);
}
