/* =============================================================================
   13b-mylist-episode-page.css
   v14.110 CSS REORG: moved VERBATIM out of 13-e2ee-activity-post.css (the
   activity-post file — none of this is activity/posts). Loads immediately
   AFTER 13 in index.html so every rule keeps its cascade position.
   Contents: My List TV/anime episode rows, season dropdown reveal, the
   full-screen episode page overlay (open/close nav hide, back chevron,
   season page-shift glide, season FULL LOCK scroll model, the season
   episode-list scroll container, season rating popout/stars).
   The scroll container (.mylist-episode-page-season-eps) pairs with the
   iOS boundary-glue touchstart nudge in 06-mylists-render-episodes-ratings.js.
   ============================================================================= */

/* v241: universal TV/anime episode row layout + smooth episode navigation polish */
#mylist-view .ep-row {
  align-items: center;
  gap: 10px;
}
#mylist-view .ep-list,
#mylist-view .ep-scroll,
#mylist-view .season-eps,
#mylist-view .season-block {
  overflow-anchor: none;
}
#mylist-view .ep-left {
  align-items: center;
  gap: 7px;
  min-width: 0;
}
#mylist-view .ep-name {
  min-width: 0;
  flex: 1;
  text-align: left;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#mylist-view .ep-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 0;
}
#mylist-view .ep-number-inline {
  color: #a99dc6;
  font-size: calc(12 * var(--shelfd-px, 1px));
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
#mylist-view .ep-right .ep-rating-btn {
  flex-shrink: 0;
}
body.light-mode #mylist-view .ep-number-inline {
  color: #7c6fa0;
}
body.true-dark-mode #mylist-view .ep-number-inline,
body.true-dark-mode #mylist-view .ep-name {
  color: #fff;
}
@media (max-width: 600px) {
  #mylist-view .ep-row {
    gap: 8px;
  }
  #mylist-view .ep-name {
    font-size: calc(13.5 * var(--shelfd-px, 1px));
  }
  #mylist-view .ep-right {
    gap: 5px;
  }
  #mylist-view .ep-number-inline {
    font-size: calc(11.5 * var(--shelfd-px, 1px));
  }
}


/* v249: explicit episode row number/title alignment. */
#mylist-view .ep-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}
#mylist-view .ep-title-wrap .ep-number-inline {
  margin-right: 0;
}
#mylist-view .ep-title-wrap .ep-name {
  display: block;
  flex: 1 1 auto;
}
#mylist-view .ep-right .ep-number-inline {
  display: none !important;
}



/* v252: stable season dropdown reveal; JS controls height/display to avoid hidden episode regressions. */
#mylist-view .season-eps {
  overflow: hidden;
  will-change: height, opacity;
}
@media (prefers-reduced-motion: reduce) {
  #mylist-view .season-eps {
    transition: none !important;
  }
}


/* v253: iOS/PWA-safe season dropdown tapping. */
#mylist-view .season-header {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

html.mylist-episode-page-open,
body.mylist-episode-page-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
body.mylist-episode-page-open #mobile-bottom-nav,
body.mylist-episode-page-open .mobile-bottom-nav {
  opacity: 0 !important;
  pointer-events: none !important;
}
/* v14.082: the instant the episode page starts CLOSING, restore the bottom nav
   (the slide-down animation still plays over it) so it's already present when the
   page clears — no more split-second pop-in after close completes. Higher
   specificity (2 classes) than the hide above. */
body.mylist-episode-page-open.mylist-episode-page-closing #mobile-bottom-nav,
body.mylist-episode-page-open.mylist-episode-page-closing .mobile-bottom-nav {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.mylist-episode-page-overlay {
  --mylist-episode-page-motion-ms: 450ms;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100svh;
  max-height: 100dvh;
  background: transparent;
  z-index: 12000;
  pointer-events: none;
  overflow: hidden;
  touch-action: manipulation;
}
.mylist-episode-page-overlay.is-closing {
  pointer-events: auto;
}
.mylist-episode-page-surface {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #0e0e0e;
  /* v11.027: disable double-tap-to-zoom on the full-page show details.
     `manipulation` keeps scroll/pan + pinch-zoom but kills the
     double-tap zoom gesture (and the legacy 300ms tap delay). Set on
     the surface so it governs the whole page's touch targets. */
  touch-action: manipulation;
  transform: translate3d(0, 100%, 0);
  opacity: 0.98;
  transition:
    transform var(--mylist-episode-page-motion-ms) cubic-bezier(0.22, 1, 0.36, 1),
    opacity calc(var(--mylist-episode-page-motion-ms) - 190ms) ease;
  will-change: transform, opacity;
}
.mylist-episode-page-overlay.is-open {
  pointer-events: auto;
}
.mylist-episode-page-overlay.is-open .mylist-episode-page-surface {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.mylist-episode-page-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  color: #f5f2ff;
  font-family: 'Sohne', 'DM Sans', sans-serif;
  /* v11.025/11.028: previously nudged the whole page down 18px (additive on top
     of the topbar's safe-area inset) so the back button + content cleared the
     device top. v14.329: removed — the header guard pushed content too far down.
     The topbar still applies its own safe-area top padding (min 10px non-native,
     dynamic-island inset on native), so device-top clearance is preserved. */
  padding-top: 0;
}
.mylist-episode-page-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  /* v14.418: header expanded 21px — the back button sat too high on the
     TV/anime show-details page. Both variants keep their max() safe-area
     structure; only the resolved value grows by 21px. */
  padding:
    max(calc(var(--shelfd-safe-top, 0px) + 3px), 31px)
    18px
    8px;
  flex: 0 0 auto;
  touch-action: manipulation;
}
html.shelfd-capacitor-native .mylist-episode-page-topbar {
  padding-top: max(calc(var(--shelfd-safe-top, 0px) - 3px), 29px);
}
/* v11.027: back control is now a chevron-only glyph (no "Back" label)
   inside a circular border — matches the discover seasons page back
   button. White stroke, subtle ring + fill. */
