/*
 * R24: the real video remains the primary watch-page content.
 * Loaded only on the nine existing owned watch pages, after R14/R17.
 * Every selector also requires the dedicated body class.
 * No changes to text, native player, metadata, source files, forms or the homepage.
 */
body.phx-watch-r24 .phx-video-page:not(.phx-video-library) {
  width: min(1160px, calc(100% - 32px));
  max-width: 1160px;
  margin: 12px auto 48px;
  padding: 0 24px 48px;
  direction: rtl;
  text-align: start;
}

body.phx-watch-r24 .phx-video-page:not(.phx-video-library) .phx-video-crumb {
  margin: 0 0 8px;
  line-height: 1.7;
}

body.phx-watch-r24 .phx-video-page:not(.phx-video-library) .phx-video-heading {
  display: block;
  width: min(100%, 960px);
  max-width: 960px;
  margin: 0 auto 14px;
  padding: 16px 24px;
  border-radius: 16px;
  background: #35295b;
  color: #fff;
}

body.phx-watch-r24 .phx-video-page:not(.phx-video-library) .phx-video-heading > p.phx-video-eyebrow:first-child {
  margin: 0 0 4px;
  color: #fac154;
  font-size: 12px;
  line-height: 1.7;
}

body.phx-watch-r24 .phx-video-page:not(.phx-video-library) .phx-video-heading h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.4;
  text-wrap: pretty;
}

body.phx-watch-r24 .phx-video-page:not(.phx-video-library) .phx-video-heading > p.phx-video-lead:last-child:not(:first-child) {
  max-width: none;
  margin: 0;
  color: #eee7f5;
  font-size: 14px;
  line-height: 1.8;
}

body.phx-watch-r24 .phx-video-page:not(.phx-video-library) .phx-video-player {
  display: block;
  float: none;
  margin: 0 auto;
  border-radius: 16px;
}

/*
 * Intentionally preserve video-library.css's desktop player width/height cap:
 * min(100%, 960px, max(240px, 100svh - 350px) * 16/9).
 * The correction removes the oversized pre-player heading and vertical gaps,
 * rather than shrinking the video or changing its native controls.
 */
@media (max-width: 600px) {
  body.phx-watch-r24 .phx-video-page:not(.phx-video-library) {
    width: calc(100% - 24px);
    margin: 10px auto 40px;
    padding: 0 0 40px;
  }

  body.phx-watch-r24 .phx-video-page:not(.phx-video-library) .phx-video-heading {
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 13px;
  }

  body.phx-watch-r24 .phx-video-page:not(.phx-video-library) .phx-video-heading h1 {
    font-size: 23px;
    line-height: 1.5;
  }

  body.phx-watch-r24 .phx-video-page:not(.phx-video-library) .phx-video-heading > p.phx-video-lead:last-child:not(:first-child) {
    font-size: 13px;
    line-height: 1.8;
  }

  body.phx-watch-r24 .phx-video-page:not(.phx-video-library) .phx-video-player {
    border-radius: 11px;
  }
}

