/* kino additions on top of vivarium's styles. Same tokens, nothing new to learn. */

/* brand */
.kino-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.kino-brand img { width: 30px; height: 30px; image-rendering: pixelated; }
.kino-word { font-family: var(--font-label); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--text); }
[class*="Layout-module"][class*="__footerLogo"][src$="sweetfox-mark.svg"] { image-rendering: pixelated; }
.kino-initial { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-weight: 700; font-size: 15px; color: var(--text); }

/* 4K: flat gold outline */
.kino-4k-tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 5px; margin-left: 6px;
  border: 1px solid #e2b84a; border-radius: 4px; color: #e2b84a; background: transparent;
  font: 600 10.5px/1 var(--font-body); letter-spacing: 0.09em; font-variant-numeric: tabular-nums; vertical-align: middle;
}
.kino-4k { color: #e2b84a !important; }
.kino-count { color: var(--text-muted); margin-left: 4px; font-variant-numeric: tabular-nums; }

/* hero trailer */
.kino-clip iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 769px) { .kino-mute { bottom: calc(clamp(34px, 4.5vw, 54px) + 46px) !important; } }
.kino-hero-wait { min-height: min(86vh, 820px); background: var(--surface-1); }

/* continue watching */
.kino-progress { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.24); overflow: hidden; z-index: 4; pointer-events: none; }
.kino-progress i { display: block; height: 100%; background: var(--primary); border-radius: inherit; }

/* watch page overlays: skip, notice, up next */
#kino-over { position: absolute; right: 22px; bottom: 76px; z-index: 6; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
#kino-over > * { pointer-events: auto; animation: var(--pop-in, none); }
.kino-skip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--radius-round); font-weight: 600; font-size: 15px; }
.kino-notice { padding: 9px 14px; border-radius: var(--radius-sm); background: var(--tip-bg); color: var(--text-dim); font-size: 13px; }
.kino-next {
  width: min(360px, calc(100vw - 44px)); display: grid; grid-template-columns: 120px 1fr; gap: 10px 12px; align-items: center;
  padding: 10px; border-radius: var(--radius-md); background: var(--surface-2); box-shadow: var(--panel-shadow);
}
.kino-next-art { aspect-ratio: 16 / 9; border-radius: var(--radius-xs); overflow: hidden; background: var(--surface-3); }
.kino-next-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kino-next-text { display: grid; gap: 2px; min-width: 0; }
.kino-next-text small { color: var(--text-muted); font-size: 12px; }
.kino-next-text strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kino-next-bar { grid-column: 1 / -1; height: 3px; border-radius: 99px; background: var(--fill-2); overflow: hidden; }
.kino-next-bar i { display: block; height: 100%; background: var(--primary); transform-origin: 0 50%; }
.kino-next-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kino-next-actions > * { justify-content: center; display: inline-flex; align-items: center; gap: 6px; }

/* server picker */
.kino-servers button { justify-content: space-between; }
.kino-srv { display: grid; gap: 1px; text-align: left; }
.kino-srv b { font-weight: 600; font-size: 14px; }
.kino-srv small { color: var(--text-muted); font-size: 12px; }
.kino-srv-tags { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.kino-srv-tags .kino-4k-tag { margin-left: 0; }
/* Ad-free (VidQueen only): the 4K tag's outline, in green */
.kino-adfree-tag { border-color: #4fd18b; color: #4fd18b; letter-spacing: .04em; }
/* the Embeds list's heading: what an embed is, above the servers */
.kino-srv-head { display: grid; gap: 4px; padding: 8px 12px 11px; margin-bottom: 6px; border-bottom: 1px solid var(--hairline); }
.kino-srv-head b { font: 700 11px/1 var(--font-body); letter-spacing: .09em; text-transform: uppercase; }
.kino-srv-head small { color: var(--text-muted); font-size: 12px; line-height: 1.35; }

/* sign in / create account */
.kino-auth { display: grid; gap: 14px; width: min(380px, 100%); }
.kino-field { display: grid; gap: 6px; font-size: 13px; color: var(--text-muted); }
.kino-field .replica-input { width: 100%; }
.kino-note { color: var(--text-dim); }
.kino-err { color: var(--danger); font-size: 13.5px; min-height: 0; }
.kino-err:empty { display: none; }
.kino-alt { color: var(--text-muted); font-size: 14px; }
.kino-alt button { color: var(--text); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.kino-auth .btnPrimary { width: 100%; justify-content: center; }

/* Settings > Ads: the "Turn off ads?" dialog. The fox is the site mark, greyed and drooping. */
.kads-ask { display: grid; gap: 10px; justify-items: center; width: min(400px, 100%); margin: 0 auto; padding: 4px 0 2px; text-align: center; }
.kads-ask p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }
.kads-fox { width: 64px; height: 64px; image-rendering: pixelated; filter: grayscale(1) brightness(.8); opacity: .8; transform: rotate(-8deg) translateY(3px); margin-bottom: 4px; }
.kads-ask .kads-lead { color: var(--text); font-size: 17px; font-weight: 700; }
.kads-ask .kads-small { color: var(--text-muted); font-size: 13px; }
.kads-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 8px; }
.kads-acts > * { justify-content: center; }
@media (max-width: 480px) { .kads-acts { grid-template-columns: 1fr; } }
.kino-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.kino-empty { display: grid; gap: 10px; justify-items: start; }

/* pages */
.kino-uhd { padding-top: 8px; }
.kino-story { margin-top: 40px; }
.kino-story .browse-heading h2 { font-size: 22px; }
.kino-sentinel { height: 1px; }

@media (max-width: 768px) {
  #kino-over { position: absolute; right: 10px; bottom: 54px; }
  .kino-skip { height: 38px; padding: 0 14px; font-size: 13.5px; }
  .kino-next { grid-template-columns: 96px 1fr; padding: 8px; }
  .kino-word { display: none; }
}
@media (max-width: 420px) {
  .kino-next { width: calc(100vw - 20px); }
}

/* ---------- cards: lift, pointer drift, play ---------- */
.MediaCard-module__ksxplG__artBox { transition: translate .55s cubic-bezier(.34, 1.4, .64, 1), scale .55s cubic-bezier(.34, 1.4, .64, 1); }
.MediaCard-module__ksxplG__imageWrap { transition: box-shadow .45s var(--ease-out); }
.kino-card-play {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(20, 20, 20, .55); border: 1px solid rgba(255, 255, 255, .22);
  opacity: 0; transform: translate(-50%, -50%) scale(.82); transition: opacity .25s var(--ease-out), transform .45s cubic-bezier(.34, 1.4, .64, 1), background .2s;
  cursor: pointer; padding: 0;
}
.kino-card-play:hover { background: rgba(255, 255, 255, .92); color: #080808; }
.kino-card-play svg { margin-left: 2px; }
.MediaCard-module__ksxplG__card:focus-within .kino-card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: hover) {
  .MediaCard-module__ksxplG__card:hover .kino-card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .MediaCard-module__ksxplG__card:hover .MediaCard-module__ksxplG__artBox { translate: 0 -5px; scale: 1.035; }
  .MediaCard-module__ksxplG__card:hover .MediaCard-module__ksxplG__imageWrap { box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .85); }
  .MediaCard-module__ksxplG__card:hover .MediaCard-module__ksxplG__poster {
    transform: scale(1.09) translate(calc((var(--mx, .5) - .5) * -12px), calc((var(--my, .5) - .5) * -9px)) !important;
    transition: transform .35s var(--ease-out), opacity .6s var(--ease-glide);
  }
  .MediaCard-module__ksxplG__card .MediaCard-module__ksxplG__logo { transition: opacity var(--t-slow) var(--ease-out), translate .35s var(--ease-out); }
  .MediaCard-module__ksxplG__card:hover .MediaCard-module__ksxplG__logo { translate: calc((var(--mx, .5) - .5) * 9px) calc((var(--my, .5) - .5) * 7px); }
}
/* room for the lift inside scrolling rows */
.MediaRow-module__cgKaXa__row { padding-top: 8px; margin-top: -8px; }

/* ---------- page transition: card art to title hero ---------- */
::view-transition-group(kino-art) { animation-duration: .5s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
::view-transition-image-pair(kino-art) { isolation: auto; }
::view-transition-old(kino-art), ::view-transition-new(kino-art) { object-fit: cover; height: 100%; mix-blend-mode: normal; }
::view-transition-old(kino-art) { animation: kinoFadeOut .3s ease both; }
::view-transition-new(kino-art) { animation: kinoFadeIn .35s ease both; }
@keyframes kinoFadeOut { to { opacity: 0; } }
@keyframes kinoFadeIn { from { opacity: 0; } }

/* ---------- title page sections ---------- */
.frostGlass.kino-sticky { position: sticky; top: 64px; z-index: 30; background: rgb(var(--bg-rgb)); transition: box-shadow .2s var(--ease-out); }
/* While stuck, a shadow strip also covers the band behind the floating nav (the tab bar scrolls
   sideways, so a pseudo-element above it would be clipped). */
.frostGlass.kino-sticky.is-stuck { box-shadow: 0 -40px 0 24px rgb(var(--bg-rgb)); }
.chipOn .kino-count { color: inherit; opacity: .55; }
.kino-sec { scroll-margin-top: 140px; margin-top: 44px; }
.kino-sec:first-child { margin-top: 18px; }
.kino-sec-h { font-family: var(--font-label); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 16px; padding-inline: var(--page-pad); }
#sec-Trailers .kino-sec-b, #sec-Cast .kino-sec-b, #sec-Photos .kino-sec-b, #sec-Reviews .kino-sec-b { padding-inline: var(--page-pad); }
.kino-person-page .kino-sec-h { padding-inline: 0; }
.kino-sec .kino-rail, .kino-sec .kino-cast { margin-inline: calc(var(--page-pad) * -1); padding-inline: var(--page-pad); scroll-padding-inline: var(--page-pad); }
.kino-person-page .kino-sec .kino-rail { margin-inline: 0; padding-inline: 0; }
.kino-person-page .MediaRow-module__cgKaXa__section { padding-inline: 0; }
#sec-Episodes .Player-module__xXxKtq__epsSection, #sec-About .Player-module__xXxKtq__about { margin-bottom: 0; }
#sec-About .kino-facts, #sec-About .kt-keywords { padding-inline: var(--page-pad); }
.kino-sec-wait { height: 120px; border-radius: var(--radius-content); background: var(--surface-1); }
.kino-rail { display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x proximity; justify-content: start; }
.kino-rail::-webkit-scrollbar { display: none; }
.kino-rail > * { scroll-snap-align: start; }

.kino-video { width: 280px; display: grid; gap: 6px; text-align: left; background: none; border: 0; padding: 0; color: var(--text); cursor: pointer; }
.kino-video-art { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-content); overflow: hidden; background: var(--surface-2); }
.kino-video-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.kino-video:hover .kino-video-art img { transform: scale(1.05); }
.kino-video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 20, 20, .6); border: 1px solid rgba(255, 255, 255, .22); transition: background .2s, color .2s; }
.kino-video:hover .kino-video-play { background: rgba(255, 255, 255, .92); color: #080808; }
.kino-video-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kino-video-type { color: var(--text-muted); font-size: 12.5px; margin-top: -4px; }

.kino-cast { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 6px; justify-content: start; }
.kino-cast::-webkit-scrollbar { display: none; }
.kino-cast .kino-more-item { display: none; }
.kino-cast.kino-open { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); overflow: visible; }
.kino-cast.kino-open .kino-more-item { display: grid; }
.kino-person { display: grid; justify-items: center; align-content: start; text-align: center; gap: 3px; color: var(--text); text-decoration: none; }
.kino-face { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: var(--surface-2); margin-bottom: 8px; display: grid; place-items: center; transition: transform .45s cubic-bezier(.34, 1.4, .64, 1), box-shadow .3s; }
.kino-face img { width: 100%; height: 100%; object-fit: cover; }
.kino-person:hover .kino-face { transform: translateY(-3px) scale(1.04); box-shadow: 0 0 0 2px var(--fill-4); }
.kino-person strong { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.kino-person small { color: var(--text-muted); font-size: 12px; line-height: 1.3; }
.kino-person .kino-faint { color: var(--text-faint); }
.kino-initials { font-family: var(--font-label); font-weight: 700; font-size: 26px; color: var(--text-muted); }
.kino-show-all { margin-top: 14px; }
.kino-crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 28px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--hairline); }
.kino-crew dt { color: var(--text-muted); font-size: 12.5px; margin-bottom: 4px; }
.kino-crew dd { margin: 0; font-size: 14.5px; font-weight: 500; }
.kino-crew a { color: var(--text); text-decoration: none; }
.kino-crew a:hover { text-decoration: underline; text-underline-offset: 3px; }

.kino-photo-tabs { margin-bottom: 14px; }
.kino-photos { grid-auto-columns: 300px; }
.kino-photos.is-posters { grid-auto-columns: 150px; }
.kino-photos[hidden] { display: none; }
.kino-photo { padding: 0; border: 0; background: var(--surface-2); border-radius: var(--radius-content); overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 9; }
.kino-photos.is-posters .kino-photo { aspect-ratio: 2 / 3; }
.kino-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.kino-photo:hover img { transform: scale(1.05); }
.kino-lightbox img { width: 100%; max-height: 74vh; object-fit: contain; border-radius: var(--radius-sm); }
.kino-facts { margin-top: 18px; }

