/* The article header video (site/assets/video.js): plays muted behind the headline, then moves to
   the bottom-left corner as a player that can be dragged, resized, shrunk to a circle or closed. */

.rh-player .rh-video-frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity .5s; }
.rh-player.rh-ready .rh-video-frame { opacity: 1; }
/* faded out while the muted clip jumps back to its start, hiding YouTube's pause icon (video.js) */
.rh-player.rh-ready.rh-hold .rh-video-frame { opacity: 0; transition: opacity .25s; }
.rh-player .rh-video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
/* the iframe is taller than the player (YouTube's bars are cropped off); `overflow: hidden` boxes can still be
   scrolled, and focusing a control inside scrolled the video up out of place. `clip` can't be scrolled. */
.rh-player.rh-player { overflow: clip; }
/* clicks never reach YouTube (its own pause/replay overlays stay away); the player's controls handle them */
.rh-player .rh-video-frame { pointer-events: none; }
.rh-player .rh-ui { display: none; }
/* the theme's loading spinner sits over the middle of the video and would swallow clicks (pause, play) */
.rh-player .cs-video-loader { pointer-events: none; }
.rh-player.rh-ready .cs-video-loader { display: none; }
/* the page's lazy-load rule `div:not(.e-lazyloaded) svg { opacity: 0 }` would hide the player's icons (▶, ×) */
.rh-player.rh-player svg, .rh-ibtn.rh-ibtn svg { opacity: 1; }

/* while it floats the header is off screen; drop the header's stacking level so the player sits above the article */
html.rh-video-out .cs-entry__header-inner { z-index: auto; }
body:has(.rh-player.rh-touching) { user-select: none; -webkit-user-select: none; }

