/* The existing hosted JW embed, configuration and native controls are preserved. */
.watch-player{scroll-margin-top:calc(var(--watch-sticky-offset,96px) + 12px);position:relative;min-width:0}
/* Lift the existing shell, not just JW's child: player-stage is an isolated
   stacking context. Keep floating content above cards/ads and below nav (100). */
.watch-player[data-floating=true]{z-index:80}
.watch-container .player-stage{overflow:visible;margin:0;background:var(--ce-neutral-900);isolation:isolate}
.watch-player-mount{width:100%;height:100%;min-height:100%;background:var(--ce-neutral-900);color:var(--ce-white)}
.watch-player-mount:not(.jwplayer){display:grid;place-items:center;position:absolute;inset:0}
.player-loading{font-size:16px;color:var(--ce-neutral-300)}
.watch-player .jwplayer:not(.jw-flag-fullscreen){width:100%!important;height:100%!important;position:absolute;inset:0}
.watch-player .jwplayer:not(.jw-flag-floating) .jw-wrapper{border-radius:7px}
.watch-player .jwplayer.jw-flag-floating{z-index:80}
.watch-player .jwplayer.jw-flag-floating .jw-wrapper{border-radius:5px;box-shadow:0 10px 34px #11111a44}
/* Title block: type label, title, standfirst, then a single byline row with Share. */
.watch-type{margin:0;font-size:14px;font-weight:700;color:var(--ce-neutral-700)}
.watch-title h1{font-size:32px;line-height:1.13;margin:6px 0 10px;font-weight:800}
.watch-title .video-article-standfirst{font-size:20px;font-weight:400;line-height:1.4;color:var(--ce-neutral-700);margin:0 0 4px;max-width:65ch}
.watch-title .watch-byline{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:16px;padding-bottom:20px;border-bottom:1px solid var(--ce-neutral-200)}
.watch-credit{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0;font-size:14px;line-height:1.4;color:var(--ce-neutral-700)}
.watch-credit>span+span:before{content:'·';margin-right:8px;color:var(--ce-neutral-500)}
.watch-credit strong{font-weight:700;color:var(--ink)}
.watch-title-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto;min-width:0}
.watch-title .share-video{display:inline-flex;align-items:center;gap:6px;min-height:32px;margin:0;padding:4px 8px;border:0;border-radius:var(--ce-radius-xs);background:none;font-size:14px;font-weight:700;color:var(--ink)}
.watch-title .share-video svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.watch-title .share-video:hover{background:var(--ce-neutral-100)}
.watch-title .share-video .share-check{width:16px;height:16px;fill:var(--ce-success);stroke:none}

/* Viewing controls stay with the byline in every layout. */
.watch-player-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.watch-player-toolbar[hidden]{display:none}
.watch-mode-button{display:inline-flex;align-items:center;gap:6px;min-height:32px;margin:0;padding:4px 8px;border:0;border-radius:var(--ce-radius-xs);background:none;font-size:14px;font-weight:700;line-height:1.3;color:var(--ce-neutral-700)}
.watch-mode-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0}
.watch-mode-button:hover{background:var(--ce-neutral-100);color:var(--ink)}
.watch-mode-button[aria-pressed=true]{color:var(--ce-primary-500);background:var(--ce-primary-050)}
.watch-mode-button[aria-pressed=true]:hover{color:var(--ce-primary-600);background:var(--ce-primary-100)}
/* The player already spans the screen on small viewports, so theatre mode is desktop/tablet only. */
@media(max-width:767px){#theatre-toggle{display:none}}
.watch-player-error{font-size:16px;background:var(--ce-primary-050);border:1px solid var(--ce-primary-200);border-radius:5px;padding:16px;margin-bottom:0}
.watch-player-error a{font-weight:700;text-underline-offset:3px}
/* The player row and story have independent column proportions. Placement is CSS-only:
   the same rendered MREC stays in its rail through responsive/theatre changes. */
.watch-grid{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
.watch-rail{display:contents}
.watch-player{order:1}
.watch-title{order:2;margin-top:24px;min-width:0}
.watch-chapters{order:3;margin-top:24px;min-width:0;min-height:0}
.watch-rail>.video-ad-slot--player-mrec{order:4;margin:16px auto 0}
.watch-body-grid{display:grid;grid-template-columns:minmax(0,1fr);margin-top:28px;align-items:stretch}
.watch-story{min-width:0}
.watch-sidebar{display:flex;flex-direction:column;gap:0;min-width:0;margin-top:40px;padding-bottom:40px}
.watch-sidebar>.video-ad-slot--sidebar{flex:1;align-self:stretch}
@media(min-width:1024px){
  .watch-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr);column-gap:28px}
  .watch-player{grid-column:1;grid-row:1}
  .watch-title{grid-column:1;grid-row:2}
  /* A zero intrinsic rail height lets the 16:9 player set the row's height. */
  .watch-rail{display:grid;grid-template-rows:minmax(0,1fr) 250px;gap:16px;grid-column:2;grid-row:1;height:0;min-height:100%;min-width:0}
  .watch-rail>.watch-chapters{grid-row:1;display:flex;flex-direction:column;margin:0;overflow:hidden}
  .watch-rail>.video-ad-slot--player-mrec{grid-row:2;margin:0;align-self:end}
  .watch-body-grid{grid-template-columns:minmax(0,1fr) 325px;column-gap:64px}
  .watch-sidebar{margin-top:0}
  /* The natural-flow wrapper reserves spacing; the surface alone sticks, confined
     to the story sidebar, well before related content and the footer. */
  .watch-sidebar .video-ad-slot--sticky[data-sticky-fits=true]>.video-ad-surface{position:sticky;top:calc(var(--watch-sticky-offset,96px) + 12px)}
}

