/* The show page (art/ui/web/watch/desktop2.html -> d2-a-show-page.png): phone first, laid out by the page's own width (a container query on #app, never the viewport and never
   a coordinate). Sizes and gaps are the mockup's (the 1440 desktop); every size that grows with the page is a clamp() of the container's width, so the mockup's own numbers
   come out exactly at its own width. The hero is as tall as its copy and its padding make it (the mockup's 712 at 1440 is what they come to, not a number of ours); the
   phone has no mockup of its own and takes the home's phone hero (art 130 cqw, the copy from 89.7 cqw). The preview layer is hero.css's. */
.show { --pad: 22px; }

.show-hero { --art-h: 130cqw; --art-w: 64%; position: relative; overflow: hidden; padding-top: 89.7436cqw; padding-bottom: 34px; }
.show-hero .hero-media { position: absolute; top: 0; left: 0; right: 0; height: var(--art-h); }
.show-hero .hero-art { position: absolute; inset: 0; --mask-left: var(--mask-all); }
.show-hero .hero-art .pic img { object-position: 50% 30%; }
.show-hero .hero-fade { position: absolute; top: 0; left: 0; right: 0; height: 203.6cqw; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 11, .55) 0%, rgba(10, 10, 11, 0) 12.8%, rgba(10, 10, 11, 0) 29.8%, rgba(10, 10, 11, .92) 59.6%, var(--bg) 72.4%); }
.show-hero .hero-copy { position: relative; padding: 0 var(--pad); }
.show-hero .original { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .3em; color: var(--gold); }
.show-hero .title { display: block; font-family: var(--display); font-weight: 800; font-size: 60px; line-height: .86; margin: 10px 0 14px; }
.tagline { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .28em; color: var(--softer); padding-top: 10px; border-top: 4px solid var(--gold); }
.show-hero .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; color: #c4c4cc; margin: 16px 0 18px; }
.show-hero .meta .dot { opacity: .5; }
.show-hero .buttons { display: grid; gap: 10px; }
.show-hero .buttons.is-pending { visibility: hidden; }                                    /* a member's buttons wait for /api/me: the place is kept, nothing shows wrong */
.show-hero .btn { height: 56px; padding: 0 20px; border-radius: var(--radius-big); font-size: 17px; }
.show-hero .btn svg { width: 20px; height: 20px; }
.show-hero .show-play { background: var(--gold); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 21px; }
.show-hero .show-play:hover { background: var(--gold-hi); }
.show-hero .show-remind.is-on { color: var(--gold); }
.synopsis { font-size: 15px; line-height: 1.5; color: var(--softer); margin-top: 18px; }
.nextdrop { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 16px; font-size: 14px; color: var(--softer); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 6px 14px; }   /* 16 px is a capsule at one line (32 px high), a rounded box at two */
.nextdrop-line { display: block; min-width: 0; text-wrap: balance; }                      /* the sentence, flowing and wrapping inside the pill (a phone, and a page too narrow for the desktop's) */
.nextdrop svg { flex: none; width: 16px; height: 16px; color: var(--gold); }
.nextdrop b { color: var(--gold); font-weight: 700; }

/* the episode list's own rules (the phone's layout, which the wide block below overrides) are episodes.css: the player's Parts drawer draws the same rows */

/* ---- the wide page ------------------------------------------------------------------------------------------------------------------- */
@container page (min-width: 700px) {
  .probe.wide-only { display: block; }                                                    /* lib/layout.js reads the layout from this: without it isWide() was false on a wide show page (the hero's preview took the 9:16 teaser and drew no blurred copy) */
  .show { --pad: clamp(24px, 4.4444cqw, 64px); }
  .show-hero { padding: clamp(110px, 11.6667cqw, 220px) 0 34px; }
  .show-hero .hero-media { inset: 0; height: auto; }
  .show-hero .hero-art { left: auto; width: var(--art-w); --mask-left: var(--mask-left-full); --mask-bottom: var(--mask-all); }
  .show-hero .hero-art .pic img { object-position: 50% 36%; }
  .show-hero .hero-fade { height: auto; inset: 0;
    background: linear-gradient(90deg, var(--bg) 30%, rgba(10, 10, 11, .7) 46%, rgba(10, 10, 11, 0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, 0) 32%); }
  .show-hero .hero-copy { margin-left: var(--pad); width: min(620px, 46cqw); padding: 0; }
  .show-hero .original { font-size: 14px; }
  .show-hero .title { font-size: clamp(64px, 6.9444cqw, 128px); margin: 16px 0 14px; }
  .tagline { font-size: 14px; }
  .show-hero .meta { display: block; font-size: 15px; margin: 18px 0 20px; }
  .show-hero .meta .dot { margin: 0 .3em; }
  .show-hero .buttons { display: flex; gap: 12px; }
  .show-hero .btn { height: 50px; padding: 0 24px; border-radius: var(--radius-btn); font-size: 17px; }
  .show-hero .show-play { background: #fff; color: var(--ink); font-family: var(--body); font-weight: 700; font-size: 17px; }
  .show-hero .show-play:hover { background: var(--softer); }
  .synopsis { font-size: 17px; line-height: 1.55; color: #e4e4e7; margin-top: 22px; max-width: 540px; }
  .nextdrop { font-size: 15px; color: #e4e4e7; }
  .eps-head h2 { font-size: 28px; }
  .ep { grid-template-columns: 48px 78px minmax(0, 1fr); gap: 0 22px; padding: 18px 20px 18px 8px; }
  .ep-no { font-size: 30px; }
  .ep-th { width: 78px; height: 139px; }
  .ep-play span { width: 34px; height: 34px; }
  .ep-play svg { width: 14px; height: 14px; }
  .ep-lock svg { width: 22px; height: 22px; }
  .ep-clock svg { width: 26px; height: 26px; }
  .ep-row1 { flex-wrap: nowrap; gap: 12px; }
  .ep-title { font-size: 18px; }
  .ep-aside { flex-basis: auto; margin-left: auto; }
  .ep-dur { font-size: 15px; }
  .ep-teaser { font-size: 15px; max-width: 860px; }
  .ep-bar { margin-top: 16px; }
  .eps { padding-bottom: 96px; }
}

/* the pill as the mockup draws it, four flex items 8 px apart, needs the copy's width to hold it (the copy is 46 % of the page up to 620 px, the pill about 410 to 465 px): from 1100 up */
@container page (min-width: 1100px) {
  .nextdrop-line { display: contents; }
}

@media (prefers-reduced-motion: reduce) {
  .ep { transition-duration: var(--fade-ms); }
}