.mylist-episode-page-back {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.13);
  color: #f7f3ff;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 4px 18px rgba(0,0,0,0.22);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
}
.mylist-episode-page-back-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.mylist-episode-page-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* v11.027: belt-and-suspenders — most taps land in the scroll area,
     so pin `manipulation` here too so double-tap zoom is suppressed
     even where a child resets touch-action. */
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0 18px calc(env(safe-area-inset-bottom, 0px) + 28px);
  /* v11.013: hide the right-side scrollbar per spec. WebKit (iOS
     Capacitor + Safari) honors the ::-webkit-scrollbar block; Firefox
     honors scrollbar-width; legacy IE uses -ms-overflow-style. The
     scroll itself is unaffected — only the visible track/thumb hides. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mylist-episode-page-scroll::-webkit-scrollbar,
.mylist-episode-page-scroll::-webkit-scrollbar-track,
.mylist-episode-page-scroll::-webkit-scrollbar-thumb {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* v13.919: the season open/close "page shift" glides by animating THIS layer's
   transform (compositor-driven → 120Hz on ProMotion). It holds all page content
   so the whole page moves as one unit. NO standing GPU promotion here on purpose:
   `will-change` is set in JS only for the ~600ms the glide runs and released the
   instant it ends, so an idle page carries zero extra layer/memory cost. At rest
   this is a plain block. */
.mylist-episode-page-shift {
  transform: none;
}

.mylist-episode-page-summary {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.mylist-episode-page-summary-poster {
  appearance: none;
  display: block;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 152px;
  aspect-ratio: 1400 / 2100;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.06);
  box-shadow: 0 18px 32px rgba(0,0,0,0.28);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mylist-episode-page-summary-poster:active {
  transform: scale(0.985);
}
.mylist-episode-page-summary-poster.no-img {
  background:
    linear-gradient(135deg, rgba(167,139,250,0.24), rgba(88,28,135,0.32)),
    #1a1525;
}
.mylist-episode-page-summary-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 2px;
}
.mylist-episode-page-title {
  font-size: calc(24 * var(--shelfd-px, 1px));
  line-height: 1.04;
  /* v11.247: show-detail title — 600 weight, Söhne, -0.03em (was 800/-0.04em). */
  font-weight: 600;
  letter-spacing: -0.03em;
  font-family: 'Sohne', 'DM Sans', sans-serif;
  color: #fbf8ff;
}
.mylist-episode-page-status .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
}
.mylist-episode-page-progress-area {
  margin-top: 2px;
}
.mylist-episode-page-progress-meta {
  margin-bottom: 6px;
}
.mylist-episode-page-progress-row {
  gap: 8px;
}
.mylist-episode-page-rating-area {
  margin-top: 2px;
}

