/* Negative outline offset paints on the border-box edge, with no padding-box gap. */
/* Shared primary surface: paint to the existing border-box without changing
   dimensions or consuming the pseudo-element used by Play/Continue's shine. */
html body.cinema-site.cinema-site.cinema-site.cinema-site.cinema-site :is(.btn-primary,button.primary,[data-variant="primary"]):not(:disabled):not([aria-disabled="true"]){
  border:0!important;
  background-image:linear-gradient(110deg,rgba(255,255,255,.28),transparent 55%)!important;
  background-origin:border-box!important;
  background-clip:border-box!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 4px 18px color-mix(in srgb,var(--accent) 16%,transparent)!important;
}
body *{--inset-stroke:initial}
html body.cinema-site.cinema-site.cinema-site.cinema-site :where(.btn,.card-act,.catalog-dropdown-trigger,.header-search,.catalog-search,.account-profile>summary,.account-dropdown,.catalog-dropdown-menu,.dropdown-menu,.search-autocomplete,.field input,.subtitle-field input,.subtitle-manager-panel,.subtitle-operation-dialog,.modal-panel,.cinema-menu,.live-next-card,.series-pill:not(.series-pill--warn):not(.series-pill--sub):not(.series-pill--dub),.hero-badge,.hero-arrow,.cinema-shelf-arrows>button,.episode-view-tabs,.detail-section-tabs,.responsive-search-close){
  border-color:transparent!important;
  background-clip:border-box;
  outline:1px solid var(--inset-stroke,var(--control-border,rgba(255,255,255,.05)))!important;
  outline-offset:-1px!important;
  box-shadow:none!important;
}
html body.cinema-site :is(.header-search,.catalog-search,.account-profile>summary,.hero-badge,.hero-nav .hero-arrow,.cinema-hero-actions .cinema-more-info){--inset-stroke:rgba(255,255,255,.1)}
html body.cinema-site :is(.cinema-menu,.subtitle-operation-dialog){--inset-stroke:rgba(255,255,255,.04)}
html body.cinema-site .field input{--inset-stroke:#404040}
html body.cinema-site .modal-panel{--inset-stroke:#303030}
html body.cinema-site.cinema-site.cinema-site.cinema-site .account-dropdown{box-shadow:0 12px 32px #0008!important}
html body.cinema-site.cinema-site.cinema-site.cinema-site .catalog-dropdown-menu{box-shadow:0 12px 36px #0009!important}
html body.cinema-site :is(.field input,.subtitle-field input):focus{--inset-stroke:var(--accent)}
html body.cinema-site :is(.header-search,.catalog-search):focus-within{--inset-stroke:rgba(255,255,255,.6)}
/* Mobile settings sheets have their own outer frame; the nested menu has none. */
html body.cinema-site.cinema-site.cinema-site.cinema-site .mobile-player-sheet>.cinema-menu{box-shadow:none!important;outline:0!important}
@media (hover:hover) and (pointer:fine) and (min-width:601px){
  @media (min-width: 1025px) and (hover: hover) and (pointer: fine){
  html body.cinema-site :is(.header-search:not(:focus-within),.catalog-search:not(:focus-within),.account-profile>summary,.hero-nav .hero-arrow,.cinema-hero-actions .cinema-more-info):hover{--inset-stroke:rgba(255,255,255,.3)}}
  html body.cinema-site :is(.header-search,.catalog-search):focus-within{--inset-stroke:rgba(255,255,255,.6)}
}
/* Image frames need an overlay so the image reaches the outside edge too. */
html body.cinema-site :is(.cinema-title-art,.cinema-episode-thumb,.watch-episode-art,.series-intro__poster){position:relative;border:0!important}
html body.cinema-site :is(.cinema-title-art,.cinema-episode-thumb,.watch-episode-art,.series-intro__poster)::before{
  content:'';position:absolute;inset:0;z-index:5;border:0;border-radius:inherit;
  box-shadow:inset 0 0 0 1px var(--control-border,rgba(255,255,255,.05));
  pointer-events:none;
}
/* Close controls retain their own size and fill, with one consistent inner rim. */
html body.cinema-site.cinema-site.cinema-site.cinema-site.cinema-site :is(.anime-detail-overlay__close,.modal-close,.responsive-search-close,.reimon-install-close,.search-close,[data-close-icon],.card-act--dismiss,.cinema-settings-close,.cinema-caption-close){
  --inset-stroke:rgba(255,255,255,.1);
  border:0!important;outline:0!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)!important;
}
/* Default secondary rims only. Local transparent/brand strokes and border:0
   rules still decide whether a rim exists; hover keeps its existing token. */
html body.cinema-site :where(
  button,.btn,[role="button"],select,.dropdown-toggle,summary,
  .catalog-dropdown-trigger,.catalog-dropdown-menu,.dropdown-menu,.account-dropdown,
  .card-act,.hero-arrow,.episode-view-tabs,.detail-section-tabs,[role="tablist"],[role="tab"]
):not(:hover):not(:disabled):not([aria-disabled="true"]):not(.btn-primary):not(.primary):not([data-variant="primary"]):not(.btn-danger){
  --control-border:rgba(255,255,255,.1);
}
@media (hover:none), (pointer:coarse){
  html body.cinema-site :where(
    button,.btn,[role="button"],select,.dropdown-toggle,summary,
    .catalog-dropdown-trigger,.catalog-dropdown-menu,.dropdown-menu,.account-dropdown,
    .card-act,.hero-arrow,.episode-view-tabs,.detail-section-tabs,[role="tablist"],[role="tab"]
  ):not(:disabled):not([aria-disabled="true"]):not(.btn-primary):not(.primary):not([data-variant="primary"]):not(.btn-danger){
    --control-border:rgba(255,255,255,.1);
  }
}
@media (min-width:1025px) and (hover:hover) and (pointer:fine){
  html body.cinema-site.cinema-site.cinema-site.cinema-site.cinema-site :is(.anime-detail-overlay__close,.modal-close,.responsive-search-close,.reimon-install-close,.search-close,[data-close-icon],.card-act--dismiss,.cinema-settings-close,.cinema-caption-close):hover{
    --inset-stroke:rgba(255,255,255,.1);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)!important;
  }
}
