/* Sagas-only shell. Native 1920 anchors come from the verified reference
   composition; 1672 variants remain separate, without scaling the page. */
body.sagas-visible { --sg-main-left: 285px; --sg-main-top: 112px; --sg-right: 40px; font-family: Inter, 'Segoe UI', Arial, sans-serif; }
body.sagas-visible .shell { padding: var(--sg-main-top) var(--sg-right) 0 var(--sg-main-left); }
body.sagas-visible .app-main { margin: 0 !important; padding: 0; }
body.sagas-visible .topbar { height: 88px; min-height: 88px; padding: 24px 42px; gap: 28px; background: linear-gradient(180deg, #060709eb, #0607098c 72%, transparent); backdrop-filter: none; }
body.sagas-visible .brand { flex: 0 0 224px; font-size: 32px; font-weight: 950; letter-spacing: -1.4px; }
body.sagas-visible .catalog-tabs { flex: 0 0 auto; gap: 25px; }
body.sagas-visible .catalog-tabs button { min-height: 42px; padding: 12px 7px; border: 0; border-radius: 22px; font-size: 14px; font-weight: 400; color: var(--text); }
body.sagas-visible #tab-favorites { min-height: 42px; padding: 12px 7px; border: 0; border-radius: 22px; font-size: 14px; font-weight: 400; color: var(--text); }
body.sagas-visible .catalog-tabs button[aria-pressed='true'] { padding-inline: 23px; background: linear-gradient(#90071b66, #2b081088); box-shadow: 0 0 20px #e8002230, inset 0 0 0 1px #ea173b; }
body.sagas-visible #favorites-count { display: none; }
body.sagas-visible .header-tools { margin-left: auto; gap: 21px; }
body.sagas-visible #theme-toggle { flex: 0 0 18px; width: 18px; color: var(--text); }
body.sagas-visible #theme-toggle::before { content: '☾'; width: 18px; height: 27px; background: none; mask: none; font-size: 27px; line-height: 27px; transform: rotate(-20deg); }
body.sagas-visible .header-search { width: 236px; }
body.sagas-visible #header-search { height: 43px; min-height: 43px; padding: 13px 18px 13px 45px; border: 0; border-radius: 24px; background: #0c0e12a3; box-shadow: inset 0 1px 1px #ffffff16; font-size: 13px; }
body.sagas-visible #change-account { flex: 0 0 auto; width: auto; max-width: none; min-width: 0; height: 42px; min-height: 42px; padding: 12px 18px; border: 0; border-radius: 14px; background: #0c0e12ad; font-size: 13px; font-weight: 400; }
body.sagas-visible #change-account::before { display: none; }
body.sagas-visible #change-account { font-size: 13px; }
body.sagas-visible #app-sidebar { display: block; left: 30px; top: 109px; bottom: 36px; width: 215px; padding: 0; overflow: auto; background: transparent; }
body.sagas-visible #sidebar-toggle { width: 34px; height: 34px; min-height: 34px; margin: 0 0 26px 5px; background: #ffffff06; border: 0; box-shadow: none; }
body.sagas-visible #app-sidebar #sidebar-toggle::before { content: '‹'; display: grid; place-items: center; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; background: none; mask: none; font-size: 24px; font-weight: 400; line-height: 1; transform: none; }
#sidebar-sagas .sagas-nav-button { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 53px; margin: 0 0 6px; padding: 15px 17px; border: 0; border-radius: 10px; background: transparent; color: var(--text); box-shadow: none; font-size: 16px; font-weight: 400; text-align: left; white-space: nowrap; }
#sidebar-sagas .sagas-nav-button:hover { background: var(--hover); transform: none; }
#sidebar-sagas .sagas-nav-button[aria-pressed='true'] { background: linear-gradient(90deg, #66051666, transparent); box-shadow: inset 2px 0 #ec1634; }
#sidebar-sagas .sagas-nav-icon { display: block; flex: 0 0 23px; width: 23px; height: 23px; background: currentColor; mask: var(--sg-nav-icon) center / contain no-repeat; }
#sidebar-sagas [data-icon='compass'] { --sg-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m16 8-3 5-5 3 3-5Z'/%3E%3C/g%3E%3C/svg%3E"); }
#sidebar-sagas [data-icon='universe'] { --sg-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 7 9-4 9 4-9 4ZM3 12l9 4 9-4M3 17l9 4 9-4'/%3E%3C/g%3E%3C/svg%3E"); }
#sidebar-sagas [data-icon='bookmark'] { --sg-nav-icon: var(--ui-favorite-filled); }
#sidebar-sagas [data-icon='group'] { --sg-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Ccircle cx='17' cy='8' r='2.5'/%3E%3Cpath d='M2 21v-4a6 6 0 0 1 12 0v4M16 14a5 5 0 0 1 6 5v2'/%3E%3C/g%3E%3C/svg%3E"); }
#sidebar-sagas :is([data-icon='grid'],[data-icon='film'],[data-icon='tv'],[data-icon='action'],[data-icon='scifi'],[data-icon='fantasy'],[data-icon='adventure'],[data-icon='animation'],[data-icon='documentary']) { --sg-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.5'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/g%3E%3C/svg%3E"); }
#sidebar-sagas .sagas-nav-heading { margin: 36px 18px 15px; color: var(--text-faint); font-size: 13px; font-weight: 400; }
#sidebar-sagas .sagas-nav-footnote { position: static; margin: 24px 17px 16px; color: var(--text-faint); font-size: 12px; }
#sidebar-sagas .sagas-nav-footnote::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #656b70; }
#sidebar-sagas [data-icon='action'] { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m16 8-3 5-5 3 3-5Z'/%3E%3C/g%3E%3C/svg%3E"); }
#sidebar-sagas [data-icon='scifi'] { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 7 9-4 9 4-9 4ZM3 12l9 4 9-4M3 17l9 4 9-4' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E"); }
#sidebar-sagas [data-icon='fantasy'] { mask-image: var(--ui-favorite-filled); }
body.sagas-visible .app-main > :is(#app-loading,#content-presentation,#catalog-discovery,#catalog-heading,#sports-hub,#channel-catalog,#watch-history,#content-progress,#home-shelves,.advanced-settings,.log-card,.note) { display: none !important; }
body.sagas-visible:not(.connection-open) #login-screen { display: none; }
body.sagas-visible.connection-open #sagas-hub { display: none; }
body.sagas-visible.sagas-sidebar-collapsed { --sg-main-left: 110px; }
body.sagas-visible.sagas-sidebar-collapsed #app-sidebar { width: 54px; }
body.sagas-visible.sagas-sidebar-collapsed .sagas-nav-label, body.sagas-visible.sagas-sidebar-collapsed .sagas-nav-heading, body.sagas-visible.sagas-sidebar-collapsed .sagas-nav-footnote { display: none; }
body.sagas-visible.sagas-sidebar-collapsed #sidebar-sagas .sagas-nav-button { padding-inline: 15px; }
#sagas-hub { min-width: 0; position: relative; isolation: isolate; }
#sagas-hub[hidden], #sagas-hub [hidden] { display: none !important; }
body.sagas-connecting #sagas-hub { visibility: hidden; }
#sagas-connection-loading[hidden] { display: none !important; }
#sagas-connection-loading { position: fixed; z-index: 10; top: 160px; left: var(--sg-main-left, 285px); right: var(--sg-right, 40px); padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 24px 80px #0004; }
@media (max-width: 720px) { #sagas-connection-loading { top: 140px; left: 20px; right: 20px; padding: 20px; } }
#sagas-hub :is(button,a,select):focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.sg-backdrop { position: fixed; z-index: -1; inset: 0; pointer-events: none; background: var(--canvas); }
.sg-backdrop-image { position: absolute; right: 0; top: 0; width: min(1390px,90vw); height: 100vh; object-fit: cover; object-position: center; filter: saturate(.82) brightness(.82); mask-image: linear-gradient(to right,transparent,#000 32%),linear-gradient(to bottom,#000 58%,transparent 98%); mask-composite: intersect; opacity: 0; transition: opacity .3s ease; }
.sg-backdrop[data-image='loaded'] .sg-backdrop-image { opacity: 1; }
.sg-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,var(--canvas) 10%,color-mix(in srgb,var(--canvas) 88%,transparent) 29%,color-mix(in srgb,var(--canvas) 19%,transparent) 65%,color-mix(in srgb,var(--canvas) 6%,transparent)),linear-gradient(0deg,var(--canvas) 5%,color-mix(in srgb,var(--canvas) 94%,transparent) 13%,transparent 68%); }
/* Supplied alternatives: preserve the subject and the fixed content geometry. */
.sg-backdrop[data-composition] .sg-backdrop-image { top: 88px; width: min(1200px, 76vw); height: min(660px, 76vh); filter: saturate(.85) brightness(.85); }
.sg-backdrop[data-composition='terra-media'] .sg-backdrop-image { object-position: 58% 48%; }
.sg-backdrop[data-composition='avatar'] .sg-backdrop-image { object-position: 58% center; filter: saturate(.95) brightness(.85); }
.sg-backdrop[data-composition='indiana-jones'] .sg-backdrop-image { object-position: 64% center; }
.sg-backdrop[data-composition='transformers'] .sg-backdrop-image { object-position: 48% 35%; }
.sg-backdrop[data-composition='jurassic'] { background: #050608; }
.sg-backdrop[data-composition='jurassic'] .sg-backdrop-image { object-position: 68% center; }
.sg-backdrop-emblem { position: absolute; right: 4vw; top: 76px; width: min(740px, 48vw); height: min(700px, 77vh); mask-image: linear-gradient(to right,transparent,#000 15%,#000 85%,transparent),linear-gradient(to bottom,transparent,#000 8%,#000 80%,transparent); mask-composite: intersect; }
.sg-backdrop-emblem-image { width: 100%; height: 100%; object-fit: contain; object-position: center; filter: contrast(1.15); opacity: 0; transition: opacity .3s ease; }
.sg-backdrop-emblem[data-image='loaded'] .sg-backdrop-emblem-image { opacity: 1; }
.sg-backdrop[data-composition='mcu-journey'] .sg-backdrop-image { width: min(1370px, 86vw); height: 520px; object-position: 70% top; }
@media (max-width: 1050px) {
  .sg-backdrop[data-composition] .sg-backdrop-image { width: 100%; height: 520px; }
  .sg-backdrop-emblem { right: 0; width: 65%; height: 540px; opacity: .25; }
  .sg-backdrop[data-composition='indiana-jones']::after { background: linear-gradient(90deg,var(--canvas) 8%,color-mix(in srgb,var(--canvas) 80%,transparent) 68%,color-mix(in srgb,var(--canvas) 35%,transparent)),linear-gradient(0deg,var(--canvas) 15%,transparent 75%); }
}
@media (max-width: 600px) {
  .sg-backdrop[data-composition] .sg-backdrop-image { top: 68px; height: 480px; filter: saturate(.75) brightness(.55); }
  .sg-backdrop-emblem { width: 85%; height: 420px; opacity: .2; }
  /* Keep each HD panorama's subject in the narrow crop; identity overlays stay independent. */
  .sg-backdrop .sg-backdrop-image[src='/assets/sagas/heroes/mcu-hero-v1.jpg'] { object-position: 42% center; }
  .sg-backdrop .sg-backdrop-image[src='/assets/sagas/heroes/star-wars-hero-v1.jpg'] { object-position: 55% center; }
  .sg-backdrop .sg-backdrop-image[src='/assets/sagas/heroes/mundo-bruxo-hero-v1.jpg'] { object-position: 80% center; }
  .sg-backdrop .sg-backdrop-image[src='/assets/sagas/heroes/terra-media-hero-v1.jpg'] { object-position: 67% center; }
  .sg-backdrop .sg-backdrop-image[src='/assets/sagas/heroes/dc-hero-v1.jpg'] { object-position: 26% center; }
  .sg-backdrop .sg-backdrop-image[src='/assets/sagas/heroes/jurassic-hero-v1.jpg'] { object-position: 78% center; }
  .sg-backdrop .sg-backdrop-image[src='/assets/sagas/heroes/avatar-hero-v1.jpg'] { object-position: 67% center; }
  .sg-backdrop .sg-backdrop-image[src='/assets/sagas/heroes/piratas-do-caribe-hero-v1.jpg'] { object-position: 56% center; }
  .sg-backdrop .sg-backdrop-image[src='/assets/sagas/heroes/indiana-jones-hero-v1.jpg'] { object-position: 70% center; }
  .sg-backdrop .sg-backdrop-image[src='/assets/sagas/heroes/transformers-hero-v1.jpg'] { object-position: 55% center; }
}
.sd-film-art .sg-work-frame, .sd-detail-poster .sg-work-frame, .sj-film-open .sg-work-frame, .saga-queue-poster .sg-work-frame { object-fit: contain; background: #090a0d; }
.sj-film-open .sg-art.sg-work-frame { object-fit: contain; }
#content-presentation .cp-cover-image.sg-work-frame, #content-presentation .cp-hero-art.sg-work-frame, .hs-poster-image.sg-work-frame, .dx-poster-image.sg-work-frame { object-fit: contain; background: #090a0d; }
.saga-queue-poster img { opacity: 0; }
.saga-queue-poster[data-image='loaded'] img { opacity: 1; }
.saga-queue-poster[aria-busy='true'] { animation: saga-queue-loading 1.2s ease-in-out infinite alternate; }
@keyframes saga-queue-loading { to { background-color: #4b1522; } }
@media (prefers-reduced-motion: reduce) { .saga-queue-poster[aria-busy='true'] { animation: none; } }
.sg-screen { position: relative; min-height: calc(100svh - var(--sg-main-top, 112px)); }
.sg-back { display: inline-flex; align-items: center; gap: 10px; min-height: 20px; margin: 0 0 29px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--text-muted); font-size: 13px; font-weight: 400; }
.sg-kicker { margin: 0 0 19px; color: var(--text-muted); font-size: 11px; font-weight: 650; letter-spacing: 4px; }
.sg-kicker-red { color: #ee2b44; }
.sg-title { max-width: 850px; margin: 0 0 20px; font-size: 70px; font-weight: 800; line-height: 1.02; letter-spacing: -2.9px; }
.sg-subtitle { max-width: 530px; margin: 0 0 25px; color: var(--text-muted); font-size: 18px; line-height: 1.6; }
.sg-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.sg-glass { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 54px; padding: 17px 25px; border: 0; border-radius: 32px; background: linear-gradient(180deg,#ffffff20,#24212640 55%,#2b0a1248); box-shadow: inset 0 1px 1px #ffffff6c,0 8px 22px #0005,0 7px 15px #df09242a; font-size: 17px; font-weight: 550; white-space: nowrap; }
.sg-play-icon { display: inline-block; flex: none; width: 16px; height: 16px; background: currentColor; mask: var(--ui-play) center / contain no-repeat; }
.sg-quiet { min-height: 53px; padding: 17px 24px; border: 0; border-radius: 28px; background: #ffffff07; box-shadow: inset 0 1px #ffffff15; font-size: 15px; font-weight: 400; }
.sg-save { display: grid; place-items: center; width: 53px; height: 53px; min-height: 53px; padding: 0; border: 0; border-radius: 50%; background: #ffffff06; color: var(--accent); box-shadow: none; }
.sg-save::before { content: ''; width: 25px; height: 29px; background: currentColor; mask: var(--ui-favorite-outline) center / contain no-repeat; }
.sg-save[aria-pressed='true']::before { mask-image: var(--ui-favorite-filled); }
.sg-loading { display: flex; align-items: center; gap: 13px; padding: 25px 0; color: var(--text-muted); font-size: 13px; }
.sg-loading::before { content: ''; width: 13px; height: 17px; background: var(--accent); clip-path: polygon(0 0,100% 50%,0 100%); animation: hls-soft-pulse 1.4s ease-in-out infinite; }
.sg-opening { min-height: max(823px,calc(100svh - var(--sg-main-top))); }
.sg-opening-copy { padding-top: 90px; max-width: 850px; }
.sg-opening .sg-title { max-width: 760px; font-size: 67px; line-height: 1.07; }
.sg-opening .sg-subtitle { max-width: 530px; }
.sg-opener-count { margin: 29px 0 0; color: var(--text-faint); font-size: 12px; }
.sg-opening-shelf { position: absolute; left: 0; right: 0; bottom: 38px; }
.sg-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.sg-section-heading h2 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.5px; }
.sg-text-link { min-height: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--text-muted); font-size: 12px; font-weight: 400; text-decoration: none; }
.sg-text-link:hover { color: var(--text); background: transparent; transform: none; }
.sg-opening-cards { display: flex; gap: 18px; min-width: 0; overflow-x: auto; overflow-anchor: none; overscroll-behavior-x: contain; padding: 14px 6px 24px; margin: -14px -6px -24px; scrollbar-width: thin; scrollbar-color: var(--progress-rest, #414248) transparent; }
.sg-opening-cards > .sg-route-card { flex: 0 0 clamp(210px, calc((100% - 54px) / 4), 360px); }
.sg-opening-cards:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.sg-opening-cards img { -webkit-user-drag: none; }
.sg-opening-cards.is-shelf-dragging { scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; }
.sg-opening-cards.is-shelf-dragging, .sg-opening-cards.is-shelf-dragging * { cursor: grabbing !important; user-select: none; }
@media (hover: hover) and (pointer: fine) { .sg-opening-cards, .sg-opening-cards > .sg-route-card { cursor: grab; } }
.sg-route-card, .sg-universe { display: block; min-width: 0; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); box-shadow: none; text-align: left; transform: none; }
.sg-route-card:hover, .sg-universe:hover { background: transparent; transform: none; }
.sg-route-card, .sg-universe { transition: translate .22s ease; }
.sg-route-card .sg-card-art, .sg-universe .sg-card-art { transition: box-shadow .22s ease; }
.sg-route-card .sg-art, .sg-universe .sg-art { transition: opacity .25s ease, scale .22s ease; }
.sg-card-ring { position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--hover-angle,0deg),transparent 0 50%,#e3133200 59%,#e3133280 76%,#f02a3b 88%,#ffbac3 92%,#f02a3b 96%,transparent 100%); mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); mask-composite: exclude; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
:is(.sg-route-card,.sg-universe):is(:hover,:focus-visible) .sg-card-art { box-shadow: inset 0 0 0 1px #f02a3b80,0 0 0 1px #e3133266,0 8px 28px #e3133240,0 0 18px #e3133238; }
:is(.sg-route-card,.sg-universe):is(:hover,:focus-visible) .sg-card-ring { opacity: 1; animation: hls-hover-orbit 2.8s linear infinite; }
@media (hover: hover) and (pointer: fine) { :is(.sg-route-card,.sg-universe):is(:hover,:focus-visible) { translate: 0 -5px; } :is(.sg-route-card,.sg-universe):is(:hover,:focus-visible) .sg-art { scale: 1.035; } }
.sg-card-art { position: relative; display: block; height: 215px; overflow: hidden; border-radius: 11px; background: var(--surface); box-shadow: 0 12px 30px #0006; isolation: isolate; }
.sg-opening-cards .sg-card-art { height: 188px; }
.sg-art-fallback { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; padding: 24px; color: var(--text-muted); font-size: 22px; font-weight: 650; text-align: center; background: radial-gradient(ellipse at 90% 20%,var(--accent-soft),transparent 70%),var(--surface); }
.sg-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.76) saturate(.85); opacity: 0; transition: opacity .25s ease; }
.sg-card-art[data-image='loaded'] .sg-art { opacity: 1; }
.sg-card-art[data-image='loaded'] .sg-art-fallback { opacity: 0; }
.sg-card-art::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg,#090a0c80,transparent 65%); pointer-events: none; }
.sg-card-art[data-image='loading']::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(100deg,transparent 20%,var(--hover) 48%,transparent 75%); background-size: 250% 100%; animation: hls-media-shimmer 1.6s ease-in-out infinite; }
.sg-card-copy { position: relative; display: block; padding-top: 17px; }
.sg-card-title { display: block; font-size: 18px; line-height: 1.2; letter-spacing: -.4px; font-weight: 650; }
.sg-universe .sg-card-title { font-weight: 600; letter-spacing: -.3px; }
.sg-card-meta { display: block; margin-top: 7px; color: var(--text-muted); font-size: 11px; font-weight: 400; line-height: 1.4; }
.sg-route-card .sg-card-copy { position: absolute; z-index: 2; left: 21px; right: 18px; bottom: 20px; padding: 0; color: #f2efe8; }
.sg-route-card .sg-card-meta { color: #b8bac3; font-size: 12px; margin-top: 8px; }
.sg-route-card .sg-card-title { font-size: 23px; letter-spacing: -.6px; }
.sg-route-card .sg-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-card-kicker { display: block; font-size: 10px; letter-spacing: 2px; color: #c3c6ce; margin-bottom: 8px; }
.sg-card-arrow { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ffffff10; font-size: 19px; }
.sg-route-card .sg-card-art::after { background: linear-gradient(0deg,#090a0cf5,transparent); }
.sg-scroll-hint { position: absolute; right: 0; bottom: 11px; padding: 0; min-height: 0; border: 0; background: transparent; box-shadow: none; font-size: 11px; font-weight: 400; color: var(--text-faint); }
.sg-catalog { padding-top: 10px; padding-bottom: 38px; }
.sg-catalog .sg-kicker { margin-bottom: 18px; }
.sg-catalog-title { margin: 0 0 27.28px; font-size: 46px; font-weight: 800; line-height: 1.02; letter-spacing: -1.6px; }
.sg-catalog-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin: 13px 0 27px; }
.sg-filter { min-height: 16px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text-faint); box-shadow: none; font-size: 13px; font-weight: 400; line-height: 16px; }
.sg-filter[aria-pressed='true'] { color: var(--text); }
.sg-filter:hover { color: var(--text); background: transparent; transform: none; }
.sg-catalog-hint { margin-left: auto; color: var(--text-faint); font-size: 12px; }
.sg-catalog-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 30px 18px; }
.sg-catalog-cell { animation: saga-catalog-enter .22s ease-out both; }
@keyframes saga-catalog-enter { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.sg-universe .sg-saga-poster { object-fit: contain; object-position: center; filter: none; }
.sg-followed-mark { position: absolute; z-index: 2; right: 15px; top: 15px; width: 15px; height: 19px; background: var(--accent); mask: var(--ui-favorite-filled) center/contain no-repeat; }
.sg-progress { display: block; position: absolute; z-index: 2; bottom: 9px; left: 12px; right: 12px; height: 3px; border-radius: 8px; background: var(--progress-rest); }
.sg-progress-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); box-shadow: 0 0 8px #e3133280; }
.sg-catalog-continuation { margin: 30px auto 0; }
.sg-result-status { margin: 0; font-size: 12px; color: var(--text-muted); }
.sg-category-select { width: min(240px,100%); min-height: 38px; padding: 8px 14px; font-size: 12px; }
.sg-empty { grid-column: 1/-1; padding: 44px 0; min-height: 350px; color: var(--text-muted); }
.sg-empty-title { font-size: 30px; margin: 0 0 20px; color: var(--text); }
.sg-empty button { margin: 20px 14px 0 0; }
.sg-editorial { padding-bottom: 40px; }
.sg-editorial .sg-title { margin-top: 35px; }
.sg-editorial .sg-subtitle { max-width: 690px; }
.sg-editorial-note { margin-top: 65px; max-width: 650px; color: var(--text-muted); }
.sg-editorial-note h2 { color: var(--text); font-size: 22px; }
.sg-editorial-note p { line-height: 1.7; font-size: 14px; }
body.sagas-visible[data-sagas-shell='immersive'] .topbar, body.sagas-visible[data-sagas-shell='immersive'] #app-sidebar { display: none; }
body.sagas-visible[data-sagas-shell='immersive'] .shell { padding: 0; }
@media (min-width: 1441px) and (max-width: 1750px) {
  body.sagas-visible { --sg-main-left: 285px; --sg-right: 40px; }
  body.sagas-visible[data-sagas-entity='terra-media'] { --sg-main-left: 270px; }
  body.sagas-visible[data-sagas-entity='jurassic'] { --sg-main-left: 289px; }
  body.sagas-visible[data-sagas-entity='avatar'] { --sg-main-left: 298px; }
  body.sagas-visible[data-sagas-entity='indiana-jones'] { --sg-main-left: 243px; }
  body.sagas-visible[data-sagas-entity='transformers'] { --sg-main-left: 263px; }
  body.sagas-visible[data-sagas-shell='journey'] { --sg-main-left: 304px; }
  body.sagas-visible[data-sagas-shell='marathons'] { --sg-main-left: 277px; }
  body.sagas-visible .topbar { padding-inline: 32px; gap: 20px; }
  body.sagas-visible .brand { flex-basis: 210px; }
  body.sagas-visible .catalog-tabs { gap: 16px; }
  body.sagas-visible .header-tools { gap: 15px; }
  body.sagas-visible .header-search { width: 230px; }
}
@media (min-width: 721px) and (max-width: 1440px) {
  body.sagas-visible { --sg-main-left: 245px; --sg-right: 24px; }
  body.sagas-visible .topbar { padding-inline: 24px; gap: 12px; }
  body.sagas-visible .brand { flex-basis: 150px; font-size: 27px; }
  body.sagas-visible .catalog-tabs { gap: 5px; }
  body.sagas-visible .catalog-tabs button { font-size: 12px; padding-inline: 9px; }
  body.sagas-visible .catalog-tabs button[aria-pressed='true'] { padding-inline: 16px; }
  body.sagas-visible .header-tools { gap: 12px; }
  body.sagas-visible .header-search { width: 210px; }
  body.sagas-visible #app-sidebar { left: 20px; width: 205px; }
  .sg-title { font-size: 60px; }
}
@media (max-width: 1100px) and (min-width: 721px) {
  body.sagas-visible { --sg-main-left: 96px; --sg-main-top: 142px; }
  body.sagas-visible .topbar { height: 118px; flex-wrap: wrap; padding-block: 10px; }
  body.sagas-visible .brand { flex: 1 1 auto; }
  body.sagas-visible .catalog-tabs { order: 3; flex: 1 0 100%; justify-content: center; gap: 8px; }
  body.sagas-visible #app-sidebar { top: 142px; width: 54px; }
  #sidebar-sagas .sagas-nav-label, #sidebar-sagas .sagas-nav-heading, #sidebar-sagas .sagas-nav-footnote { display: none; }
  .sg-catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .sg-opening { min-height: 1000px; }
  .sg-catalog-hint { display: none; }
}
@media (max-width: 720px) {
  body.sagas-visible { --sg-main-left: 16px; --sg-right: 16px; --sg-main-top: 172px; }
  body.sagas-visible .topbar { height: 154px; min-height: 154px; padding: 8px 16px; flex-wrap: wrap; gap: 8px 12px; }
  body.sagas-visible .brand { flex: 1; font-size: 25px; }
  body.sagas-visible:not(.connection-open) #mobile-menu { display: grid; }
  body.sagas-visible .header-tools { display: contents; }
  body.sagas-visible .header-search { order: 2; width: 100%; }
  body.sagas-visible #change-account { width: 42px; height: 42px; padding: 0; font-size: 0; }
  body.sagas-visible #change-account::before { display: block; }
  body.sagas-visible .catalog-tabs { order: 3; flex: 1 0 100%; justify-content: flex-start; overflow: auto; gap: 4px; }
  body.sagas-visible .catalog-tabs button { padding: 8px 12px; min-height: 38px; font-size: 11px; }
  body.sagas-visible .catalog-tabs button[aria-pressed='true'] { padding-inline: 16px; }
  body.sagas-visible #app-sidebar { display: none; top: 154px; left: 0; width: min(300px,84vw); bottom: 0; padding: 18px; background: var(--sidebar-surface); }
  body.sagas-visible:not([data-sagas-shell='immersive']).sidebar-open #app-sidebar,
  body.sagas-visible:not([data-sagas-shell='immersive']).sidebar-closing #app-sidebar { display: block; }
  body.sagas-visible #sidebar-toggle { width: 44px; height: 44px; min-height: 44px; margin-bottom: 16px; }
  #sidebar-sagas .sagas-nav-footnote { position: static; margin: 25px 17px; }
  .sg-title { font-size: 43px; letter-spacing: -1.8px; }
  .sg-opening .sg-title { font-size: 43px; }
  .sg-subtitle { font-size: 16px; }
  .sg-glass, .sg-quiet { min-height: 48px; padding: 13px 18px; font-size: 13px; }
  .sg-opening { min-height: auto; padding-bottom: 34px; }
  .sg-opening-copy { padding-top: 30px; }
  .sg-opening .sg-kicker { font-size: 9px; letter-spacing: 2px; }
  .sg-opening-shelf { position: static; margin-top: 64px; }
  .sg-opening-cards { gap: 12px; }
  .sg-opening-cards > .sg-route-card { flex-basis: clamp(210px, 70vw, 290px); }
  .sg-opening-cards .sg-card-art { height: 168px; }
  .sg-route-card .sg-card-copy { left: 12px; bottom: 16px; right: 12px; }
  .sg-route-card .sg-card-title { font-size: 16px; }
  .sg-route-card .sg-card-meta { font-size: 10px; }
  .sg-route-card .sg-card-arrow { display: none; }
  .sg-section-heading h2 { font-size: 21px; }
  .sg-catalog-title { font-size: 30px; }
  .sg-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 12px; }
  .sg-card-art { height: 160px; }
  .sg-card-title { font-size: 15px; }
  .sg-card-meta { font-size: 10px; }
  .sg-catalog-filters { flex-wrap: wrap; gap: 14px; margin-bottom: 25px; }
  .sg-catalog-hint { display: none; }
  .sg-catalog-continuation { margin-top: 24px; }
  .sg-backdrop-image { width: 100%; opacity: .55; }
}
@media (prefers-reduced-motion: reduce) { .sg-loading::before, .sg-card-art::before { animation: none !important; } .sg-art,.sg-backdrop-image,.sg-backdrop-emblem-image { transition: none; } }
@media (prefers-reduced-motion: reduce) { .sg-catalog-cell, .sg-route-card, .sg-universe, .sg-card-art, .sg-card-ring, .sg-route-card .sg-art, .sg-universe .sg-art { animation: none !important; transition: none; translate: none !important; scale: none !important; } }

/* Discovery continues below the opening screen; every rail uses native
   scrolling and the shared pointer-drag controller, without copied controls. */
.sg-scroll-hint { min-height: 44px; bottom: -3px; }
.sg-discovery { position: relative; isolation: isolate; display: grid; gap: 52px; padding: 42px 0 76px; background: var(--canvas); }
.sg-discovery-section { min-width: 0; }
.sg-discovery .sg-section-heading, .sg-actor-collection .sg-section-heading { align-items: center; gap: 16px; margin-bottom: 10px; }
.sg-section-caption { margin: 8px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.sg-discovery .sg-text-link, .sg-actor-sources .sg-text-link { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.sg-discovery-row, .sg-actor-row { display: flex; gap: 18px; min-width: 0; overflow-x: auto; overflow-anchor: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 14px 6px 24px; margin: -4px -6px -12px; }
.sg-discovery-row > :is(.sg-universe,.sg-actor-film) { flex: 0 0 210px; scroll-snap-align: start; }
.sg-universe .sg-card-art { height: auto; aspect-ratio: 2 / 3; }
.sg-discovery-row .sg-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 44px; overflow: hidden; font-size: 17px; line-height: 22px; }
.sg-discovery-row .sg-card-meta { min-height: 30px; }
.sg-discovery-row img, .sg-actor-row img, .sg-actors-grid img { -webkit-user-drag: none; }
:is(.sg-discovery-row,.sg-actor-row).is-shelf-dragging { scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; }
:is(.sg-discovery-row,.sg-actor-row).is-shelf-dragging, :is(.sg-discovery-row,.sg-actor-row).is-shelf-dragging * { cursor: grabbing !important; user-select: none; }
.sg-discovery-row:focus-visible, .sg-actor-row:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.sg-discovery-section h2, #saga-actor-films { scroll-margin-top: 128px; }
.sg-discovery-section h2:focus-visible, #saga-actor-films:focus-visible { outline: none; text-shadow: 0 0 18px #e3133240; }
/* These headings receive navigation focus for screen readers, not Tab stops. */
#sagas-hub #saga-heading:focus { outline: none; }
.sg-actor-row > .sg-actor-card { flex: 0 0 178px; scroll-snap-align: start; }
.sg-actor-card, .sg-actor-film { display: block; min-width: 0; min-height: 44px; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); box-shadow: none; text-align: left; transition: translate .22s ease; }
.sg-actor-card:hover, .sg-actor-film:hover { background: transparent; transform: none; }
.sg-actor-card .sg-card-art, .sg-actor-film .sg-card-art { transition: box-shadow .22s ease; }
.sg-actor-portrait { height: 238px; border-radius: 12px; }
.sg-actor-portrait .sg-art { object-position: center 25%; filter: brightness(.9) saturate(.8); }
.sg-actor-portrait .sg-art-fallback { font-size: 38px; font-weight: 600; letter-spacing: -.03em; }
.sg-actor-card .sg-card-title { min-height: 44px; font-size: 17px; line-height: 22px; }
.sg-actor-card .sg-card-meta { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 32px; overflow: hidden; font-size: 11px; line-height: 16px; }
:is(.sg-actor-card,.sg-actor-film):is(:hover,:focus-visible) .sg-card-art { box-shadow: inset 0 0 0 1px #f02a3b80,0 0 0 1px #e3133266,0 8px 28px #e3133240,0 0 18px #e3133238; }
:is(.sg-actor-card,.sg-actor-film):is(:hover,:focus-visible) .sg-card-ring { opacity: 1; animation: hls-hover-orbit 2.8s linear infinite; }
.sg-actors-index { padding: 8px 0 64px; }
.sg-actors-index > .sg-title { max-width: 920px; font-size: clamp(38px,4.4vw,66px); }
.sg-actors-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 36px 24px; margin-top: 30px; }
.sg-actor-loading { min-height: 330px; }
.sg-actor-skeleton { flex: 0 0 210px; height: 330px; border-radius: 12px; background: linear-gradient(100deg,#171719 25%,#372027 48%,#171719 72%); background-size: 240% 100%; animation: sg-actor-shimmer 1.6s ease-in-out infinite; }
.sg-actor-choices { width: min(560px,calc(100vw - 40px)); max-height: 80svh; margin: auto; padding: 28px; border: 1px solid #ffffff20; border-radius: 20px; background: #111114; color: var(--text); box-shadow: 0 24px 90px #000b,0 0 40px #e3133210; animation: sg-actor-enter .22s ease-out; }
.sg-actor-choices::backdrop { background: #000a; backdrop-filter: blur(8px); }
.sg-actor-choices > .sg-glass { display: block; width: 100%; margin-top: 12px; text-align: left; }
.sg-actor-choices .sg-section-heading { display: flex; justify-content: space-between; gap: 12px; }
.sg-actor-choices .sg-section-heading h2 { margin: 0; font-size: 22px; }
@keyframes sg-actor-shimmer { to { background-position: -240% 0; } }
@keyframes sg-actor-enter { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sg-actor-skeleton,.sg-actor-choices { animation: none; } }
.sg-actors-grid .sg-actor-portrait { height: clamp(210px,22vw,330px); }
.sg-actor-detail { padding: 8px 0 64px; }
.sg-actor-hero { display: grid; grid-template-columns: 250px minmax(0,1fr); align-items: center; gap: clamp(30px,5vw,76px); margin: 16px 0 54px; }
.sg-actor-hero > .sg-actor-portrait { width: 250px; height: 334px; }
.sg-actor-copy { min-width: 0; }
.sg-actor-copy .sg-title { font-size: clamp(38px,4.8vw,68px); }
.sg-actor-copy .sg-subtitle { max-width: 600px; font-size: 16px; }
.sg-actor-copy .sg-glass { min-height: 48px; font-size: 14px; }
.sg-actor-collection { min-width: 0; }
.sg-actor-film .sg-work-frame { object-fit: contain; background: #090a0d; }
.sg-film-destination { display: block; margin-top: 8px; color: var(--text-muted); font-size: 11px; line-height: 18px; }
.sg-actor-film-row { gap: 14px; }
.sg-actor-film-row > .sg-actor-film { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1fr) 18px; align-items: center; flex-basis: 300px; height: 156px; min-height: 156px; padding: 18px; gap: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(125deg,color-mix(in srgb,var(--accent) 5%,var(--surface)),var(--surface) 70%); transition: translate .22s ease,box-shadow .22s ease,border-color .22s ease; }
.sg-actor-film-row > .sg-actor-film[data-artwork='true'] { grid-template-columns: 72px minmax(0,1fr) 14px; flex-basis: 350px; }
.sg-actor-film-row .sg-actor-film-media { width: 72px; height: 112px; border-radius: 6px; box-shadow: none; }
.sg-actor-film-row .sg-actor-film .sg-card-copy { display: flex; flex-direction: column; min-width: 0; height: 100%; padding: 0; }
.sg-actor-film-row .sg-actor-film .sg-card-title { min-height: 40px; font-size: 16px; line-height: 20px; }
.sg-actor-film-row .sg-actor-film .sg-card-meta { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 30px; max-height: 30px; margin-top: 8px; overflow: hidden; font-size: 11px; line-height: 15px; }
.sg-actor-film-row .sg-film-destination { margin-top: auto; font-size: 10px; line-height: 18px; }
.sg-film-direction { color: var(--text-muted); font-size: 22px; font-weight: 400; line-height: 1; }
.sg-actor-film-row > .sg-actor-film:is(:hover,:focus-visible) { border-color: #e3133270; background: linear-gradient(125deg,color-mix(in srgb,var(--accent) 9%,var(--surface)),var(--surface) 70%); box-shadow: 0 0 0 1px #e3133233,0 8px 25px #e3133226,0 0 18px #e313321a; }
.sg-actor-film-row > .sg-actor-film:is(:hover,:focus-visible) .sg-card-art { box-shadow: none; }
.sg-actor-film:disabled { opacity: .65; cursor: default; }
.sg-actor-sources { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line); }
.sg-actor-sources p { flex-basis: 100%; margin: 0 0 3px; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
#sidebar-sagas [data-icon='actors'] { --sg-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3.3'/%3E%3Cpath d='M2 21v-3a7 7 0 0 1 12-4M18 12l1.6 3.2 3.4.5-2.5 2.4.6 3.4-3.1-1.6-3.1 1.6.6-3.4-2.5-2.4 3.4-.5Z'/%3E%3C/g%3E%3C/svg%3E"); }
@media (hover: hover) and (pointer: fine) {
  .sg-discovery-row, .sg-actor-row, .sg-discovery-row > button, .sg-actor-row > button { cursor: grab; }
  :is(.sg-actor-card,.sg-actor-film):is(:hover,:focus-visible) { translate: 0 -5px; }
  :is(.sg-actor-card,.sg-actor-film):is(:hover,:focus-visible) .sg-art { scale: 1.035; }
}
@media (max-width: 1000px) {
  .sg-actors-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px 18px; }
  .sg-actor-hero { grid-template-columns: 210px minmax(0,1fr); gap: 30px; }
  .sg-actor-hero > .sg-actor-portrait { width: 210px; height: 280px; }
}
@media (max-width: 720px) {
  .sg-discovery { gap: 34px; padding-top: 22px; }
  .sg-discovery .sg-section-heading { align-items: start; gap: 10px; }
  .sg-discovery .sg-section-heading h2 { font-size: 21px; }
  .sg-discovery .sg-text-link { font-size: 11px; }
  .sg-section-caption { font-size: 11px; }
  .sg-discovery-row, .sg-actor-row { gap: 13px; }
  .sg-discovery-row > :is(.sg-universe,.sg-actor-film) { flex-basis: 166px; }
  .sg-discovery-row .sg-card-art { height: auto; }
  .sg-discovery-row .sg-card-title { font-size: 15px; line-height: 20px; min-height: 40px; }
  .sg-actor-row > .sg-actor-card { flex-basis: 154px; }
  .sg-actor-portrait { height: 205px; }
  .sg-actors-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 16px; }
  .sg-actors-grid .sg-actor-portrait { height: clamp(180px,54vw,260px); }
  .sg-actor-card .sg-card-title { font-size: 15px; line-height: 20px; min-height: 40px; }
  .sg-actor-hero { grid-template-columns: 104px minmax(0,1fr); align-items: start; gap: 19px; margin-bottom: 40px; }
  .sg-actor-hero > .sg-actor-portrait { width: 104px; height: 148px; }
  .sg-actor-copy .sg-kicker { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 12px; }
  .sg-actor-copy .sg-title { font-size: clamp(28px,7vw,42px); letter-spacing: -1px; }
  .sg-actor-copy .sg-subtitle { font-size: 13px; line-height: 1.6; }
  .sg-actor-copy .sg-glass { min-height: 44px; padding: 12px 17px; font-size: 12px; }
  .sg-actor-collection .sg-section-heading { flex-wrap: wrap; gap: 0 12px; }
  .sg-actor-collection .sg-section-heading h2 { font-size: 22px; }
  .sg-actor-film-row > .sg-actor-film { flex-basis: 272px; height: 150px; min-height: 150px; padding: 16px; }
  .sg-actor-film-row > .sg-actor-film[data-artwork='true'] { flex-basis: 316px; grid-template-columns: 62px minmax(0,1fr) 14px; }
  .sg-actor-film-row .sg-actor-film-media { width: 62px; height: 108px; }
  .sg-discovery-section h2, #saga-actor-films { scroll-margin-top: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-actor-card, .sg-actor-film, .sg-actor-film-row > .sg-actor-film, .sg-actor-card .sg-art, .sg-actor-film .sg-art { transition: none; translate: none !important; scale: none !important; }
  :is(.sg-actor-card,.sg-actor-film):is(:hover,:focus-visible) .sg-card-ring { animation: none !important; }
}

.sg-actor-attribution { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; }
.sg-actor-attribution img { display: block; width: 72px; height: auto; }
.sg-actor-attribution small { flex-basis: 100%; color: var(--sg-muted, #96969f); font-size: 11px; }
