/* KINO99 red design — header, home, cards, and a restyle of the DooPlay pages */
:root {
  --k99-red: #e50914;
  --k99-red-hi: #ff1f2c;
  --k99-red-dim: rgba(229, 9, 20, .16);
  --k99-gold: #f5c518;
  --k99-bg: #0a0a0c;
  --k99-surface: #141418;
  --k99-surface-2: #1c1c22;
  --k99-line: #2a2a31;
  --k99-text: #f4f4f5;
  --k99-muted: #a1a1aa;
  --k99-radius: 12px;
  --k99-head: 68px;
  --k99-gutter: 32px;
}

/* ── Base ─────────────────────────────────────────────────────────── */
html { scroll-padding-top: var(--k99-head); }
body.k99 { background: var(--k99-bg) !important; color: var(--k99-text); -webkit-font-smoothing: antialiased; }
/* the full-bleed heroes are 100vw wide; clip that here, not on body: body is only
   as tall as the header, and Safari also clips everything below it vertically */
body.k99 #dt_contenedor { background: var(--k99-bg); overflow-x: clip; }
body.k99 #contenedor { margin-top: 0 !important; padding: 0 var(--k99-gutter); max-width: 1500px; box-sizing: border-box; }
body.k99 a { color: inherit; }
body.k99 a:hover { color: var(--k99-red-hi); }
.k99 svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.k99 :focus-visible { outline: 2px solid var(--k99-red-hi); outline-offset: 2px; }

