.discovery-player-open{overflow:hidden}.discovery-player{color:var(--paper);background:var(--widget-glass);border:1px solid #c2cfe024;border-radius:14px;padding:0;width:min(680px,calc(100vw - 48px));max-width:none;height:auto;max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;box-shadow:0 28px 100px #0009;-webkit-backdrop-filter:var(--widget-blur);backdrop-filter:var(--widget-blur)}.discovery-player::backdrop{background:var(--widget-glass);backdrop-filter:blur(5px)}.discovery-player-shell{position:relative}.discovery-player-toolbar{height:48px;display:flex;align-items:center;justify-content:space-between;padding:2px 10px;background:var(--widget-glass);position:sticky;top:0;z-index:4;-webkit-backdrop-filter:var(--widget-blur);backdrop-filter:var(--widget-blur)}.discovery-player button{color:var(--paper);border:1px solid var(--line);background:var(--control-glass);border-radius:8px;min-width:44px;min-height:44px;font-size:var(--text-title);cursor:pointer;-webkit-backdrop-filter:var(--widget-blur);backdrop-filter:var(--widget-blur)}.discovery-player button:hover{background:var(--control-glass);-webkit-backdrop-filter:var(--widget-blur);backdrop-filter:var(--widget-blur)}.discovery-player button:disabled{opacity:.3;cursor:default}.discovery-player-neighbours{display:flex;gap:8px}.discovery-player-viewport{position:relative;background:var(--widget-glass);aspect-ratio:16/9;max-height:none;min-height:0;overflow:hidden;-webkit-backdrop-filter:var(--widget-blur);backdrop-filter:var(--widget-blur)}.discovery-player-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}.discovery-player-frame,.discovery-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.discovery-player-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;padding:28px;text-align:center;background:var(--widget-glass);z-index:2;font-size:var(--text-small);-webkit-backdrop-filter:var(--widget-blur);backdrop-filter:var(--widget-blur)}.discovery-player-status[hidden],.discovery-player [hidden]{display:none!important}.discovery-player-status button{font-size:var(--text-small);padding:8px 16px}.player-loading .discovery-player-status:before{content:'';width:22px;height:22px;border:2px solid #eac08b33;border-top-color:var(--gold);border-radius:50%;animation:discovery-spin 1s linear infinite}.discovery-player-expand{position:absolute;right:8px;top:8px;z-index:3;background:var(--widget-glass)!important;opacity:.75;-webkit-backdrop-filter:var(--widget-blur);backdrop-filter:var(--widget-blur)}.discovery-player-expand:hover,.discovery-player-expand:focus-visible{opacity:1}.discovery-player-app{display:none;position:absolute;top:14px;left:72px;z-index:3;font-size:var(--text-caption);text-decoration:none;background:var(--widget-glass);padding:8px 12px;border-radius:8px;-webkit-backdrop-filter:var(--widget-blur);backdrop-filter:var(--widget-blur)}.discovery-player-copy{padding:22px 28px 26px;max-width:860px}.discovery-player-meta{font-size:var(--text-caption);color:var(--gold);margin:0 0 8px}.discovery-player-copy h2{font-size:clamp(var(--text-title),3vw,var(--text-display));line-height:1.2;letter-spacing:-.03em;margin:0 0 12px;text-wrap:pretty}.discovery-player-summary{font-size:var(--text-small);line-height:1.65;margin:0;color:var(--muted);max-width:72ch}.discovery-player-details{font-size:var(--text-small);margin:12px 0 0;color:var(--muted)}.discovery-player-details p{white-space:pre-line;line-height:1.7}.discovery-player-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:18px}.discovery-player.player-expanded{width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.player-expanded .discovery-player-shell{height:100%}.player-expanded .discovery-player-toolbar{position:absolute;left:8px;top:8px;right:60px;background:transparent;pointer-events:none}.player-expanded .discovery-player-toolbar button{pointer-events:auto;background:var(--control-glass);-webkit-backdrop-filter:var(--widget-blur);backdrop-filter:var(--widget-blur)}.player-expanded .discovery-player-viewport{height:100%;max-height:none;min-height:0;aspect-ratio:auto}.player-expanded .discovery-player-copy{display:none}.player-expanded .discovery-player-app{display:block}.player-expanded .discovery-player-expand{top:10px}
@keyframes discovery-spin{to{transform:rotate(360deg)}}
@media(max-width:700px){.discovery-player{width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.discovery-player-toolbar{padding-inline:6px;height:46px}.discovery-player-copy{padding:18px 18px 28px}.discovery-player-viewport{aspect-ratio:16/9;max-height:none;min-height:0}.discovery-player-copy h2{font-size:var(--text-title)}.discovery-player-actions{gap:12px}.discovery-player-summary{font-size:var(--text-small)}.discovery-player-actions .launch{font-size:var(--text-caption);padding:10px 14px}}
@media(prefers-reduced-motion:reduce){.player-loading .discovery-player-status:before{animation:none}}


/* One aligned top row: close, app link, previous, next, expand. */
.discovery-player-toolbar button,.discovery-player-expand{width:44px;height:44px;padding:0;flex:none}
.discovery-player-toolbar{padding-block:0}
.discovery-player-app{box-sizing:border-box;left:62px;top:10px;max-width:calc(100% - 228px);height:44px;padding:0 8px;font-size:var(--text-caption);white-space:nowrap;align-items:center;justify-content:center;gap:6px}
.player-expanded .discovery-player-toolbar{left:8px;top:10px;right:60px;height:44px;padding:0}
.player-expanded .discovery-player-app{display:flex}
.discovery-player-neighbours{gap:4px}
@media(max-width:700px){.discovery-player-actions{align-items:flex-start;gap:8px}.discovery-player-actions .launch{min-height:44px;font-size:var(--text-caption);gap:10px}.discovery-player-expand{top:10px}}
@media(max-width:380px){.discovery-player-app{font-size:var(--text-caption);padding-inline:5px;gap:4px}.discovery-player-app .site-icon{width:12px;height:12px}}

/* Loading artwork must never capture gestures intended for the native player. */
.discovery-player-poster{pointer-events:none;user-select:none;-webkit-user-drag:none}

/* A height-constrained landscape scene keeps its intrinsic ratio and centres
   with the reading column, instead of leaving unused space on the right. */
.discovery-player-viewport{margin-inline:auto}
.discovery-player-copy{box-sizing:border-box;margin-inline:auto;width:100%}
.discovery-player-copy{padding:16px 24px 20px}
.discovery-player-copy h2{font-size:var(--text-heading);font-weight:400;line-height:1.35;letter-spacing:-.015em;margin-bottom:8px}
.discovery-player-meta{margin-bottom:6px}
.discovery-player-summary{max-width:none}
.discovery-player-details{margin-top:4px}
.discovery-player-actions{margin-top:8px}
@media(min-width:701px) and (min-height:551px){
 .discovery-player:not(.player-expanded){width:min(680px,calc(100vw - 48px));height:fit-content}
 .discovery-player:not(.player-expanded) .discovery-player-viewport{width:100%;height:auto;max-height:none;aspect-ratio:16/9}
}
/* Reserve the right end for the widget's play/reset pair and host expansion. */
.player-expanded .discovery-player-toolbar{right:156px}
.player-expanded .discovery-player-app{max-width:calc(100% - 328px)}
@media(max-width:600px){.player-expanded .discovery-player-app{display:none}}

/* Keep the outer chrome aligned above the native scene controls. The reading
   preview has an intrinsic landscape ratio; only explicit expansion fills it. */
.discovery-player-toolbar button,.discovery-player-expand{display:inline-flex;align-items:center;justify-content:center;border-color:var(--line)}
.discovery-player-app,.discovery-player-actions .launch{border:1px solid var(--line);background:var(--control-glass);color:var(--paper);border-radius:var(--control-radius);-webkit-backdrop-filter:var(--widget-blur);backdrop-filter:var(--widget-blur)}
.player-expanded .discovery-player-toolbar{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
@media(max-width:700px){.discovery-player:not(.player-expanded){height:auto;max-height:calc(100dvh - 16px);width:calc(100vw - 16px);margin:auto;border:1px solid var(--line);border-radius:var(--surface-radius,16px)}}

/* Match the embedded play/reset row: 44px targets, 6px spacing, no bar padding. */
.discovery-player .discovery-player-expand{box-sizing:border-box;top:max(10px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));width:44px;height:44px;min-width:44px;min-height:44px}
.player-expanded .discovery-player-toolbar{top:max(10px,env(safe-area-inset-top));right:calc(max(8px,env(safe-area-inset-right)) + 150px)}

/* Compact synopsis header follows the image; the reading area leads into one
   full-width action that remains reachable at the bottom of the dialog. */
.discovery-player-copy{padding:12px 20px 8px}
.discovery-player-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.discovery-player-heading h2{min-width:0;flex:1;margin:0;text-align:left}
.discovery-player-meta{display:flex;justify-content:flex-end;align-items:center;gap:5px;flex-wrap:wrap;max-width:48%;margin:0;font-size:var(--text-caption);line-height:1.4;color:var(--muted)}
.discovery-player-format,.discovery-player-context{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:4px 7px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--control-glass);-webkit-backdrop-filter:var(--widget-blur);backdrop-filter:var(--widget-blur);overflow-wrap:anywhere}
.discovery-player-format{color:var(--paper)}.discovery-player-format svg{width:16px;height:16px;flex:none}
.discovery-player-details p{margin:8px 0 0}
.discovery-player-actions{box-sizing:border-box;position:static;z-index:4;display:flex;width:100%;margin:0;padding:8px 20px 12px;border-top:1px solid var(--line);background:var(--widget-glass);-webkit-backdrop-filter:var(--widget-blur);backdrop-filter:var(--widget-blur)}
.discovery-player-actions .launch{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;text-align:center;margin:0}
.player-expanded .discovery-player-actions{display:none}

/* App entry stays at the upper left of the visual; the main action follows
   the explanation in normal document flow. */
.discovery-player .discovery-player-app{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;left:8px;top:max(10px,env(safe-area-inset-top));width:44px;height:44px;min-height:44px;max-width:none;padding:0;border:1px solid var(--control-border);border-radius:var(--control-radius);background:var(--control-glass);color:var(--paper)}
.discovery-player .discovery-player-app .site-icon{width:20px;height:20px}
.player-expanded .discovery-player-app{left:58px}
.discovery-player-actions{position:static}
.discovery-player-neighbours{gap:6px}
@media(max-width:600px){.player-expanded .discovery-player-neighbours{position:absolute;left:0;top:50px}}
/* Synopsis details are not a landing-page section with an editorial gap. */
.discovery-player .discovery-player-details{margin:4px 0 0;padding:0}

/* Synopsis actions belong to the header, never to the native scene. */
.discovery-player .discovery-player-toolbar{position:sticky;top:0;left:auto;right:auto;height:auto;min-height:52px;padding:4px 8px;gap:12px;box-sizing:border-box;background:var(--control-glass);pointer-events:auto}
.discovery-player-tools{display:flex;align-items:center;gap:6px;margin-left:auto}
.discovery-player .discovery-player-toolbar :is(.discovery-player-app,.discovery-player-expand){position:static;display:inline-flex;max-width:none;opacity:1;flex:none;margin:0}
.discovery-player .discovery-player-neighbours{position:static;display:flex;gap:6px}
.discovery-player.player-expanded .discovery-player-toolbar{position:absolute;top:0;left:0;right:0;background:transparent;pointer-events:none}
.discovery-player.player-expanded .discovery-player-toolbar :is(button,a){pointer-events:auto}
.discovery-player-preview-actions{display:flex;gap:8px;flex-wrap:wrap;padding:8px 20px}
.discovery-player-preview-actions button{flex:1;min-width:min(180px,100%);padding:8px 12px;font-size:var(--text-small)}
.player-expanded .discovery-player-preview-actions{position:absolute;bottom:8px;left:0;right:0;z-index:4;justify-content:center}
.discovery-player-preview-choice{display:flex;flex:1;min-width:min(180px,100%);flex-direction:column;gap:5px}
.discovery-player-preview-choice button{flex:none;width:100%}
.discovery-player-preview-choice small{font-size:var(--text-caption);color:var(--muted);line-height:1.4}
.discovery-player-copy>.discovery-player-preview-actions{padding:10px 0 6px}

/* Keep background embeds on their static poster while the modal owns playback. */
html.discovery-player-open .live-screen iframe{visibility:hidden!important;pointer-events:none!important}
html.discovery-player-open .live-screen [data-live-start]::after{animation:none!important}

.discovery-player-preview-actions button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:64px;font-size:var(--text-caption);font-weight:600}
.discovery-player-preview-actions button>svg{flex:none;width:39px;height:39px;padding:9px;border:1px solid #e8edf3a0;border-radius:50%;background:transparent}
@media(max-width:420px){.discovery-player .discovery-player-toolbar{gap:4px;padding-inline:6px}.discovery-player-tools,.discovery-player .discovery-player-neighbours{gap:4px}.discovery-player .discovery-player-toolbar :is(button,.discovery-player-app){width:36px;height:40px;min-height:40px}}