.rh-player.rh-floating,
.rh-player.rh-bubble { position: fixed; top: auto; right: auto; z-index: 60; background: #000; box-shadow: 0 18px 50px rgb(0 0 0 / .35); }
.rh-player.rh-floating { border-radius: 8px; animation: rh-in .3s cubic-bezier(.2, .8, .2, 1); }
.rh-player.rh-floating .rh-ui { display: block; }
@keyframes rh-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

/* top bar: drag the player by it; × on the right */
.rh-topbar { position: absolute; top: 0; left: 0; right: 22px; height: 40px; z-index: 3; display: flex; align-items: center; padding: 0 6px 0 10px;
  background: linear-gradient(180deg, rgb(0 0 0 / .7), transparent); cursor: grab; opacity: 0; transition: opacity .2s; touch-action: none; }
.rh-player.rh-floating:hover .rh-topbar,
.rh-player.rh-floating.rh-touching .rh-topbar,
.rh-player.rh-floating.rh-preview .rh-topbar { opacity: 1; }
.rh-topbar:active { cursor: grabbing; }
.rh-grip { display: flex; gap: 3px; opacity: .8; flex: none; }
.rh-grip i { width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.rh-title { flex: 1; min-width: 0; margin: 0 10px; color: #fff; font-family: var(--cs-font-secondary-family), sans-serif; font-size: 12px; font-weight: 600; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-ibtn { width: 30px; height: 30px; flex: none; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.rh-ibtn:hover, .rh-ibtn:focus-visible { background: rgb(0 0 0 / .9); }
.rh-ibtn svg { display: block; }

/* muted preview: the whole card drags, with a play button in the middle */
.rh-cover { position: absolute; inset: 0; z-index: 2; display: none; place-items: end; padding: 10px; cursor: grab; touch-action: none; }
.rh-player.rh-floating.rh-preview .rh-cover { display: grid; }
.rh-playbtn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .95); color: #111; padding: 9px 16px 9px 10px; cursor: pointer;
  font-family: var(--cs-font-secondary-family), sans-serif; font-size: 13px; font-weight: 700; line-height: 1; box-shadow: 0 6px 20px rgb(0 0 0 / .3); }
.rh-playbtn:hover, .rh-playbtn:focus { background: #fff; color: #111; }
.rh-playbtn span { width: 26px; height: 26px; border-radius: 50%; background: #111; display: grid; place-items: center; }
.rh-muted-tag { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: none; padding: 4px 8px; border-radius: 99px; background: rgb(0 0 0 / .55); color: #fff;
  font-family: var(--cs-font-secondary-family), sans-serif; font-size: 11px; font-weight: 600; line-height: 1.2; pointer-events: none; }
.rh-player.rh-floating.rh-preview .rh-muted-tag { display: block; }

.rh-soundbtn { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); z-index: 3; display: none; border: 0; border-radius: 999px; background: #fff; color: #111; cursor: pointer;
  padding: 8px 14px; font-family: var(--cs-font-secondary-family), sans-serif; font-size: 12px; font-weight: 700; line-height: 1; box-shadow: 0 6px 20px rgb(0 0 0 / .3); }
.rh-player.rh-floating.rh-needs-sound .rh-soundbtn { display: block; }
.rh-soundbtn:hover, .rh-soundbtn:focus { background: #fff; color: #111; }

/* resize from the top-right corner (the player is anchored bottom-left) */
.rh-player.rh-floating:not(.rh-preview) { cursor: pointer; }
/* the whole video, paused: its thumbnail and a white play button cover YouTube's "More videos" overlay */
.rh-pausecover {
  position: absolute; inset: 0; z-index: 2; display: none; place-items: center; padding: 0; border: 0; border-radius: inherit; cursor: pointer;
  background-color: #000; background-size: cover; background-position: center;
}
.rh-player.rh-floating:not(.rh-preview).rh-paused .rh-pausecover { display: grid; }
.rh-pausecover span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .95); color: #111; box-shadow: 0 6px 20px rgb(0 0 0 / .35); transition: transform .15s; }
.rh-pausecover span svg { width: 18px; height: 18px; margin-left: 3px; }
.rh-pausecover:hover span, .rh-pausecover:focus-visible span { background: #fff; transform: scale(1.06); }
/* the white control bar (play/pause, sound, seek, time) */
.rh-cbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: none; align-items: center; gap: 4px;
  padding: 26px 10px 8px; border-radius: 0 0 8px 8px; background: linear-gradient(0deg, rgb(0 0 0 / .72), transparent);
  opacity: 0; pointer-events: none; transition: opacity .2s; cursor: default;
}
.rh-player.rh-floating:not(.rh-preview) .rh-cbar { display: flex; }
.rh-player.rh-floating:not(.rh-preview):hover .rh-cbar, .rh-player.rh-floating:not(.rh-preview):focus-within .rh-cbar,
.rh-player.rh-cbar-show .rh-cbar, .rh-player.rh-touching .rh-cbar, .rh-player.rh-paused .rh-cbar { opacity: 1; pointer-events: auto; }
.rh-cbar button {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer; box-shadow: none; min-height: 0;
}
.rh-cbar button svg { display: block; }
.rh-cbar button:hover, .rh-cbar button:focus-visible { background: rgb(255 255 255 / .18); color: #fff; }
.rh-cbar .rh-cbar-time { flex: none; color: #fff; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: 2px; }
.rh-cbar input.rh-cbar-seek {
  --rh-pct: 0%; flex: 1; min-width: 30px; width: auto; height: 18px; min-height: 0; margin: 0 4px; padding: 0;
  border: 0 !important; border-radius: 0; box-shadow: none !important; background: transparent !important; outline: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.rh-cbar-seek::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--rh-pct), rgb(255 255 255 / .3) var(--rh-pct)); }
.rh-cbar-seek::-moz-range-track { height: 3px; border-radius: 2px; background: rgb(255 255 255 / .3); }
.rh-cbar-seek::-moz-range-progress { height: 3px; border-radius: 2px; background: #fff; }
.rh-cbar-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; border: 0; border-radius: 50%; background: #fff; }
.rh-cbar-seek::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #fff; }
@media (max-width: 480px) { .rh-cbar .rh-cbar-time { display: none; } }
.rh-resize { position: absolute; top: 0; right: 0; width: 22px; height: 22px; z-index: 4; cursor: nesw-resize; touch-action: none; opacity: 0; transition: opacity .2s; }
.rh-resize::after { content: ""; position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-top: 2px solid #fff; border-right: 2px solid #fff; }
.rh-player.rh-floating:hover .rh-resize,
.rh-player.rh-floating.rh-touching .rh-resize { opacity: 1; }
@media (hover: none) { .rh-player.rh-floating .rh-topbar, .rh-player.rh-floating .rh-resize { opacity: 1; } }

/* circle: × on the player keeps the video playing in a circle; tap it to open the player again */
.rh-player.rh-bubble { border-radius: 50%; border: 3px solid #fff; cursor: pointer; animation: rh-in .3s ease; touch-action: none; }
.rh-player.rh-bubble::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px #111; pointer-events: none; }
.rh-bubble-x { position: fixed; z-index: 61; display: none; width: 26px; height: 26px; }
.rh-bubble-x.rh-on { display: grid; }

/* ▶ in the header: the whole video in a large popup, with the Key takeaway and the article's sections beside it */
html.rh-pop-open, html.rh-pop-open body { overflow: hidden; }
.rh-pop { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; font-family: var(--cs-font-secondary-family), sans-serif; }
.rh-pop-scrim { position: absolute; inset: 0; background: rgb(0 0 0 / .82); animation: rh-fade .25s ease; }
.rh-pop-box { position: relative; width: min(1240px, 100%); max-height: calc(100vh - 32px); display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  background: #141416; color: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 90px rgb(0 0 0 / .5); animation: rh-pop .3s ease; }
@media (min-width: 901px) { .rh-pop-box > .rh-pop-video { box-shadow: 0 0 0 100vmax #000; clip-path: inset(-100vmax 0); } } /* black above and below the video in its column */
.rh-pop-video { position: relative; aspect-ratio: 16 / 9; background: #000; align-self: center; width: 100%; max-height: calc(100vh - 32px); }
.rh-pop-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- the popup video's own white controls (video-popup.js) ----
   YouTube still draws its title bar and logo with controls=0: the iframe is 400px taller than its box
   and centred, so they fall outside it while the video fills the box exactly. Clicks don't reach
   YouTube (no pause/replay overlays); the box handles them. */
.rh-pv { overflow: hidden; cursor: pointer; }
.rh-pv iframe { top: 50%; bottom: auto; height: calc(100% + 400px); transform: translateY(-50%); pointer-events: none; }
.rh-pv:fullscreen { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; }
.rh-pv .rh-pv-cover {
  position: absolute; inset: 0; z-index: 1; display: none; place-items: center; padding: 0; border: 0; border-radius: 0; cursor: pointer;
  background-color: #000; background-size: cover; background-position: center;
}
.rh-pv.rh-pv-paused .rh-pv-cover { display: grid; }
.rh-pv .rh-pv-cover span {
  width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .95); color: #111; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .15s;
}
.rh-pv .rh-pv-cover span svg { width: 22px; height: 22px; margin-left: 3px; }
.rh-pv .rh-pv-cover:hover span, .rh-pv .rh-pv-cover:focus-visible span { background: #fff; transform: scale(1.06); }
.rh-pv .rh-pv-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 6px;
  padding: 36px 14px 12px; background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent);
  opacity: 0; pointer-events: none; transition: opacity .2s; cursor: default;
}
.rh-pv:hover .rh-pv-bar, .rh-pv:focus-within .rh-pv-bar, .rh-pv.rh-pv-show .rh-pv-bar, .rh-pv.rh-pv-paused .rh-pv-bar { opacity: 1; pointer-events: auto; }
.rh-pv .rh-pv-bar button {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer; box-shadow: none; min-height: 0;
}
.rh-pv .rh-pv-bar button svg { display: block; }
.rh-pv .rh-pv-bar button:hover, .rh-pv .rh-pv-bar button:focus-visible { background: rgba(255, 255, 255, .18); color: #fff; }
.rh-pv .rh-pv-bar button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.rh-pv .rh-pv-time { flex: none; color: #fff; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; margin: 0 4px; }
/* the theme styles every <input> as a form field; this one is a plain white slider */
.rh-pv input.rh-pv-seek {
  --rh-pct: 0%; flex: 1; min-width: 40px; width: auto; height: 20px; min-height: 0; margin: 0 6px; padding: 0;
  border: 0 !important; border-radius: 0; box-shadow: none !important; background: transparent !important; outline: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.rh-pv-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--rh-pct), rgba(255, 255, 255, .3) var(--rh-pct)); }
.rh-pv-seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.rh-pv-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: #fff; }
.rh-pv-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -4.5px; border: 0; border-radius: 50%; background: #fff; }
.rh-pv-seek::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.rh-pv-seek:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
@media (max-width: 480px) { .rh-pv .rh-pv-time { display: none; } }
.rh-pop-side { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; overflow: auto; min-height: 0; max-height: calc(100vh - 32px); }
.rh-pop .rh-pop-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.rh-pop .rh-pop-x:hover, .rh-pop .rh-pop-x:focus-visible { background: rgb(255 255 255 / .25); color: #fff; }
.rh-pop .rh-pop-x svg { opacity: 1; }
.rh-pop-panel { display: contents; } /* its items are spaced by the panel's flex gap */
.rh-pop .rh-pop-kicker { margin: 0; padding-right: 48px; color: #fff; opacity: .7; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rh-pop .rh-pop-title { margin: 0; padding-right: 32px; color: #fff; font-family: var(--cs-font-primary-family, inherit), sans-serif; font-size: 18px; font-weight: 700; line-height: 1.3; }
.rh-pop .rh-pop-text { margin: 0; color: #c8c8c8; font-size: 13px; line-height: 1.6; }
.rh-pop .rh-pop-label { margin: 4px 0 0; color: #888; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rh-pop .rh-pop-sections { margin: 0; padding: 0; list-style: none; border-top: 1px solid #2a2a2e; font-size: 13px; line-height: 1.4; }
.rh-pop .rh-pop-sections li { margin: 0; border-bottom: 1px solid #2a2a2e; }
.rh-pop .rh-pop-sections a { display: flex; gap: 10px; padding: 10px 0; color: #ddd; text-decoration: none; }
.rh-pop .rh-pop-sections a:hover, .rh-pop .rh-pop-sections a:focus-visible { color: #fff; text-decoration: underline; }
.rh-pop .rh-pop-sections span { width: 28px; flex: none; color: #888; font-variant-numeric: tabular-nums; }
.rh-pop .rh-pop-read { display: block; text-decoration: none; margin-top: auto; align-self: stretch; text-align: center; border: 0; border-radius: 999px; padding: 13px 24px; background: #fff; color: #111;
  font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: normal; text-transform: none; cursor: pointer; }
.rh-pop .rh-pop-read:hover, .rh-pop .rh-pop-read:focus-visible { background: #e6e6e6; color: #111; }
@keyframes rh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rh-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .rh-pop { padding: 12px; }
  .rh-pop-box { grid-template-columns: 1fr; overflow: auto; max-height: calc(100vh - 24px); padding-top: 52px; }
  .rh-pop-side { position: static; overflow: visible; max-height: none; padding: 18px; }
  .rh-pop .rh-pop-x { top: 6px; right: 6px; }  /* in a bar above the video, clear of YouTube's own buttons */
}

@media (prefers-reduced-motion: reduce) {
  .rh-player.rh-floating, .rh-player.rh-bubble, .rh-pop-scrim, .rh-pop-box { animation: none; }
}

@media (max-width: 480px) {
  .rh-playbtn { padding: 6px 11px 6px 6px; font-size: 11px; gap: 6px; }
  .rh-playbtn span { width: 20px; height: 20px; }
  .rh-muted-tag { display: none !important; }
  .rh-topbar { height: 34px; }
  .rh-title { display: none; }
  .rh-topbar { justify-content: space-between; }
}