/* ---------- person page ---------- */
.kino-person-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; margin-bottom: 36px; }
.kino-portrait { aspect-ratio: 2 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.kino-portrait img { width: 100%; height: 100%; object-fit: cover; }
.kino-person-copy h1 { font-family: var(--font-label); font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 10px; }
.kino-person-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-muted); font-size: 14px; margin: 0 0 16px; }
.kino-bio { max-height: 9.6em; overflow: hidden; color: var(--text-dim); line-height: 1.6; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.kino-bio p { margin: 0 0 .8em; }
.kino-bio.kino-open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.kino-bio-more { background: none; border: 0; padding: 0; margin-top: 6px; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.kino-person-stats { display: flex; gap: 18px; margin-top: 18px; color: var(--text-muted); font-size: 13.5px; }
.kino-person-stats b { color: var(--text); font-weight: 700; }
.kino-credits { display: grid; border-top: 1px solid var(--hairline); }
.kino-credits .kino-more-item { display: none; }
.kino-credits.kino-open .kino-more-item { display: grid; }
.kino-credit { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 12px 6px; border-bottom: 1px solid var(--hairline); color: var(--text); text-decoration: none; align-items: baseline; border-radius: 6px; transition: background .2s; }
.kino-credit:hover { background: var(--fill-1); }
.kino-credit-y { color: var(--text-muted); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.kino-credit-t { font-weight: 600; }
.kino-credit-r { color: var(--text-muted); font-size: 13.5px; }

@media (max-width: 768px) {
  .Watch-module__4kHh8W__side { padding-inline: var(--page-pad, 16px); }
  .frostGlass.kino-sticky { top: 58px; }
  .frostGlass.kino-sticky.is-stuck { box-shadow: 0 -35px 0 24px rgb(var(--bg-rgb)); }
  .kino-sec { scroll-margin-top: 118px; margin-top: 34px; }
  .kino-sec-h { font-size: 19px; }
  .kino-video { width: 220px; }
  .kino-cast { grid-auto-columns: 88px; gap: 12px; }
  .kino-face { width: 84px; height: 84px; }
  .kino-photos { grid-auto-columns: 240px; }
  .kino-photos.is-posters { grid-auto-columns: 112px; }
  /* the portrait sits beside the name and the biography runs full width below it */
  .kino-person-head { display: block; }
  .kino-person-head::after { content: ''; display: block; clear: both; }
  .kino-person-head .kino-portrait { float: left; width: 112px; margin: 4px 16px 12px 0; }
  .kino-credit { grid-template-columns: 48px minmax(0, 1fr); }
  .kino-credit-r { grid-column: 2; margin-top: -10px; }
  .kino-card-play { width: 40px; height: 40px; }
}

/* =====================================================================
   kino's own look: our font, a 67-style capsule nav, a 67-style hero,
   the title page, buttons and cards.
   ===================================================================== */
:root, html[data-theme] {
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --kino: #ff8a3d;
}
body { font-family: var(--font-body); }
.kino-progress i, .kino-next-bar i { background: var(--kino); }

/* ---------- nav: floating capsule ---------- */
/* #navigation stays unpositioned so the phone logo and account button sit at the top of the page. */
html.k-on-hero #main { padding-top: 0 !important; }
.kn-wrap { position: fixed; top: 18px; left: 0; right: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; pointer-events: none; transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s ease; }
.kn-wrap.is-away { transform: translateY(-120px); opacity: 0; }
.kn-shell {
  pointer-events: auto; position: relative; display: flex; align-items: center; gap: 4px; padding: 8px;
  border-radius: 999px; background: rgba(38, 40, 48, .5); border: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  transition: background .3s ease;
}
.kn-wrap.is-scrolled .kn-shell { background: rgba(20, 21, 26, .86); }
.kn-brand { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.kn-brand img, .kn-mbrand img { width: 24px; height: 24px; image-rendering: pixelated; }
.kn-tabs { position: relative; isolation: isolate; display: flex; align-items: center; gap: 2px; max-width: 640px; transition: max-width .4s cubic-bezier(.22, 1, .36, 1), opacity .2s ease; }
.kn-pill, .kn-hover, .kn-dpill { position: absolute; left: 0; top: 0; height: 44px; border-radius: 999px; opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.22, 1, .36, 1), width .35s cubic-bezier(.22, 1, .36, 1), opacity .2s ease; }
.kn-pill, .kn-dpill { background: #fff; }
.kn-hover { background: rgba(255, 255, 255, .08); }
.kn-tab, .kn-dtab { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; color: rgba(255, 255, 255, .8); font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap; mix-blend-mode: difference; transition: color .2s ease; }
.kn-tab:hover { color: #fff; }
/* Tab names and icons are white and blend by difference with the pill under them, so they are dark exactly where the
   white pill is, frame by frame, wherever the pill has got to. (Their own colour used to flip on the click, so the tab
   being left went dark on the dark bar and the new one stayed white on the arriving pill until its fade caught up.) */
.kn-tab.is-on, .kn-dtab.is-on { color: #fff; }
.kn-div { width: 1px; height: 24px; background: rgba(255, 255, 255, .12); margin: 0 6px; flex: none; }
.kn-icon { width: 44px; height: 44px; border-radius: 999px; display: inline-grid; place-items: center; flex: none; color: rgba(255, 255, 255, .85); background: none; border: 0; padding: 0; cursor: pointer; transition: background .2s, transform .2s, color .2s; }
.kn-icon:hover { background: rgba(255, 255, 255, .1); transform: scale(1.06); color: #fff; }
/* As on 67: the account button stays a plain circle-user; it lights up while its menu is open. */
.kn-avatar[aria-expanded="true"] { background: rgba(255, 255, 255, .12); color: #fff; }
.kn-search { width: 0; overflow: hidden; flex: none; transition: width .45s cubic-bezier(.22, 1, .36, 1); }
.kn-search input { width: 360px; height: 44px; border: 0; outline: 0; background: rgba(255, 255, 255, .09); border-radius: 999px; padding: 0 18px; color: #fff; font: 600 15px var(--font-body); }
.kn-search input::placeholder { color: rgba(255, 255, 255, .5); }
.kn-search input::-webkit-search-cancel-button { display: none; }
.kn-shell.is-search .kn-search { width: 360px; }
.kn-shell.is-search .kn-tabs { max-width: 0; opacity: 0; overflow: hidden; }
.kn-icon:hover { transform: none; }
.kn-drop { pointer-events: auto; position: relative; width: min(480px, calc(100vw - 32px)); margin-top: 10px; }
.kn-drop:empty { display: none; }
.kn-drop .Palette-module__lZNMnG__drop { position: static; background: rgba(17, 18, 24, .96); border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.kn-mbrand, .kn-macct, .kn-dock { display: none; }

/* ---------- buttons ---------- */
.kbtn { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 14px; font: 700 16px/1 var(--font-body); border: 0; cursor: pointer; white-space: nowrap; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.kbtn:active { transform: scale(.98); }
.kbtn-play { background: #fff; color: #0b0b0d; }
.kbtn-play:hover { background: #ececec; transform: translateY(-1px); }
.kbtn-glass, .kbtn-round { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.kbtn-glass:hover, .kbtn-round:hover { background: rgba(255, 255, 255, .25); transform: translateY(-1px); }
.kbtn.kh-soon { cursor: default; pointer-events: none; } /* "In 42 days" in place of Play: a label, not a button */
.kbtn-round { position: relative; width: 46px; height: 46px; flex: none; border-radius: 999px; display: inline-grid; place-items: center; padding: 0; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.kbtn-round[hidden] { display: none; }
.kbtn-round > span { display: inline-grid; place-items: center; }
.kring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); transform: rotate(-90deg); pointer-events: none; transition: opacity .4s ease; }
.kring circle { fill: none; stroke-width: 2.25; }
.kring-track { stroke: rgba(255, 255, 255, .18); }
.kring-fill { stroke: rgba(255, 255, 255, .95); stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.kring.is-spin { animation: kspin 1s linear infinite; }
.kring.is-done { opacity: 0; }
@keyframes kspin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.kstar { display: inline-flex; align-items: center; gap: 4px; color: #f5c451; font-weight: 700; }
.kdot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .45); display: inline-block; flex: none; }
.kcert { border: 1px solid rgba(255, 255, 255, .45); border-radius: 4px; padding: 1px 6px; font-size: 12px; line-height: 1.4; }
.kh-meta .kino-4k-tag, .kt-meta .kino-4k-tag { margin-left: 0; }
@keyframes kIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- hero: 67's layout ---------- */
.kh { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; }
.kh-wait { background: var(--surface-1); }
.kh-media { position: absolute; inset: 0; z-index: -1; }
.kh-stills { position: absolute; inset: 0; }
.kh-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 1s cubic-bezier(.4, 0, .2, 1), transform 1s cubic-bezier(.4, 0, .2, 1); }
.kh-still.is-in { opacity: 1; transform: scale(1); }
.kh.is-playing .kh-still { opacity: 0; }
.kh-video, .kt-video { position: absolute; inset: 0; overflow: hidden; opacity: 0; container-type: size; pointer-events: none; transition: opacity 1s cubic-bezier(.4, 0, .2, 1); }
.kh-video iframe, .kt-video iframe { position: absolute; left: 50%; top: 50%; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%) scale(1.36); border: 0; }
.kh.is-playing .kh-video, .kt.is-playing .kt-video { opacity: 1; }
/* Held (paused for a card's trailer, or stalled): the still shows instead of YouTube's paused screen. */
.kh-video.is-held, .kt-video.is-held { opacity: 0 !important; transition-duration: .25s; }
.kh.is-playing:has(.kh-video.is-held) .kh-still { opacity: 1; }
.kh-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .4) 50%, rgba(0, 0, 0, 0) 100%); }
.kh.is-playing .kh-scrim { background: rgba(0, 0, 0, .2); }
.kh-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 33.4%; z-index: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 100%); }
.kh-content { position: absolute; z-index: 10; left: 64px; top: 20%; width: clamp(220px, 40vw, 440px); max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 32px; transform-origin: 50% 50%; transition: top .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1); }
.kh.is-quiet .kh-content { top: 30%; transform: scale(.75); }
.kh-logo { margin: 0; width: 100%; display: flex; justify-content: center; align-items: center; }
.kh-logo img { width: 100%; max-width: 440px; min-width: 220px; max-height: 120px; object-fit: contain; margin: 0 auto; }
.kh-logo span { font: 800 60px/1 var(--font-label); letter-spacing: -.02em; color: #fff; text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.kh-actions { width: 100%; display: flex; align-items: center; justify-content: center; gap: 24px; }
.kh .kbtn { height: auto; min-height: 48px; min-width: 110px; padding: 10px 24px; gap: 12px; border-radius: 999px; font: 600 20px/1.2 var(--font-body); justify-content: center; }
.kh .kbtn-play { box-shadow: 0 14px 28px rgba(0, 0, 0, .3); }
.kh .kbtn-play:hover { background: #fff; box-shadow: 0 16px 32px rgba(0, 0, 0, .34); }
.kh .kbtn-glass { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .18); box-shadow: 0 14px 28px rgba(0, 0, 0, .3); }
.kh .kbtn-round { width: 48px; height: 48px; background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .2); box-shadow: 0 12px 24px rgba(0, 0, 0, .28); }
.kh-content.is-out { opacity: 0; transform: translateY(-16px); transition: opacity .25s ease, transform .25s ease; }
.kh-content.is-in > * { animation: khDrop .7s cubic-bezier(.4, 0, .2, 1) both; }
.kh-content.is-in > .kh-actions { animation-name: khPop; animation-delay: .18s; }
@keyframes khDrop { from { opacity: 0; transform: translateX(-40px) scale(.96); } }
@keyframes khPop { from { opacity: 0; transform: scale(.96); } }
.kh-toggle { position: absolute; z-index: 20; left: 50%; bottom: 16px; width: 48px; height: 48px; margin-left: -24px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .24); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 12px 24px rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.kh-toggle:hover { background: rgba(255, 255, 255, .32); transform: translateY(-1px); }
.kh-toggle[hidden] { display: none; }
.kh-bottom { position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; padding: 0 64px 80px; transition: opacity .5s cubic-bezier(.4, 0, .2, 1), transform .5s cubic-bezier(.4, 0, .2, 1); }
.kh.row-off .kh-bottom { opacity: 0; transform: translateY(64px); pointer-events: none; }

/* 67's rail card */
.kh-rail-h { margin: 0 0 12px; font: 700 18px/1.2 var(--font-label); color: #fff; }
.kh-rail-track { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.kh-rail-track::-webkit-scrollbar { display: none; }
.kh-card { flex: 0 0 375px; cursor: pointer; }
.kh-card-art { position: relative; display: block; height: 210px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); background: var(--surface-2); }
.kh-card-art > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.kh-card:hover .kh-card-art > img:first-child { transform: scale(1.05); }
.kh-card-logo { position: absolute; z-index: 1; right: 8px; top: 50%; transform: translateY(-50%); width: 128px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); pointer-events: none; }
.kh-card-name { position: absolute; z-index: 1; right: 12px; top: 50%; transform: translateY(-50%); max-width: 55%; font: 800 20px/1.1 var(--font-label); text-align: right; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.kh-card-rank { position: absolute; z-index: 1; left: 12px; top: 8px; font: 800 40px/1 var(--font-label); letter-spacing: -.04em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 1px rgba(0, 0, 0, .6); }
.kh-card-save { position: absolute; z-index: 2; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; padding: 0; color: #fff; background: rgba(0, 0, 0, .4); border: 0; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); cursor: pointer; opacity: 0; transition: opacity .2s ease, background .2s ease; }
.kh-card-save svg { width: 14px; height: 14px; }
.kh-card:hover .kh-card-save, .kh-card-save:focus-visible { opacity: 1; }
.kh-card-save:hover { background: rgba(0, 0, 0, .65); }
@media (min-width: 769px) { [data-slot="top"] { display: none; } }
.Home-module__g21JLG__wrap { padding-top: 0 !important; }

/* ---------- title page ---------- */
.kt-hero { position: relative; min-height: min(94vh, 920px); display: flex; align-items: flex-end; isolation: isolate; padding: 120px var(--page-pad) 40px; }
.kt-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #000; }
.kt-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; opacity: 0; transform: scale(1.12); transition: opacity 1.1s ease; }
.kt-still.is-in { opacity: 1; animation: ktSettle 16s cubic-bezier(.2, .6, .2, 1) both; }
@keyframes ktSettle { from { transform: scale(1.12); } to { transform: scale(1); } }
/* the large picture over the card's own (same picture, smaller, shown at once): a short fade, in step */
.kt-still.is-over { transition-duration: .6s; }
.kt-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .5) 38%, rgba(0, 0, 0, .06) 72%), linear-gradient(0deg, rgb(var(--bg-rgb)) 0%, rgba(var(--bg-rgb), .45) 20%, rgba(0, 0, 0, 0) 45%); }
.kt-back { position: absolute; top: 26px; left: var(--page-pad); z-index: 2; }
.kt-body { width: 100%; display: grid; grid-template-columns: minmax(0, 580px) minmax(260px, 340px); justify-content: space-between; align-items: end; gap: 32px; }
.kt-main { display: grid; gap: 16px; justify-items: start; }
.kt-main > * { animation: kIn .7s cubic-bezier(.22, 1, .36, 1) both; }
.kt-main > :nth-child(2) { animation-delay: .05s; }
.kt-main > :nth-child(3) { animation-delay: .1s; }
.kt-main > :nth-child(4) { animation-delay: .15s; }
.kt-main > :nth-child(n+5) { animation-delay: .2s; }
.kt-logo { margin: 0; height: clamp(72px, 9vw, 124px); display: flex; align-items: flex-end; }
.kt-logo img { max-width: min(380px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .45)); }
/* an SVG logo has no width of its own to size the box by */
.kt-logo img[src$=".svg"] { width: min(380px, 70vw); height: 100%; }
.kt-logo span { font: 800 clamp(34px, 4.6vw, 60px)/1 var(--font-label); letter-spacing: -.03em; }
/* title page drawn again with the full details: changed lines swap quietly, new ones fade in,
   the logo waits in its slot (hidden title text) and fades in once decoded */
.kt-logo img, .kt-logo span { transition: opacity .45s ease; }
.kt-logo.is-wait span, .kt-logo.is-load img { opacity: 0; }
.kt-main > .kt-calm { animation: none; }
.kt-main > .kt-new { animation: kFade .5s ease both; }
.kt-logo.is-swap > * { transform-origin: left bottom; animation: kLogoIn .6s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes kLogoIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .kt-logo.is-swap > *, .kt-main > .kt-new { animation-duration: .01s; } }
.kt-genres { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; font-weight: 650; }
.kt-genres a, .kt-credit a { color: #fff; text-decoration: none; }
.kt-genres a:hover, .kt-credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.kt-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 600; }
.kt-credit { margin: 0; color: rgba(255, 255, 255, .88); font-size: 14px; line-height: 1.5; }
.kt-credit > span { color: rgba(255, 255, 255, .55); margin-right: 6px; }
.kt-over p { margin: 0; max-width: 62ch; color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kt-over.is-open p { display: block; }
.kt-more { background: none; border: 0; padding: 0; margin-top: 6px; color: #fff; font: 700 14px var(--font-body); cursor: pointer; }
.kt-resume { display: grid; gap: 6px; width: min(360px, 100%); color: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 600; }
.kt-resume i { display: block; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.kt-resume b { display: block; height: 100%; background: var(--kino); border-radius: inherit; }
.kt-side { align-self: end; animation: kIn .8s cubic-bezier(.22, 1, .36, 1) .15s both; }
.kt-card { margin: 0; padding: 4px 18px; border-radius: 18px; background: rgba(14, 14, 18, .62); border: 1px solid rgba(255, 255, 255, .09); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.kt-card div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 13px; }
.kt-card div:last-child { border-bottom: 0; }
.kt-card dt { color: rgba(255, 255, 255, .55); }
.kt-card dd { margin: 0; font-weight: 650; text-align: right; }
.kt-studio { display: block; max-width: 140px; max-height: 44px; margin: 18px auto 0; object-fit: contain; filter: brightness(0) invert(1); opacity: .65; }
.kt-sections { padding: 8px 0 40px; }
/* Heroes fade into the page itself (which carries the ambient tint), so there is no seam where
   the artwork ends. */
.kh, .kt-media { background: transparent; }
.kh-media, .kt-media { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, .55) 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, .55) 80%, transparent 100%); }
.kh-scrim { background: linear-gradient(90deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .4) 36%, rgba(0, 0, 0, 0) 62%), linear-gradient(0deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 40%); }
.kt-scrim { background: linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .5) 38%, rgba(0, 0, 0, .06) 72%), linear-gradient(0deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 40%); }
.kt-sections .kino-sec:first-child { margin-top: 8px; }