/* Chapters: horizontal previews on mobile and in theatre, a vertical rail on desktop. */
.chapter-heading{display:flex;align-items:baseline;gap:8px;margin-bottom:10px}
#chapters-title{margin:0;font-size:16px;font-weight:800;line-height:1.3}
.chapter-heading>span{font-size:14px;color:var(--muted);white-space:nowrap}
.chapter-list{display:flex;gap:12px;list-style:none;margin:0;padding:0 0 8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:thin;overscroll-behavior-x:contain}
.chapter-list li{flex:0 0 160px;min-width:0;scroll-snap-align:start}
.chapter-button{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%;height:100%;padding:0;border:0;border-radius:var(--ce-radius-md);background:none;text-align:left;font-size:14px;line-height:1.25}
.chapter-button:disabled{cursor:wait}
.chapter-thumbnail,.chapter-marker{display:block;width:100%;aspect-ratio:16/9;border-radius:var(--ce-radius-md);background-color:var(--ce-neutral-100);background-repeat:no-repeat}
.chapter-marker{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--ce-neutral-700)}
.chapter-marker>span{font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.chapter-marker svg{width:14px;height:14px}
.chapter-copy{display:flex;flex-direction:column;gap:2px;min-width:0;padding:0 2px}
.chapter-name{font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.chapter-time{font-variant-numeric:tabular-nums;font-size:12px;color:var(--ce-neutral-700);white-space:nowrap}
.chapter-button:hover:not(:disabled) .chapter-name{text-decoration:underline;text-underline-offset:3px}
.chapter-button:hover:not(:disabled) :is(.chapter-thumbnail,.chapter-marker){box-shadow:inset 0 0 0 2px var(--ce-neutral-300)}
/* Current chapter: an inset brand-red ring (outside rings get clipped by the strip's scroll box). */
.chapter-button[aria-current=true] :is(.chapter-thumbnail,.chapter-marker){box-shadow:inset 0 0 0 3px var(--ce-primary-500)}
.chapter-button[aria-current=true] .chapter-time{color:var(--ce-primary-600);font-weight:700}

/* A compact vertical list fits above the bottom-aligned desktop MREC. */
@media(min-width:1024px){
  .watch-container:not(.is-theatre) .watch-rail .chapter-heading{flex:none;margin-bottom:8px}
  .watch-container:not(.is-theatre) .watch-rail .chapter-list{display:block;min-height:0;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y proximity;padding:0 4px 0 0;overscroll-behavior-y:contain}
  .watch-container:not(.is-theatre) .watch-rail .chapter-list li+li{margin-top:8px}
  .watch-container:not(.is-theatre) .watch-rail .chapter-button{flex-direction:row;align-items:center;gap:8px;min-height:46px}
  .watch-container:not(.is-theatre) .watch-rail :is(.chapter-thumbnail,.chapter-marker){width:80px;flex-shrink:0}
}

.watch-story .video-article-body,.watch-story .video-article-body--continued,.watch-story .video-context{padding-top:0}
.watch-story .video-description{margin-top:0}
/* Explore more videos: library shortcuts as a list card, matching Explore the cars. */
.watch-explore{margin-top:8px}
.watch-explore h2{font-size:20px;font-weight:800;line-height:1.2;margin:0 0 12px}
.explore-list{list-style:none;margin:0;padding:0;border:1px solid var(--ce-neutral-300);border-radius:var(--ce-radius-md);overflow:hidden;background:var(--ce-white)}
.explore-list li+li{border-top:1px solid var(--ce-neutral-200)}
.explore-list a{display:flex;align-items:center;gap:10px;min-height:52px;padding:10px 12px 10px 16px;text-decoration:none;color:var(--ink);transition:background .15s}
.explore-list a:hover{background:var(--ce-neutral-100)}
.explore-list a:active{background:var(--ce-neutral-200)}
.explore-list a:focus-visible{outline:3px solid var(--ce-secondary-500);outline-offset:-3px}
.explore-list a:hover svg,.explore-list a:focus-visible svg{fill:var(--ink);transform:translateX(2px)}
.explore-label{flex:1;min-width:0;font-size:16px;font-weight:700;line-height:1.3}
.explore-count{font-size:14px;font-weight:500;color:var(--ce-neutral-700);font-variant-numeric:tabular-nums}
.explore-list svg{width:20px;height:20px;flex-shrink:0;fill:var(--ce-neutral-700);transition:transform .15s,fill .15s}
.floating-return{position:fixed;z-index:81;pointer-events:none}
.floating-return button{pointer-events:auto;display:flex;align-items:center;gap:7px;background:var(--ce-neutral-900);color:var(--ce-white);box-shadow:0 2px 12px #11111a22;border:1px solid var(--ce-neutral-800);border-radius:4px 4px 0 0;font-size:12px;font-weight:700;line-height:1;padding:8px 11px;min-height:34px}
.floating-return button:hover{background:var(--ce-neutral-800)}
.floating-return button span{font-size:16px;line-height:1}
/* Theatre changes only CSS placement: one player, one mount per display slot. */
.watch-container.is-theatre .watch-player{grid-column:1/-1;width:var(--watch-viewport-width,100vw);margin-left:calc((100% - var(--watch-viewport-width,100vw))/2);padding:0 max(24px,calc((var(--watch-viewport-width,100vw) - 1680px)/2));background:var(--ce-neutral-900)}
/* A true 16:9 player centred in the band, with room around it for the ambient glow. */
.watch-container.is-theatre .player-stage{aspect-ratio:16/9;height:min(75vh,calc((100vw - 48px)*9/16));max-height:945px;width:auto;max-width:100%;margin-inline:auto;border-radius:var(--ce-radius-md)}
.watch-container.is-theatre .jwplayer:not(.jw-flag-floating) .jw-wrapper{border-radius:0}
/* Theatre order: player, title, then chapters plus the unchanged 300px MREC. */
.watch-container.is-theatre .watch-grid{grid-template-columns:minmax(0,1fr) 300px;column-gap:28px}
.watch-container.is-theatre .watch-player{grid-row:1}
.watch-container.is-theatre .watch-title{grid-column:1/-1;grid-row:2}
.watch-container.is-theatre .watch-rail{display:contents}
.watch-container.is-theatre .watch-chapters{display:block;grid-column:1;grid-row:3;align-self:start;margin:24px 0 0;overflow:visible}
.watch-container.is-theatre .watch-rail>.video-ad-slot--player-mrec{grid-column:2;grid-row:3;margin:24px 0 0;align-self:start}
@media(max-width:1023px){.watch-container.is-theatre .watch-player{padding:0 18px}.watch-container.is-theatre .player-stage{height:min(75vh,calc((100vw - 36px)*9/16))}}
@media(max-width:540px){
  .watch-container .player-stage{border-radius:0;margin:0}
  .watch-player{width:calc(100% + var(--video-gutter)*2);margin-inline:calc(var(--video-gutter)*-1)}
  .watch-title h1{font-size:26px;margin:6px 0 10px}
  .watch-title .video-article-standfirst{font-size:18px}
  .watch-title .watch-byline{padding-bottom:16px}
  /* Credit on its own line, so the facts line never starts with a separator. */
  .watch-credit>span:first-child{flex-basis:100%}
  .watch-credit>span:nth-child(2):before{display:none}
  .watch-chapters{margin-inline:calc(var(--video-gutter)*-1)}
  .chapter-heading{padding-inline:var(--video-gutter)}
  .chapter-list{padding-inline:var(--video-gutter);scroll-padding-inline:var(--video-gutter)}
  .watch-container.is-theatre .watch-player{padding:0}
  .watch-container.is-theatre .player-stage{height:calc(100vw*9/16)}
}
/* JW's mobile floating wrapper docks at the top; reserve the measured header
   and any live Fillboard strip. Desktop's bottom-right docking is untouched. */
@media(max-width:1023px){
  .watch-player .jwplayer.jw-flag-floating:not(.jw-flag-fullscreen) .jw-wrapper{top:var(--watch-sticky-offset,58px)!important;bottom:auto!important}
}
@media(max-width:374px){
  .watch-rail>.video-ad-slot--player-mrec{width:calc(100% + var(--video-gutter)*2);max-width:none;margin-left:calc(var(--video-gutter)*-1);margin-right:calc(var(--video-gutter)*-1)}
}
@media(prefers-reduced-motion:reduce){.watch-player,.chapter-list{scroll-behavior:auto}}

/* Default <-> theatre: each block morphs to its new size/position in a view transition (watch.js). */
.watch-player{view-transition-name:watch-player}
.watch-chapters{view-transition-name:watch-chapters}
.watch-title{view-transition-name:watch-title}
.watch-story{view-transition-name:watch-story}
::view-transition-group(watch-player),::view-transition-group(watch-chapters),
::view-transition-group(watch-title),::view-transition-group(watch-story){animation-duration:.35s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
::view-transition-old(watch-player),::view-transition-new(watch-player){height:100%;object-fit:cover}
@media(prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

/* Theatre ambient glow: replaces the flat black band with the video's colours. The thumbnail (blurred) shows at
   once; watch.js then paints the playing frame onto a 32x18 canvas a few times a second for a live glow. */
.theatre-ambient{display:none}
.watch-container.is-theatre .theatre-ambient{display:block;position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.theatre-ambient-poster,.theatre-ambient-live{position:absolute;inset:-10%;width:120%;height:120%;object-fit:cover;filter:blur(64px) saturate(1.25) brightness(.6);transform:scale(1.1)}
.theatre-ambient-poster{opacity:.8}
.theatre-ambient-live{opacity:0;transition:opacity 1.2s ease}
.theatre-ambient.is-live .theatre-ambient-live{opacity:.8}
.theatre-ambient:after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 50%,rgba(17,17,26,.1) 40%,rgba(17,17,26,.5) 85%,rgba(17,17,26,.75) 100%)}
.watch-container.is-theatre .watch-player{isolation:isolate}
.watch-container.is-theatre .player-stage{z-index:1}

/* Buy CTA, after the main site's ClosingCtaV2: neutral-100 card, 16px radius, 20px padding. The avatar is a 70px red
   ring with the specialist's portrait masked in a taller 70x94 pill so the head breaks out above the ring. */
.buy-cta{display:flex;align-items:center;gap:24px;margin-top:40px;padding:20px;border-radius:var(--ce-radius-ml);background:var(--ce-neutral-100)}
.buy-cta-avatar{position:relative;flex-shrink:0;width:70px;height:77px}
/* With a car: the cutout sits behind and to the right of the avatar, raised 26px so the two are offset vertically. Width and height are capped,
   never both set, so the cutout keeps its own shape and is never cropped. */
.buy-cta-art{position:relative;flex-shrink:0}
.buy-cta-art--car{width:210px;height:116px}
.buy-cta-art--car .buy-cta-avatar{position:absolute;left:0;bottom:0;z-index:1}
.buy-cta-car{position:absolute;right:0;bottom:26px;display:block;width:auto;height:auto;max-width:170px;max-height:96px}
.buy-cta-avatar-ring{position:absolute;left:0;top:7px;width:70px;height:70px;box-sizing:border-box;border:3px solid var(--ce-white);border-radius:50%;background:var(--ce-primary-500);box-shadow:2px 2px 12px 0 rgba(0,0,0,.25)}
.buy-cta-avatar-photo{position:absolute;left:0;top:-17px;width:70px;height:94px;overflow:hidden;border-radius:9999px}
.buy-cta-avatar-photo img{position:absolute;left:0;top:18px;width:70px;height:76px;object-fit:cover}
.buy-cta-copy{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:1 1 auto;min-width:0}
.buy-cta h2{margin:0;font-size:26px;font-weight:800;line-height:1.2;color:var(--ce-neutral-900)}
.buy-cta p{margin:0;max-width:780px;font-size:20px;font-weight:500;line-height:26px;color:var(--ce-neutral-700)}
.buy-cta-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-top:12px}
.buy-cta-link{display:inline-flex;align-items:center;gap:4px;font-size:16px;font-weight:600;color:var(--ce-primary-600);text-decoration:none;transition:color .15s}
.buy-cta-link svg{width:18px;height:18px;transition:transform .15s}
.buy-cta-link:hover{color:var(--ce-primary-700)}.buy-cta-link:hover svg{transform:translateX(2px)}
.buy-cta-link:focus-visible{outline:3px solid var(--ce-secondary-500);outline-offset:3px}
@media(max-width:895px){.buy-cta{flex-direction:column;align-items:flex-start;gap:20px}.buy-cta p{font-size:18px;line-height:24px}.buy-cta-actions{align-self:stretch}.buy-cta-button{flex:1 1 100%}}