/* ── Header ───────────────────────────────────────────────────────── */
.k99-header { position: sticky; top: 0; z-index: 200; background: rgba(10, 10, 12, .97); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.k99-header-in { max-width: 1500px; margin: 0 auto; height: var(--k99-head); padding: 0 var(--k99-gutter); display: flex; align-items: center; gap: 28px; box-sizing: border-box; }
.k99-logo { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--k99-red); color: #fff !important; font: 900 24px/1 Roboto, system-ui, sans-serif; letter-spacing: -.5px; text-decoration: none; box-shadow: 0 4px 18px rgba(229, 9, 20, .35); flex: none; }
.k99-logo:hover { background: var(--k99-red-hi); }
.k99-nav { display: flex; gap: 6px; padding-left: 24px; border-left: 1px solid var(--k99-line); }
.k99-nav a { position: relative; padding: 8px 12px; font-size: 15px; font-weight: 500; color: #e4e4e7 !important; text-decoration: none; white-space: nowrap; }
.k99-nav a:hover { color: #fff !important; }
.k99-nav a.is-active { color: #fff !important; font-weight: 700; }
.k99-nav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 3px; border-radius: 3px; background: var(--k99-red); }
.k99-search { position: relative; margin-left: auto; width: 300px; }
.k99-search form { display: flex; align-items: center; height: 42px; padding: 0 16px; gap: 10px; border-radius: 999px; background: var(--k99-surface-2); border: 1px solid var(--k99-line); }
.k99-search form:focus-within { border-color: var(--k99-red); }
.k99-search-ico { display: flex; color: var(--k99-muted); }
.k99-search input#s { flex: 1; min-width: 0; height: 100%; padding: 0 !important; margin: 0; background: none !important; border: 0 !important; color: #fff !important; font-size: 15px; box-shadow: none !important; }
.k99-search input#s::placeholder { color: var(--k99-muted); }
.k99-search .search-button { display: none; }
.k99-search .live-search { position: absolute !important; top: 50px !important; left: 0; right: 0; width: auto !important; z-index: 300; }
.k99-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--k99-surface-2); border: 1px solid var(--k99-line); color: #fff !important; cursor: pointer; flex: none; padding: 0; }
.k99-icon-btn:hover { border-color: var(--k99-red); }
.k99-search-toggle { display: none; }
.k99-chips { display: none; }

/* ── Buttons, badges ──────────────────────────────────────────────── */
.k99-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 30px; border-radius: 10px; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; border: 0; font-family: inherit; transition: background-color .15s, border-color .15s, transform .15s; }
.k99-btn:active { transform: scale(.98); }
.k99-btn-red { background: var(--k99-red); color: #fff !important; box-shadow: 0 6px 24px rgba(229, 9, 20, .35); }
.k99-btn-red:hover { background: var(--k99-red-hi); color: #fff !important; }
.k99-btn-ghost { background: rgba(0, 0, 0, .35); color: #fff; border: 1.5px solid rgba(255, 255, 255, .75); }
.k99-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.k99-btn-outline { height: 44px; padding: 0 18px; font-size: 15px; background: none; color: var(--k99-red-hi) !important; border: 1.5px solid var(--k99-red); }
.k99-btn-outline:hover { background: var(--k99-red-dim); }
.k99-btn-outline svg { width: 16px; height: 16px; }
.k99-mylist-btn .k99-ico-done { display: none; }
.k99-mylist-btn.is-saved .k99-ico-add { display: none; }
.k99-mylist-btn.is-saved .k99-ico-done { display: inline-flex; }
.k99-mylist-btn span { display: inline-flex; }
.k99-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.k99-b { display: inline-block; padding: 4px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.k99-b-dub { background: var(--k99-red); color: #fff; }
.k99-b-sub { background: rgba(20, 20, 24, .85); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.k99-hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: min(72vh, 620px); min-height: 460px; overflow: hidden; background: #000; }
.k99-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.k99-slide.is-active { opacity: 1; visibility: visible; }
.k99-slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transform: scale(1.04); transition: transform 7s ease-out; }
.k99-slide.is-active .k99-slide-bg { transform: scale(1); }
.k99-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 12, .95) 0%, rgba(10, 10, 12, .7) 32%, rgba(10, 10, 12, 0) 65%), linear-gradient(0deg, var(--k99-bg) 0%, rgba(10, 10, 12, 0) 35%); }
.k99-slide-body { position: relative; z-index: 2; max-width: 1500px; height: 100%; margin: 0 auto; padding: 0 var(--k99-gutter) 64px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; }
.k99-slide-title { max-width: 720px; margin: 0 0 14px; font: 900 clamp(34px, 5.4vw, 72px)/1.02 Roboto, system-ui, sans-serif; letter-spacing: -1px; color: #fff; text-transform: uppercase; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.k99-slide-meta { display: flex; flex-wrap: wrap; margin: 0 0 10px; font-size: 17px; color: #e4e4e7; }
.k99-slide-meta span + span::before { content: "•"; margin: 0 12px; color: #a1a1aa; }
.k99-slide-text { max-width: 560px; margin: 0 0 26px; font-size: 18px; line-height: 1.5; color: #e4e4e7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k99-slide-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.k99-dots { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; }
.k99-dot { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .3s, background-color .3s; }
.k99-dot.is-active { width: 26px; background: #fff; }

/* ── Home layout and rows ─────────────────────────────────────────── */
.k99-home { padding-bottom: 40px; }
.k99-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; margin-top: 8px; }
.k99-main, .k99-side { min-width: 0; }
.k99-side { display: flex; flex-direction: column; gap: 20px; padding-top: 18px; }
.k99-row { margin-top: 18px; }
.k99-row[hidden] { display: none; }
.k99-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.k99-row-head h2 { margin: 0; font-size: 22px; font-weight: 700; color: #fff; }
.k99-more { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: var(--k99-muted) !important; text-decoration: none; }
.k99-more svg { width: 16px; height: 16px; }
.k99-more:hover { color: #fff !important; }
.k99-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.k99-scroll::-webkit-scrollbar { display: none; }
.k99-scroll > * { scroll-snap-align: start; }
.k99-scroll-wide { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
.k99-empty { color: var(--k99-muted); font-size: 15px; padding: 18px 0; }

/* Poster card */
.k99-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; position: relative; }
.k99-card-img { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: var(--k99-radius); overflow: hidden; background: var(--k99-surface); border: 1px solid var(--k99-line); }
.k99-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.k99-card:hover .k99-card-img img { transform: scale(1.05); }
.k99-card:hover .k99-card-img { border-color: var(--k99-red); }
.k99-rate { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; font-weight: 700; }
.k99-rate svg { width: 12px; height: 12px; color: var(--k99-gold); }
.k99-card-img .k99-badges { position: absolute; left: 8px; bottom: 8px; z-index: 2; }
.k99-card-title { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k99-card:hover .k99-card-title { color: var(--k99-red-hi); }

/* Continue watching card */
.k99-wide { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--k99-radius); overflow: hidden; background: var(--k99-surface); border: 1px solid var(--k99-line); text-decoration: none; }
.k99-wide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.k99-wide-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 90% at 20% 10%, rgba(229, 9, 20, .35) 0%, rgba(229, 9, 20, 0) 55%), linear-gradient(135deg, #1c1c22 0%, #0f0f12 100%); }
.k99-wide-ph-logo { padding: 6px 14px; border-radius: 999px; background: rgba(229, 9, 20, .9); color: #fff; font: 900 20px/1 Roboto, system-ui, sans-serif; letter-spacing: -.5px; opacity: .85; transform: translateY(-14px); }

/* Actor stories */
.k99-stories { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; }
.k99-stories::-webkit-scrollbar { display: none; }
.k99-story { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; text-align: center; }
.k99-story-ring { display: block; width: 84px; height: 84px; padding: 3px; border-radius: 50%; background: conic-gradient(from 210deg, #ff1f2c, #f5c518, #ff1f2c, #b80710, #ff1f2c); transition: transform .2s ease; }
.k99-story-ring img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid var(--k99-bg); box-sizing: border-box; background: var(--k99-surface); }
.k99-story:hover .k99-story-ring { transform: scale(1.06); }
.k99-story-name { width: 100%; font-size: 13px; font-weight: 600; color: #fff; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k99-story-count { font-size: 11px; color: var(--k99-muted); margin-top: -4px; }
.k99-stories-row { margin-top: 24px; }
.k99-wide:hover img { transform: scale(1.04); }
.k99-wide:hover { border-color: var(--k99-red); }
.k99-wide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, 0) 60%); }
.k99-wide-body { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; }
.k99-wide-body strong { display: block; font-size: 15px; font-weight: 700; color: #fff; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k99-wide-body span { display: block; margin-top: 2px; font-size: 13px; color: #d4d4d8; }
.k99-wide-bar { display: block; height: 4px; margin-top: 8px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.k99-wide-bar i { display: block; height: 100%; width: 100%; background: var(--k99-red); }

/* Sidebar panels */
.k99-panel { background: var(--k99-surface); border: 1px solid var(--k99-line); border-radius: 16px; padding: 18px; }
.k99-panel .k99-row-head h2 { font-size: 20px; }
/* Most viewed: #1 as a backdrop card, then ranked rows; the bar is views relative to #1 */
.k99-topv-lead { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; text-decoration: none; background: var(--k99-surface-2); }
.k99-topv-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.k99-topv-lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 12, .95) 0%, rgba(10, 10, 12, .2) 60%, rgba(10, 10, 12, 0) 100%); }
.k99-topv-lead:hover img { transform: scale(1.04); }
.k99-topv-rank { position: absolute; z-index: 2; top: 10px; left: 12px; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; background: var(--k99-red); color: #fff; font: 900 20px/1 Roboto, system-ui, sans-serif; box-shadow: 0 4px 14px rgba(229, 9, 20, .45); }
.k99-topv-lead-body { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.k99-topv-lead-body strong { font-size: 17px; font-weight: 800; color: #fff; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k99-topv-lead .k99-badges { position: absolute; z-index: 2; top: 12px; right: 12px; }
.k99-topv-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.k99-topv-list li + li { border-top: 1px solid var(--k99-line); }
.k99-topv-list a { display: grid; grid-template-columns: 34px 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 4px; text-decoration: none; border-radius: 10px; }
.k99-topv-list a:hover { background: var(--k99-surface-2); }
.k99-topv-n { font: 900 30px/1 Roboto, system-ui, sans-serif; color: #52525b; text-align: center; font-variant-numeric: tabular-nums; }
.k99-topv-list a:hover .k99-topv-n { color: var(--k99-red-hi); }
.k99-topv-poster { position: relative; display: block; width: 48px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--k99-surface-2); }
.k99-topv-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k99-topv-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.k99-topv-body strong { font-size: 14px; font-weight: 700; color: #fff; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k99-topv-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--k99-muted); font-variant-numeric: tabular-nums; }
.k99-topv-meta svg { width: 14px; height: 14px; }
.k99-topv-bar { display: block; height: 3px; border-radius: 3px; background: var(--k99-line); overflow: hidden; }
.k99-topv-bar i { display: block; height: 100%; background: var(--k99-red); border-radius: 3px; }

/* Placeholder behind any image that may be missing or fail to load */
.k99-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 90% at 20% 10%, rgba(229, 9, 20, .32) 0%, rgba(229, 9, 20, 0) 55%), linear-gradient(135deg, #1c1c22 0%, #0f0f12 100%); }
.k99-ph-logo { padding: 5px 12px; border-radius: 999px; background: rgba(229, 9, 20, .85); color: #fff; font: 900 16px/1 Roboto, system-ui, sans-serif; letter-spacing: -.5px; opacity: .8; }
.k99-request { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.k99-request-ico { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--k99-red); color: #fff; }
.k99-request-ico svg { width: 28px; height: 28px; }
.k99-request h3 { margin: 0 0 4px; font-size: 17px; color: #fff; }
.k99-request p { margin: 0; font-size: 14px; color: var(--k99-muted); line-height: 1.45; }
.k99-request .k99-btn { grid-column: 1 / -1; }
.k99-ad { margin-top: 22px; display: flow-root; max-width: 100%; overflow: hidden; }
.k99-ad .module_home_ads { float: none !important; width: 100% !important; margin: 0 !important; }
.k99-ad img, .k99-ad iframe { max-width: 100% !important; height: auto; }

/* ── Bottom bar (phones) ──────────────────────────────────────────── */
.k99-bottom { display: none; }

/* ── DooPlay pages restyle ────────────────────────────────────────── */
body.k99 .module { padding-top: 24px; }
body.k99 .module .content, body.k99 .sidebar, body.k99 #single .content { background: transparent !important; }
body.k99 .module .content header h1, body.k99 .module .content header h2, body.k99 .heading-archive, body.k99 h1.heading-archive { color: #fff !important; font-weight: 700; }
body.k99 .module .content header span, body.k99 .archive_post span { background: var(--k99-red) !important; color: #fff !important; border-radius: 6px; }
body.k99 .module .content .items .item .poster { border-radius: var(--k99-radius); overflow: hidden; border: 1px solid var(--k99-line); }
body.k99 .module .content .items .item:hover .poster { border-color: var(--k99-red); }
body.k99 .module .content .items .item .poster .k99-badges { position: absolute; left: 8px; bottom: 8px; z-index: 3; }
body.k99 .module .content .items .item .poster .rating { border-radius: 6px; }
body.k99 .module .content .items .item .data h3 a:hover, body.k99 .module .content .items .item .data h3:hover a { color: var(--k99-red-hi) !important; }
body.k99 .pagination span.current, body.k99 .pagination a:hover { background: var(--k99-red) !important; color: #fff !important; border-color: var(--k99-red) !important; }
body.k99 .pagination a, body.k99 .pagination span { border-radius: 8px; }
body.k99 .sidebar .widget, body.k99 .sidebar aside { background: var(--k99-surface); border-radius: 14px; }
body.k99 .w_item_b:hover h3, body.k99 .w_item_b a:hover h3 { color: var(--k99-red-hi) !important; }
body.k99 .sheader .data h1, body.k99 #single h1 { color: #fff !important; }
body.k99 .sgeneros a, body.k99 .sheader .data .sgeneros a { color: var(--k99-red-hi) !important; }
body.k99 .sgeneros a:hover { color: #fff !important; }
body.k99 #seasons .se-c .se-q .title, body.k99 #seasons .se-c .se-a ul.episodios li .episodiotitle a:hover { color: var(--k99-red-hi); }
body.k99 #seasons .se-c .se-q span.se-t { background: var(--k99-red) !important; color: #fff !important; }
body.k99 .ep-list { margin: 0; }
@media (min-width: 769px) {
  body.k99 .k99-show .ep-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
  body.k99 .k99-show .ep-form { margin: 0 !important; }
}
body.k99 .ep-btn { padding: 13px 16px !important; font-size: 15px !important; background-color: var(--k99-surface-2) !important; border: 1px solid var(--k99-line) !important; border-left: 3px solid var(--k99-red) !important; border-radius: 10px !important; }
body.k99 .ep-btn:hover, body.k99 .ep-btn:focus { background-color: var(--k99-red-hi) !important; box-shadow: 0 0 0 3px rgba(229, 9, 20, .35) !important; }
body.k99 .ep-btn:active { background-color: #b80710 !important; }
body.k99 .dt_rating_data .starstruck-rating span.dt_rating_vgs { color: var(--k99-gold); }
body.k99 .glossary, body.k99 .letter_home ul.glossary li a { border-radius: 8px; }
body.k99 .letter_home ul.glossary li a.active, body.k99 .letter_home ul.glossary li a:hover { background: var(--k99-red) !important; color: #fff !important; }
body.k99 footer.main { background: #050506 !important; border-top: 1px solid var(--k99-line); }
body.k99 footer.main .copy, body.k99 footer.main .copy a { color: var(--k99-muted) !important; }
body.k99 .top-page a { background: var(--k99-red) !important; color: #fff !important; }
body.k99 span.item_type, body.k99 #seasons .se-c .se-q span.se-o { background: var(--k99-red) !important; color: #fff !important; border-radius: 6px 0 0 0; }
body.k99 .pagination span.current { color: #fff !important; }
body.k99 .module .content header h1, body.k99 .module .content header h2 { border-color: var(--k99-red) !important; }
.k99-single-save { margin: 12px 0 4px; height: 44px; padding: 0 18px; font-size: 15px; }

/* ── TV show page ─────────────────────────────────────────────────── */
.k99-show { padding-bottom: 40px; }
.k99-show-hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); min-height: min(70vh, 600px); display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.k99-show-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.k99-show-bg.is-blur { opacity: .35; }
.k99-show-ph .k99-ph-logo { display: none; }
.k99-show-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 12, .96) 0%, rgba(10, 10, 12, .75) 38%, rgba(10, 10, 12, .1) 75%), linear-gradient(0deg, var(--k99-bg) 0%, rgba(10, 10, 12, 0) 40%); }
.k99-show-in { position: relative; z-index: 2; width: 100%; max-width: 1500px; margin: 0 auto; padding: 120px var(--k99-gutter) 48px; box-sizing: border-box; display: flex; align-items: flex-end; gap: 36px; }
.k99-show-poster { position: relative; flex: none; width: 220px; max-width: 100%; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 18px 50px rgba(0, 0, 0, .6); }
.k99-show-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k99-show-body { min-width: 0; max-width: 760px; }
body.k99 .k99-show-title { margin: 0 0 14px; font: 900 clamp(32px, 4.6vw, 64px)/1.04 Roboto, system-ui, sans-serif; letter-spacing: -1px; color: #fff !important; text-transform: uppercase; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.k99-show-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin: 0 0 14px; font-size: 16px; color: #e4e4e7; }
.k99-show-meta > span:not(.k99-b) + span:not(.k99-b)::before { content: "•"; margin: 0 12px; color: #a1a1aa; }
.k99-show-meta .k99-b { margin-left: 14px; font-size: 13px; }
.k99-show-rate { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #fff; }
.k99-show-rate svg { width: 16px; height: 16px; color: var(--k99-gold); }
.k99-show-genres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.k99-show-genres a { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .3); font-size: 13px; font-weight: 500; color: #e4e4e7 !important; text-decoration: none; }
.k99-show-genres a:hover { border-color: var(--k99-red); color: #fff !important; }
.k99-show-text { margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: #d4d4d8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.k99-show-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.k99-show .k99-row-head h2 small { margin-left: 6px; font-size: 15px; font-weight: 500; color: var(--k99-muted); }

/* Cast */
.k99-people { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.k99-people::-webkit-scrollbar { display: none; }
.k99-person { flex: none; width: 112px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; text-decoration: none; }
.k99-person-img { position: relative; display: block; width: 96px; height: 96px; margin-bottom: 4px; border-radius: 50%; overflow: hidden; background: var(--k99-surface-2); border: 2px solid var(--k99-line); transition: border-color .15s; }
.k99-person-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.k99-person-ph { position: absolute; inset: 0; display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: var(--k99-muted); background: radial-gradient(120% 90% at 20% 10%, rgba(229, 9, 20, .3) 0%, rgba(229, 9, 20, 0) 60%), var(--k99-surface-2); }
a.k99-person:hover .k99-person-img { border-color: var(--k99-red); }
.k99-person-name { width: 100%; font-size: 14px; font-weight: 600; color: #fff; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.k99-person-role { width: 100%; font-size: 12px; color: var(--k99-muted); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Trailer, details */
.k99-trailer { position: relative; aspect-ratio: 16 / 9; border-radius: var(--k99-radius); overflow: hidden; background: #000; border: 1px solid var(--k99-line); }
.k99-trailer iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.k99-show-content { font-size: 16px; line-height: 1.65; color: #d4d4d8; }
.k99-show-content p { margin: 0 0 12px; }
.k99-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 20px; margin: 6px 0 0; }
.k99-facts dt { font-size: 13px; color: var(--k99-muted); margin-bottom: 3px; }
.k99-facts dd { margin: 0; font-size: 15px; font-weight: 600; color: #fff; }
.k99-facts dd small { font-weight: 400; color: var(--k99-muted); }
.k99-facts a { color: var(--k99-red-hi) !important; text-decoration: none; }
.k99-creators { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--k99-line); font-size: 15px; color: #fff; }
.k99-creators span { margin-right: 10px; font-size: 13px; color: var(--k99-muted); }
.k99-creators a { color: #fff !important; text-decoration: none; }
.k99-creators a:hover { color: var(--k99-red-hi) !important; }
.k99-gallery .k99-wide::after { display: none; }

/* ── Privacy page ── */
.k99-account { max-width: 980px; margin: 0 auto; padding: 28px 0 56px; }
body.k99 .k99-account-title { margin: 0 0 8px; font-size: 30px; font-weight: 800; color: #fff; }
.k99-account-lead { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--k99-muted); max-width: 640px; }
.k99-doc h2 { margin: 26px 0 8px; font-size: 19px; color: #fff; }
.k99-doc p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: #d4d4d8; max-width: 680px; }
.k99-doc a { color: var(--k99-red-hi) !important; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .k99-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .k99-scroll { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .k99-scroll-wide { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 1024px) {
  .k99-nav { display: none; }
  .k99-layout { grid-template-columns: minmax(0, 1fr); }
  .k99-side { padding-top: 6px; }
}
@media (max-width: 768px) {
  :root { --k99-head: 64px; --k99-gutter: 16px; }
  html { scroll-padding-top: 116px; }
  body.k99 { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .k99-header-in { gap: 10px; }
  .k99-logo { height: 38px; font-size: 22px; }
  .k99-search { display: none; position: absolute; left: 16px; right: 16px; top: calc(var(--k99-head) - 4px); width: auto; margin: 0; z-index: 5; }
  .k99-header.is-search .k99-search { display: block; }
  .k99-search-toggle { display: inline-flex; margin-left: auto; }
  .k99-header.is-search .k99-chips { visibility: hidden; }
  .k99-chips { display: flex; gap: 8px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
  .k99-chips::-webkit-scrollbar { display: none; }
  .k99-chips a { flex: none; padding: 8px 18px; border-radius: 10px; border: 1px solid var(--k99-line); background: var(--k99-surface); color: #e4e4e7 !important; font-size: 15px; font-weight: 500; text-decoration: none; }
  .k99-chips a.is-active { background: var(--k99-red); border-color: var(--k99-red); color: #fff !important; }
  .k99-hero { height: 560px; min-height: 0; }
  .k99-slide::after { background: linear-gradient(0deg, var(--k99-bg) 0%, rgba(10, 10, 12, .75) 40%, rgba(10, 10, 12, .1) 75%); }
  .k99-slide-bg { object-position: 65% center; }
  .k99-slide-body { padding-bottom: 54px; }
  .k99-slide-title { font-size: clamp(32px, 10vw, 44px); }
  .k99-slide-meta { font-size: 15px; }
  .k99-slide-text { font-size: 16px; margin-bottom: 20px; }
  .k99-slide-actions { gap: 12px; flex-wrap: nowrap; }
  .k99-slide-actions .k99-btn-red { flex: 1; }
  .k99-slide-actions .k99-btn-ghost { width: 52px; padding: 0; flex: none; }
  .k99-slide-actions .k99-btn-label { display: none !important; }
  .k99-row-head h2 { font-size: 20px; }
  .k99-scroll { grid-auto-columns: 42%; gap: 12px; margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; }
  .k99-scroll-wide { grid-auto-columns: 78%; }
  .k99-stories { gap: 14px; margin: 0 -16px; padding: 4px 16px 6px; }
  .k99-story { width: 76px; }
  .k99-story-ring { width: 72px; height: 72px; }
  .k99-stories-row { margin-top: 18px; }
  .k99-bottom { display: flex; position: fixed; z-index: 250; left: 0; right: 0; bottom: 0; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); background: rgba(10, 10, 12, .98); border-top: 1px solid var(--k99-line); }
  .k99-bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; font-size: 12px; color: var(--k99-muted) !important; text-decoration: none; position: relative; }
  .k99-bottom a svg { width: 24px; height: 24px; }
  .k99-bottom a.is-active { color: var(--k99-red) !important; }
  .k99-bottom a.is-active::after { content: ""; position: absolute; bottom: -6px; width: 36px; height: 3px; border-radius: 3px; background: var(--k99-red); }
  body.k99 .top-page { display: none; }
  /* sticky ad banner from the footer code sits on top of the bottom bar */
  body.k99 #cf-sticky-bottom { bottom: calc(68px + env(safe-area-inset-bottom)) !important; }
  .k99-show-hero { min-height: 0; }
  .k99-show-hero::after { background: linear-gradient(0deg, var(--k99-bg) 0%, rgba(10, 10, 12, .85) 45%, rgba(10, 10, 12, .2) 80%); }
  .k99-show-in { flex-direction: column; align-items: flex-start; gap: 18px; padding: 90px 16px 28px; }
  .k99-show-poster { width: 132px; border-radius: 10px; }
  .k99-show-meta { font-size: 14px; }
  .k99-show-text { font-size: 15px; margin-bottom: 18px; }
  .k99-show-actions { width: 100%; flex-wrap: nowrap; }
  .k99-show-actions .k99-btn-red { flex: 1; }
  .k99-show-actions .k99-btn-ghost { width: 52px; padding: 0; flex: none; }
  .k99-show-actions .k99-btn-ghost .k99-btn-label { display: none !important; }
  .k99-similar { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; gap: 14px 10px; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
  .k99-similar .k99-card-title { font-size: 13px; }
  .k99-similar .k99-rate { top: 5px; right: 5px; padding: 2px 5px; font-size: 11px; }
  .k99-people { margin: 0 -16px; padding: 0 16px 4px; }
  .k99-person { width: 92px; }
  .k99-person-img { width: 80px; height: 80px; }
  .k99-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .k99-slide, .k99-slide-bg, .k99-card-img img, .k99-wide img { transition: none !important; }
}