.mylist-episode-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 12px;
  margin: 0 0 18px;
  padding: 0;
}
.mylist-episode-page-actions-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mylist-episode-page-actions-main .btn-secondary {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  color: #f7f3ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 4px 18px rgba(0,0,0,0.22);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
}
.mylist-episode-page-seasons {
  min-height: 0;
}
.mylist-episode-page-list {
  height: auto !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.mylist-episode-page-list .ep-list-inner,
.mylist-episode-page-list .ep-scroll,
.mylist-episode-page-season-list {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}
.mylist-episode-page-list .ep-list-inner {
  padding: 0 !important;
}

.mylist-episode-page-season-block {
  margin-bottom: 12px;
  border: 1px solid rgba(196,181,253,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  /* v13.910: `clip` (not `hidden`) so the corners/height-animation still clip
     BUT the block does NOT become a scroll container — that's what lets the
     season header below use position:sticky to pin to the page scroll while an
     open season's episodes scroll under it. `hidden` would trap the sticky
     inside this block (it would scroll away with the block). */
  overflow: clip;
  box-shadow: 0 18px 42px rgba(0,0,0,0.22);
}
.mylist-episode-page-season-header {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 16px;
  /* v13.910: SOLID (was rgba 0.03) so that when this header is pinned at the
     top of the page over the scrolling episode list it stays fully opaque —
     episodes must never ghost through it. This solid resolves to the same tone
     the translucent value produced over the block, so the collapsed look is
     unchanged. */
  background: #1e1d22;
  cursor: pointer;
}
/* v13.914: FULL LOCK. When a season is open the page stops scrolling and the
   open season's episode list is the ONLY scroll container. CRITICAL FIX over
   v13.912/913: the scroll container is given a DEFINITE pixel height in JS
   (`sizeEpisodePageFocusScroll`), because iOS WKWebView only scrolls a nested
   container reliably with an explicit height — a flex-derived height left it
   directionally stuck ("swipe down first, keep the finger down, to scroll up").
   This mirrors the proven inline-card focus mode, which also pins a fixed
   height. The card header sits above as a normal block, so the card is locked
   and only the episodes scroll, both directions.
   `.mylist-episode-page-focused` is set on the overlay by JS whenever a season
   is open; it first hides the summary / action row / other seasons so the open
   season is the sole top-level block. */
.mylist-episode-page-focused .mylist-episode-page-summary,
.mylist-episode-page-focused .mylist-episode-page-actions,
.mylist-episode-page-focused .mylist-episode-page-season-block:not(.is-open) {
  display: none;
}
/* the page itself no longer scrolls — its whole height goes to the open season */
.mylist-episode-page-focused .mylist-episode-page-scroll {
  overflow: hidden;
}
.mylist-episode-page-focused .mylist-episode-page-season-block.is-open {
  margin: 0;
}
.mylist-episode-page-focused .mylist-episode-page-season-block.is-open > .mylist-episode-page-season-header {
  border-bottom: 1px solid rgba(196,181,253,0.10);
}
.mylist-episode-page-focused .mylist-episode-page-season-block.is-open > .mylist-episode-page-season-body {
  height: auto !important;
  overflow: visible !important;
  display: block !important;
}
/* the episode list is THE scroll container — its height is set inline (definite
   px) by sizeEpisodePageFocusScroll() so iOS scrolls it reliably both ways */
.mylist-episode-page-season-block.is-open .mylist-episode-page-season-eps,
.mylist-episode-page-focused .mylist-episode-page-season-block.is-open .mylist-episode-page-season-eps {
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  /* v13.915: was `touch`. The legacy `-webkit-overflow-scrolling: touch`
     momentum implementation glues the container to its BOTTOM edge on iOS — once
     you hit the last episode you can't scroll back up until a downward nudge.
     `auto` uses iOS 13+'s native momentum, which scrolls both ways with no
     boundary lock. THIS is the root cause of the "stuck at the bottom" scroll. */
  -webkit-overflow-scrolling: auto !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.mylist-episode-page-focused .mylist-episode-page-season-block.is-open .mylist-episode-page-season-eps::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
.mylist-episode-page-season-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.mylist-episode-page-season-title-line {
  gap: 8px;
}
.mylist-episode-page-season-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mylist-episode-page-season-count {
  font-size: calc(12 * var(--shelfd-px, 1px));
  font-weight: 400; /* v14.351: was 500 */
  color: rgba(245,242,255,0.82);
}
/* v14.28x: season-card text sizing (owner spec). Scoped to the episode-page
   overlay (it mounts on document.body, so the #mylist-view size rules don't
   reach it) — the inline shelf season list keeps its own sizing. */
.mylist-episode-page-overlay .season-title {
  font-size: calc(14.1 * var(--shelfd-px, 1px));
  font-weight: 600;
}
.mylist-episode-page-overlay .season-year {
  font-size: calc(14.1 * var(--shelfd-px, 1px));
  font-weight: 400;
}
/* v14.28x: wrap the year in parentheses → (2026). CSS-only so it stays scoped
   to the episode page; no empty parens when a season has no year (the span
   isn't rendered at all in that case). */
.mylist-episode-page-overlay .season-year::before { content: '('; }
.mylist-episode-page-overlay .season-year::after { content: ')'; }
.mylist-episode-page-overlay .season-progress {
  font-size: calc(12 * var(--shelfd-px, 1px));
  font-weight: 400;
}
/* v14.x: per-season IMDb rating (★ + number) — sits on its own line under the
   episodes/watched meta row (TV shows only). Sourced from the in-house IMDb
   GraphQL scraper. Gold star to match the app's rating glyphs. */
.mylist-episode-page-season-imdb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: calc(12 * var(--shelfd-px, 1px));
  font-weight: 400; /* v14.351: was 600 */
  /* line-height left at `normal` (NOT 1) so its leading matches the meta/title
     rows — with a tight line-height the flex row-gap read as a smaller visual
     distance than title→meta. Now the ink-to-ink gaps are equal. */
  color: #f5f2ff;
}
.mylist-episode-page-season-imdb[hidden] { display: none; }
.mylist-episode-page-season-imdb-star {
  /* v14.324: champagne gold (was #fbbf24 amber) to match the header rating
     stars and the season rating pill — all show one gold on the detail page. */
  color: #E6C766;
  font-size: calc(12 * var(--shelfd-px, 1px));
}
.mylist-episode-page-season-imdb-num {
  color: #f5f2ff;
  font-weight: 400; /* v14.351: was 600 */
}

/* =============================================================================
   v14.x: EPISODE COMMENTS PAGE — IMDb per-episode user reviews (TV shows only).
   Slides in from the RIGHT above the episode page (z 12000 → this at 12500).
   Editorial Dark: true blacks, Söhne, 270ms transform-only motion.
   ========================================================================== */
.mylist-ep-comments-page {
  position: fixed;
  inset: 0;
  z-index: 12500;
  display: flex;
  flex-direction: column;
  background: #0E0E0E;
  /* v14.313: pin the whole page to the app's default Söhne so every element
     (headers, cards, composer, replies) inherits it. */
  font-family: 'Sohne', 'DM Sans', sans-serif;
  transform: translate3d(100%, 0, 0);
  transition: transform 270ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.mylist-ep-comments-page.is-open { transform: translate3d(0, 0, 0); }
.mylist-ep-comments-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(max(var(--shelfd-safe-top, 0px), env(safe-area-inset-top, 0px)) + 8px) 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex: 0 0 auto;
}
.mylist-ep-comments-back {
  /* v14.310: bare left chevron — no circle/border/fill. 38px keeps a full tap
     target; the negative left margin optically aligns the glyph to the edge. */
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #f5f2ff;
  font-size: calc(30 * var(--shelfd-px, 1px));
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  margin-left: -8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex: 0 0 auto;
}
.mylist-ep-comments-titles { min-width: 0; flex: 1 1 auto; }
/* v14.304: overall episode rating (IMDb aggregate ÷2) pinned top-right —
   champagne-gold STAR (#E6C766) + full-opacity white number, app standard. */
.mylist-ep-comments-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: 8px;
  font-family: 'Sohne', 'DM Sans', sans-serif;
  font-size: calc(15 * var(--shelfd-px, 1px));
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0em;
}
.mylist-ep-comments-rating[hidden] { display: none; }
.mylist-ep-comments-rating-star { color: #E6C766; font-size: calc(15 * var(--shelfd-px, 1px)); line-height: 1; }
.mylist-ep-comments-rating-num { color: #ffffff; }
.mylist-ep-comments-title {
  font-family: 'Sohne', 'DM Sans', sans-serif;
  font-size: calc(17 * var(--shelfd-px, 1px));
  font-weight: 600;
  color: #f5f2ff;
  letter-spacing: 0em;
}
/* v14.313: header total "(145)" — inherits the title's size/color; only the
   weight drops 100 (600 → 500), leaving "Comments" itself untouched. */
.mylist-ep-comments-count { font-weight: 500; }
.mylist-ep-comments-sub {
  font-size: calc(12 * var(--shelfd-px, 1px));
  font-weight: 400;
  color: #a99dc6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mylist-ep-comments-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: auto;
  overscroll-behavior: contain;
  /* v14.x: 9px screen-edge padding per design. */
  padding: 9px 9px calc(env(safe-area-inset-bottom, 0px) + 28px);
}
.mylist-ep-comments-list { display: flex; flex-direction: column; gap: 10px; }
.mylist-ep-comment-card {
  /* v14.309: one shade lighter than #161618 for stronger contrast against the
     #0E0E0E page background (both anime + TV cards use this class). */
  background: #1E1E21;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 12px 14px;
}
.mylist-ep-comment-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.mylist-ep-comment-author { font-size: calc(13 * var(--shelfd-px, 1px)); font-weight: 600; color: #e8e3f3; }
/* v14.311: anime (MAL) cards — larger username + 15px full-opacity white body. */
.mylist-ep-comment-card.is-mal-comment .mylist-ep-comment-author { font-size: calc(16.2 * var(--shelfd-px, 1px)); font-weight: 500; }
.mylist-ep-comment-card.is-mal-comment .mylist-ep-comment-body { font-size: calc(15 * var(--shelfd-px, 1px)); color: #ffffff; }
/* v14.x: champagne-gold STAR only (app standard #E6C766); the number reads white
   at full opacity — matches the universal reviews row treatment. */
.mylist-ep-comment-rating { font-size: calc(12 * var(--shelfd-px, 1px)); font-weight: 600; color: #ffffff; }
.mylist-ep-comment-rating .mylist-ep-comment-star { color: #E6C766; }
.mylist-ep-comment-date { font-size: calc(11.5 * var(--shelfd-px, 1px)); font-weight: 400; color: #8b81a8; margin-left: auto; }
.mylist-ep-comment-summary { font-size: calc(15 * var(--shelfd-px, 1px)); font-weight: 500; color: #ffffff; margin-top: 6px; }
.mylist-ep-comment-body {
  font-size: calc(14.1 * var(--shelfd-px, 1px));
  font-weight: 400;
  line-height: 1.5;
  /* v14.x: full-opacity white body text per design. */
  color: #ffffff;
  margin-top: 5px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.mylist-ep-comment-votes { font-size: calc(11.5 * var(--shelfd-px, 1px)); color: #8b81a8; margin-top: 8px; }
/* spoilers collapsed until tapped */
.mylist-ep-comment-spoiler {
  appearance: none;
  display: inline-flex;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(251,191,36,0.35);
  background: rgba(251,191,36,0.08);
  color: #f8d973;
  font-size: calc(12 * var(--shelfd-px, 1px));
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mylist-ep-comment-spoiler.is-revealed { display: none; }
.mylist-ep-comment-card.has-spoiler .mylist-ep-comment-spoiler-body { display: none; }
.mylist-ep-comment-card.has-spoiler .mylist-ep-comment-spoiler.is-revealed + .mylist-ep-comment-spoiler-body { display: block; }
.mylist-ep-comments-footer { padding: 14px 0 0; display: flex; justify-content: center; }
.mylist-ep-comments-more {
  appearance: none;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  color: #f5f2ff;
  font-family: 'Sohne', 'DM Sans', sans-serif;
  font-size: calc(13 * var(--shelfd-px, 1px));
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mylist-ep-comments-loading,
.mylist-ep-comments-empty,
.mylist-ep-comments-end {
  font-size: calc(13 * var(--shelfd-px, 1px));
  color: #8b81a8;
  padding: 10px 0;
  text-align: center;
}
/* v14.303: INTERACTIVE layer — composer, thumbs-up + replies (YouTube-style). */
.mylist-ep-composer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 2px 12px;
}
.mylist-ep-composer:empty { display: none; }
.mylist-ep-composer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #161618;
}
.mylist-ep-composer-field { flex: 1 1 auto; min-width: 0; }
.mylist-ep-composer-input {
  width: 100%;
  min-height: 34px;
  max-height: 200px;
  resize: none;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  border-radius: 0;
  padding: 7px 0 8px;
  color: #ffffff;
  font-family: 'Sohne', 'DM Sans', sans-serif;
  font-size: calc(15 * var(--shelfd-px, 1px));
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0em;
  outline: none;
}
.mylist-ep-composer-input::placeholder { color: #8b81a8; }
.mylist-ep-composer-input:focus { border-bottom-color: rgba(255,255,255,0.34); }
.mylist-ep-composer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.mylist-ep-composer-post {
  appearance: none;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  color: #f5f2ff;
  font-family: 'Sohne', 'DM Sans', sans-serif;
  font-size: calc(13 * var(--shelfd-px, 1px));
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mylist-ep-composer-post:disabled { opacity: 0.45; }
/* like + reply action row on every card (IMDb overlay + Shelfd comments) */
.mylist-ep-comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 9px;
}
.ec-like-btn,
.ec-reply-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8b81a8;
  font-family: 'Sohne', 'DM Sans', sans-serif;
  font-size: calc(12.5 * var(--shelfd-px, 1px));
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 120ms ease;
}
.ec-like-btn svg,
.ec-reply-btn svg { width: 16px; height: 16px; display: block; }
.ec-like-btn.is-liked { color: #E6C766; }
.ec-like-btn.is-liked svg { fill: rgba(230,199,102,0.16); }
/* Shelfd user comment head (avatar + name + relative time) */
.ec-comment-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  align-self: center;
  background: #101012;
}
.mylist-ep-comment-card.is-user-comment .mylist-ep-comment-head { align-items: center; }
/* v14.307: MAL forum quote — reply-context lifted out of an anime post body,
   rendered as a muted inset above the poster's own words. */
.mylist-ep-comment-quote {
  margin-top: 6px;
  padding: 7px 10px;
  border-left: 2px solid rgba(255,255,255,0.16);
  border-radius: 0 8px 8px 0;
  background: rgba(255,255,255,0.04);
  font-size: calc(12.5 * var(--shelfd-px, 1px));
  font-weight: 400;
  line-height: 1.45;
  color: #a99dc6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.mylist-ep-comment-quote-user { font-weight: 600; color: #c4b5fd; }
/* v14.306: notification deep-link — the target comment card glows briefly so
   the eye lands on the right thread, then fades back (270ms out). */
.mylist-ep-comment-card.is-notif-highlight {
  border-color: rgba(230,199,102,0.55);
  box-shadow: 0 0 0 1px rgba(230,199,102,0.30), 0 0 22px rgba(230,199,102,0.10);
  transition: border-color 270ms ease, box-shadow 270ms ease;
}
/* replies thread — indented under the card, YouTube-style */
.mylist-ep-comment-replies {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mylist-ep-comment-replies[hidden] { display: none; }
.ec-replies-list { display: flex; flex-direction: column; gap: 10px; }
.ec-replies-list:empty { display: none; }
.ec-replies-loading { font-size: calc(12.5 * var(--shelfd-px, 1px)); color: #8b81a8; }
.ec-reply-row { display: flex; align-items: flex-start; gap: 8px; }
.ec-reply-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #101012;
}
.ec-reply-copy { flex: 1 1 auto; min-width: 0; }
.ec-reply-meta { display: flex; align-items: baseline; gap: 7px; }
.ec-reply-name { font-size: calc(12 * var(--shelfd-px, 1px)); font-weight: 600; color: #e8e3f3; }
.ec-reply-time { font-size: calc(11 * var(--shelfd-px, 1px)); font-weight: 400; color: #8b81a8; }
.ec-reply-text {
  font-size: calc(13 * var(--shelfd-px, 1px));
  font-weight: 400;
  line-height: 1.45;
  color: #ffffff;
  margin-top: 2px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.ec-reply-composer { display: flex; align-items: center; gap: 8px; }
.ec-reply-input {
  flex: 1 1 auto;
  min-width: 0;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  border-radius: 0;
  padding: 6px 0 7px;
  color: #ffffff;
  font-family: 'Sohne', 'DM Sans', sans-serif;
  font-size: calc(13.5 * var(--shelfd-px, 1px));
  font-weight: 400;
  outline: none;
}
.ec-reply-input::placeholder { color: #8b81a8; }
.ec-reply-input:focus { border-bottom-color: rgba(255,255,255,0.34); }
.ec-reply-post {
  appearance: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  color: #f5f2ff;
  font-family: 'Sohne', 'DM Sans', sans-serif;
  font-size: calc(12 * var(--shelfd-px, 1px));
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex: 0 0 auto;
}
.mylist-episode-page-season-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-left: auto;
  align-self: stretch;
  flex: 0 0 auto;
  min-width: 0;
}
.mylist-episode-page-season-controls-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}
.mylist-episode-page-season-rating-slot {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: auto;
  position: relative;
  z-index: 4;
}
.mylist-episode-page-season-rating-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
}
.mylist-episode-page-season-rating-chip-value {
  color: #ffffff;
}
.mylist-episode-page-season-rating-chip {
  appearance: none;
  /* v14.324: champagne-gold star + outline (were amber #fbbf24 / pale #f8d973)
     to match the header rating stars and season avg star. */
  border: 1px solid rgba(230,199,102,0.24);
  background: rgba(15,15,15,0.72);
  color: #E6C766;
  border-radius: 999px;
  min-width: 44px;
  min-height: 30px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: 'Sohne', 'DM Sans', sans-serif;
  font-size: calc(12 * var(--shelfd-px, 1px));
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms ease,
    background 180ms ease;
}
.mylist-episode-page-season-rating-chip:active {
  transform: translateZ(0) scale(0.96);
}
.mylist-episode-page-season-rating-chip.is-readonly {
  cursor: default;
  /* v14.324: champagne gold at the same dimmed opacity (was rgba(248,217,115,0.78)). */
  color: rgba(230,199,102,0.78);
  background: rgba(15,15,15,0.48);
}
.mylist-episode-page-season-rating-stars {
  position: absolute;
  right: calc(100% + 7px);
  top: 50%;
  transform: translate3d(10px, -50%, 0) scale(0.94);
  transform-origin: right center;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-height: 54px; /* v14.342: taller bubble for the larger stars */
  max-width: min(280px, calc(100vw - 84px));
  padding: 7px 13px;
  border: 1px solid rgba(251,191,36,0.16);
  border-radius: 999px;
  background: rgba(14,14,14,0.94);
  box-shadow: 0 12px 28px rgba(0,0,0,0.32);
  will-change: transform, opacity;
  touch-action: none;
  transition:
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 170ms ease;
}
.mylist-episode-page-season-rating-control.is-expanded .mylist-episode-page-season-rating-stars {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0) scale(1);
}
/* v11.026: the season rating popout now renders the SAME
   `.ep-rating-popup-stars` slot widget as the top-of-page overall
   rating. This compound selector (2 classes → specificity beats the
   bare `.ep-rating-popup-stars` rule in 01-mylists-cards-episodes.css)
   pins the popout to the hero widget's 22px star scale + flex layout,
   while the base `.mylist-episode-page-season-rating-stars` rule above
   keeps the floating-bubble positioning. The old bespoke
   `.mylist-episode-page-season-rating-star-*` rules were removed — the
   widget styling (champagne gold #E6C766 fill, half-step clip, hit
   zones) all comes from the shared `.ep-rating-star-*` family. */
.mylist-episode-page-season-rating-stars.ep-rating-popup-stars {
  --ep-star-size: 30px; /* v14.342: bigger season-rating stars (was 22px) */
  display: flex;
  gap: 4px;
  touch-action: none;
}
/* v14.348: season overflow (⋯) button — replaces the old "Mark all / Clear all"
   text toggle; opens the season-actions bottom sheet. */
.mylist-episode-page-season-controls-top .season-actions-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: none;
  color: rgba(216,208,233,0.60);
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 130ms ease, background 130ms ease;
}
.mylist-episode-page-season-controls-top .season-actions-menu-btn:active {
  color: #f8f4ff;
  background: rgba(255,255,255,0.08);
}
.mylist-episode-page-season-controls-top .season-actions-menu-btn svg { display: block; }
/* v14.350: the season-actions sheet opens from INSIDE the episode-page overlay
   (z-index 12000), so the shared report-sheet default (9900) put it BEHIND the
   page — it never appeared. Lift it above the overlay (and the ep review modal
   at 12500). ID beats the .shelfd-report-sheet-overlay class, no !important. */
#shelfd-season-actions-sheet { z-index: 13000; }

.mylist-episode-page-season-poster {
  width: 77px;
  aspect-ratio: 2 / 3;
  flex: 0 0 77px;
  display: block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255,255,255,0.05);
  border-radius: 3px !important;
}
.mylist-episode-page-season-poster.season-poster-empty {
  background:
    linear-gradient(135deg, rgba(167,139,250,0.2), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.035);
}
.mylist-episode-page-season-body {
  display: none;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  will-change: height, opacity, transform;
  /* v11.029: collapse/expand duration bumped 380ms → 450ms (height +
     transform). Opacity scaled up proportionally (260 → 300ms) so it
     still finishes ahead of the height for a clean no-clip fade. */
  transition:
    height 450ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 300ms ease,
    transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mylist-episode-page-season-block.is-open .mylist-episode-page-season-body {
  opacity: 1;
  transform: translateY(0);
}
.mylist-episode-page-season-block .season-arrow {
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mylist-episode-page-season-block.is-open .season-arrow {
  transform: rotate(180deg);
}
.mylist-episode-page-season-eps {
  padding: 0 10px 10px 10px;
}
.mylist-episode-page-season-eps .ep-row {
  margin-bottom: 8px;
}
.mylist-episode-page-overlay .ep-title-stack {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.mylist-episode-page-overlay .ep-title-stack .ep-name {
  flex: 0 1 auto;
  width: 100%;
  min-width: 0;
}
.mylist-episode-page-overlay .ep-runtime {
  display: block;
  color: rgba(255,255,255,0.70);
  font-size: calc(11 * var(--shelfd-px, 1px));
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0;
  font-family: 'Sohne', 'DM Sans', system-ui, sans-serif;
}
.mylist-episode-page-season-eps .ep-row:last-child {
  margin-bottom: 0;
}
.mylist-episode-page-overlay .season-rating-chip,
.mylist-episode-page-overlay .season-rating-bar {
  display: none !important;
}
.mylist-episode-page-overlay .ep-row.watched-ep {
  border-left-color: transparent;
  box-shadow: none;
}
.mylist-episode-page-overlay .ep-row::before,
.mylist-episode-page-overlay .episode-fill-layer {
  background: rgba(139, 92, 246, 0.22);
}
.mylist-episode-page-overlay .ep-row::after {
  background: none;
  filter: none;
}
.mylist-episode-page-overlay .episode-burst {
  display: none !important;
}
.mylist-episode-page-overlay .ep-row.episode-watch-sweep::after {
  animation: episodeWatchSweep 1180ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.mylist-episode-page-overlay .ep-row.episode-watch-glow {
  animation: mylistEpisodeRowLavenderGlow 1180ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.mylist-episode-page-overlay .ep-row.episode-watch-impact .ep-check {
  animation: mylistEpisodeCheckLavenderPop 560ms cubic-bezier(0.175, 0.885, 0.32, 1.25) forwards;
}
.mylist-episode-page-overlay .ep-check.checked {
  border-color: rgba(167, 139, 250, 0.84);
  background: rgba(167, 139, 250, 0.3);
  color: rgba(245, 242, 255, 0.98);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.1);
}
@keyframes mylistEpisodeCheckLavenderPop {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(167,139,250,0);
    filter: brightness(1);
  }
  28% {
    transform: scale(1.16);
    box-shadow: 0 0 0 5px rgba(167,139,250,0.16);
    filter: brightness(1.08);
  }
  60% {
    transform: scale(1.06);
    box-shadow: 0 0 0 9px rgba(167,139,250,0.06);
    filter: brightness(1.03);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(167,139,250,0);
    filter: brightness(1);
  }
}
@keyframes mylistEpisodeRowLavenderGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(167,139,250,0), 0 0 0 rgba(167,139,250,0);
  }
  24% {
    box-shadow: 0 0 0 1px rgba(196,181,253,0.16), 0 0 10px rgba(167,139,250,0.12);
  }
  58% {
    box-shadow: 0 0 0 1px rgba(167,139,250,0.12), 0 0 14px rgba(167,139,250,0.16);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(167,139,250,0.14), 0 0 0 rgba(167,139,250,0);
  }
}
.mylist-episode-page-empty {
  padding: 18px 0 4px;
  font-size: calc(14 * var(--shelfd-px, 1px));
  color: rgba(245,242,255,0.58);
}

@media (max-width: 430px) {
  /* v14.336: tighten the whole show-detail page's screen-edge padding to 6px on
     mobile (TV + anime share this overlay) — was 14px. Covers the back-button
     row and the scrolling content (summary, season cards, episode rows all
     inherit their inset from the scroll container). */
  .mylist-episode-page-topbar {
    padding-left: 6px;
    padding-right: 6px;
  }
  .mylist-episode-page-scroll {
    padding-left: 6px;
    padding-right: 6px;
  }
  .mylist-episode-page-summary {
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 12px;
  }
  .mylist-episode-page-summary-poster {
    width: 142px;
  }
  .mylist-episode-page-title {
    font-size: calc(21 * var(--shelfd-px, 1px));
  }
  .mylist-episode-page-season-poster {
    width: 77px;
    flex-basis: 77px;
  }
  .mylist-episode-page-season-rating-stars {
    right: calc(100% + 5px);
    padding-left: 11px;
    padding-right: 11px;
    max-width: min(272px, calc(100vw - 80px));
  }
  /* v14.342: bigger season-rating stars on mobile (was 20px) so half-star
     tapping is easy — matches the enlarged per-episode popup. */
  .mylist-episode-page-season-rating-stars.ep-rating-popup-stars {
    --ep-star-size: 30px;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mylist-episode-page-surface,
  .mylist-episode-page-season-body,
  .mylist-episode-page-season-block.is-open .season-arrow,
  .mylist-episode-page-season-rating-chip,
  .mylist-episode-page-season-rating-stars,
  .mylist-episode-page-season-rating-stars .ep-rating-star-fill {
    transition: none !important;
  }
}

/* =============================================================================
   v14.325 — TV episode row: star+comments grouped, star as a rating-bubble pill,
   IMDb episode rating overlaid on the still (top-right).
   Scoped under #mylist-episode-page-overlay so the ID specificity cleanly wins
   over the base .ep-row-tv rules in 01-mylists-cards-episodes.css.
   ========================================================================== */
/* 1. The star + comments button now sit together on one action row under the
   title (the comment button was moved out of its old far-right slot). */
#mylist-episode-page-overlay .ep-tv-actions-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  align-self: flex-start;
  /* v14.337: extra breathing room between the date·runtime line and the
     rating/comment buttons (adds to the 4px stack gap -> ~11px total). */
  margin-top: 7px;
}
#mylist-episode-page-overlay .ep-tv-actions-row .ep-rating-anchor,
#mylist-episode-page-overlay .ep-tv-actions-row .ep-comments-anchor {
  align-self: center;
  margin-bottom: 0;
}

/* v14.334: 3-line left column (title / air date + runtime / rating). The stack
   holds ~65px so the 74px still keeps driving the 90px card height. The title is
   single-line with ellipsis so a long name can't push the card past 90px. */
#mylist-episode-page-overlay .ep-row-tv .ep-tv-left-stack { gap: 4px; }
#mylist-episode-page-overlay .ep-row-tv .ep-name-line {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
#mylist-episode-page-overlay .ep-row-tv .ep-name-line .ep-name { font-size: calc(14 * var(--shelfd-px, 1px)); }
#mylist-episode-page-overlay .ep-row-tv .ep-meta-line {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: calc(11.5 * var(--shelfd-px, 1px));
  line-height: 1.15;
  font-weight: 300;
  font-family: 'Sohne', 'DM Sans', system-ui, sans-serif;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0;
}
/* Keep the whole meta line on ONE row — the base overlay `.ep-runtime` is
   display:block (line ~1079), which would otherwise drop the runtime onto a
   second line and push the card past 90px. */
#mylist-episode-page-overlay .ep-row-tv .ep-meta-line .ep-air-date,
#mylist-episode-page-overlay .ep-row-tv .ep-meta-line .ep-runtime,
#mylist-episode-page-overlay .ep-row-tv .ep-meta-line .ep-meta-sep {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  white-space: nowrap;
}
#mylist-episode-page-overlay .ep-row-tv .ep-meta-line .ep-air-date { color: rgba(255,255,255,0.74); }
#mylist-episode-page-overlay .ep-row-tv .ep-meta-line .ep-runtime { color: rgba(255,255,255,0.62); }
#mylist-episode-page-overlay .ep-row-tv .ep-meta-line .ep-meta-sep { color: #8b81a8; margin: 0 5px; }
/* v14.409: the runtime slot is always rendered so a late-hydrating runtime (anime,
   from MAL) has a target. While it holds no value, the slot and its separator take
   no space — the line reads as just the air date, exactly as before. */
#mylist-episode-page-overlay .ep-row-tv .ep-meta-line .ep-meta-sep.is-empty,
.ep-row-tv .ep-meta-line .ep-meta-sep.is-empty { display: none; }

/* 2. The per-episode star restyled as the shelf title-card "rating bubble" pill:
   v14.330: the star button now matches the comment button (.ep-imdb-comments-btn)
   sitting next to it — same 8px rounded-rect, translucent border/fill, and 26px
   height (was a champagne pill). The ★ stays gold and the value white. */
#mylist-episode-page-overlay .ep-row-tv .ep-rating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 26px;
  min-width: 30px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  font-size: calc(12.5 * var(--shelfd-px, 1px));
  font-weight: 500;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition: transform 270ms cubic-bezier(0.22, 1, 0.36, 1), background 270ms ease;
}
#mylist-episode-page-overlay .ep-row-tv .ep-rating-btn:active { transform: scale(0.92); }
#mylist-episode-page-overlay .ep-row-tv .ep-rating-btn .ep-rating-star {
  color: #E6C766;
  font-size: calc(12 * var(--shelfd-px, 1px));
}
/* unrated: dimmed gold star (button chrome still matches the comment button). */
#mylist-episode-page-overlay .ep-row-tv .ep-rating-btn:not(.has-rating) .ep-rating-star {
  color: rgba(230,199,102,0.62);
}
#mylist-episode-page-overlay .ep-row-tv .ep-rating-btn .ep-rating-val {
  color: rgba(255,255,255,0.92);
  font-variant-numeric: tabular-nums;
}
#mylist-episode-page-overlay .ep-row-tv .ep-rating-btn.is-future-locked {
  opacity: 0.5;
}

/* Episode still sizing. */
#mylist-episode-page-overlay .ep-row .ep-still {
  position: relative;
  overflow: hidden;
  /* v14.326: larger episode still (was 104x58) — 16:9 kept. The row grows
     vertically to the still (align-self:center), so this sets the whole
     episode card's height on the detail-page dropdown.
     v14.327: trimmed 3% (144x81 -> 140x78.75), 16:9 preserved.
     v14.331: sized so the whole episode card is 72px tall. Card = still height
     + 16px row padding (8 top + 8 bottom).
     v14.332: card = 81px; 81 - 16 = 65px still height; width = 65 x 16/9 =
     115.56px. 16:9 preserved.
     v14.334: card = 90px (3-line left column: title / air date + runtime /
     rating). 90 - 16 = 74px still height; width = 74 x 16/9 = 131.56px. The
     3-line stack (~65px) stays under 74px, so the still still drives height. */
  width: 131.56px;
  height: 74px;
}
/* v14.330: the IMDb episode-rating overlay on the still (added v14.325) was
   removed for TV and anime — not needed. Hard-hide any stragglers. */
#mylist-episode-page-overlay .ep-still-imdb { display: none !important; }