/* ---------- cards: badges instead of notches, big rank numbers ---------- */
.MediaCard-module__ksxplG__flag { top: 10px; left: 10px; padding: 5px 8px; border-radius: 8px; background: rgba(10, 10, 12, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.MediaCard-module__ksxplG__flag.kino-4k { border: 1px solid #e2b84a; background: rgba(10, 10, 12, .72); letter-spacing: .08em; }
.MediaCard-module__ksxplG__flagRank { top: 0; left: 0; width: 37px; height: 32px; padding: 0; display: grid; place-items: center; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; font: 800 19px/1 var(--font-label); letter-spacing: -.02em; color: #fff; text-shadow: none; }
/* 4K page: room between the filters and the grid; every card there is 4K, so no badge. */
#uhd-chips { margin: 4px 0 26px; }
#uhd-grid .kino-4k { display: none; }
.MediaRow-module__cgKaXa__headMore { background: none !important; box-shadow: none !important; border: 0 !important; color: var(--text-muted); font-weight: 650; padding: 0 !important; }
.MediaRow-module__cgKaXa__headMore:hover { color: #fff; }

@media (max-width: 768px) {
  .kn-wrap { display: none; }
  .kn-mbrand { display: inline-flex; position: absolute; top: 16px; left: 16px; z-index: 50; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 17px; text-decoration: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
  .kn-macct { display: inline-grid; place-items: center; position: absolute; top: 10px; right: 12px; z-index: 50; width: 40px; height: 40px; border-radius: 999px; background: rgba(20, 21, 26, .55); border: 1px solid rgba(255, 255, 255, .12); color: #fff; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .kn-dock { display: flex; position: fixed; z-index: 100; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); align-items: center; padding: 6px; border-radius: 999px; background: rgba(11, 12, 16, .93); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .kn-dpill { top: 6px; }
  .kn-dtab { padding: 0 16px; font-size: 14px; }
  .kn-dicon { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: rgba(255, 255, 255, .85); background: none; border: 0; padding: 0; }
  html.k-on-title .kn-mbrand { display: none; }

  .kbtn { height: 44px; padding: 0 20px; font-size: 15px; }
  .kbtn-round { width: 44px; height: 44px; }

  .kh { height: 78svh; min-height: 520px; }
  .kh-content, .kh.is-quiet .kh-content { left: 16px; right: 16px; top: auto; bottom: 40px; width: auto; max-width: none; gap: 18px; transform: none; }
  .kh-logo img { min-width: 0; max-width: min(260px, 74vw); max-height: 84px; }
  .kh-logo span { font-size: 36px; }
  .kh-actions { gap: 10px; }
  .kh .kbtn { min-height: 44px; min-width: 0; padding: 8px 20px; font-size: 16px; gap: 9px; }
  .kh .kbtn-round { width: 44px; height: 44px; }
  .kh-bottom, .kh-toggle { display: none; }
  .kh-scrim { background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .3) 30%, rgba(0, 0, 0, 0) 58%), linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 22%); }

  .kt-hero { min-height: 0; display: block; padding: 0; }
  .kt-media { position: relative; z-index: 0; inset: auto; aspect-ratio: 16 / 10; }
  .kt-scrim { background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 30%); }
  .kt-back { top: 12px; left: 12px; width: 42px; height: 42px; }
  .kt-body { grid-template-columns: 1fr; padding: 0 var(--page-pad); margin-top: -44px; position: relative; gap: 22px; }
  .kt-main { gap: 14px; }
  .kt-logo { height: 76px; }
  .kt-logo img { max-width: min(280px, 80vw); }
  .kt-logo img[src$=".svg"] { width: min(280px, 80vw); }
  .MediaCard-module__ksxplG__flagRank { font-size: 17px; }
}
@media (max-width: 380px) {
  .kn-dtab { padding: 0 12px; font-size: 13.5px; }
  .kn-dicon { width: 40px; }
}

/* Movies / Series tabs */
.kino-tab-more { display: flex; justify-content: center; padding: 8px var(--page-pad) 24px; }
.kino-tab-more .btnGhost { padding: 12px 22px; }

/* Card play button: centred by layout, not transform, so vivarium's press effect
   (button:active { transform: scale(.96) }) cannot shove it off centre. */
.kino-card-play { inset: 0; left: 0; top: 0; margin: auto; transform: none !important; scale: .82; transition: opacity .25s var(--ease-out), scale .45s cubic-bezier(.34, 1.4, .64, 1), background .2s; }
.MediaCard-module__ksxplG__card:focus-within .kino-card-play { scale: 1; }
@media (hover: hover) { .MediaCard-module__ksxplG__card:hover .kino-card-play { scale: 1; } }
.kino-card-play:active { scale: .94; transition-duration: .12s; }

/* Hero: chevron alone at the bottom; 67's arrows on the Top 10 cards */
.kh-controls { position: absolute; z-index: 20; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; pointer-events: none; }
.kh-controls > * { pointer-events: auto; }
.kh-controls .kh-toggle { position: static; margin: 0; }
.kh-rail-wrap { position: relative; }
.kh-rail-nav { position: absolute; z-index: 20; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 999px; display: grid; place-items: center; padding: 0; color: #fff; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); border: 0; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; transition: background .2s ease, opacity .2s ease; }
.kh-rail-nav:hover { background: rgba(255, 255, 255, .2); }
.kh-rail-nav[hidden] { display: none; }
.kh-rail-nav.is-prev { left: 16px; }
.kh-rail-nav.is-next { right: 16px; }

/* Every slider: the same arrows as 67's rows (glass circle, thin ring, middle of the cards) */
.MediaRow-module__cgKaXa__nav { width: 40px; height: 40px; color: #fff; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.MediaRow-module__cgKaXa__nav:hover { background: rgba(255, 255, 255, .2); }
/* At the ends of the visible row, over the edge cards, as on 67. */
.MediaRow-module__cgKaXa__navPrev { left: 12px; }
.MediaRow-module__cgKaXa__navNext { right: 12px; }
.MediaRow-module__cgKaXa__nav svg { transform: none; }
.kh-rail-wrap .k-track { scroll-behavior: smooth; }
.ktiles .kh-rail-nav.is-prev, .kino-sec .kh-rail-nav.is-prev { left: 16px; }
.ktiles .kh-rail-nav.is-next, .kino-sec .kh-rail-nav.is-next { right: 16px; }
.kino-sec .kino-cast + .kh-rail-nav, .kino-sec .kh-rail-wrap:has(.kino-cast) .kh-rail-nav { top: 52px; margin-top: -20px; }
@media (max-width: 768px), (hover: none) { .kh-rail-nav { display: none; } }

/* ---------- heroes: the same trailer treatment as the title page ---------- */
/* Dark on the left for the text, a soft floor, no black band: the hero dissolves into the page,
   which carries the ambience. The artwork settles slowly, as on the title page. */
.kh-fade { display: none; }
.kh-scrim, .kh.is-playing .kh-scrim { background: linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .5) 38%, rgba(0, 0, 0, .06) 72%), linear-gradient(0deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 40%); transition: background .8s ease; }
.kh-still { transform: scale(1.12); transition: opacity 1.1s ease; }
.kh-still.is-in { opacity: 1; animation: ktSettle 16s cubic-bezier(.2, .6, .2, 1) both; }
@media (max-width: 768px) {
  .kh-scrim, .kh.is-playing .kh-scrim { background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .3) 30%, rgba(0, 0, 0, 0) 58%), linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 22%); }
}

/* ---------- ambience: a slow liquid made of the colours on screen ---------- */
#mood.kamb-host { filter: none; transform: none; background: none !important; }
#kamb { width: 100%; height: 100%; display: block; }

