.movie-seen-toggle { --seen-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.7-6 10-6 10 6 10 6-3.7 6-10 6S2 12 2 12Z' fill='none' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='2.6' fill='none' stroke='white' stroke-width='1.4'/%3E%3C/svg%3E"); display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #c3c6ce; box-shadow: none; opacity: .7; transition: color .2s, opacity .2s, background .2s; }
@media (min-width: 721px) { #app-sidebar, body.sidebar-collapsed #app-sidebar { transition: width .18s cubic-bezier(.2,.7,.2,1), padding-right .18s cubic-bezier(.2,.7,.2,1), background-color .18s ease; } #app-sidebar .sidebar-label, body.sidebar-collapsed #app-sidebar .sidebar-label, #app-sidebar .sidebar-context-label, body.sidebar-peeking #app-sidebar .sidebar-label, body.sidebar-peeking.sidebar-collapsed #app-sidebar .sidebar-label, body.sidebar-peeking #app-sidebar .sidebar-context-label { transition-duration: .14s, .18s, 0s; transition-delay: 0s; } }
@media (max-width: 350px) { .topbar, body.sagas-visible .topbar { column-gap: 4px; } .brand, body.sagas-visible .brand { font-size: 21px; } }
.movie-seen-toggle[aria-pressed='true'] { color: #f02a3b; }
.movie-seen-toggle:hover { background: #0b0d1260; box-shadow: none; opacity: 1; transform: none; }
.movie-seen-toggle .episode-seen-icon, .sj-page .sj-seen-toggle[aria-pressed='true'] .sj-seen-icon { width: 18px; height: 18px; background: currentColor; mask: var(--seen-eye) center/contain no-repeat; -webkit-mask: var(--seen-eye) center/contain no-repeat; }
.movie-seen-toggle:focus-visible { outline: 2px solid var(--accent, #e50914); outline-offset: 3px; }
.movie-seen-toggle:disabled { opacity: .4; cursor: help; }
.movie-seen-labeled { width: auto; border-radius: 24px; padding: 0 17px; gap: 10px; font-size: 12px; }
.hs-cell, .dx-title-cell { position: relative; min-width: 0; }
.hs-cell > .movie-seen-toggle, .dx-title-cell > .movie-seen-toggle { position: absolute; z-index: 3; top: 3px; left: 3px; right: auto; }
.sj-page .sj-film-art .sj-seen-toggle { top: 3px; left: 3px; right: auto; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 8px; background: transparent; color: #c3c6ce; box-shadow: none; }
.sj-page .sj-film-art .sj-seen-toggle[aria-pressed='true'] { background: transparent; color: #f02a3b; box-shadow: none; }
.movie-seen-toggle:is(:hover,:focus-visible) .episode-seen-tooltip { opacity: 1; visibility: visible; }
.hs-cell > .movie-seen-toggle .episode-seen-tooltip, .dx-title-cell > .movie-seen-toggle .episode-seen-tooltip { left: 0; right: auto; }
.hs-cell > .movie-seen-toggle .episode-seen-tooltip { top: calc(100% + 4px); bottom: auto; }
/* Watched is a quiet frame, independent of selection, favorites or playback position. */
.hs-cell:has(> .movie-seen-toggle[aria-pressed='true']) .hs-poster,
.dx-title-cell:has(> .movie-seen-toggle[aria-pressed='true']) .dx-poster,
.sj-film-art:has(> .sj-seen-toggle[aria-pressed='true']),
#content-presentation .cp-cover[data-watched='true'],
.sd-film-art[data-watched='true'], .sd-detail-poster[data-watched='true'] { box-shadow: inset 0 0 0 1px #f02a3b80,0 0 0 1px #e3133250,0 0 18px #e3133224; }
#content-presentation .cp-save-icon { border: 0; background: transparent; box-shadow: none; }
#content-presentation .cp-save-icon::after { width: 19px; height: 23px; background: var(--text-muted,#a9abb1); }
#content-presentation .cp-save[aria-pressed='true'] .cp-save-icon::after { background: var(--accent,#e31332); }
#content-presentation .cp-save:hover .cp-save-icon { background: #e3133208; box-shadow: 0 0 16px #e313321a; }
.hs-cell, .dx-title-cell, .sj-film-art, .sd-film-art, #content-presentation .cp-cover { transition: translate .22s ease,box-shadow .22s ease; }
.hs-poster, .dx-poster { transition: border-color .22s ease,box-shadow .22s ease; }
.home-shelves .hs-row { padding-top: 10px; margin-top: -10px; }
/* Native touch scrolling remains intact; only mouse gestures claim a shelf. */
.channel-row { padding: 14px 6px 24px; margin: -14px -6px 0; }
.home-shelves .hs-row { padding: 14px 6px 24px; margin: -14px -6px 0; }
.channel-row img, .hs-row img { -webkit-user-drag: none; }
.channel-row.is-shelf-dragging, .hs-row.is-shelf-dragging { scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; }
.channel-row.is-shelf-dragging *, .hs-row.is-shelf-dragging * { cursor: grabbing !important; user-select: none; }
@media (hover: hover) and (pointer: fine) { .channel-row, .hs-row, .channel-row .channel-button, .hs-row .hs-card { cursor: grab; } .channel-row.is-shelf-dragging, .hs-row.is-shelf-dragging { cursor: grabbing; } }
.channel-item[data-kind='live'], .channel-item[data-kind='live']:hover { transform: none; transition: translate .22s ease; }
.channel-item[data-kind='live'] .channel-artwork { isolation: isolate; transition: box-shadow .22s ease, scale .22s ease; }
.channel-item[data-kind='live'] .channel-artwork::after { content: ''; display: block; position: absolute; inset: 0; z-index: 2; 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; }
.channel-item[data-kind='live']:is(:hover,:focus-within) .channel-artwork { box-shadow: inset 0 0 0 1px #f02a3b80,0 0 0 1px #e3133266,0 8px 28px #e3133240,0 0 18px #e3133238; }
.channel-item[data-kind='live']:is(:hover,:focus-within) .channel-artwork::after { opacity: 1; animation: hls-hover-orbit 2.8s linear infinite; }
@media (hover: hover) and (pointer: fine) { .channel-item[data-kind='live']:is(:hover,:focus-within) { translate: 0 -5px; } .channel-item[data-kind='live']:is(:hover,:focus-within) .channel-artwork { scale: 1.025; } }
#app-sidebar :is(.sidebar-action,.sidebar-family,.sidebar-sport-item,.sagas-nav-button) { position: relative; isolation: isolate; transition: color .18s ease, background-color .18s ease, box-shadow .18s ease; }
#app-sidebar :is(.sidebar-action,.sidebar-family,.sidebar-sport-item,.sagas-nav-button)::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; 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 .18s ease; }
#app-sidebar :is(.sidebar-action,.sidebar-family,.sidebar-sport-item,.sagas-nav-button):is(:hover,:focus-visible)::after { opacity: 1; animation: hls-hover-orbit 2.8s linear infinite; }
#app-sidebar :is(.sidebar-icon,.sidebar-context-icon,.sagas-nav-icon,.service-logo) { transition: filter .18s ease, color .18s ease; }
#app-sidebar :is(.sidebar-action,.sidebar-family,.sidebar-sport-item:not(.sidebar-competition),.sagas-nav-button):is(:hover,:focus-visible) :is(.sidebar-icon,.sidebar-context-icon,.sagas-nav-icon) { filter: drop-shadow(0 0 6px #e3133280); }
@media (hover: hover) and (pointer: fine) {
  .hs-cell > .movie-seen-toggle, .dx-title-cell > .movie-seen-toggle, .sj-page .sj-film-art .sj-seen-toggle { opacity: 0; }
  .hs-cell:is(:hover,:focus-within) > .movie-seen-toggle, .dx-title-cell:is(:hover,:focus-within) > .movie-seen-toggle, .sj-page .sj-film-art:is(:hover,:focus-within) .sj-seen-toggle { opacity: .85; }
  .hs-cell:is(:hover,:focus-within), .dx-title-cell:is(:hover,:focus-within), .sj-film-art:is(:hover,:focus-within), .sd-film:is(:hover,:focus-visible) .sd-film-art, #content-presentation .cp-cover:is(:hover,:focus-visible) { translate: 0 -5px; }
}
/* Keep the moving red edge inside clipped artwork and glass buttons. */
:is(.sg-glass,.sg-quiet,.hs-see-all,.sh-button), #sync-create, #sync-connect { position: relative; isolation: isolate; }
:is(.catalog-favorite-toggle,.favorite-toggle), #content-presentation :is(.cp-action,.cp-save) { isolation: isolate; }
#content-presentation :is(.cp-action,.cp-save,.cp-cover)::after,
:is(.hs-poster,.dx-poster,.sj-film-art,.sd-film-art:not([data-image='loading']),.sg-glass,.sg-quiet,.hs-see-all,.sh-button,.catalog-favorite-toggle,.favorite-toggle)::after,
#sync-create::after, #sync-connect::after {
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px;
  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;
}
#content-presentation .cp-cover::after,
:is(.hs-poster,.dx-poster,.sj-film-art,.sd-film-art:not([data-image='loading']))::after { padding: 1.5px; }
/* Discover's border belongs to the cover, leaving its title and ratings clean. */
#catalog-discovery .dx-title-card::after { content: none; }
#content-presentation :is(.cp-action,.cp-save,.cp-cover):is(:hover,:focus-visible)::after,
:is(.sg-glass,.sg-quiet,.hs-see-all,.sh-button,.catalog-favorite-toggle,.favorite-toggle):is(:hover,:focus-visible):not(:disabled)::after,
:is(#sync-create,#sync-connect):is(:hover,:focus-visible):not(:disabled)::after,
.hs-cell:is(:hover,:focus-within) .hs-poster::after,
.dx-title-cell:is(:hover,:focus-within) .dx-poster::after,
.sj-film-art:is(:hover,:focus-within)::after,
:is(.sd-film,.sd-landscape-film):is(:hover,:focus-visible) .sd-film-art:not([data-image='loading'])::after { opacity: 1; animation: hls-hover-orbit 2.8s linear infinite; }
.home-shelves .hs-cell:is(:hover,:focus-within) .hs-poster,
#catalog-discovery .dx-title-cell:is(:hover,:focus-within) .dx-poster,
.sj-page .sj-film-art:is(:hover,:focus-within),
:is(.sd-film,.sd-landscape-film):is(:hover,:focus-visible) .sd-film-art,
#content-presentation .cp-cover:is(:hover,:focus-visible) { border-color: #f02a3b8c; box-shadow: inset 0 0 0 1px #f02a3b80,0 0 0 1px #e3133266,0 8px 28px #e3133240,0 0 18px #e3133238; }
.sg-glass:is(:hover,:focus-visible), .sg-quiet:is(:hover,:focus-visible),
.home-shelves .hs-see-all:is(:hover,:focus-visible), .sports-hub .sh-button:is(:hover,:focus-visible),
#content-presentation :is(.cp-action,.cp-save):is(:hover,:focus-visible),
:is(#sync-create,#sync-connect):is(:hover,:focus-visible) { box-shadow: inset 0 1px #ffffff26,0 0 0 1px #e313323d,0 4px 22px #e3133233; }
.home-shelves .hs-cell > .hs-favorite-toggle:is(:hover,:focus-visible),
.dx-title-cell > .dx-favorite-toggle:is(:hover,:focus-visible),
.favorite-toggle:is(:hover,:focus-visible) { color: var(--accent-bright,#f02a3b); box-shadow: 0 0 18px #e3133247,inset 0 0 12px #e3133217; }
#content-presentation .cp-save:is(:hover,:focus-visible) .cp-save-icon::after,
.catalog-favorite-toggle:is(:hover,:focus-visible) .catalog-favorite-icon { background: var(--accent-bright,#f02a3b); filter: drop-shadow(0 0 5px #e31332a0); }
#content-presentation :is(.cp-action,.cp-save):disabled::after { opacity: 0; animation: none; }
.dx-title-cell > .dx-title-card { width: 100%; height: auto; }
.cp-actions > .movie-seen-toggle { align-self: center; }
#content-presentation .cp-actions:has(> .cp-movie-seen-toggle:not([hidden])) { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr) 46px 44px; width: min(100%,560px); }
#content-presentation .cp-actions > .cp-movie-seen-toggle { grid-column: 4; grid-row: 1; }
#content-presentation .cp-actions:has(> .cp-movie-seen-toggle:not([hidden])) .cp-save-copy { display: none; }
@media (max-width: 520px) {
  #content-presentation .cp-actions:has(> .cp-movie-seen-toggle:not([hidden])) { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) 44px 44px; gap: 7px; }
  #content-presentation .cp-actions > .cp-movie-seen-toggle { width: 44px; height: 44px; }
}
#saga-playback-options { width: min(580px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface, #17191e); color: var(--text); }
#saga-playback-options::backdrop { background: #000a; backdrop-filter: blur(8px); }
#saga-playback-message { min-height: 2.7em; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
#saga-playback-message.is-loading { display: flex; align-items: center; gap: 15px; }
#saga-playback-message.is-loading::before { content: ''; flex: none; width: 24px; height: 24px; border: 2px solid #e3133226; border-top-color: #ed1a38; border-right-color: #ed1a38; border-radius: 50%; animation: saga-availability-orbit .8s linear infinite; box-shadow: 0 0 15px #e313321b; }
@keyframes saga-availability-orbit { to { transform: rotate(360deg); } }
#saga-playback-choices { display: grid; gap: 10px; }
#saga-playback-choices button { text-align: left; }
.saga-next-film { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px 24px; border-top: 1px solid #ffffff12; background: #101115; }
.saga-next-film > div { flex: 1; min-width: 200px; }
.saga-next-film small { display: block; margin-bottom: 8px; color: #e62638; font-size: 10px; letter-spacing: .14em; }
.saga-next-film strong { display: block; font-size: 17px; }
.saga-next-film p { margin: 6px 0 0; color: #a1a2ab; font-size: 12px; }
.saga-player-queue { padding: 28px; background: #111216; color: #f1f0ed; }
.saga-player-brand { display: none; }
.saga-queue-poster { display: none; }
.saga-player-queue h3 { margin: 14px 0 10px; font-size: 23px; line-height: 1.25; }
#saga-queue-context, .saga-queue-note { color: #9598a3; font-size: 12px; line-height: 1.6; }
#saga-queue-films { display: grid; gap: 10px; margin-top: 30px; }
.saga-queue-film { display: grid; gap: 9px; width: 100%; padding: 18px 14px; border: 1px solid #ffffff10; border-radius: 10px; background: #1b1c22; color: #e5e4e9; text-align: left; }
.saga-queue-film strong { font-size: 13px; line-height: 1.4; }
.saga-queue-film small { color: #999daa; font-size: 11px; }
.saga-queue-film[data-current='true'] { border-color: #e3133255; box-shadow: 0 0 22px #e3133212; }
#saga-player-auto { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; width: 100%; padding: 12px 0; border: 0; background: transparent; color: #d4d4dc; font-size: 12px; }
#saga-player-auto::after { content: ''; width: 34px; height: 20px; border-radius: 20px; background: radial-gradient(circle at 10px 10px,#b9bbc5 6px,transparent 7px),#34353d; flex: none; }
#saga-player-auto[aria-checked='true']::after { background: radial-gradient(circle at 24px 10px,#fff 6px,transparent 7px),#c80d2b; }
#player-screen[data-context='sagas'] .player-card { display: grid; grid-template-columns: minmax(0,1fr) 290px; align-content: start; }
#player-screen[data-context='sagas'] .player-toolbar { grid-column: 1/-1; }
#player-screen[data-context='sagas'] .video-wrap { grid-column: 1; min-height: min(63vh,660px); }
#player-screen[data-context='sagas'] .status-row { grid-column: 1; }
#player-screen[data-context='sagas'] .saga-player-queue { grid-column: 2; grid-row: 2 / span 3; }
#player-screen[data-context='sagas'] .saga-next-film { grid-column: 1; }
@media (max-width: 900px) { #player-screen[data-context='sagas'] .player-card { grid-template-columns: minmax(0,1fr); } #player-screen[data-context='sagas'] .saga-player-queue { grid-column: 1; grid-row: auto; } }
@media (max-width: 720px) { .movie-seen-labeled { padding: 0 12px; } .saga-next-film { padding: 16px; } .saga-next-film > div { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) {
  #app-sidebar, body.sidebar-collapsed #app-sidebar { transition: none; }
  #app-sidebar :is(.sidebar-action,.sidebar-family,.sidebar-sport-item,.sagas-nav-button,.sidebar-icon,.sidebar-context-icon,.sagas-nav-icon,.service-logo), #app-sidebar :is(.sidebar-action,.sidebar-family,.sidebar-sport-item,.sagas-nav-button)::after { animation: none !important; transition: none; }
  .channel-item[data-kind='live'], .channel-item[data-kind='live'] .channel-artwork { transition: none; translate: none !important; scale: none !important; }
  .channel-item[data-kind='live'] .channel-artwork::after { animation: none !important; transition: none; }
  .movie-seen-toggle, .hs-cell, .dx-title-cell, .hs-poster, .dx-poster, .sj-film-art, .sd-film-art, #content-presentation .cp-cover { transition: none; translate: none !important; }
  #content-presentation :is(.cp-action,.cp-save,.cp-cover)::after,
  :is(.hs-poster,.dx-poster,.sj-film-art,.sd-film-art,.sg-glass,.sg-quiet,.cp-save,.hs-see-all,.sh-button,.cp-action,.dx-title-card,.service-nav-button,.cp-cover,.catalog-favorite-toggle,.favorite-toggle,#catalog-connect,.sh-channel-button,#sync-create,#sync-connect)::after,
  #saga-playback-message.is-loading::before { animation: none !important; transition: none; }
}
