/* HaloShort shared interaction system — 2026-10-10. Loaded after page styles. */
:root{--hs-accent:#f4bd40;--hs-accent-hover:#ffd36b;--hs-accent-pressed:#dfaa30;--hs-on-accent:#211908;--hs-accent-soft:rgba(244,189,64,.12);--hs-border:rgba(255,255,255,.16);--hs-surface:#242620;--hs-surface-hover:#32352d;--hs-text:#f2f2ed;--hs-muted:#a5a89e;--hs-radius:12px;--hs-duration:160ms;--pink:var(--hs-accent);--gold:var(--hs-accent);--web-gold:var(--hs-accent)}
/* Primary / secondary / compact / circular are deliberate size variants. */
body :is(.primary,.web-button.gold,.chart-watch,.button:not(.button-dark):not(.emotn-link)),body .categories-page .catalog-filter .web-filters .web-button{background:var(--hs-accent);color:var(--hs-on-accent);border:1px solid transparent;border-radius:var(--hs-radius);font-weight:650;line-height:1.3;box-shadow:none;transition:background-color var(--hs-duration),border-color var(--hs-duration),color var(--hs-duration),transform var(--hs-duration)}
body .primary{min-height:44px;padding:12px 20px;font-size:14px}
body .hero-actions .primary{min-height:48px;padding:13px 24px;font-size:15px;gap:9px}
body .chart-watch{min-height:38px;padding:9px 15px;font-size:12px;border-radius:10px}
body :is(.primary:hover,.web-button.gold:hover,.chart-item:hover .chart-watch,.chart-item:focus-visible .chart-watch,.button:not(.button-dark):not(.emotn-link):hover),body .categories-page .catalog-filter .web-filters .web-button:hover{background:var(--hs-accent-hover);color:var(--hs-on-accent);transform:none;box-shadow:none}
body :is(.primary,.web-button.gold,.button:not(.button-dark):not(.emotn-link)):active{background:var(--hs-accent-pressed);transform:translateY(1px)}
body :is(.secondary,.web-button:not(.gold),.emotn-link){background:var(--hs-surface);color:var(--hs-text);border:1px solid var(--hs-border);border-radius:var(--hs-radius);font-weight:600;line-height:1.3;transition:background-color var(--hs-duration),border-color var(--hs-duration),color var(--hs-duration)}
body :is(.secondary:hover,.web-button:not(.gold):hover,.emotn-link:hover){background:var(--hs-surface-hover);border-color:#ffffff30;color:var(--hs-text);transform:none}
body :is(.primary,.secondary,.web-button,.button):disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
body :is(a,button,summary,input,select,textarea):focus-visible{outline:2px solid var(--hs-accent);outline-offset:4px}
/* Poster overlays and editorial badges use the same gold, never error red. */
body .poster .play{width:46px;height:46px;background:var(--hs-accent);color:var(--hs-on-accent);box-shadow:0 6px 22px #0005;border:1px solid #ffe0a060;font-size:19px}
body .card:focus-within .play{opacity:1;transform:scale(1)}
body .card:hover .poster{transform:translateY(-3px);box-shadow:0 12px 28px #0006}
body .poster .tag,body .pill.hot{background:#302713e8;color:#ffda80;border:1px solid #f4bd4055;border-radius:7px;font-weight:600;line-height:1.35;box-shadow:none}
body .poster .tag{font-size:10px;letter-spacing:.015em;padding:5px 8px}
body .rating{color:#ffda80;text-shadow:0 1px 5px #000}
body .section-title:before{background:var(--hs-accent);box-shadow:none}
body .hero-choice:is(:hover,.selected,:focus-visible) .mini,body .mini:is(:hover,.selected){outline-color:var(--hs-accent);transform:translateY(-3px)}
body :is(.genre.active,.genre:hover,.sort-tabs a.active,.chip:hover){background:var(--hs-accent-soft);border-color:#f4bd4066;color:#ffda80}
body .chip.more-chip{color:#ffda80;border-color:#f4bd4055}
body .chip:hover small{color:#c5bdab}
body :is(.pagination a.active,.pagination a:hover,.catalog-search button){background:var(--hs-accent);color:var(--hs-on-accent);border-color:var(--hs-accent)}
body .catalog-search:focus-within,body .viewer-auth-card input:focus{border-color:var(--hs-accent)}
body .language-menu a.active{background:var(--hs-accent-soft);color:#ffda80}
body .theater-dots button[aria-current]:after{background:var(--hs-accent);box-shadow:0 0 8px #f4bd4040}
body .theater-arrow:hover{background:#f4bd4024;border-color:#f4bd4055;color:#ffda80;box-shadow:none}
/* Player styles are also loaded inside <main>; scope specificity keeps states consistent. */
body .cinema .cinema-tool{background:var(--hs-surface);color:var(--hs-text);border-color:var(--hs-border);border-radius:10px}
body .cinema .cinema-tool:hover{background:var(--hs-surface-hover)}
body .cinema .cinema-tool[aria-pressed=true]{background:var(--hs-accent);border-color:var(--hs-accent);color:var(--hs-on-accent)}
body .cinema .cinema-range[aria-pressed=true],body .cinema .cinema-episode[aria-current]{background:var(--hs-accent-soft);border:1px solid #f4bd4066;color:#ffda80}
body .cinema .cinema-episode:hover{border-color:#f4bd4066;background:#f4bd401c;color:#ffda80}
body .cinema .player-download--tv .player-download-icon{background:var(--hs-accent);border-color:var(--hs-accent);color:var(--hs-on-accent)}
body .cinema .player-download--tv:hover .player-download-icon{background:var(--hs-accent-hover);border-color:var(--hs-accent-hover)}
body .cinema :is(button,a,select):focus-visible{outline:2px solid var(--hs-accent);outline-offset:4px}
body .episode-grid a:is(:hover,.active){border-color:#f4bd4066;background:var(--hs-accent-soft)}
body .client-countdown strong{background:var(--hs-accent);color:var(--hs-on-accent)}
body .client-modal-icon{background:var(--hs-accent);color:var(--hs-on-accent);box-shadow:none}
body .viewer-auth{background:radial-gradient(circle at 50% 20%,#f4bd4014,transparent 35%),#08090d}
body .client-gate-shade{background:linear-gradient(180deg,#07080c80,#08090df2),radial-gradient(circle at center,#f4bd4014,transparent 45%)}
body .device-prompt .primary{background:var(--hs-accent);color:var(--hs-on-accent)}
body .device-prompt .primary:hover{background:var(--hs-accent-hover)}
@media(hover:none){body .poster .play{opacity:1;transform:none;width:40px;height:40px}body .card:hover .poster{transform:none}}
@media(prefers-reduced-motion:reduce){body :is(.primary,.secondary,.web-button,.button,.chart-watch,.poster,.play,.mini,.cinema-tool,.cinema-range,.cinema-episode){transition:none!important;animation:none!important}body .card:hover .poster,body .hero-choice:is(:hover,.selected,:focus-visible) .mini{transform:none}}

/* Stable header geometry across scrolling and fixed-stage pages. */
body .topbar{width:100vw;max-width:none;right:auto;box-sizing:border-box}
body .topbar .nav a{box-sizing:border-box;display:flex;align-items:center;justify-content:center;font-weight:500;line-height:20px;transition:background-color 160ms,color 160ms}
body .topbar .nav a.active{font-weight:500}
@media(min-width:761px){
 body .topbar{display:grid;grid-template-columns:160px minmax(0,1fr) clamp(270px,28vw,390px);column-gap:20px;justify-content:normal}
 body .topbar .brand{grid-column:1;grid-row:1;justify-self:start;min-width:0}
 body .topbar .nav{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;max-width:550px;justify-self:center;gap:2px;min-width:0;margin:0}
 body .topbar .nav a{padding:9px 6px;min-width:0}
 body .topbar .actions{grid-column:3;grid-row:1;width:100%;justify-self:end;gap:10px}
 body .topbar .nav-search{flex:1;width:auto;min-width:0}
 body .topbar .language-menu{flex:0 0 44px;width:44px}
 body .topbar .language-menu summary{justify-content:center;padding-inline:4px}
}
@media(min-width:761px) and (max-width:1100px){
 body .topbar{grid-template-columns:36px minmax(0,1fr) clamp(238px,31vw,320px);column-gap:12px}
 body .topbar .nav a{font-size:12px;padding-inline:4px}
}
@media(max-width:760px){
 body .topbar .nav{display:grid;grid-template-columns:repeat(5,minmax(max-content,1fr));justify-content:normal;gap:4px;width:100%;overflow-x:auto}
 body .topbar .nav a{padding:8px 6px}
}

/* Restore series context and topic discovery without expanding the page header. */
.cinema .player-context{margin-top:24px;padding-top:20px;border-top:1px solid #ffffff18}
.cinema .player-context h2,.category-topics h2{font-size:14px;font-weight:600;line-height:1.5;margin:0 0 12px;color:#eeeae2}
.player-facts{margin:0;font-size:12px;line-height:1.7}
.player-facts>div{display:grid;grid-template-columns:minmax(72px,28%) minmax(0,1fr);gap:12px;padding:5px 0}
.player-facts dt{color:#b0ada6}.player-facts dd{margin:0;color:#eeeae2}
.player-fact-tags{display:flex;flex-wrap:wrap;gap:4px 12px}
.player-facts a:hover,.category-topics a:hover{color:#f4bd40}
.player-related{list-style:none;padding:0;margin:0;display:grid;gap:4px}
.player-related a{display:flex;align-items:center;gap:12px;padding:8px;border-radius:10px;text-decoration:none;color:#eeeae2;transition:background-color .18s ease}
.player-related a:hover{background:#ffffff0a}.player-related img{width:48px;height:72px;object-fit:cover;border-radius:6px;flex:none;background:#242620}
.player-related a>span{flex:1;min-width:0}.player-related strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;font-weight:500;line-height:1.5}
.player-related small{display:block;margin-top:5px;color:#b0ada6;font-size:11px;line-height:1.5}.player-related svg{flex:none;color:#f4bd40}
.category-topics{margin-top:24px;padding-top:18px;border-top:1px solid #ffffff18}.category-topics>div{display:flex;flex-wrap:wrap;gap:8px}
.category-topics a{display:inline-flex;align-items:center;gap:10px;min-height:36px;padding:6px 12px;border:1px solid #ffffff18;border-radius:8px;color:#c9c6be;font-size:12px;text-decoration:none}.category-topics a span{color:#f4bd40}
.player-context a:focus-visible,.category-topics a:focus-visible{outline:2px solid #f4bd40;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.player-related a{transition:none}}

/* A single horizontal shelf inside the player information panel. */
.cinema .player-related{display:flex;flex-wrap:nowrap;gap:12px;overflow-x:auto;overflow-y:hidden;list-style:none;margin:0;padding:4px 3px 12px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#82734b #ffffff0a;overscroll-behavior-x:contain}
.cinema .player-related li{flex:0 0 112px;min-width:0;list-style:none;scroll-snap-align:start}
.cinema .player-related li::marker{content:""}
.cinema .player-related a{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:0;background:transparent;border-radius:8px}
.cinema .player-related img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;border-radius:8px}
.cinema .player-related a>span{flex:auto;min-width:0}
.cinema .player-related strong{font-size:12px;line-height:1.5;font-weight:500;min-height:36px}
.cinema .player-related small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px;margin-top:4px}
.cinema .player-related svg{position:absolute;top:132px;right:8px;width:28px;height:28px;padding:7px;box-sizing:border-box;border-radius:50%;background:#f4bd40;color:#211908}
.cinema .player-related a:hover strong{color:#f4bd40}
.cinema .player-related::-webkit-scrollbar{height:5px}
.cinema .player-related::-webkit-scrollbar-thumb{background:#82734b;border-radius:8px}

/* Floating previous / next controls for the recommendation shelf. */
.cinema .player-related-shelf{position:relative;min-width:0}
.cinema .player-related-shelf .player-related{scrollbar-width:none}
.cinema .player-related-shelf .player-related::-webkit-scrollbar{display:none}
.cinema .related-arrow{position:absolute;z-index:2;top:64px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid #f7ecd780;border-radius:50%;background:#685030e6;color:#fff4dd;box-shadow:0 3px 14px #0006;backdrop-filter:blur(10px);cursor:pointer;transition:background-color .18s ease,transform .18s ease}
.cinema .related-arrow--prev{left:2px}.cinema .related-arrow--next{right:2px}
.cinema .related-arrow svg{position:static;display:block;width:20px;height:20px;padding:0;border-radius:0;background:none;color:inherit;flex:none}
.cinema .related-arrow[hidden]{display:none}
.cinema .related-arrow:hover{background:#886735;transform:scale(1.05)}
.cinema .related-arrow:focus-visible{outline:2px solid #f4bd40;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.cinema .related-arrow{transition:none}.cinema .related-arrow:hover{transform:none}}

/* Side-by-side platform cards with the official HaloShort app icon. */
body .cinema .player-downloads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 24px}
body .cinema .player-download{display:flex;flex-direction:row;align-items:center;gap:10px;min-width:0;max-width:none;padding:12px;border:1px solid #ffffff20;border-radius:12px;background:#ffffff09;text-align:left;box-sizing:border-box}
body .cinema .player-download-brand{display:block;width:44px;height:44px;flex:0 0 44px;border-radius:10px;object-fit:cover}
body .cinema .player-download-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
body .cinema .player-download-label{font-size:13px;line-height:1.4;color:#eeeae2;font-weight:600}
body .cinema .player-download-note{font-size:11px;line-height:1.45;color:#b5b1a8;overflow-wrap:anywhere}
body .cinema .player-download--soon{border-color:#ffffff14;background:#ffffff05}
body .cinema .player-download--soon .player-download-label{color:#bbb7ae}
body .cinema .player-download--tv{border-color:#f4bd4055;background:#f4bd400c;transition:background-color .18s ease,border-color .18s ease}
body .cinema .player-download--tv .player-download-note{color:#f4bd40}
body .cinema .player-download--tv:hover{background:#f4bd401a;border-color:#f4bd4090}
body .cinema .player-download--tv:focus-visible{outline:2px solid #f4bd40;outline-offset:3px}
@media(max-width:380px){body .cinema .player-download{padding:9px;gap:7px}body .cinema .player-download-brand{width:36px;height:36px;flex-basis:36px}body .cinema .player-downloads{gap:8px}}
@media(prefers-reduced-motion:reduce){body .cinema .player-download--tv{transition:none}}

/* Small platform badges, anchored to the official app icon. */
body .cinema .player-download-mark{position:relative;display:block;width:44px;height:44px;flex:0 0 44px;margin-right:3px}
body .cinema .player-platform-badge{position:absolute;right:-4px;bottom:-3px;display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 3px;box-sizing:border-box;border:2px solid #171713;border-radius:6px;background:#f4bd40;color:#211908;font-size:9px;font-weight:800;line-height:1;letter-spacing:.1px;box-shadow:0 1px 4px #0005}
body .cinema .player-platform-badge svg{display:block;width:10px;height:13px;flex:none}
body .cinema .player-download--soon .player-platform-badge{background:#bab6ad;color:#262620}
@media(max-width:380px){body .cinema .player-download-mark{width:36px;height:36px;flex-basis:36px}}

/* Diagonal platform ribbon clipped into the top-right app-icon corner. */
body .cinema .player-download-mark{overflow:hidden;border-radius:10px;margin-right:0}
body .cinema .player-platform-badge{top:3px;right:-13px;bottom:auto;width:43px;min-width:0;height:14px;padding:0;border:0;border-radius:0;transform:rotate(45deg);background:#f4bd40;color:#211908;box-shadow:0 1px 2px #0004;font-size:8px;line-height:14px;letter-spacing:.2px}
body .cinema .player-platform-badge svg{width:7px;height:10px}
@media(max-width:380px){body .cinema .player-platform-badge{top:2px;right:-14px;height:13px;font-size:7px}}

/* Half-size corner ribbon and platform mark. */
body .cinema .player-platform-badge{top:1.5px;right:-6.5px;width:21.5px;height:7px;font-size:4px;line-height:7px;letter-spacing:.1px;box-shadow:0 .5px 1px #0004}
body .cinema .player-platform-badge svg{width:3.5px;height:5px}
@media(max-width:380px){body .cinema .player-platform-badge{top:1px;right:-7px;height:6.5px;font-size:3.5px}}

/* Keep the phone upright inside the diagonal ribbon. */
body .cinema .player-platform-badge svg{transform:rotate(-45deg);transform-origin:center}

/* Slightly enlarge the upright phone mark. */
body .cinema .player-platform-badge svg{width:4.5px;height:6.5px}

/* Increase both corner ribbons and their marks by 50%. */
body .cinema .player-platform-badge{top:2.25px;right:-9.75px;width:32.25px;height:10.5px;font-size:6px;line-height:10.5px;letter-spacing:.15px;box-shadow:0 .75px 1.5px #0004}
body .cinema .player-platform-badge svg{width:6.75px;height:9.75px}
@media(max-width:380px){body .cinema .player-platform-badge{top:1.5px;right:-10.5px;height:9.75px;font-size:5.25px}}

/* Fill the sidebar width with compact, responsive episode cells. */
body .cinema .cinema-episodes{width:100%;max-width:none;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:8px;box-sizing:border-box}
body .cinema .cinema-episodes li{min-width:0}
body .cinema .cinema-episode{box-sizing:border-box}

/* Visible recovery controls when native audible autoplay is blocked. */
body .cinema .cinema-start{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;width:64px;height:64px;display:grid;place-items:center;border:1px solid #ffdf83;border-radius:50%;background:#f4bd40;color:#211908;box-shadow:0 6px 24px #0005;cursor:pointer}
body .cinema .cinema-enable-sound{position:absolute;left:28px;top:28px;z-index:4;padding:10px 14px;border:1px solid #ffffff40;border-radius:20px;background:#211e19de;color:#fff;font-size:12px;cursor:pointer}
body .cinema .cinema-start[hidden],body .cinema .cinema-enable-sound[hidden]{display:none}