/* ---------- hero Top 10: the row cards, rank in the notch, caption underneath ---------- */
.kh-top .kh-rail-track { gap: 14px; padding: 6px 2px 2px; }
.kh-top-item { flex: 0 0 clamp(208px, 17.6vw, 300px); min-width: 0; }
.kh-top .MediaCard-module__ksxplG__info { margin-top: 9px; }
.kh-top .MediaCard-module__ksxplG__title { color: #fff; }
.kh-top .kh-rail-nav { top: calc(50% - 22px); }
.kq { font-weight: 700; letter-spacing: .04em; }
.kq.is-4k { color: #e2b84a; }

/* ---------- card trailers (67's rail hover) ---------- */
.MediaCard-module__ksxplG__actions { z-index: 4; }
.kcard-video { position: absolute; inset: 0; z-index: 2; overflow: hidden; opacity: 0; pointer-events: none; background: #000; container-type: size; transition: opacity .5s ease; }
.kcard-video.is-on { opacity: 1; }
.kcard-frame { position: absolute; inset: 0; }
.kcard-frame iframe { position: absolute; left: 50%; top: 50%; width: var(--hqw, max(100cqw, 177.78cqh)); height: var(--hqh, max(100cqh, 56.25cqw)); transform: translate(-50%, -50%) scale(var(--hqs, 1.5)); border: 0; pointer-events: none; }
.kcard-mute { position: absolute; z-index: 5; right: 8px; bottom: 8px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 999px; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: auto; cursor: pointer; transition: background .2s; animation: kctIn .35s cubic-bezier(.2, .8, .2, 1) both; }
.kcard-mute:hover { background: rgba(0, 0, 0, .75); }
/* 67's timer: a pie in a small glass chip that fills until the trailer shows */
.kcard-timer { position: absolute; z-index: 5; right: 10px; bottom: 10px; display: block; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); pointer-events: none; animation: kctIn .3s cubic-bezier(.2, .8, .2, 1) both; transition: opacity .3s ease, transform .3s ease; }
.kcard-timer svg { display: block; width: 16px; height: 16px; transform: rotate(-90deg); }
.kcard-timer .kct-bg { fill: rgba(255, 255, 255, .18); }
.kcard-timer .kct-fill { fill: none; stroke: #fff; stroke-width: 6; }
.kcard-timer.is-done { opacity: 0; transform: scale(.6); }
@keyframes kctIn { from { opacity: 0; transform: scale(.6); } }
.is-trailing .MediaCard-module__ksxplG__logo, .is-trailing .MediaCard-module__ksxplG__artScrim, .is-trailing .kino-card-play, .is-trailing .kino-progress { opacity: 0 !important; transition: opacity .4s ease; }

/* ---------- Browse by service / studio: wordmark tiles ---------- */
.ktiles { padding: 0 var(--page-pad); }
.ktiles-h { margin: 0 0 14px; font: 700 22px/1.2 var(--font-label); letter-spacing: -.01em; color: #fff; }
.ktiles-track { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 6px 0 36px; margin-bottom: -26px; scroll-snap-type: x proximity; }
.ktiles .kh-rail-nav { top: calc(50% - 13px); }
.ktiles-track::-webkit-scrollbar { display: none; }
.ktile { position: relative; flex: 0 0 252px; height: 150px; scroll-snap-align: start; overflow: hidden; border-radius: 18px; text-decoration: none; color: #fff; background: var(--bg, #141418); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .35s cubic-bezier(.34, 1.4, .64, 1), box-shadow .3s ease; }
.ktile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 16px 30px -14px rgba(0, 0, 0, .8); }
.ktile.is-dark, .ktile-studio { color: #111; }
.ktile-studio { box-shadow: none; }
.ktile-art { position: absolute; inset: 0 0 34px; display: grid; place-items: center; padding: 18px 28px 0; }
.ktile-mark { display: block; width: auto; height: auto; max-width: 74%; max-height: 52px; object-fit: contain; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.ktile:hover .ktile-mark, .ktile:hover .ktile-icon { transform: scale(1.06); }
.ktile-mark.is-white { filter: brightness(0) invert(1); }
.ktile-mark.is-black { filter: brightness(0); }
.is-ink { filter: brightness(0) !important; }
.is-paper { filter: brightness(0) invert(1) !important; }
.ktile-studio .ktile-mark { opacity: .86; max-height: 50px; }
.ktile-icon { width: 62px; height: 62px; border-radius: 16px; object-fit: cover; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.ktile-foot { position: absolute; left: 14px; right: 12px; bottom: 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 650 13.5px/1.2 var(--font-body); }
.ktile-foot > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ktile-arrow { flex: none; width: 17px; height: 17px; opacity: .75; transition: transform .3s ease, opacity .3s ease; }
.ktile:hover .ktile-arrow { opacity: 1; transform: translate(2px, -2px); }
@media (max-width: 768px) {
  .ktile { flex-basis: 196px; height: 118px; border-radius: 16px; }
  .ktile-mark { max-height: 40px; }
  .ktile-icon { width: 50px; height: 50px; }
  .ktiles-h { font-size: 19px; }
}

/* ---------- search page ---------- */
.ks { padding: 112px var(--page-pad) 40px; min-height: 72vh; }
.ks-head { max-width: 880px; margin: 0 auto 36px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.ks-head h1 { margin: 0 0 4px; font: 800 clamp(30px, 4.4vw, 52px)/1.05 var(--font-label); letter-spacing: -.03em; color: #fff; }
.ks-field { width: 100%; display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 14px 0 22px; border-radius: 999px; color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 50px -22px rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: background .2s, box-shadow .2s; }
.ks-field:focus-within { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .34), 0 20px 50px -22px rgba(0, 0, 0, .7); }
.ks-field input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: #fff; font: 500 18px/1 var(--font-body); }
.ks-field input::placeholder { color: rgba(255, 255, 255, .5); }
.ks-field input::-webkit-search-cancel-button { display: none; }
.ks-clear { flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 999px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); cursor: pointer; }
.ks-clear[hidden] { display: none; }
.ks-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 100%; }
.ks-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ks-seg button { flex: none; padding: 9px 14px; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, .7); font: 600 13.5px/1 var(--font-body); cursor: pointer; transition: background .2s, color .2s; }
.ks-seg button:hover { color: #fff; }
.ks-seg button.is-on { background: #fff; color: #000; }
.ks-genres { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; }
.ks-genres button, .kchip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .82); font: 600 13px/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.ks-genres button:hover, .kchip:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ks-genres button.is-on { background: #fff; color: #000; box-shadow: none; }
.kchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.kchip svg { width: 14px; height: 14px; opacity: .7; }
.kchip-logo img { width: auto; height: 16px; max-width: 72px; object-fit: contain; }
.ks-out { display: grid; gap: 40px; }
.ks-sec { min-width: 0; }
.ks-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ks-sec-head h2 { margin: 0; font: 700 22px/1.2 var(--font-label); letter-spacing: -.01em; color: #fff; }
.ks-link { padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .65); font: 600 13.5px/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.ks-link:hover { color: #fff; }
.ks-note { color: rgba(255, 255, 255, .5); font-size: 13px; }
.ks-wait { opacity: .6; }
.kcoll { display: grid; gap: 8px; width: 300px; color: #fff; text-decoration: none; }
.kcoll-art { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: var(--surface-2); }
.kcoll-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.kcoll:hover .kcoll-art img { transform: scale(1.05); }
.kcoll strong { font: 650 14px/1.3 var(--font-body); }
.kp-row .kp-face { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, .1); }
.kp-all { font-weight: 600; }
@media (max-width: 768px) {
  .ks { padding-top: 88px; }
  .ks-head { justify-items: stretch; text-align: left; margin-bottom: 28px; }
  .ks-field { height: 54px; padding-left: 18px; }
  .ks-field input { font-size: 16px; }
  .ks-tools { justify-content: flex-start; }
  .ks-genres { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--page-pad) * -1); padding-inline: var(--page-pad); max-width: none; }
  .ks-genres::-webkit-scrollbar, .ks-seg::-webkit-scrollbar { display: none; }
  .ks-genres button { flex: none; }
  .kcoll { width: 240px; }
  .ks-sec-head h2 { font-size: 19px; }
}

/* ---------- TMDB pages: studios, networks, keywords, collections, people ---------- */
.kl-head { position: relative; display: flex; align-items: center; gap: 22px; margin: 0 0 26px; }
.kl-head.has-art { min-height: 320px; align-items: flex-end; padding: 30px; border-radius: 24px; overflow: hidden; isolation: isolate; }
.kl-art { position: absolute; inset: 0; z-index: -1; }
.kl-art img { width: 100%; height: 100%; object-fit: cover; }
.kl-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .15) 75%), linear-gradient(90deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 70%); }
.kl-logo { flex: none; width: 150px; height: 96px; padding: 18px; border-radius: 18px; display: grid; place-items: center; background: var(--bg, #17171b); }
.kl-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.kl-copy { min-width: 0; }
.kl-copy h1 { margin: 0; font: 800 clamp(28px, 4vw, 46px)/1.05 var(--font-label); letter-spacing: -.03em; color: #fff; }
.kl-sub { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: rgba(255, 255, 255, .7); font-size: 14.5px; }
.kl-sub svg { color: #f5c518; }
.kl-text { margin: 10px 0 0; max-width: 720px; color: rgba(255, 255, 255, .78); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.kl-tools { justify-content: flex-start; margin-bottom: 22px; }
.kl-people { margin-top: 8px; }
@media (max-width: 768px) {
  .kl-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .kl-head.has-art { min-height: 240px; padding: 18px; }
  .kl-logo { width: 120px; height: 78px; padding: 14px; }
}

/* ---------- title page: reviews, keywords, linked facts; person links ---------- */
/* Fixed column width: a flexible one lets the rail stretch its section past the page edge. */
.krev-rail { grid-auto-columns: clamp(290px, 27vw, 370px); align-items: start; }
.kino-sec, .kino-sec-b, .ks-sec { min-width: 0; }
.krev { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.krev header { display: flex; align-items: center; gap: 12px; }
.krev-face { flex: none; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; font: 700 16px/1 var(--font-label); }
.krev-face img { width: 100%; height: 100%; object-fit: cover; }
.krev-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.krev-who strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fff; font: 650 14px/1.2 var(--font-body); }
.krev-who small { color: rgba(255, 255, 255, .5); font-size: 12px; }
.krev-score { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #f5c518; font: 700 12.5px/1 var(--font-body); }
.krev-text { margin: 0; color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 1.6; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.krev.is-open .krev-text { display: block; -webkit-line-clamp: unset; }
.krev-more { justify-self: start; padding: 0; border: 0; background: none; color: #fff; font: 600 13px/1.2 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.kt-keywords { margin-top: 18px; }
.kt-card dd a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.kt-card dd a:hover { text-decoration-color: #fff; }
.kt-studio-link { display: inline-block; }
.kp-links { margin-top: 14px; }
@media (max-width: 768px) { .krev-rail { grid-auto-columns: 82vw; } }

/* ---------- account: 67's menu, sheet, settings, profile, friends, sign-in ---------- */
.kmicro { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: rgba(255, 255, 255, .3); }
.kgrab { display: block; margin: 8px auto 0; width: 36px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.kspin { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .27); border-top-color: var(--kino, #ff8a00); animation: kspin 1s linear infinite; vertical-align: middle; }
.kspin.is-sm { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255, 255, 255, .8); border-top-color: #7f82ff; }
@keyframes kspin { to { transform: rotate(360deg); } }
[data-kfriends][hidden] { display: none; }

/* menu (desktop) */
.kacc-menu { position: fixed; z-index: 160; width: 208px; padding: 6px 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(17, 18, 24, .94); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(40px) saturate(1.8); backdrop-filter: blur(40px) saturate(1.8); opacity: 0; transform: translateY(-4px) scale(.96); transform-origin: top right; transition: opacity .12s ease, transform .12s ease; }
.kacc-menu.is-in { opacity: 1; transform: none; transition: opacity .16s cubic-bezier(.23, 1, .32, 1), transform .16s cubic-bezier(.23, 1, .32, 1); }
.kacc-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 0; background: none; color: rgba(255, 255, 255, .8); font: 500 13.5px/1.2 var(--font-body); text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.kacc-item svg { color: rgba(255, 255, 255, .5); }
.kacc-item:hover, .kacc-item:focus-visible { background: rgba(255, 255, 255, .07); color: #fff; outline: none; }
.kacc-div { display: block; margin: 4px 12px; height: 1px; background: rgba(255, 255, 255, .08); }

/* sheet (phone) */
.kacc-sheet { position: fixed; inset: 0; z-index: 160; }
.kacc-sheet-bg { position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .18s ease; }
.kacc-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 16px 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .08); background: #0c0d11; padding-bottom: max(12px, env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .32s cubic-bezier(.32, .72, 0, 1); }
.kacc-sheet.is-in .kacc-sheet-bg { opacity: 1; }
.kacc-sheet.is-in .kacc-sheet-panel { transform: none; }
.kacc-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 4px; }
.kacc-brand { display: inline-flex; align-items: center; gap: 8px; font: 800 15px/1 var(--font-label); color: #fff; }
.kacc-brand img { width: 18px; height: 18px; }
.kacc-sheet-items { padding: 4px 8px; }
.kacc-sheet .kacc-item { min-height: 52px; gap: 12px; padding: 0 12px; border-radius: 12px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.kacc-sheet .kacc-item:active { background: rgba(255, 255, 255, .06); }
.kacc-sheet .kacc-div { margin: 0 12px; background: rgba(255, 255, 255, .07); }

/* settings */
/* a page of its own: glass cards over the ambience */
.kset-wrap { max-width: 1100px; margin: 0 auto; }
.kset-page h1 { margin: 0; }
.kset-sub { margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
.kset-layout { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 32px; }
.kset-nav { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 2px; }
.kset-nav button { padding: 9px 14px; border: 0; border-radius: 999px; background: none; text-align: left; font: 500 14px/1.2 var(--font-body); color: rgba(255, 255, 255, .55); cursor: pointer; transition: background .15s, color .15s; }
.kset-nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.kset-nav button[aria-current="true"] { background: #fff; color: #000; }
.kset-nav button:focus-visible, .ov-toggle:focus-visible, .ov-pill:focus-visible, .ov-choice:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .4); }
.kset-page .ov-group { padding: 0 0 28px; scroll-margin-top: 104px; }
.kset-page .ov-group-card { border-radius: 16px; background: rgba(12, 13, 17, .45); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 18px 50px rgba(0, 0, 0, .22); -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6); }
@media (max-width: 768px) {
  .kset-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; }
  .kset-nav { position: static; flex-direction: row; overflow-x: auto; margin: 0 calc(var(--page-pad, 16px) * -1); padding: 0 var(--page-pad, 16px); scrollbar-width: none; }
  .kset-nav::-webkit-scrollbar { display: none; }
  .kset-nav button { flex: none; background: rgba(255, 255, 255, .07); }
}
.ov-group { padding: 20px 20px 0; }
/* Settings > Player: options beside a live preview */
.kpb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.kpb-stage { order: 2; position: sticky; top: 96px; align-self: start; padding: 16px; }
.kpb-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 16px 40px rgba(0, 0, 0, .35); }
.kpb-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kpb-stagebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 12px; }
.kpb-status { font-size: 12px; color: rgba(255, 255, 255, .55); }
.kpb-opts { order: 1; min-width: 0; }
.kpb-row { padding: 14px 16px; }
.kpb-row + .kpb-row { border-top: 1px solid rgba(255, 255, 255, .05); }
.kpb-l { margin-bottom: 10px; font: 500 14px/1.3 var(--font-body); color: rgba(255, 255, 255, .9); }
.kpb-note { margin: 10px 0 0; font-size: 12px; line-height: 1.55; color: rgba(255, 255, 255, .5); }
.kpb-note.is-err { color: #ff8a8a; }
.kpb-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.kpb-stdnote { display: none; }
.kpb:not([data-style="standard"]):not([data-style="default"]) .kpb-stdnote { display: block; }
.kpb:not([data-style="standard"]):not([data-style="default"]) .is-std { opacity: .4; }
.kpb-line, .kpb-colors, .kpb-chips, .kpb-subs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.kpb-line { justify-content: space-between; }
.kpb-color { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 5px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); font-size: 12px; color: rgba(255, 255, 255, .78); cursor: pointer; }
.kpb-color input { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.kpb-color input::-webkit-color-swatch-wrapper { padding: 0; }
.kpb-color input::-webkit-color-swatch { border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; }
.kpb-color input::-moz-color-swatch { border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; }
.kpb-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kpb-preset { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle, var(--a) 0 36%, var(--b) 40%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.kpb-preset:hover { transform: scale(1.08); }
.kpb-preset.is-on { box-shadow: 0 0 0 2px #0c0d11, 0 0 0 4px #fff; }
.kpb-chip { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font: 500 12px/1 var(--font-body); color: rgba(255, 255, 255, .5); cursor: pointer; transition: background .15s, color .15s; }
.kpb-chip:hover { color: #fff; }
.kpb-chip.is-on { background: rgba(255, 255, 255, .92); box-shadow: none; color: #000; }
.kpb-range { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.kpb-range input { width: 112px; accent-color: #fff; }
.kpb-range output { min-width: 40px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .8); }
.kpb-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.kpb-subs .kpb-field { flex-direction: row; align-items: center; gap: 10px; }
.kpb select { height: 34px; min-width: 0; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); font: 13px var(--font-body); color: #fff; }
.kpb select option { background: #15161b; }
.kpb-foot { display: flex; justify-content: flex-end; }
.kpb-reset { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); font: 500 12px/1 var(--font-body); color: rgba(255, 255, 255, .7); cursor: pointer; }
.kpb-reset:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.kpb-chip:focus-visible, .kpb-preset:focus-visible, .kpb-reset:focus-visible, .kpb-color:focus-within { outline: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); }
@media (max-width: 1180px) {
  .kpb { grid-template-columns: minmax(0, 1fr); }
  .kpb-stage { order: 0; position: static; }
}
.ov-group-label { padding: 0 4px 8px; }
.ov-group-card { border-radius: 12px; background: rgba(255, 255, 255, .035); box-shadow: 0 0 0 1px rgba(255, 255, 255, .05); }
.ov-group-card > * + * { border-top: 1px solid rgba(255, 255, 255, .05); }
.ov-group-card > .ov-sub:not(.is-open) { border-top-color: transparent; }
.ov-set-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 16px; }
.ov-set-t { font: 500 14px/1.3 var(--font-body); color: rgba(255, 255, 255, .9); }
.ov-set-d { margin-top: 4px; font-size: 12px; line-height: 1.625; color: rgba(255, 255, 255, .55); }
.ov-toggle { position: relative; flex: none; width: 46px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); cursor: pointer; transition: background-color .2s ease-out; }
.ov-toggle:hover { background: rgba(255, 255, 255, .22); }
.ov-toggle.is-on { background: #fff; }
.ov-knob { position: absolute; left: 2px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: transform .2s cubic-bezier(.3, .9, .4, 1), background .2s; }
.ov-toggle.is-on .ov-knob { transform: translateX(18px); background: #000; }
.ov-sub { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .2s cubic-bezier(.23, 1, .32, 1), opacity .2s; }
.ov-sub.is-open { grid-template-rows: 1fr; opacity: 1; }
.ov-sub-in { overflow: hidden; }
.ov-sub-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px 16px; }
.ov-sub-l { font-size: 13px; color: rgba(255, 255, 255, .55); }
.ov-pills { position: relative; display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.ov-pill-ind { position: absolute; left: 3px; top: 3px; height: 26px; border-radius: 999px; background: #fff; transition: transform .28s cubic-bezier(.3, 1.2, .5, 1), width .28s cubic-bezier(.3, 1.2, .5, 1); }
.ov-pill { position: relative; height: 26px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: 500 12px/1 var(--font-body); color: rgba(255, 255, 255, .5); cursor: pointer; transition: color .15s; }
.ov-pill:hover { color: rgba(255, 255, 255, .8); }
.ov-pill.is-on { color: #000; }
.ov-set-row.is-stack { flex-direction: column; align-items: stretch; gap: 12px; }
.ov-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ov-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 9px 11px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .78); text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.ov-choice b { font: 500 13px/1.2 var(--font-body); }
.ov-choice small { font-size: 11px; line-height: 1.35; color: rgba(255, 255, 255, .45); }
.ov-choice:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.ov-choice.is-on { background: #fff; box-shadow: none; color: #000; }
.ov-choice.is-on small { color: rgba(0, 0, 0, .55); }
@media (max-width: 480px) { .ov-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* profile */
.kprof { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; padding: 32px 0; overflow-y: auto; overscroll-behavior-y: contain; background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); scrollbar-width: none; }
.kprof::-webkit-scrollbar, .kprof-panel::-webkit-scrollbar, .kpl-grid::-webkit-scrollbar, .kph-rail::-webkit-scrollbar { display: none; }
.kprof-panel { position: relative; width: 100%; max-width: 1024px; min-height: 510px; max-height: 90vh; overflow-y: auto; scrollbar-width: none; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .08); background: #0c0d11; box-shadow: 0 40px 100px rgba(0, 0, 0, .7); padding: 3.2rem 3rem 2.6rem; color: #fff; animation: kFadeUp .6s ease both; }
@keyframes kFadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes kFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kPulse { 50% { opacity: .5; } }
.kprof-out, .kprof-x { position: absolute; z-index: 30; top: 24px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; display: grid; place-items: center; color: #fff; cursor: pointer; transition: background .15s; }
.kprof-out { left: 24px; background: rgba(255, 255, 255, .2); }
.kprof-out:hover { background: rgba(255, 255, 255, .3); }
.kprof-x { right: 24px; background: rgba(0, 0, 0, .5); }
.kprof-x:hover { background: rgba(0, 0, 0, .7); }
.kprof-banner { position: relative; height: 144px; margin: 16px 0 28px; border-radius: 16px; background: rgba(255, 255, 255, .04) center / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); }
.kprof-banner > img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.kprof-av { width: var(--s); height: var(--s); flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #15161b; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 12px 32px rgba(0, 0, 0, .55); }
.kprof-banner .kprof-av { position: absolute; left: 24px; bottom: -32px; }
.kprof-av img { width: 100%; height: 100%; object-fit: cover; }
.kprof-av b { font: 700 30px/1 var(--font-label); color: #fff; }
.kprof-av.is-edit { border: 4px solid rgba(255, 255, 255, .2); background: #4a5565; }
.kprof-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 40px 0 16px; }
.kprof-name { font: 600 18px/1.3 var(--font-body); }
.kgrad { background: linear-gradient(90deg, #e0e7ff, #f5f3ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: kFade 1s ease both; }
.kprof-tag { font-size: 14px; color: rgba(255, 255, 255, .7); }
.kprof-mood { font-size: 20px; }
.kprof-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.kprof-chips span { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); font-size: 12px; color: rgba(255, 255, 255, .7); }
.kprof-quote { margin: 4px 0 0; max-width: 576px; font-size: 14px; font-style: italic; }
.kprof-edit { margin-top: 12px; min-width: 144px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 24px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .85); font: 500 14px/1.2 var(--font-body); cursor: pointer; transition: background .15s; }
.kprof-edit:hover { background: rgba(255, 255, 255, .1); }
.kprof-edit svg { opacity: .8; }
.kprof-sec { margin-top: 28px; }
.kprof-sec.is-line { margin: 32px 0 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .07); }
.kprof-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kprof-count { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .25); }
.kprof-hidden { font-size: 12px; color: rgba(255, 255, 255, .5); }
.kprof-empty { padding: 16px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .03); font-size: 14px; color: rgba(255, 255, 255, .5); }
.kph-rail { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.kph-card { position: relative; flex: none; min-width: 220px; height: 128px; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: rgba(0, 0, 0, .4); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); cursor: pointer; text-align: left; color: #fff; }
.kph-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kph-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 1px; padding: 26px 8px 8px; background: linear-gradient(to top, #000, rgba(0, 0, 0, .45) 60%, transparent); }
.kph-t { font: 600 12px/1.3 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kph-m { font-size: 11px; color: rgba(255, 255, 255, .7); }
.kph-cap i { display: block; margin-top: 4px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.kph-cap i b, .kph-art i b, .kst-genres i b { display: block; height: 100%; background: #fff; border-radius: inherit; }
.kpl-tools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 16px; }
.kpl-search { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .4); }
.kpl-search input { width: 260px; border: 0; outline: 0; background: none; color: #fff; font: 400 15px/1.2 var(--font-body); }
.kpl-search input::placeholder { color: rgba(255, 255, 255, .4); }
.kpl-search input::-webkit-search-cancel-button { display: none; }
.kpl-count { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); font: 600 14px/1.2 var(--font-body); color: rgba(255, 255, 255, .6); }
.kpl-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 36px; max-height: 44vh; min-height: 140px; overflow-y: auto; padding: 0 4px 4px 0; scrollbar-width: none; }
@media (max-width: 1023px) { .kpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpl-card { position: relative; min-width: 0; cursor: pointer; outline: none; }
.kpl-poster { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 16px; background: rgba(255, 255, 255, .15); box-shadow: 0 2px 8px rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .2); }
.kpl-card:focus-visible .kpl-poster { box-shadow: 0 0 0 2px #fff; }
.kpl-card.is-pending { opacity: .7; }
.kpl-poster img { width: 100%; height: 100%; object-fit: cover; }
.kpl-added { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 10px; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent); font-size: 12px; color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpl-rm { position: absolute; z-index: 2; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .75); color: #ff6467; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); cursor: pointer; }
.kpl-rm.is-pending, .kpl-rm.is-success { pointer-events: none; }
.kpl-rm.is-success { color: #00c950; }
.kpl-none { grid-column: 1 / -1; margin: 0; padding: 24px 0; text-align: center; font-size: 16px; color: rgba(255, 255, 255, .7); }
.kprof-skel { display: grid; justify-items: start; gap: 12px; padding-top: 30px; }
.kprof-skel i { display: block; width: 144px; height: 16px; border-radius: 8px; background: rgba(255, 255, 255, .06); animation: kPulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.kprof-skel i.is-av { width: 80px; height: 80px; border-radius: 50%; }
.kprof-skel i.is-s { width: 96px; height: 12px; }
.kprof-skel div { width: 100%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 24px; }
.kprof-skel b { aspect-ratio: 2 / 3; border-radius: 12px; background: rgba(255, 255, 255, .05); animation: kPulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
/* edit */
.kprof-banner.is-edit .kprof-av { position: absolute; left: 24px; bottom: -32px; }
.kprof-file { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; color: #fff; cursor: pointer; }
.kprof-file.is-av { top: auto; right: auto; bottom: -26px; left: 112px; }
.kprof-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kprof-form { display: flex; flex-direction: column; gap: 16px; padding: 40px 0 16px; }
.kprof-l { margin: 0 0 4px 4px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.kprof-moods { display: flex; flex-wrap: wrap; gap: 8px; font-size: 24px; }
.kprof-moods button { padding: 0; border: 0; background: none; font-size: inherit; opacity: .5; cursor: pointer; transition: opacity .15s, transform .15s; }
.kprof-moods button.is-on, .kprof-moods button:hover { opacity: 1; }
.kprof-moods button.is-on { transform: scale(1.12); }
.kprof-gen { display: flex; flex-wrap: wrap; gap: 8px; max-width: 576px; }
.kprof-gen label { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12px; cursor: pointer; }
.kprof-gen input { accent-color: #2b7fff; }
.kprof-quote-in { width: 100%; max-width: 576px; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font: 14px/1.4 var(--font-body); outline: none; }
.kprof-vis { max-width: 576px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .85); }
.kprof-vis button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .4); color: rgba(255, 255, 255, .85); font-size: 12px; cursor: pointer; }
.kprof-vis button svg { opacity: .7; }
.kprof-vis button.is-on svg { color: #5ee9b5; opacity: 1; }
.kprof-btns { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.ov-cancel, .ov-save { padding: 6px 16px; border-radius: 12px; font: 14px/1.4 var(--font-body); color: #fff; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.ov-cancel { border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ov-cancel:hover { background: rgba(255, 255, 255, .3); }
.ov-save { border: 0; background: linear-gradient(to bottom right, rgba(79, 140, 247, .8), rgba(120, 134, 249, .8)); }
.ov-save:hover { background: linear-gradient(to bottom right, #4f8cf7, #7886f9); }
.ov-save:disabled { opacity: .6; cursor: default; }
/* stats */
.kst { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .07); }
.kst-skel { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kst-skel i { height: 72px; border-radius: 12px; background: rgba(255, 255, 255, .05); animation: kPulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.kst-tiles { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kst-tile { padding: 14px 16px; text-align: center; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .03); }
.kst-tile strong { display: block; font: 700 22px/1 var(--font-label); color: #fff; }
.kst-tile span { display: block; margin-top: 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .35); }
.kst-act { margin-top: 24px; }
.kst-head { display: flex; align-items: center; justify-content: space-between; max-width: 440px; }
.kst-note { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .2); }
.kst-heat { margin-top: 12px; display: flex; gap: 3px; max-width: 440px; }
.kst-dows { display: flex; flex-direction: column; justify-content: space-between; margin-right: 5px; padding: 1px 0; font-size: 9px; font-weight: 600; text-transform: uppercase; color: rgba(255, 255, 255, .25); }
.kst-col { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.kst-col i { display: block; aspect-ratio: 1; border-radius: 3px; background: #fff; }
.kst-two { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.kst-genres { margin-top: 12px; display: grid; gap: 10px; }
.kst-genres div { display: flex; align-items: center; gap: 10px; }
.kst-genres span { width: 96px; flex: none; font-size: 12px; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kst-genres i { flex: 1; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.kst-genres i b { background: rgba(255, 255, 255, .7); }
.kst-rhythm { margin-top: 12px; height: 76px; display: flex; align-items: flex-end; gap: 8px; }
.kst-rhythm > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kst-bar { width: 100%; height: 56px; display: flex; align-items: flex-end; }
.kst-bar b { width: 100%; border-radius: 3px 3px 0 0; background: rgba(255, 255, 255, .7); }
.kst-rhythm em { font-style: normal; font-size: 9px; font-weight: 600; color: rgba(255, 255, 255, .25); }
.kst-foot { margin: 20px 0 0; font-size: 12px; color: rgba(255, 255, 255, .4); white-space: pre-wrap; }
/* blend */
.kbl { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .07); }
.kbl-intro { margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
.kbl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.kbl-row + .kbl-row { margin-top: 12px; }
.kbl-code { max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); font-size: 11px; color: rgba(255, 255, 255, .5); }
.kbl-copy { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .85); font: 600 12px/1 var(--font-body); cursor: pointer; }
.kbl-copy:hover { background: rgba(255, 255, 255, .1); }
.kbl-in { height: 36px; width: 260px; max-width: 100%; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #fff; font: 12.5px/1 var(--font-body); outline: none; }
.kbl-in:focus { border-color: rgba(255, 255, 255, .3); }
.kbl-in::placeholder { color: rgba(255, 255, 255, .3); }
.kbl-go { height: 36px; padding: 0 20px; border-radius: 999px; border: 0; background: #fff; color: #000; font: 600 12px/1 var(--font-body); cursor: pointer; }
.kbl-go:disabled { border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .3); cursor: default; }
.kbl-err { margin: 10px 0 0; font-size: 12px; color: rgba(255, 255, 255, .45); }
.kbl-res { margin-top: 20px; display: flex; align-items: baseline; gap: 12px; }
.kbl-res strong { font: 700 34px/1 var(--font-label); }
.kbl-res span { font-size: 13px; color: rgba(255, 255, 255, .55); white-space: pre; }
.kbl-out .kmicro { display: block; margin-top: 18px; }
.kbl-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.kbl-grid button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); cursor: pointer; transition: box-shadow .15s; }
.kbl-grid button:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); }
.kbl-grid img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; opacity: .88; transition: opacity .15s; }
.kbl-grid button:hover img { opacity: 1; }
/* phone profile */
.kprof.is-phone { padding: 0; align-items: stretch; -webkit-backdrop-filter: none; backdrop-filter: none; }
.kprof.is-phone .kprof-panel { min-height: 100dvh; max-height: none; overflow: visible; border-radius: 0; border: 0; box-shadow: none; padding: 3.6rem 1rem calc(env(safe-area-inset-bottom) + 2rem); }
.kprof-id { display: flex; align-items: center; gap: 16px; padding-top: 4px; min-width: 0; }
.kprof-id > div { min-width: 0; }
.kprof.is-phone .kprof-av { background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.kprof.is-phone .kprof-av b { font-size: 20px; color: rgba(255, 255, 255, .8); }
.kprof.is-phone .kprof-name { font: 700 20px/1.2 var(--font-label); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kprof.is-phone .kprof-mood { margin-left: 6px; font-size: 16px; }
.kprof.is-phone .kprof-tag { font-size: 12.5px; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kprof.is-phone .kprof-quote { margin-top: 12px; font-size: 13px; line-height: 1.625; color: rgba(255, 255, 255, .5); }
.kprof.is-phone .kprof-chips { margin-top: 12px; gap: 6px; }
.kprof.is-phone .kprof-chips span { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.kprof.is-phone .kprof-edit { margin-top: 16px; height: 40px; min-width: 0; padding: 0 20px; font-size: 13px; border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); }
.kprof.is-phone .kph-rail { margin: 12px -16px 0; padding: 0 16px; }
.kprof.is-phone .kph-card { min-width: 0; width: 190px; height: auto; display: grid; background: none; box-shadow: none; border-radius: 0; }
.kph-art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); }
.kph-art img { width: 100%; height: 100%; object-fit: cover; }
.kph-art i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .2); }
.kprof.is-phone .kph-t { margin-top: 6px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.kprof.is-phone .kph-m { font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .35); }
.kpl-search.is-phone { margin-top: 12px; width: 100%; height: 40px; padding: 0 16px; gap: 10px; border-color: rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .35); }
.kpl-search.is-phone input { width: 100%; font-size: 14px; }
.kprof.is-phone .kpl-grid { margin-top: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; max-height: none; overflow: visible; }
.kprof.is-phone .kpl-poster { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); }
.kpl-t { display: block; margin-top: 6px; font: 500 11.5px/1.3 var(--font-body); color: rgba(255, 255, 255, .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kprof.is-phone .kpl-rm { top: 6px; right: 6px; width: 28px; height: 28px; background: rgba(0, 0, 0, .6); color: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.kprof.is-phone .kpl-none { margin-top: 24px; padding: 0; font-size: 13px; color: rgba(255, 255, 255, .4); }
.kprof.is-phone .kst-two { grid-template-columns: 1fr; }
.kprof.is-phone .kbl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* friends */
.kfr { position: fixed; z-index: 160; width: 320px; padding: 16px; border-radius: 16px; background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1); color: #fff; }
.kfr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.kfr-x { padding: 4px; border: 0; background: none; color: #fff; cursor: pointer; }
.kfr-x:hover { color: #fb2c36; }
.kfr-tag { margin: 0 0 12px; display: flex; align-items: center; gap: 4px; font-size: 12px; color: rgba(255, 255, 255, .8); }
.kfr-tag code { font-family: ui-monospace, monospace; }
.kfr-tag button { margin-left: 4px; padding: 4px; border: 0; background: none; color: inherit; cursor: pointer; }
.kfr-tag button:hover { color: #05df72; }
.kfr-sent { margin: 0 0 4px; font-size: 12px; color: #05df72; }
.kfr-add { display: flex; gap: 8px; margin-bottom: 8px; }
.kfr-add input { flex: 1; min-width: 0; padding: 4px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; outline: none; }
.kfr-add button { padding: 4px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; cursor: pointer; display: grid; place-items: center; }
.kfr-list { display: grid; gap: 8px; max-height: 240px; overflow-y: auto; padding-right: 4px; }
.kfr-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.kfr-row.is-friend { cursor: pointer; }
.kfr-row:hover { background: rgba(255, 255, 255, .2); }
.kfr-row > span:first-child { display: grid; min-width: 0; }
.kfr-row strong { font-size: 14px; }
.kfr-row small { font-size: 12px; color: rgba(255, 255, 255, .6); }
.kfr-acts { display: flex; gap: 8px; }
.kfr-acts button { padding: 4px; border: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.kfr-ok { background: #fff; color: #000; }
.kfr-ok:hover { background: rgba(255, 255, 255, .8); }
.kfr-no { background: #000; color: #fff; }
.kfr-no:hover { background: rgba(0, 0, 0, .7); }
.kfr-rm { padding: 0; border: 0; background: none; color: #fff; font-size: 12px; cursor: pointer; }
.kfr-rm:hover { color: #fb2c36; }
.kfr-st { font-size: 12px; color: rgba(255, 255, 255, .6); }
.kfr-none { margin: 0; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .6); }
.kfr-skel { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .1); animation: kPulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.kfr-skel i { width: 96px; height: 12px; border-radius: 4px; background: rgba(255, 255, 255, .3); }
.kfr-skel i + i { width: 64px; height: 8px; background: rgba(255, 255, 255, .2); }
.kfr-skel b { margin-left: auto; width: 40px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .2); }

/* sign-in page */
.kauth-page { min-height: 100svh; display: grid; place-items: center; padding: 96px 16px 48px; }
.kauth-card { width: 93vw; max-width: 410px; min-height: 344px; display: flex; flex-direction: column; gap: 1.08rem; padding: 2.4rem 2.1rem 2rem; border-radius: 2.2rem; border: 1.6px solid rgba(255, 255, 255, .09); background: rgba(18, 18, 27, .88); box-shadow: 0 2px 30px rgba(22, 15, 43, .22), 0 1.5px 16px rgba(0, 0, 0, .44); -webkit-backdrop-filter: blur(18px) saturate(1.07); backdrop-filter: blur(18px) saturate(1.07); animation: kFadeUp .5s ease both; }
.kauth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font: 800 22px/1 var(--font-label); color: #fff; }
.kauth-brand img { width: 26px; height: 26px; }
.kauth-tabs { display: flex; gap: 7px; padding: 4px; margin-bottom: 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.kauth-tabs button { flex: 1; padding: .73rem .1rem; border: 0; border-radius: 999px; background: none; color: #b9b9c9; font: 800 19px/1 var(--font-label); letter-spacing: -.02em; cursor: pointer; transition: background .2s, color .2s; }
.kauth-tabs button[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--kino, #ff8a00) 40%, transparent); }
.kauth-form { display: flex; flex-direction: column; gap: 1.08rem; }
.kauth-form[hidden] { display: none; }
.kauth-form input { width: 100%; padding: 1.14rem 1.13rem; border: 0; border-radius: .86rem; background: rgba(255, 255, 255, .09); box-shadow: 0 1px 11px rgba(78, 72, 139, .07); color: #fff; font: 600 17px/1.2 var(--font-body); outline: none; }
.kauth-form input:focus { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.kauth-form input::placeholder { color: rgba(255, 255, 255, .45); }
.kauth-pass { position: relative; }
.kauth-pass input { padding-right: 52px; }
.kauth-eye { position: absolute; top: 50%; right: 14px; width: 30px; height: 30px; margin-top: -15px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .6); display: grid; place-items: center; cursor: pointer; }
.kauth-go { padding: 1.01rem 0; border: 0; border-radius: 999px; background: linear-gradient(90deg, var(--kino, #ff8a00) 0%, #e8364f 100%); color: #fff; font: 800 17.3px/1.2 var(--font-label); cursor: pointer; transition: filter .15s, transform .15s; }
.kauth-go.is-alt { background: linear-gradient(90deg, #e8364f 0%, var(--kino, #ff8a00) 100%); }
.kauth-go:hover { filter: brightness(1.08); }
.kauth-go:active { transform: scale(.98); }
.kauth-go:disabled { cursor: default; filter: none; }
.kauth-go .kspin { border-top-color: #fff; }
.kauth-msg { min-height: 1.2em; margin: 0; text-align: center; font: 600 15px/1.3 var(--font-body); }
.kauth-msg.is-ok { color: #43e97b; }
.kauth-msg.is-err { color: #ff5a5a; }
@media (max-width: 600px) { .kauth-card { padding: 1.6rem 1rem 1.3rem; min-height: 270px; } }

/* screensaver */
.ksaver { position: fixed; inset: 0; z-index: 400; background: #000; opacity: 0; transition: opacity .9s ease; cursor: none; }
.ksaver.is-in { opacity: 1; }
.ksaver-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 2s ease; }
.ksaver-art img.is-in { opacity: .55; animation: ktSettle 18s linear both; }
.ksaver-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .1) 55%), radial-gradient(ellipse at 20% 100%, rgba(0, 0, 0, .55), transparent 60%); }
.ksaver-cap { position: absolute; left: 48px; bottom: 44px; max-width: 50vw; font: 700 20px/1.3 var(--font-label); color: rgba(255, 255, 255, .7); }
.ksaver-clock { position: absolute; right: 48px; bottom: 40px; display: grid; justify-items: end; color: #fff; }
.ksaver-clock strong { font: 800 clamp(48px, 8vw, 96px)/1 var(--font-label); letter-spacing: -.04em; }
.ksaver-clock span { margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, .65); }
@media (max-width: 767px) { .ksaver-cap { left: 20px; bottom: 120px; max-width: 80vw; font-size: 16px; } .ksaver-clock { right: 20px; bottom: 24px; } }

/* spoiler shield */
.k-spoil .k-unseen img { filter: blur(14px); transform: scale(1.1); transition: filter .25s ease; }
.k-spoil .k-unseen [class*="Overview"], .k-spoil .k-unseen [class*="overview"], .k-spoil .k-unseen [class*="Desc"], .k-spoil .k-unseen p { filter: blur(5px); transition: filter .25s ease; }
.k-spoil .k-unseen:hover img, .k-spoil .k-unseen:hover [class*="Overview"], .k-spoil .k-unseen:hover [class*="overview"], .k-spoil .k-unseen:hover [class*="Desc"], .k-spoil .k-unseen:hover p { filter: none; }

/* rows: Clear history, New seasons / This week captions */
.kcw-clear { margin-left: auto; margin-right: 12px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .55); font: 600 13px/1 var(--font-body); cursor: pointer; }
.kcw-clear:hover { color: #fff; }
.kq.is-new { color: var(--kino, #ff8a00); }

/* watch page: season picker in the episode panel */
/* The season picker and the episode arrows match the watch buttons: glass pills, the chevron flips while open. */
#watch-layout .kdock-season { display: inline-flex; align-items: center; gap: 8px; height: 36px; margin: 0; padding: 0 12px 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: #fff; font: 600 14px/1 var(--font-body); letter-spacing: -.01em; white-space: nowrap; cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .15s, box-shadow .15s; }
#watch-layout .kdock-season:hover, #watch-layout .kdock-season[aria-expanded="true"] { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
#watch-layout .kdock-season svg { opacity: .75; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
#watch-layout .kdock-season[aria-expanded="true"] svg { transform: rotate(180deg); }
#watch-layout [data-watch-step] { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: #fff; transition: background .15s; }
#watch-layout [data-watch-step]:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
#watch-layout [data-watch-step]:disabled { opacity: .35; }
#watch-layout .kdock-season:focus-visible, #watch-layout [data-watch-step]:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.kseason-list { max-height: min(60vh, 420px); overflow-y: auto; }
.kseason-list button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kseason-list button[aria-selected="true"] { background: rgba(255, 255, 255, .08); }
.kseason-list em { margin-left: 6px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--kino, #ff8a00); }
.kseason-list small { font-size: 12px; color: rgba(255, 255, 255, .5); white-space: nowrap; }

/* watch page: ambient light around the player instead of the page smoke */
/* Watch page ambience: no smoke here; the LED light round the player spreads over the page instead. */
/* The light spreads under the title, buttons, story and side column, so those sit above it. */
#watch-layout [class*="__main"] > :not([class*="__screen"]), #watch-layout [class*="__side"] { position: relative; z-index: 1; }
html.k-on-watch #kamb { opacity: 0; }
/* Clip sideways at the page, not the layout, so the light can reach the window's edges. */
html.k-on-watch body { overflow-x: clip; }
/* Watch page buttons in kino's own look, in vivarium's places: the Direct / Embeds pill and labelled glass
   pills, which fold to round icons when the column gets narrow. */
.kw-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kw-act { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; font: 600 14px/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.kw-act { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.kw-act:hover { background: rgba(255, 255, 255, .14); }
.kw-act > span:not(:first-child) { display: inline !important; }
.kw-act[aria-pressed="true"] { background: rgba(94, 233, 181, .15); box-shadow: inset 0 0 0 1px rgba(94, 233, 181, .35); color: #b8f5dc; }
.kw-act:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
/* Direct / Embeds: one glass pill in two halves, the playing one white (the old server pill's look).
   Direct = VidQueen; Embeds = other sites' players, picked from their own list. */
.kw-src { display: inline-flex; align-items: center; gap: 2px; height: 42px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.kw-src-opt { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: 600 14px/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.kw-src-opt:hover { background: rgba(255, 255, 255, .12); }
.kw-src-opt.is-on { background: #fff; color: #000; }
.kw-src-opt.is-on:hover { box-shadow: 0 6px 18px rgba(255, 255, 255, .12); }
.kw-src-opt small { font: 700 10px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; opacity: .5; }
.kw-src-opt.is-embed { padding-right: 10px; gap: 6px; }
.kw-src-opt.is-embed svg { opacity: .7; }
.kw-src-opt.is-on .kino-adfree-tag { border-color: #178a4c; color: #178a4c; }
.kw-src-opt:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
/* phone: the pill takes the row, and the half not playing drops its tags so an embed's name fits */
@media (max-width: 480px) {
  .kw-src { width: 100%; }
  .kw-src-opt { flex: 1 1 auto; justify-content: center; min-width: 0; padding: 0 12px; }
  .kw-src-opt.is-embed { padding-right: 8px; }
  .kw-src-opt:not(.is-on) .kino-srv-tags { display: none; }
}
@media (max-width: 360px) { .kw-src-opt .kino-4k-tag:not(.kino-adfree-tag) { display: none; } }
@media (max-width: 1180px) {
  .kw-act { width: 42px; padding: 0; justify-content: center; }
  .kw-act > span:not(:first-child) { display: none !important; }
}
.Watch-module__4kHh8W__screen { position: relative; isolation: isolate; }
.kglow { --glow: .8; position: absolute; z-index: 0; left: calc(-1 * var(--kgl, 8%)); right: calc(-1 * var(--kgr, 8%)); top: calc(-1 * var(--kgt, 13%)); bottom: -55%; overflow: hidden; pointer-events: none; opacity: var(--glow); transition: opacity 1.2s ease; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%); }
.kglow.is-paused { opacity: calc(var(--glow) * .45); }
/* The picture is stretched over the whole box (the frame's left over the page's left, and so on) and
   blurred until it reads as light; it overhangs the box so the blur never darkens an edge. */
.kglow img, .kglow-pic, .kglow-live { position: absolute; left: -8%; top: -8%; width: 116%; height: 116%; object-fit: cover; opacity: 0; filter: blur(64px) saturate(1.9) brightness(1.1); transition: opacity 2.4s ease; animation: kglowDrift 40s ease-in-out infinite alternate; will-change: transform; }
.kglow-live { transition-duration: 1.6s; } /* only its first appearance; after that kino.js eases the colours */
.kglow img.is-in, .kglow-pic.is-in, .kglow-live.is-in { opacity: 1; }
.kglow.is-live :is(img, .kglow-pic) { opacity: 0; }
/* Baked (kino.js bakeBlur): the pictures arrive already blurred, saturated and brightened, as small canvases, so
   the browser only stretches and moves them: no filter left to run on every frame of the drift. */
.kglow.is-baked :is(.kglow-pic, .kglow-live) { filter: none; object-fit: fill; }
/* The LED strip itself: a tighter, brighter light hugging all four edges of the player (kino.js #kglow-rim). */
.kglow-rim { --rim: .8; position: absolute; z-index: 0; inset: -46px; border-radius: 48px; pointer-events: none; opacity: min(1, calc(var(--rim) * 1.25)); transition: opacity 1.2s ease; filter: blur(46px) saturate(2.5) brightness(2.2); }
.kglow-rim > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; opacity: 0; transition: opacity 2.4s ease; }
.kglow-rim img.is-in { opacity: 1; }
.kglow.is-live + .kglow-rim img { opacity: 0; }
.kglow.is-live + .kglow-rim canvas { opacity: 1; transition-duration: 1.2s; }
.kglow.is-paused + .kglow-rim { opacity: calc(var(--rim) * .45); }
/* The strip baked: one canvas that already holds the blurred light, 138 px (3 x the blur) larger each way. */
.kglow-rim.is-baked { filter: none; border-radius: 0; }
.kglow-rim.is-baked > canvas { inset: auto; left: -138px; top: -138px; width: calc(100% + 276px); height: calc(100% + 276px); object-fit: fill; border-radius: 0; opacity: 1; transition: none; }
@media (max-width: 767px) { .kglow-rim { display: none; } }
html[data-lite="1"] .kglow-rim:not(.is-baked) { filter: blur(16px) saturate(1.7) brightness(1.2) !important; }
/* The light never sits still: the blurred picture drifts, turns and swells a little. */
@keyframes kglowDrift {
  0% { transform: scale(1) translate(0, 0) rotate(0deg); }
  30% { transform: scale(1.06) translate(-2%, 1.5%) rotate(-1deg); }
  65% { transform: scale(1.03) translate(2%, -1%) rotate(.8deg); }
  100% { transform: scale(1.08) translate(-1%, -2%) rotate(-.5deg); }
}
/* Phones: the player is a full-width sticky strip with no room around it for light. */
@media (max-width: 767px) { .kglow { display: none; } }
@media (prefers-reduced-motion: reduce) { .kglow img, .kglow-pic, .kglow-live { transition: none; animation: none; } }

/* ---------- comments ---------- */
#sec-Comments .kino-sec-b { padding-inline: var(--page-pad); }
.kcm-root { max-width: 860px; }
.kcm-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.kcm-count { font: 600 14px/1.2 var(--font-body); color: rgba(255, 255, 255, .6); }
.kcm-av { flex: none; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.kcm-av img { width: 100%; height: 100%; object-fit: cover; }
.kcm-av b { font: 700 calc(var(--s) * .38)/1 var(--font-label); color: rgba(255, 255, 255, .8); }
.kcm-av.is-gone { background: rgba(255, 255, 255, .04); box-shadow: none; }
.kcm-guest { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.kcm-login { flex: 1; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .6); font: 500 14px/1 var(--font-body); text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.kcm-login:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.kcm-form { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
.kcm-form.is-inline { margin: 14px 0 6px; }
.kcm-box { flex: 1; min-width: 0; }
.kcm-box textarea { width: 100%; min-height: 44px; max-height: 320px; padding: 11px 16px; resize: none; overflow-y: auto; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #fff; font: 400 14.5px/1.5 var(--font-body); outline: none; transition: border-color .15s, background .15s; }
.kcm-box textarea::placeholder { color: rgba(255, 255, 255, .4); }
.kcm-box textarea:focus { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); }
.kcm-bar { display: none; align-items: center; gap: 10px; margin-top: 10px; }
.kcm-form.is-open .kcm-bar { display: flex; }
.kcm-spoil { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255, 255, 255, .6); cursor: pointer; }
.kcm-spoil input { accent-color: var(--kino, #ff8a00); }
.kcm-left { margin-left: auto; font-size: 12px; color: rgba(255, 255, 255, .45); }
.kcm-cancel, .kcm-send { height: 34px; padding: 0 16px; border-radius: 999px; font: 600 13px/1 var(--font-body); cursor: pointer; }
.kcm-cancel { border: 0; background: none; color: rgba(255, 255, 255, .7); }
.kcm-cancel:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.kcm-send { border: 0; background: #fff; color: #000; }
.kcm-send:disabled { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .35); cursor: default; }
.kcm-list { display: grid; gap: 22px; }
.kcm { display: flex; gap: 12px; min-width: 0; }
.kcm.is-new > .kcm-body { animation: kFade .6s ease both; }
.kcm-avl { flex: none; border-radius: 50%; }
.kcm-body { flex: 1; min-width: 0; }
.kcm-body > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.kcm-name { font: 600 13.5px/1.3 var(--font-body); color: #fff; text-decoration: none; }
.kcm-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.kcm-tag, .kcm-body time { font-size: 12px; color: rgba(255, 255, 255, .42); }
.kcm-textwrap { position: relative; margin-top: 4px; }
.kcm-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .88); overflow-wrap: anywhere; }
.kcm-at { font-weight: 600; color: var(--kino, #ff8a00); }
.kcm-textwrap.is-spoiler .kcm-text { filter: blur(6px); user-select: none; }
.kcm-reveal { position: absolute; left: 0; top: 50%; transform: translateY(-50%); padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(12, 13, 17, .85); color: #fff; font: 600 12px/1.2 var(--font-body); cursor: pointer; }
.kcm.is-gone .kcm-text, .kcm-note { font-style: italic; color: rgba(255, 255, 255, .4); }
.kcm-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0 0 -8px; }
.kcm-acts button { height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, .55); font: 600 12.5px/1 var(--font-body); cursor: pointer; transition: background .15s, color .15s; }
.kcm-acts button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.kcm-acts button.is-warn { color: #ff6467; }
.kcm-like.is-on { color: #ff4d6d; }
.kcm-like.is-on svg { fill: currentColor; }
.kcm-n:empty { display: none; }
.kcm-replies { display: grid; gap: 16px; margin-top: 4px; }
.kcm-replies:not(:empty) { margin-top: 14px; }
.kcm-empty { margin: 0; padding: 24px 0; font-size: 14px; color: rgba(255, 255, 255, .45); }
.kcm-wait { display: grid; gap: 18px; }
.kcm-wait i { display: block; height: 54px; border-radius: 12px; background: rgba(255, 255, 255, .04); animation: kPulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.kcm-watch { margin-top: 28px; }
.kcm-h { margin: 0 0 16px; font: 700 20px/1.2 var(--font-label); color: #fff; }
.kcm-watch .kcm-root { max-width: none; }
@media (max-width: 767px) {
  .kcm-tools { margin-bottom: 14px; }
  .kcm-list { gap: 18px; }
  .kcm-bar { flex-wrap: wrap; }
  .kcm-spoil { flex-basis: 100%; }
  .kcm-left { margin-left: 0; flex: 1; }
}

/* ---------- profile pages (#u/<id>) and other people's profiles ---------- */
.kprof.kprof-page { position: static; display: block; padding: 96px var(--page-pad) 48px; overflow: visible; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.kprof.kprof-page .kprof-panel { max-height: none; overflow: visible; margin: 0 auto; }
.kprof.kprof-page.is-phone { padding: 0; }
.kprof.kprof-page.is-phone .kprof-panel { padding-top: 4.4rem; min-height: 0; background: none; }
.kprof-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.kprof-edit.is-quiet { border-color: rgba(255, 255, 255, .08); background: none; color: rgba(255, 255, 255, .6); }
.kprof-edit.is-on { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .12); color: #fff; }
.kprof-edit:disabled { cursor: default; opacity: .75; }
.kprof-msg { margin-top: 60px; display: grid; justify-items: start; gap: 8px; padding: 22px 20px; }
.kprof-msg strong { font: 600 16px/1.3 var(--font-body); color: #fff; }
.kprof-msg .kprof-edit { margin-top: 8px; }
.kuc-list { display: grid; gap: 10px; }
.kuc { display: flex; gap: 12px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); color: #fff; text-decoration: none; transition: background .15s; }
.kuc:hover { background: rgba(255, 255, 255, .06); }
.kuc-art { flex: none; width: 40px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.kuc-art img { width: 100%; height: 100%; object-fit: cover; }
.kuc-body { min-width: 0; display: grid; gap: 4px; }
.kuc-on { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 600 12.5px/1.3 var(--font-body); color: rgba(255, 255, 255, .75); }
.kuc-on time { font-weight: 400; color: rgba(255, 255, 255, .4); }
.kuc-text { font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .85); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.kuc-text.is-spoiler { filter: blur(5px); }
.kuc:hover .kuc-text.is-spoiler { filter: none; }
.kuc-likes { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(255, 255, 255, .5); }
.kuc-likes svg { fill: currentColor; }
.kmember { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.kmember:hover { background: rgba(255, 255, 255, .1); }
.kmember span { display: grid; }
.kmember strong { font-size: 14px; }
.kmember small { font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ---------- notifications ---------- */
.kn-bell, .kn-mbell { position: relative; }
[data-kbell][hidden] { display: none !important; }
.kn-badge { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: #ff3b5c; color: #fff; font: 700 10.5px/1 var(--font-body); box-shadow: 0 0 0 2px rgba(20, 21, 26, .9); pointer-events: none; }
.kn-badge[hidden] { display: none; }
.kn-mbell { display: none; }
@media (max-width: 768px) {
  .kn-mbell { display: inline-grid; place-items: center; position: absolute; top: 10px; right: 60px; z-index: 50; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: rgba(20, 21, 26, .55); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; }
  .kn-mbell .kn-badge { top: -2px; right: -2px; }
}
.knt { position: fixed; z-index: 160; }
.knt:not(.is-sheet) .knt-panel { width: 380px; max-height: min(70vh, 560px); display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(17, 18, 24, .96); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(40px) saturate(1.8); backdrop-filter: blur(40px) saturate(1.8); animation: kFadeUp .18s cubic-bezier(.23, 1, .32, 1) both; animation-name: kDrop; }
@keyframes kDrop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.knt.is-sheet { inset: 0; }
.knt.is-sheet .kacc-sheet-bg { opacity: 0; transition: opacity .18s ease; }
.knt.is-sheet.is-in .kacc-sheet-bg { opacity: 1; }
.knt.is-sheet .knt-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82dvh; display: flex; flex-direction: column; border-radius: 16px 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .08); background: #0c0d11; padding-bottom: max(12px, env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .32s cubic-bezier(.32, .72, 0, 1); }
.knt.is-sheet.is-in .knt-panel { transform: none; }
.knt-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.knt-head strong { font: 600 15px/1.2 var(--font-body); color: #fff; }
.knt-head button { padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: rgba(255, 255, 255, .6); font: 600 12.5px/1 var(--font-body); cursor: pointer; }
.knt-head button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.knt-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .12) transparent; }
.knt-row { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 12px; color: rgba(255, 255, 255, .8); text-decoration: none; transition: background .15s; }
a.knt-row:hover { background: rgba(255, 255, 255, .06); }
.knt-row.has-link { display: block; padding: 0; }
.knt-row.has-link:hover { background: rgba(255, 255, 255, .06); }
.knt-row.has-link::after { display: none; }
.knt-link { display: flex; align-items: flex-start; gap: 12px; padding: 10px 46px 10px 10px; border-radius: 12px; color: inherit; text-decoration: none; }
.knt-link:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); }
/* Mark as read: the unread dot itself is the button. */
.knt-mark { position: absolute; top: 7px; right: 6px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: background .15s; }
.knt-mark i { width: 9px; height: 9px; border-radius: 50%; background: var(--kino, #ff8a00); box-shadow: 0 0 0 3px rgba(255, 138, 0, .16); transition: transform .15s; }
.knt-mark:hover { background: rgba(255, 255, 255, .09); }
.knt-mark:hover i { transform: scale(1.25); }
.knt-mark:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.knt-count { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 59, 92, .16); color: #ff8fa2; font: 700 11px/1.4 var(--font-body); vertical-align: 1px; }
.knt-foot { margin: 8px 12px 10px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .4); }
.knt.is-sheet .knt-mark { width: 42px; height: 42px; top: 4px; right: 2px; }
.knt-row.is-unread { background: rgba(255, 255, 255, .045); }
.knt-row.is-unread::after { content: ''; position: absolute; top: 20px; right: 19px; width: 9px; height: 9px; border-radius: 50%; background: var(--kino, #ff8a00); box-shadow: 0 0 0 3px rgba(255, 138, 0, .16); }
.knt-txt { min-width: 0; flex: 1; display: grid; gap: 3px; padding-right: 14px; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.knt-txt b { color: #fff; font-weight: 600; }
.knt-txt i { font-style: normal; color: #fff; }
.knt-txt small, .knt-txt time { font-size: 12px; color: rgba(255, 255, 255, .42); }
.knt-quote { color: rgba(255, 255, 255, .6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.knt-acts { display: flex; gap: 8px; margin-top: 6px; }
.knt-acts button { height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; font: 600 12.5px/1 var(--font-body); cursor: pointer; }
.knt-acts button.is-main { border-color: transparent; background: #fff; color: #000; }
.knt-av { flex: none; border-radius: 50%; }
.knt-site { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, rgba(255, 138, 0, .28), rgba(255, 138, 0, .08)); box-shadow: inset 0 0 0 1px rgba(255, 160, 60, .3); }
.knt-site img { width: 18px; height: 18px; }
.knt-guest { margin: 6px 12px 10px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .5); }
.knt-guest a { color: #fff; font-weight: 600; }
.knt-none { display: grid; justify-items: center; gap: 6px; padding: 36px 20px 40px; text-align: center; color: rgba(255, 255, 255, .45); font-size: 13px; }
.knt-none svg { opacity: .5; }
.knt-none strong { color: #fff; font: 600 14.5px/1.3 var(--font-body); }

/* ---------- votes, low scores, a comment you were sent to ---------- */
.kcm-vote { display: inline-flex; align-items: center; gap: 2px; margin-right: 4px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .04); }
.kcm-acts .kcm-vote button { width: 28px; height: 28px; padding: 0; justify-content: center; border-radius: 50%; }
.kcm-score { min-width: 18px; text-align: center; font: 700 12.5px/1 var(--font-body); color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.kcm-vote.is-up [data-cm="up"] { color: var(--kino, #ff8a00); }
.kcm-vote.is-up [data-cm="up"] svg { fill: currentColor; }
.kcm-vote.is-up .kcm-score { color: var(--kino, #ff8a00); }
.kcm-vote.is-down [data-cm="down"] { color: #7f9cff; }
.kcm-vote.is-down [data-cm="down"] svg { fill: currentColor; }
.kcm-vote.is-down .kcm-score { color: #7f9cff; }
.kcm.is-low > .kcm-body > .kcm-textwrap, .kcm.is-low > .kcm-body > .kcm-acts { display: none; }
.kcm-lowbtn { display: block; margin-top: 4px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .45); font: italic 13px/1.4 var(--font-body); cursor: pointer; }
.kcm-lowbtn:hover { color: #fff; }
.kcm.is-hl > .kcm-body { animation: kHl 2.8s ease both; border-radius: 12px; }
@keyframes kHl { 0%, 60% { background: rgba(255, 138, 61, .14); box-shadow: 0 0 0 8px rgba(255, 138, 61, .14); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }

/* ---------- levels and karma ---------- */
.klv { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font: 700 10.5px/1 var(--font-body); letter-spacing: .02em; color: var(--lvc); background: color-mix(in srgb, var(--lvc) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lvc) 35%, transparent); white-space: nowrap; vertical-align: middle; }
.kprof-name .klv { margin-left: 8px; -webkit-text-fill-color: initial; }
.lv-1 { --lvc: #a1a1aa; } .lv-2 { --lvc: #93a4c8; } .lv-3 { --lvc: #4fc3c7; } .lv-4 { --lvc: #4ade80; } .lv-5 { --lvc: #c6e05a; }
.lv-6 { --lvc: #facc15; } .lv-7 { --lvc: #fb923c; } .lv-8 { --lvc: #f472b6; } .lv-9 { --lvc: #a78bfa; }
.lv-10 { --lvc: #ffd36b; background: linear-gradient(135deg, rgba(255, 211, 107, .25), rgba(255, 138, 61, .25)); }
.klv.is-big { width: 54px; height: 54px; flex: none; justify-content: center; padding: 0; font-size: 20px; border-radius: 16px; }
.kkarma { margin-top: 14px; display: flex; align-items: flex-start; gap: 16px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.kkarma-main { flex: 1; min-width: 0; }
.kkarma-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kkarma-top strong { font: 700 17px/1.2 var(--font-label); color: #fff; }
.kkarma-top span { font: 600 13px/1 var(--font-body); color: rgba(255, 255, 255, .65); }
.kkarma-bar { display: block; margin-top: 10px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.kkarma-bar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--kino, #ff8a00), #ffd36b); }
.kkarma-sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .5); }
.kkarma-how { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: rgba(255, 255, 255, .38); }
.kcm-acts .kcm-vote button:disabled { opacity: .35; cursor: default; background: none; }

/* ---------- the app: install prompt, Settings > App ---------- */
#kapp { position: fixed; z-index: 120; right: 20px; bottom: 20px; width: min(380px, calc(100vw - 32px)); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .26s ease, transform .26s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
#kapp.is-in { opacity: 1; transform: none; pointer-events: auto; }
.kapp-card { position: relative; padding: 18px; border-radius: 22px; color: #fff; background: rgba(18, 15, 16, .84); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .09); }
.kapp-head { display: flex; gap: 14px; align-items: center; padding-right: 28px; }
.kapp-head img { flex: none; border-radius: 13px; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.kapp-head b { display: block; font-size: 16px; font-weight: 750; }
.kapp-head span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .62); }
.kapp-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 999px; display: grid; place-items: center; color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); cursor: pointer; }
.kapp-x:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.kapp-steps { list-style: none; display: grid; gap: 10px; margin: 16px 0 0; padding: 0; font-size: 14px; color: rgba(255, 255, 255, .86); }
.kapp-steps li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kapp-n { flex: none; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .1); }
.kapp-key { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; font-weight: 650; background: rgba(255, 255, 255, .1); }
.kapp-note { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .65); }
.kapp-acts { display: flex; gap: 10px; margin-top: 16px; }
.kapp-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; color: #000; background: #fff; cursor: pointer; transition: transform .15s ease, background .2s ease; }
.kapp-acts .kapp-btn { flex: 1; }
.kapp-btn:active { transform: scale(.97); }
.kapp-btn.is-quiet { color: #fff; background: rgba(255, 255, 255, .1); }
.kapp-btn.is-quiet:hover { background: rgba(255, 255, 255, .16); }
.kapp-ico { flex: none; width: 44px; height: 44px; margin-right: 14px; border-radius: 11px; }
.kapp-done { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
@media (max-width: 768px) {
  #kapp { left: 12px; right: 12px; width: auto; bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* ---------- season recaps ---------- */
#sec-Episodes .kino-sec-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.krecap-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px 0 12px; border: 0; border-radius: 999px; font: 600 13px/1 var(--font-body); letter-spacing: 0; color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); cursor: pointer; transition: background .2s ease; }
.krecap-btn:hover { background: rgba(255, 255, 255, .18); }
.kw-act.is-hot { color: #000 !important; background: #fff !important; }
.krc { display: grid; gap: 14px; min-height: 220px; }
.krc-seasons { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.krc-seasons::-webkit-scrollbar { display: none; }
.krc-chip { flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; font: 600 13px/1 var(--font-body); color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .08); cursor: pointer; }
.krc-chip:hover { background: rgba(255, 255, 255, .14); }
.krc-chip.is-on { color: #000; background: #fff; }
.krc-list { display: grid; gap: 6px; }
.krc-item { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 14px; text-align: left; color: inherit; background: transparent; cursor: pointer; transition: background .2s ease; }
.krc-item:hover { background: rgba(255, 255, 255, .06); }
.krc-art { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.krc-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.krc-art b { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, .78); }
.krc-art i { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; background: rgba(0, 0, 0, .35); transition: opacity .2s ease; }
.krc-item:hover .krc-art i { opacity: 1; }
.krc-copy { display: grid; gap: 6px; min-width: 0; }
.krc-t { font-size: 14.5px; font-weight: 650; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.krc-m { font-size: 12.5px; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.krc-item.is-wait { cursor: default; }
.krc-item.is-wait .krc-copy i { display: block; height: 12px; border-radius: 6px; width: 80%; }
.krc-item.is-wait .krc-copy i + i { width: 45%; }
.krc-empty { display: grid; justify-items: center; gap: 12px; padding: 40px 0; color: rgba(255, 255, 255, .55); text-align: center; }
.krc-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px; border: 0; border-radius: 999px; font: 600 13px/1 var(--font-body); color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .08); cursor: pointer; }
.krc-back:hover { color: #fff; }
.krc-player { aspect-ratio: 16 / 9; margin-top: 12px; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.krc-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.krc-now { margin: 10px 2px 0; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8); }
@media (max-width: 600px) {
  .krc-item { grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 6px; }
  .krc-t { font-size: 13.5px; }
}
.kdock-recap { flex: none; width: 32px; height: 32px; margin-left: 4px; padding: 0; border: 0; border-radius: 999px; display: grid; place-items: center; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .08); cursor: pointer; transition: background .2s ease, color .2s ease; }
.kdock-recap:hover { color: #fff; background: rgba(255, 255, 255, .16); }

/* a card's picture shimmers until it arrives (kino-early.js marks the box once it has) */
.MediaCard-module__ksxplG__imageWrap:not(.kimg-in)::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .06) 50%, transparent 70%); transform: translateX(-100%); }
/* the shimmer runs only on cards in view (kimg-see, kino-early.js): a home page holds some 260 cards whose pictures
   have not come yet, nearly all of them off to the side or below, and each ran its own endless animation */
.MediaCard-module__ksxplG__imageWrap.kimg-see:not(.kimg-in)::after { animation: kcShine 1.5s ease-in-out infinite; }
@keyframes kcShine { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .MediaCard-module__ksxplG__imageWrap::after { animation: none !important; } }

/* phone hero: dots for where you are, swipe to move (desktop has the Top 10 strip) */
.kh-dots { display: none; }
@media (max-width: 768px) {
  .kh-dots { position: absolute; z-index: 4; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
  .kh-dots:empty { display: none; }
  .kh-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .35); pointer-events: auto; transition: width .3s ease, background .3s ease; }
  .kh-dots button.is-on { width: 18px; background: #fff; }
}

/* ---------- episodes without a picture, or not out yet ---------- */
.kep-ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 95% at 30% 15%, #2b170c 0%, #140c08 55%, #0b0a0c 100%); }
/* the episode boxes stretch every picture to fill them; the fox stays a small mark */
.kep-ph img, [class*="__epStill"] .kep-ph img { width: 22%; max-width: 56px; height: auto; aspect-ratio: 1; object-fit: contain; opacity: .5; transform: none; image-rendering: pixelated; }
.kep-soon { position: absolute; z-index: 2; left: 8px; bottom: 8px; max-width: calc(100% - 16px); display: inline-flex; align-items: baseline; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; line-height: 1.3; color: #fff; white-space: nowrap; overflow: hidden; background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.kep-soon b { font-weight: 750; }
.kep-soon small { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .72); text-overflow: ellipsis; overflow: hidden; }
.kep-later [data-ep-soon] { cursor: default; }
.kep-later [data-ep-soon] img:not(.kep-ph img) { filter: saturate(.75) brightness(.82); }
.kep-airs { color: #ffc46b; font-weight: 600; }
.kw-notyet { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; gap: 8px; padding: 24px; text-align: center; background: radial-gradient(120% 95% at 30% 15%, #2b170c 0%, #140c08 55%, #0b0a0c 100%); }
.kw-notyet b { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; }
.kw-notyet span { font-size: 15px; color: rgba(255, 255, 255, .7); }
@media (max-width: 600px) {
  .kep-soon { left: 6px; bottom: 6px; padding: 3px 8px; }
  .kep-soon small { display: none; }
}

/* phone dock: icons, with the active tab showing its name on the pill. The dock keeps one width: a tab that is off is
   --kd-off wide and the one that is on --kd-on (room for the longest name, the name centred), both measured by
   kino.js dockTo; with no tab on (a title, the watch page) they share that room evenly (--kd-none, .is-none).
   Nothing here animates a width: on a switch the two tabs take their new widths at once and kino.js
   glides the icons, the names and the pill from where they were, with transform and opacity only, so a busy page
   cannot stall them. Icons and names turn dark under the pill by blending (.kn-tab, .kn-dtab above). .is-now places everything without moving (first paint, resize); .is-appear brings
   the pill back in place, fading in, as you come back from a page with no tab. */
@media (max-width: 768px) {
  .kn-dpill { transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .2s ease; }
  .kn-dtab { width: var(--kd-off, auto); padding: 0 11px; gap: 0; justify-content: center; }
  .kn-dtab.is-on { width: var(--kd-on, auto); }
  .kn-dock.is-none .kn-dtab { width: var(--kd-none, auto); }
  .kn-dtab .kn-di { display: inline-grid; place-items: center; line-height: 0; }
  .kn-dtab .kn-dlabel { position: absolute; visibility: hidden; white-space: nowrap; font-weight: 700; font-size: 13.5px; }
  .kn-dtab.is-on .kn-dlabel { position: static; visibility: visible; margin-left: 7px; }
  .kn-dghost { position: absolute; z-index: 1; left: 0; top: 6px; line-height: 44px; white-space: nowrap; font-weight: 700; font-size: 13.5px; color: #fff; mix-blend-mode: difference; pointer-events: none; }
  .kn-dock.is-now .kn-dpill { transition: opacity .2s ease; }
  .kn-dock.is-appear .kn-dpill { transition: opacity .25s ease; }
  /* The dock stays out of the page cross-fade: it is not part of the page, and it runs its own slide. Inside the
     page's snapshot there were two docks for a third of a second, the old one fading out over the new one. */
  .kn-dock { view-transition-name: kino-dock; }
}
::view-transition-old(kino-dock) { display: none; }
::view-transition-group(kino-dock), ::view-transition-new(kino-dock) { animation: none; }
@media (max-width: 400px) {
  .kn-dtab { padding: 0 9px; }
}

/* phone hero shows the portrait poster; keep it steady so the slow pan doesn't crop the art */
@media (max-width: 768px) {
  .kh-portrait .kh-still { object-position: center 28%; }
  .kh-portrait .kh-still, .kh-portrait .kh-still.is-in { transform: scale(1.02); animation: none; }
}

/* portrait posters often bake in their own title low-centre; darken the base so our logo reads clean */
@media (max-width: 768px) {
  .kh-portrait .kh-scrim, .kh-portrait.is-playing .kh-scrim { background: linear-gradient(0deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .58) 24%, rgba(0, 0, 0, .12) 48%, rgba(0, 0, 0, 0) 64%), linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, 0) 22%); }
}

/* iPhone: a brand player's own full screen only fills its frame, so while it lasts the frame covers the
   page like the landscape watch below (pinPlayer in kino.js, on fullscreen-enter / fullscreen-exit). */
html.kw-pin, html.kw-pin body { overflow: hidden !important; overscroll-behavior: none; }
html.kw-pin .Watch-module__4kHh8W__watch { z-index: auto !important; }
html.kw-pin .Watch-module__4kHh8W__frame {
  position: fixed !important; inset: 0 !important;
  width: auto !important; height: auto !important; margin: 0 !important;
  aspect-ratio: auto !important; border-radius: 0 !important; box-shadow: none !important;
  background: #000 !important; z-index: 2147483000 !important;
}
html.kw-pin .kn-wrap, html.kw-pin .kn-dock, html.kw-pin .kn-mbrand, html.kw-pin .kn-mbell, html.kw-pin .kn-macct, html.kw-pin .Watch-module__4kHh8W__side, html.kw-pin #toast { display: none !important; }
/* Nothing of ours paints over the player while it fills the screen: the "Credits rolling?" card (fixed, in
   <body>) sat over its seek bar and Next. It stays in the page and shows again once full screen ends. */
html.kw-pin .kcred { display: none !important; }

/* ── Immersive landscape watch ───────────────────────────────────────────────
   On a phone in landscape the watch page is just the player, full-screen. The
   base's landscape rules plus our fixed nav pill (.kn-wrap, z 100 at the root)
   and the isolate layer on __screen otherwise let the nav float over the video
   and the "More like this" column paint on top of it. Rotate to portrait for the
   info, servers, episodes and comments. max-height 640 catches real phones
   (~390-412 tall) and a phone forced to Desktop-site (reports ~580 tall);
   tablets/laptops (>640 tall) keep the normal three-column layout. */
@media (orientation: landscape) and (max-height: 640px) {
  .Watch-module__4kHh8W__watch { padding: 0 !important; gap: 0 !important; max-width: none !important; z-index: auto !important; }
  .Watch-module__4kHh8W__frame {
    position: fixed !important; inset: 0 !important;
    width: auto !important; height: auto !important; margin: 0 !important;
    aspect-ratio: auto !important; border-radius: 0 !important; box-shadow: none !important;
    background: #000 !important; z-index: 2147483000 !important;
  }
  .Watch-module__4kHh8W__frame > .Watch-module__4kHh8W__embed,
  .Watch-module__4kHh8W__frame .kino-player {
    position: absolute !important; inset: 0 !important;
    width: 100% !important; height: 100% !important; aspect-ratio: auto !important;
  }
  /* everything but the player steps aside while watching in landscape
     (desktop nav pill .kn-wrap + the phone nav: brand, bell, account, dock) */
  .kn-wrap, .kn-dock, .kn-mbrand, .kn-mbell, .kn-macct,
  .Watch-module__4kHh8W__side,
  .Watch-module__4kHh8W__recs,
  .Watch-module__4kHh8W__head,
  .Watch-module__4kHh8W__bar,
  .Watch-module__4kHh8W__desc,
  .Watch-module__4kHh8W__back,
  .Watch-module__4kHh8W__ambient,
  .kcm-watch,
  .kcred { display: none !important; }
  /* (__head too: its full-width title sat over the player's top bar, so a tap on Sources never reached the player;
     .kcred, the "Credits rolling?" card, sat over its seek bar and Next, and shows again in portrait) */
}

/* ── Lite (data-lite, kino-early.js): a device measured to stutter, one step down ─────────
   No frosted glass (solid fills instead), decorative loops off; the glow round the player stays (it is blurred once,
   in a canvas, and costs next to nothing; only where that is not possible are its CSS blurs made smaller and still).
   UI motion stays (data-perf, from the motion setting, still turns everything off). No browser gets this by name
   any more: Safari, touch screens and Firefox start with everything. */
html[data-lite="1"] *, html[data-lite="1"] *::before, html[data-lite="1"] *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html[data-lite="1"] :is(.panelGlass, .ctrlGlass, .popGlass, .iconCircleGlass, .chip, .btnGhost, .iconCircle, .input) { background: var(--glass-solid); }
html[data-lite="1"] .frostGlass { background: var(--bg); }
html[data-lite="1"] :is(.liquidGlass, .btnHeroGlass) { background: var(--surface-2); }
html[data-lite="1"] :is(.kn-shell, .kn-drop .Palette-module__lZNMnG__drop, .kbtn-glass, .kbtn-round, .kh-toggle, .kt-card, .kn-macct, .kn-dock, .kh-rail-nav, .MediaRow-module__cgKaXa__nav, .kcard-mute, .kcard-timer, .MediaCard-module__ksxplG__flag) { background-color: rgba(16, 16, 20, .88); }
html[data-lite="1"] :is(.kh-rail-nav, .MediaRow-module__cgKaXa__nav):hover { background-color: rgba(52, 52, 60, .94); }
html[data-lite="1"] .kglow:not(.is-baked) :is(img, .kglow-live) { animation: none !important; will-change: auto !important; filter: blur(28px) saturate(1.6) brightness(1.05) !important; }
html[data-lite="1"] #mood:not(.kamb-host) { filter: blur(40px) brightness(.3) saturate(1.4) !important; }
html[data-lite="1"] .moodLayer { animation: none !important; will-change: auto !important; }
html[data-lite="1"] :is(.season-spider, .leaf) { display: none !important; }
/* The loading shimmer on cards ran on the main thread on every frame, for every card whose picture had not loaded
   yet (most of them: rails load pictures as they scroll into view). A plain placeholder here. */
html[data-lite="1"] .MediaCard-module__ksxplG__imageWrap::after { content: none; animation: none; }
/* Page changes keep the same cross-fade and artwork morph as everywhere else. (Setting the cross-fade's animation to
   none here did not turn it off: it showed the old and the new page added together, both at full strength.) */

/* ---------- comments: the house crew, emoji, reactions, polls (kino.js "emoji, reactions, polls and the house crew") */
/* Captain badge: SweetFox orange, the SweetFox mark, and a link to the Captain's profile that says what the crew is. */
.kcap { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px 0 5px; border-radius: 999px; background: linear-gradient(135deg, #ff9a3d, #ff5e7a); color: #1b0b00; font: 800 10.5px/1 var(--font-body); letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.kcap img { width: 12px; height: 12px; filter: brightness(0) saturate(100%) invert(6%) sepia(30%) saturate(1500%) hue-rotate(5deg); }
.kcap:hover { filter: brightness(1.08); }
.kcap.is-big { height: 22px; padding: 0 9px 0 7px; font-size: 12px; margin-left: 10px; vertical-align: middle; }
.kcap.is-big img { width: 14px; height: 14px; }
.kcm-av.is-crew { box-shadow: 0 0 0 2px rgba(255, 138, 61, .6); background: none; }
.kcap-prof { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.kcap-who { min-width: 0; }
.kcap-who .kprof-name { display: flex; align-items: center; flex-wrap: wrap; font: 800 26px/1.15 var(--font-label); color: #fff; }
.kcap-line { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 5px 11px; border-radius: 999px; background: rgba(255, 138, 61, .14); color: #ffb47a; font: 700 12.5px/1 var(--font-body); }
.kcap-bio { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.kcap-note { display: grid; gap: 5px; margin: 16px 0 8px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.kcap-note strong { font: 700 14px/1.3 var(--font-body); color: #fff; }
.kcap-note span { font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .68); }

/* Emoji are SweetFox pixel sprites (public/emoji, 16 x 16) that animate themselves, frame by frame; kino.js picks the
   still twin in the picker, on reaction chips and while the motion setting is off. Sizes stay on whole multiples
   of 16 where it matters, so the pixels stay square. */
.kem, .kem-x { display: inline-block; width: 20px; height: 20px; margin: -4px 1px 0; vertical-align: middle; image-rendering: pixelated; }
.kem-x { width: 24px; height: 24px; margin-top: -6px; }
.kcm-text.is-jumbo { line-height: 1.2; }
.kcm-text.is-jumbo :is(.kem, .kem-x) { width: 48px; height: 48px; margin: 2px 3px 2px 0; }
@keyframes kemPop { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.3); } 70% { transform: scale(.92); } }

/* the picker (a menu from the composer's emoji button, a comment's React button or a title's + chip); solid, as
   it opens over text */
.replica-pop:has(> .kem-pick) { padding: 4px; background: #16161b; box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.kem-pick { padding: 8px; }
.kem-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.kem-grid button { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 0; border-radius: 9px; background: none; font-size: 21px; line-height: 1; cursor: pointer; }
.kem-grid button:hover, .kem-grid button:focus-visible { background: rgba(255, 255, 255, .09); }
.kem-grid .kem { width: 24px; height: 24px; margin: 0; }
.kem-grid.is-x { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.kem-grid.is-x button { position: relative; aspect-ratio: auto; height: 52px; background: rgba(255, 255, 255, .04); }
.kem-grid.is-x .kem-x { width: 32px; height: 32px; margin: 0; }
.kem-grid .is-locked .kem-x { filter: grayscale(1); opacity: .55; }
.kem-grid .is-locked i, .kem-unlocks i { position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); padding: 2px 5px; border-radius: 999px; background: #2a2a31; color: rgba(255, 255, 255, .8); font: 700 9.5px/1 var(--font-body); font-style: normal; white-space: nowrap; }
.kem-sub { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 12px 4px 8px; font-size: 12px; color: rgba(255, 255, 255, .5); }
.kem-sub b { flex: none; font: 700 12px/1.2 var(--font-body); color: #fff; white-space: nowrap; }
.kem-sub span { text-align: right; }
.kcm-emo { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: rgba(255, 255, 255, .65); cursor: pointer; }
.kcm-emo:hover, .kcm-emo[aria-expanded="true"] { background: rgba(255, 255, 255, .08); color: #fff; }

/* reactions: on a comment, and the bar on a title page (with the comment count) and under the player */
.kcm-rx { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.krx { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 34px; }
.krx.is-title { margin-top: 16px; }
.krx.is-watch { margin: 0 0 18px; }
.krx-chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; min-width: 40px; padding: 0 11px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(255, 255, 255, .05); color: #fff; font: 700 12.5px/1 var(--font-body); font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.krx-chip :is(.kem, .kem-x) { width: 18px; height: 18px; margin: 0; }
.krx-chip:hover { background: rgba(255, 255, 255, .1); }
.krx-chip:active { transform: scale(.94); }
.krx-chip.is-on { border-color: color-mix(in srgb, var(--kino, #ff8a3d) 70%, transparent); background: color-mix(in srgb, var(--kino, #ff8a3d) 18%, transparent); color: #ffd0ad; }
.krx-chip.is-pop :is(.kem, .kem-x) { animation: kemPop .45s ease-out 1 both; }
@media (prefers-reduced-motion: reduce) { .krx-chip.is-pop :is(.kem, .kem-x) { animation: none; } }
.kcm-rx .krx-chip { height: 28px; min-width: 0; padding: 0 9px; }
.krx-add { min-width: 0; width: 34px; padding: 0; color: rgba(255, 255, 255, .7); }
.krx-talk { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 15px 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font: 700 13px/1 var(--font-body); cursor: pointer; }
.krx-talk:hover { background: rgba(255, 255, 255, .22); }
.krx-seen { display: inline-flex; align-items: center; gap: 6px; margin-left: 2px; font-size: 12.5px; color: rgba(255, 255, 255, .62); }

/* a Captain's poll: results show once you have voted */
.kcm-poll { display: grid; gap: 6px; max-width: 440px; margin: 10px 0 2px; }
.kcm-poll button { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 11px; background: rgba(255, 255, 255, .04); color: #fff; font: 600 13.5px/1.3 var(--font-body); text-align: left; cursor: pointer; }
.kcm-poll button:hover { border-color: rgba(255, 255, 255, .28); }
.kcm-poll button i { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .08); transition: width .5s cubic-bezier(.22, 1, .36, 1); }
.kcm-poll button.is-on { border-color: color-mix(in srgb, var(--kino, #ff8a3d) 75%, transparent); }
.kcm-poll button.is-on i { background: color-mix(in srgb, var(--kino, #ff8a3d) 30%, transparent); }
.kcm-poll button span, .kcm-poll button b { position: relative; }
.kcm-poll button b { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); }
.kcm-poll small { font-size: 12px; color: rgba(255, 255, 255, .45); }

/* "be the first": ways to start, while no member has said anything */
.kcm-first { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -12px 0 24px 48px; }
.kcm-first span { flex-basis: 100%; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.kcm-first button { height: 32px; padding: 0 14px; border: 1px dashed rgba(255, 255, 255, .24); border-radius: 999px; background: none; color: #fff; font: 600 13px/1 var(--font-body); cursor: pointer; }
.kcm-first button:hover { border-style: solid; background: rgba(255, 255, 255, .07); }

/* your emote unlocks, on your own karma card */
.kem-unlocks { margin-top: 14px; }
.kem-unlocks-h { font: 700 11px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.kem-unlocks > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.kem-unlocks > div > span { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.kem-unlocks .kem-x { width: 32px; height: 32px; margin: 0; }
.kem-unlocks .is-locked .kem-x { filter: grayscale(1); opacity: .55; }
.kem-unlocks .is-open i { background: color-mix(in srgb, var(--kino, #ff8a3d) 80%, #000); color: #fff; }

/* the credits prompt: how was it? */
.kcred { position: fixed; z-index: 90; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 24px)); display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px; background: #131318; box-shadow: 0 22px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .1); color: #fff; opacity: 0; transform: translate(-50%, 16px); transition: opacity .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1); }
.kcred.is-in { opacity: 1; transform: translate(-50%, 0); }
.kcred strong { font: 800 16px/1.2 var(--font-label); padding-right: 30px; }
.kcred > span { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.kcred-rx { display: flex; gap: 6px; margin-top: 6px; }
.kcred-rx button { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 9px 0 7px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.kcred-rx button:hover { background: rgba(255, 255, 255, .12); }
.kcred-rx .kem { width: 32px; height: 32px; margin: 0; }
.kcred strong .kem { width: 20px; height: 20px; }
.kcred-rx small { font: 600 11px/1 var(--font-body); color: rgba(255, 255, 255, .7); }
.kcred-thx { margin: 6px 0 0; font: 600 14px/1.4 var(--font-body); }
.kcred-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; margin-top: 6px; border: 0; border-radius: 999px; background: #fff; color: #000; font: 700 14px/1 var(--font-body); cursor: pointer; }
.kcred-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: rgba(255, 255, 255, .6); cursor: pointer; }
.kcred-x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
@media (max-width: 768px) {
  .kcred { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .kcm-first { margin-left: 0; }
  .kcap-who .kprof-name { font-size: 22px; }
}


/* ---------- Light mode (data-light, kino-early.js: slow computers/browsers, or Settings > Browsing > Light mode) ---------
   On top of data-lite (no frosted glass, still blurs): the full-page glow and mood backdrop are gone (each was a
   huge blurred layer redrawn under everything), and rails below the screen are skipped by the renderer until they
   come near. */
html[data-light="1"] :is(.kglow, .kglow-rim, .kglow-live) { display: none !important; }
html[data-light="1"] #mood { display: none !important; } /* also the WebGL ambience shader: hidden = it stops drawing */
html[data-light="1"] .moodLayer { display: none !important; }
html[data-light="1"] .MediaRow-module__cgKaXa__section { content-visibility: auto; contain-intrinsic-size: auto 320px; }

/* ---------- Controls that are not showing carry no frosted glass ----------
   A browser keeps a blur layer for every element with backdrop-filter, seen or not: the home page had 584 hidden
   card buttons and 26 hidden rail arrows frosted, against 5 controls actually on screen. The glass now comes with
   the control when it shows and goes once it has faded out, so what is seen is unchanged. (Touch screens show the
   card buttons all the time, without glass: reference.css.) */
@media (hover: hover) {
  .MediaCard-module__ksxplG__card .MediaCard-module__ksxplG__actions :is(.MediaCard-module__ksxplG__actBtn, .MediaCard-module__ksxplG__listBtn) { -webkit-backdrop-filter: none; backdrop-filter: none; transition: opacity var(--t-press) var(--ease-in), translate var(--t-press) var(--ease-in), visibility 0s linear var(--t-press), transform var(--t-base) var(--ease-out), background var(--t-fast), color var(--t-fast), -webkit-backdrop-filter 0s linear var(--t-press), backdrop-filter 0s linear var(--t-press); }
  html:not([data-perf="1"]) .MediaCard-module__ksxplG__card:hover .MediaCard-module__ksxplG__actions :is(.MediaCard-module__ksxplG__actBtn, .MediaCard-module__ksxplG__listBtn),
  html:not([data-perf="1"]) .MediaCard-module__ksxplG__card:has(:focus-visible) .MediaCard-module__ksxplG__actions :is(.MediaCard-module__ksxplG__actBtn, .MediaCard-module__ksxplG__listBtn),
  html[data-tv="1"]:not([data-perf="1"]) .MediaCard-module__ksxplG__card:focus-within .MediaCard-module__ksxplG__actions :is(.MediaCard-module__ksxplG__actBtn, .MediaCard-module__ksxplG__listBtn) { -webkit-backdrop-filter: var(--glass-button-blur); backdrop-filter: var(--glass-button-blur); transition: opacity var(--t-fast) var(--ease-out), translate var(--t-base) var(--ease-out), visibility 0s, transform var(--t-base) var(--ease-out), background var(--t-fast), color var(--t-fast), -webkit-backdrop-filter 0s, backdrop-filter 0s; }
  .MediaRow-module__cgKaXa__nav { -webkit-backdrop-filter: none; backdrop-filter: none; transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), -webkit-backdrop-filter 0s linear var(--t-base), backdrop-filter 0s linear var(--t-base); }
  html:not([data-perf="1"]) .MediaRow-module__cgKaXa__rowWrap:hover .MediaRow-module__cgKaXa__navOn,
  html:not([data-perf="1"]) .MediaRow-module__cgKaXa__nav.MediaRow-module__cgKaXa__navOn:focus-visible { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), -webkit-backdrop-filter 0s, backdrop-filter 0s; }
}

/* ---------- Screens wider than the page (3200 px): the hero's picture still reaches both edges ----------
   The home page is held to 3200 px; on a 4K screen at 100% that left the hero's picture with a dark band each side.
   The picture layer now runs to the window's edges (the hero is clipped top and bottom only, not at its sides); the
   title, buttons and rows stay in the page's column. */
@media (min-width: 3201px) {
  .kh { overflow: visible; clip-path: inset(0 calc((3200px - 100vw) / 2)); }
  .kh-media { left: calc((3200px - 100vw) / 2); right: calc((3200px - 100vw) / 2); }
}

/* ---------- Progress on a card: a strip along the picture's bottom edge ----------
   The bar used to float 10 px up from the bottom, which is exactly where a title's logo sits (12 px up): it ran
   straight through the logo's feet. Now it lies flush on the bottom edge, the full width of the picture, and a logo
   on a card that has one stands a little higher, clear of it. */
.kino-progress { left: 0; right: 0; bottom: 0; height: 5px; border-radius: 0; background: rgba(0, 0, 0, .55); }
.kino-progress i { border-radius: 0 3px 3px 0; }
.MediaCard-module__ksxplG__imageWrap:has(> .kino-progress) .MediaCard-module__ksxplG__logo { bottom: 17px; }

/* ---------- No long-press menu on pictures and links (phones); the right-click menu is stopped in kino-early.js ---------- */
html { -webkit-touch-callout: none; }

/* A row that comes back with its kept page was already shown: its cards do not play their entrance again. */
[data-kq] .MediaCard-module__ksxplG__card { animation: none; }

/* ep4k (2026-11-15): 4K tag on episode stills + the "4K first" sort button */
.kep-4k { position: absolute; left: 8px; bottom: 8px; margin: 0; z-index: 2; background: rgba(8, 9, 11, 0.62); pointer-events: none; }
.kep-uhd-btn[hidden] { display: none !important; }
.kep-uhd-btn .kep-uhd-mark { color: #e2b84a; font-weight: 700; letter-spacing: 0.06em; margin-right: 3px; }
.kep-uhd-btn[aria-pressed="true"] { border-color: #e2b84a; color: #e2b84a; background: rgba(226, 184, 74, 0.1); }
