/* 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-all { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; width: 100%; }
.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; }

/* ── Account: header avatar, login, my page, requests ─────────────── */
.k99-user.is-in { padding: 0; overflow: hidden; border-color: var(--k99-red); }
.k99-user-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k99-user-initial { font-size: 17px; font-weight: 800; }
.k99-wide-form { margin: 0; }
button.k99-wide { width: 100%; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.k99-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.k99-card-img .k99-ph-logo { font-size: 13px; }

.k99-auth { display: flex; justify-content: center; padding: 48px 0 64px; }
.k99-auth-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 32px; box-sizing: border-box; text-align: center; background: var(--k99-surface); border: 1px solid var(--k99-line); border-radius: 18px; }
.k99-auth-logo { height: 46px; font-size: 28px; margin-bottom: 6px; }
body.k99 .k99-auth-card h1 { margin: 0; font-size: 28px; font-weight: 800; color: #fff; }
.k99-auth-lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--k99-muted); }
/* /search/ */
.k99-sp-form { display: flex; align-items: center; gap: 10px; height: 54px; margin-top: 16px; padding: 0 6px 0 18px; border-radius: 999px; background: var(--k99-surface-2); border: 1px solid var(--k99-line); }
.k99-sp-form:focus-within { border-color: var(--k99-red); }
.k99-sp-form .k99-search-ico svg { width: 20px; height: 20px; color: var(--k99-muted); display: block; }
body.k99 .k99-sp-form input { flex: 1; min-width: 0; height: 100%; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; color: #fff !important; font: 16px Roboto, system-ui, sans-serif !important; box-shadow: none !important; outline: 0; }
.k99-sp-form .k99-btn { height: 42px; padding: 0 22px; font-size: 15px; border-radius: 999px; }
.k99-sp-hint { margin: 4px 0 12px; font-size: 14px; color: var(--k99-muted); }
.k99-sp-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 14px; }
.k99-sp-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--k99-red-dim); border: 1px solid var(--k99-red); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.k99-sp-chip b { font-size: 18px; line-height: 1; color: #fca5a5; }
.k99-sp-chip-img { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--k99-surface-2); font-weight: 800; }
.k99-sp-chip-img img { width: 100%; height: 100%; object-fit: cover; }
.k99-sp-clear { font-size: 14px; color: #a1a1aa !important; text-decoration: underline; margin-left: 4px; }
body.k99 input.k99-sp-filter { width: 100%; max-width: 360px; box-sizing: border-box; height: 42px; margin: 0 0 16px !important; padding: 0 14px !important; border-radius: 10px !important; border: 1px solid var(--k99-line) !important; background: var(--k99-surface-2) !important; color: #fff !important; font: 15px Roboto, system-ui, sans-serif !important; box-shadow: none !important; }
body.k99 input.k99-sp-filter:focus { border-color: var(--k99-red) !important; outline: 0; }
.k99-sp-actors { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 18px 12px; }
.k99-sp-actor { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; text-decoration: none; color: #e4e4e7 !important; }
.k99-sp-photo { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--k99-surface-2); border: 2px solid var(--k99-line); color: #fff; font-size: 34px; font-weight: 800; transition: border-color .15s, transform .15s; }
.k99-sp-photo img { width: 100%; height: 100%; object-fit: cover; }
.k99-sp-actor:hover .k99-sp-photo { border-color: var(--k99-red); transform: scale(1.04); }
.k99-sp-name { margin-top: 4px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.k99-sp-count { font-size: 12px; color: var(--k99-muted); }
@media (max-width: 768px) {
  .k99-sp-actors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
  .k99-sp-photo { width: 88px; height: 88px; }
  .k99-sp-name { font-size: 13px; }
}

/* author display rules (.k99-gate, .k99-btn…) must not override the hidden attribute */
body.k99 [hidden] { display: none !important; }
.k99-profile-edit { align-self: flex-start; margin-top: 2px; padding: 0; border: 0; background: none; color: #a1a1aa; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.k99-name-form { max-width: 440px; }
.k99-login-form { width: 100%; text-align: left; margin-top: 8px; }
body.k99 .k99-login-form input { font-size: 18px !important; letter-spacing: .04em; }
.k99-login-form .k99-btn, .k99-login-sms .k99-btn { width: 100%; align-self: stretch; }
.k99-login-sms { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.k99-login-instr { margin: 0; font-size: 14px; line-height: 1.5; color: #e4e4e7; }
.k99-login-code { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.k99-login-code div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 10px; background: var(--k99-surface-2); border: 1px solid var(--k99-line); }
.k99-login-code span { font-size: 12px; color: var(--k99-muted); }
.k99-login-code strong { font-size: 24px; font-weight: 800; letter-spacing: .06em; color: #fff; font-variant-numeric: tabular-nums; }
.k99-login-wait { margin: 0; font-size: 14px; color: var(--k99-muted); }
.k99-login-back { align-self: center; padding: 4px 8px; border: 0; background: none; color: #a1a1aa; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.k99-auth-perks { list-style: none; width: 100%; margin: 10px 0 0; padding: 16px 0 0; border-top: 1px solid var(--k99-line); display: flex; flex-direction: column; gap: 12px; text-align: left; }
.k99-auth-perks li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #e4e4e7; }
.k99-auth-perks svg { width: 20px; height: 20px; color: var(--k99-red-hi); }
.k99-auth-fine { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: #71717a; }

.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-gate { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 12px; }
.k99-gate h3 { margin: 0 0 4px; font-size: 17px; color: #fff; }
.k99-gate p { margin: 0; font-size: 14px; color: var(--k99-muted); line-height: 1.45; }
.k99-gate .k99-btn { height: 46px; padding: 0 24px; font-size: 15px; }
.k99-profile { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.k99-profile-img { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--k99-red); color: #fff; font-size: 26px; font-weight: 800; }
.k99-profile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k99-profile-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.k99-profile-body strong { font-size: 19px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k99-profile-body span { font-size: 13px; color: var(--k99-muted); }
.k99-profile form { margin: 0; }

.k99-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.k99-form label { font-size: 14px; font-weight: 600; color: #e4e4e7; }
.k99-form label b { color: var(--k99-red-hi); }
body.k99 .k99-form input, body.k99 .k99-form textarea { width: 100%; box-sizing: border-box; padding: 12px 14px !important; margin: 0 0 8px !important; border-radius: 10px !important; border: 1px solid var(--k99-line) !important; background: var(--k99-surface-2) !important; color: #fff !important; font: 15px/1.4 Roboto, system-ui, sans-serif !important; box-shadow: none !important; }
body.k99 .k99-form input:focus, body.k99 .k99-form textarea:focus { border-color: var(--k99-red) !important; outline: 0; }
.k99-form-row { display: grid; grid-template-columns: minmax(0, 200px); gap: 12px; }
.k99-form .k99-btn { align-self: flex-start; height: 48px; font-size: 16px; }
.k99-form .k99-btn:disabled { opacity: .6; cursor: progress; }
.k99-form-msg { margin: 0; font-size: 14px; line-height: 1.45; min-height: 0; }
.k99-form-msg:empty { display: none; }
.k99-form-msg.is-ok { color: #4ade80; }
.k99-form-msg.is-err { color: #f87171; }
.k99-reqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.k99-delete { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--k99-line); color: var(--k99-muted); font-size: 14px; }
.k99-delete summary { cursor: pointer; color: #a1a1aa; }
.k99-delete p { margin: 10px 0; line-height: 1.5; max-width: 560px; }
.k99-delete form { margin: 0; }
.k99-delete .k99-btn { height: 42px; font-size: 14px; color: #f87171 !important; border-color: #7f1d1d; }
.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; }
.k99-req { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 16px; background: var(--k99-surface); border: 1px solid var(--k99-line); border-radius: 12px; }
.k99-req-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.k99-req-main strong { font-size: 15px; color: #fff; overflow-wrap: anywhere; }
.k99-req-main p { margin: 0; font-size: 14px; color: #d4d4d8; line-height: 1.45; overflow-wrap: anywhere; }
.k99-req-main time { font-size: 12px; color: #71717a; }
.k99-req-status { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.k99-req-status.is-pending { background: rgba(245, 197, 24, .14); color: var(--k99-gold); }
.k99-req-status.is-added { background: rgba(74, 222, 128, .14); color: #4ade80; }
.k99-req-status.is-rejected { background: rgba(161, 161, 170, .14); color: var(--k99-muted); }

/* ── 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)); }
  .k99-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .k99-grid .k99-card-title { font-size: 13px; }
  .k99-auth { padding: 20px 0 40px; }
  .k99-auth-card { padding: 28px 20px; }
  .k99-account { padding-top: 18px; }
  body.k99 .k99-account-title { font-size: 24px; }
  .k99-gate { grid-template-columns: auto minmax(0, 1fr); }
  .k99-gate .k99-btn { grid-column: 1 / -1; }
  .k99-profile .k99-btn { height: 40px; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .k99-slide, .k99-slide-bg, .k99-card-img img, .k99-wide img { transition: none !important; }
}

/* ── Social: bell, faces, reactions, ratings ─────────────────────── */
.k99-bell { position: relative; }
.k99-bell-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--k99-red); color: #fff; font: 700 11px/18px Roboto, system-ui, sans-serif; text-align: center; border: 2px solid var(--k99-bg); }
.k99-face { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--k99-red); color: #fff; font-weight: 800; font-size: 15px; }
.k99-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k99-face.is-big { width: 96px; height: 96px; font-size: 38px; }
.k99-face-sys { background: var(--k99-surface-2); border: 1px solid var(--k99-line); color: var(--k99-gold); }
.k99-ulink { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff !important; }
.k99-ulink b { font-weight: 600; }
.k99-plink { color: #fff !important; font-weight: 600; text-decoration: none; }
.k99-plink:hover { color: var(--k99-red-hi) !important; }
.k99-muted { color: var(--k99-muted); }

.k99-social { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.k99-react { display: flex; gap: 6px; flex-wrap: wrap; }
.k99-react-btn { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font: 600 14px Roboto, system-ui, sans-serif; cursor: pointer; transition: transform .12s, border-color .12s; }
.k99-react-btn:hover { border-color: #fff; transform: translateY(-1px); }
.k99-react-btn.is-on { background: var(--k99-red-dim); border-color: var(--k99-red); }
.k99-react-e { font-size: 18px; line-height: 1; }
.k99-myrate { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #d4d4d8; }
.k99-stars { display: inline-flex; }
.k99-star { padding: 0 2px; border: 0; background: none; color: #52525b; font-size: 22px; line-height: 1; cursor: pointer; }
.k99-star.is-on, .k99-stars:hover .k99-star { color: var(--k99-gold); }
.k99-stars .k99-star:hover ~ .k99-star { color: #52525b; }
.k99-myrate small { color: var(--k99-muted); font-size: 13px; }
.k99-watching { flex-basis: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 14px; color: #e4e4e7; }
.k99-faces { display: inline-flex; }
.k99-faces .k99-ulink { margin-left: -8px; }
.k99-faces .k99-ulink:first-child { margin-left: 0; }
.k99-faces .k99-ulink b { display: none; }
.k99-faces .k99-face { width: 30px; height: 30px; font-size: 13px; border: 2px solid var(--k99-bg); }

.k99-addlist { position: relative; }
.k99-addlist-menu { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: 260px; max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--k99-surface-2); border: 1px solid var(--k99-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.k99-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #e4e4e7; cursor: pointer; }
.k99-check input { accent-color: var(--k99-red); width: 16px; height: 16px; margin: 0; }
.k99-addlist-new { display: flex; gap: 6px; }
body.k99 .k99-addlist-new input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--k99-line); background: var(--k99-bg); color: #fff; font: 14px Roboto, system-ui, sans-serif; margin: 0; }
.k99-addlist-new .k99-btn { height: 36px; padding: 0 12px; font-size: 14px; }
.k99-addlist-all { font-size: 13px; color: var(--k99-muted) !important; }

/* ── Comments ─────────────────────────────────────────────────────── */
.k99-c-bar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.k99-c-bar label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--k99-muted); }
body.k99 .k99-comments select { height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--k99-line); background: var(--k99-surface-2); color: #fff; font: 14px Roboto, system-ui, sans-serif; }
.k99-c-form { margin: 0 0 16px; }
.k99-c-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.k99-c-opts label { display: flex; align-items: center; gap: 6px; font-weight: 400; color: #d4d4d8; }
.k99-c-opts .k99-btn { margin-left: auto; height: 42px; font-size: 15px; }
.k99-c-list, .k99-c-replies { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.k99-c-replies { gap: 14px; margin-top: 12px; }
.k99-c { display: flex; gap: 12px; }
.k99-c.is-reply .k99-face { width: 28px; height: 28px; font-size: 12px; }
.k99-c-main { flex: 1; min-width: 0; }
.k99-c-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; }
.k99-c-head time { color: #71717a; font-size: 12px; }
.k99-c-ep { padding: 1px 8px; border-radius: 999px; background: var(--k99-surface-2); border: 1px solid var(--k99-line); color: #d4d4d8; font-size: 12px; }
.k99-c-body { margin: 4px 0 0; color: #e4e4e7; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.k99-c-body.is-spoiler { filter: blur(6px); cursor: pointer; user-select: none; position: relative; }
.k99-c-hidden { margin: 4px 0 0; color: var(--k99-muted); font-size: 14px; font-style: italic; }
.k99-c-acts { display: flex; gap: 14px; margin-top: 4px; }
.k99-c-acts button { padding: 0; border: 0; background: none; color: var(--k99-muted); font: 600 13px Roboto, system-ui, sans-serif; cursor: pointer; }
.k99-c-acts button:hover { color: #fff; }
.k99-c-reply { margin-top: 10px; }
.k99-more-btn { margin-top: 16px; }

/* ── Feed, notifications, people ──────────────────────────────────── */
.k99-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.k99-act { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--k99-surface); border: 1px solid var(--k99-line); border-radius: 12px; }
.k99-act.is-unread { border-color: rgba(229, 9, 20, .55); background: linear-gradient(90deg, var(--k99-red-dim), var(--k99-surface) 40%); }
.k99-act > .k99-ulink b { display: none; }
.k99-act-body { flex: 1; min-width: 0; }
.k99-act-body p { margin: 0; font-size: 15px; line-height: 1.45; color: #e4e4e7; overflow-wrap: anywhere; }
.k99-act-body time { font-size: 12px; color: #71717a; }
.k99-act-v { color: var(--k99-muted); }
.k99-act-star { color: var(--k99-gold); font-weight: 700; }
.k99-act-poster { flex: none; width: 44px; height: 64px; border-radius: 6px; overflow: hidden; background: var(--k99-surface-2); }
.k99-act-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k99-people-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.k99-person-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--k99-surface); border: 1px solid var(--k99-line); border-radius: 12px; }
.k99-person-row .k99-muted { font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.k99-follow { height: 36px !important; padding: 0 16px !important; font-size: 14px !important; }
.k99-people-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.k99-find { margin-bottom: 12px; }
.k99-find + .k99-people-list { margin-bottom: 20px; }

/* ── Profile ──────────────────────────────────────────────────────── */
.k99-prof-head { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.k99-prof-body { flex: 1; min-width: 0; }
.k99-prof-body h1 { margin: 0; font-size: 26px; color: #fff; overflow-wrap: anywhere; }
.k99-prof-handle { font-size: 14px; color: var(--k99-muted); }
.k99-prof-bio { margin: 8px 0 0; font-size: 15px; color: #e4e4e7; }
.k99-prof-bio:empty { display: none; }
.k99-prof-counts { display: flex; gap: 18px; margin: 10px 0 0; font-size: 14px; color: var(--k99-muted); }
.k99-prof-counts a { text-decoration: none; }
.k99-prof-counts b { color: #fff; }
.k99-prof-actions { display: flex; flex-direction: column; gap: 8px; align-self: flex-start; }
.k99-prof-actions .k99-btn { height: 40px; font-size: 14px; justify-content: center; }
.k99-prof-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.k99-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.k99-stat strong { font-size: 26px; color: #fff; font-variant-numeric: tabular-nums; }
.k99-stat span { font-size: 13px; color: var(--k99-muted); }
.k99-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.k99-badge { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--k99-surface); border: 1px solid rgba(245, 197, 24, .35); }
.k99-badge b { color: var(--k99-gold); font-size: 14px; }
.k99-badge small { color: var(--k99-muted); font-size: 12px; }
.k99-card-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--k99-muted); }
.k99-dialog { width: min(440px, calc(100vw - 32px)); max-height: 80vh; padding: 18px; border: 1px solid var(--k99-line); border-radius: 16px; background: var(--k99-surface); color: var(--k99-text); }
.k99-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.k99-dialog form { display: flex; flex-direction: column; gap: 12px; }
.k99-dialog h3 { margin: 0; color: #fff; }
.k99-dialog .k99-people-list { max-height: 55vh; overflow-y: auto; }
.k99-profile-links { display: flex; flex-wrap: wrap; gap: 12px; }
.k99-prof-avatar { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.k99-prof-avatar .k99-profile-img { width: 96px; height: 96px; background: none; }
.k99-prof-avatar .k99-btn { cursor: pointer; }
.k99-form .k99-check { font-weight: 400; margin: 4px 0 8px; }
.k99-inline { display: flex; gap: 8px; align-items: flex-start; }
body.k99 .k99-inline input { flex: 1; }

/* ── Lists ────────────────────────────────────────────────────────── */
.k99-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.k99-listcard { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.k99-listcard-covers { display: grid; grid-template-columns: repeat(4, 1fr); aspect-ratio: 16 / 9; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--k99-surface-2); border: 1px solid var(--k99-line); text-decoration: none; align-items: center; justify-items: center; }
.k99-listcard-covers img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k99-listcard-title { font-weight: 700; color: #fff !important; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k99-listcard .k99-muted { font-size: 13px; }
.k99-listcard-acts { display: flex; gap: 12px; }
.k99-listcard-acts button { padding: 0; border: 0; background: none; color: var(--k99-muted); font: 600 13px Roboto, system-ui, sans-serif; cursor: pointer; }
.k99-listcard-acts button:hover { color: #fff; }
.k99-list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 16px 0 20px; }
.k99-list-head .k99-account-title { margin: 0 0 6px; }
.k99-list-by { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--k99-muted); font-size: 14px; }
.k99-list-by a { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; font-weight: 600; text-decoration: none; }
.k99-list-by img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.k99-list-note { margin: 8px 0 0; color: #e4e4e7; max-width: 65ch; }
.k99-share { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Request board ────────────────────────────────────────────────── */
.k99-board .k99-req { justify-content: flex-start; }
.k99-vote { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--k99-line); background: var(--k99-surface-2); color: #d4d4d8; font: 600 12px Roboto, system-ui, sans-serif; cursor: pointer; }
.k99-vote b { font-size: 17px; color: #fff; }
.k99-vote.is-on { border-color: var(--k99-red); background: var(--k99-red-dim); color: #fff; }
.k99-vote:disabled { cursor: default; opacity: .75; }
.k99-req-main .k99-muted { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; }
.k99-req-main .k99-ulink b { font-size: 13px; }

@media (max-width: 768px) {
  .k99-prof-head { flex-wrap: wrap; gap: 14px; }
  .k99-prof-actions { flex-direction: row; flex-basis: 100%; }
  .k99-prof-actions .k99-btn { flex: 1; }
  .k99-face.is-big { width: 72px; height: 72px; font-size: 30px; }
  .k99-prof-stats { grid-template-columns: repeat(2, 1fr); }
  .k99-social { gap: 10px 14px; }
  .k99-react-btn { height: 34px; padding: 0 10px; }
  .k99-c-opts .k99-btn { margin-left: 0; width: 100%; justify-content: center; }
  .k99-people-row { grid-template-columns: 1fr; }
  .k99-lists { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .k99-addlist-menu { width: min(260px, calc(100vw - 48px)); }
  .k99-bottom a span { font-size: 11px; }
}

/* ── /top/ ─────────────────────────────────────────────────── */
.k99-title-link { font-size: 14px; font-weight: 600; color: var(--k99-red-hi) !important; margin-left: 12px; white-space: nowrap; }
.k99-top .k99-row { margin-top: 28px; }
.k99-critic { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; background: linear-gradient(135deg, rgba(245, 197, 24, .12), var(--k99-surface) 60%); border-color: rgba(245, 197, 24, .35); }
.k99-critic-label { display: inline-flex; align-items: center; gap: 6px; color: var(--k99-gold); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.k99-critic-label svg { width: 16px; height: 16px; }
.k99-critic-main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.k99-critic-who { display: flex; align-items: center; gap: 12px; color: var(--k99-text) !important; }
.k99-critic-who span { display: flex; flex-direction: column; }
.k99-critic-who b { font-size: 20px; }
.k99-face.k99-face-lg { width: 64px; height: 64px; font-size: 26px; box-shadow: 0 0 0 3px var(--k99-gold); }
.k99-critic-stat { color: var(--k99-muted); font-size: 14px; }
.k99-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.k99-rank-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--k99-surface); border: 1px solid var(--k99-line); border-radius: 12px; }
.k99-rank-item .k99-muted { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k99-rank-n { width: 26px; text-align: center; font-weight: 800; font-size: 18px; color: var(--k99-muted); flex: none; }
.k99-rank-item.is-top1 .k99-rank-n { color: var(--k99-gold); }
.k99-rank-item.is-top2 .k99-rank-n { color: #cfd3da; }
.k99-rank-item.is-top3 .k99-rank-n { color: #d08a4a; }
.k99-rank-item.is-top1 { border-color: rgba(245, 197, 24, .45); }
.k99-rank-pts { font-weight: 700; color: var(--k99-text); white-space: nowrap; flex: none; }
.k99-rank-small .k99-rank-item { background: transparent; padding: 6px 10px; }
.k99-top .k99-row > .k99-sp-hint { margin-top: 10px; }
@media (max-width: 640px) {
  .k99-rank-item { flex-wrap: wrap; gap: 4px 10px; }
  .k99-rank-item .k99-muted { order: 4; flex-basis: 100%; padding-left: 38px; white-space: normal; }
  .k99-title-link { display: block; margin: 6px 0 0; }
}

/* ── Right column social boxes (home + every page's sidebar) ── */
.k99-side-box .k99-row-head { margin-bottom: 6px; }
.k99-side-list { margin-top: 0; }
.k99-side-empty { margin: 4px 0 2px; color: var(--k99-muted); font-size: 13px; line-height: 1.5; }
.k99-side-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.k99-side-people li + li { border-top: 1px solid var(--k99-line); }
.k99-side-people a { display: grid; grid-template-columns: 34px 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 4px; text-decoration: none; border-radius: 10px; }
.k99-side-people a:hover { background: var(--k99-surface-2); }
.k99-side-people a:hover .k99-topv-n { color: var(--k99-red-hi); }
.k99-side-people .k99-face { width: 40px; height: 40px; }
.k99-side-people li:first-child .k99-face { box-shadow: 0 0 0 2px var(--k99-gold); }
.k99-side .k99-face i { font-style: normal; }
.k99-side .k99-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
/* inside DooPlay's sidebar column */
body.k99 .sidebar .k99-side-inner { padding-top: 0; gap: 16px; }
body.k99 .sidebar .k99-side-inner .k99-panel { padding: 14px; }
body.k99 .sidebar .k99-side-inner .k99-row-head h2 { font-size: 16px; }
body.k99 .sidebar .k99-side-inner .k99-topv-n { font-size: 24px; }

/* loading state of the pages social.js fills */
.k99-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 240px; color: var(--k99-muted); font-size: 14px; }
.k99-spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--k99-line); border-top-color: var(--k99-red); animation: k99-spin .8s linear infinite; }
@keyframes k99-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .k99-spinner { animation-duration: 2.4s; } }
/* spinner inside a section that social.js / k99.js is filling */
.k99-wait { list-style: none; display: flex; align-items: center; justify-content: center; padding: 28px 0; width: 100%; }
.k99-wait .k99-spinner { width: 28px; height: 28px; border-width: 3px; }
.k99-react .k99-wait { padding: 10px 0; justify-content: flex-start; }
/* page-wide bar while the next page loads */
.k99-navbar { position: fixed; top: 0; left: 0; z-index: 10000; height: 3px; width: 0; background: var(--k99-red); box-shadow: 0 0 10px var(--k99-red); opacity: 0; pointer-events: none; }
.k99-navbar.is-on { opacity: 1; animation: k99-nav 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes k99-nav { 0% { width: 0; } 10% { width: 35%; } 40% { width: 70%; } 100% { width: 92%; } }

/* ── Text posts ─────────────────────────────────────────────── */
.k99-posts { max-width: 560px; margin: 0 auto; padding-top: 14px; }
.k99-posts-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.k99-posts-tabs { display: flex; gap: 6px; background: var(--k99-surface); border: 1px solid var(--k99-line); border-radius: 999px; padding: 4px; }
.k99-posts-tabs button { border: 0; background: transparent; color: var(--k99-muted); font: 600 14px Roboto, system-ui, sans-serif; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.k99-posts-tabs button.is-active { background: var(--k99-red); color: #fff; }
.k99-posts-new { display: inline-flex; align-items: center; gap: 6px; }
.k99-posts-new svg { width: 18px; height: 18px; }
.k99-swipe { position: relative; height: calc(100vh - var(--k99-head) - 110px); min-height: 440px; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; border-radius: 20px; scrollbar-width: none; outline: none; }
.k99-swipe::-webkit-scrollbar { display: none; }
.k99-swipe > .k99-wait { height: 100%; }
.k99-swipe-end { height: 1px; }
.k99-pcard { --k99-pc: #e50914; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 16px; min-height: 100%; scroll-snap-align: start; scroll-snap-stop: always; box-sizing: border-box; padding: 64px 76px 64px 28px; margin-bottom: 10px; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--k99-pc) 55%, transparent), transparent 60%), radial-gradient(100% 80% at 100% 100%, color-mix(in srgb, var(--k99-pc) 35%, transparent), transparent 60%), var(--k99-surface); border: 1px solid var(--k99-line); user-select: text; }
.k99-pcard.is-new { animation: k99-in .5s ease; }
@keyframes k99-in { from { transform: translateY(20px); opacity: 0; } }
.k99-pcard-head { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; align-items: center; gap: 10px; }
.k99-pcard-head .k99-ulink { color: #fff !important; }
.k99-pcard-head time { color: rgba(255, 255, 255, .7); font-size: 13px; }
.k99-pcard-text { margin: 0; color: #fff; font-size: 22px; line-height: 1.45; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.k99-pcard-text.is-short { font-size: 30px; line-height: 1.3; font-weight: 800; }
.k99-pcard-text.is-long { font-size: 17px; font-weight: 500; }
.k99-pcard-rail { position: absolute; right: 12px; bottom: 70px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.k99-pact { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; color: #fff; cursor: pointer; font: 600 12px Roboto, system-ui, sans-serif; padding: 0; min-width: 48px; }
.k99-pact-ic { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .35); font-size: 21px; backdrop-filter: blur(6px); transition: transform .15s; }
.k99-pact:hover .k99-pact-ic { transform: scale(1.06); }
.k99-pact-like.is-on .k99-pact-ic { color: #ff2d55; background: rgba(255, 45, 85, .18); }
.k99-pact-like.is-pop .k99-pact-ic { animation: k99-pop .35s ease; }
@keyframes k99-pop { 50% { transform: scale(1.3); } }
.k99-pact-more { font-size: 24px; width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .35); justify-content: center; }
.k99-pmore { position: relative; }
.k99-pmore-menu { position: absolute; right: 54px; bottom: 0; min-width: 150px; background: var(--k99-surface-2); border: 1px solid var(--k99-line); border-radius: 12px; padding: 6px; z-index: 5; }
.k99-pmore-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--k99-text); padding: 10px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.k99-pmore-menu button:hover { background: var(--k99-surface); }
.k99-pcard-heart { position: absolute; left: 50%; top: 50%; font-size: 110px; color: #ff2d55; transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; text-shadow: 0 6px 30px rgba(0, 0, 0, .4); }
.k99-pcard-heart.is-on { animation: k99-heart .8s ease; }
@keyframes k99-heart { 15% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 30% { transform: translate(-50%, -50%) scale(.95); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
.k99-pcard-foot { position: absolute; left: 20px; bottom: 18px; background: rgba(0, 0, 0, .35); border: 0; color: #fff; border-radius: 999px; padding: 9px 16px; font: 600 13px Roboto, system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(6px); }
.k99-pcard-msg { align-items: center; text-align: center; padding: 40px 28px; }
.k99-pcard-static { min-height: 320px; margin-top: 10px; padding: 64px 28px 40px; }
.k99-back-link { display: inline-block; margin: 0 0 6px; color: var(--k99-muted) !important; font-size: 14px; }
.k99-post-actions { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.k99-post-actions .k99-pact { flex-direction: row; gap: 8px; font-size: 14px; }
.k99-post-actions .k99-pact-ic { width: 40px; height: 40px; font-size: 18px; background: var(--k99-surface-2); }
.k99-post-actions .k99-pmore-menu { right: auto; left: 0; bottom: 48px; }
.k99-post-actions time { margin-left: auto; font-size: 13px; }
.k99-post-comments h2 { margin: 0 0 12px; font-size: 18px; }
/* comments (sheet and post page) */
.k99-pc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.k99-pc { display: flex; gap: 10px; align-items: flex-start; }
.k99-pc .k99-face { width: 34px; height: 34px; font-size: 14px; }
.k99-pc-body { min-width: 0; flex: 1; }
.k99-pc-top { display: flex; align-items: baseline; gap: 8px; }
.k99-pc-top .k99-ulink b { font-size: 14px; }
.k99-pc-top time { font-size: 12px; color: var(--k99-muted); }
.k99-pc-body p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.k99-pc-del { background: none; border: 0; padding: 4px 0 0; color: var(--k99-muted); font-size: 12px; cursor: pointer; }
.k99-pc-form { display: flex; gap: 8px; margin-top: 14px; }
.k99-pc-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--k99-line); background: var(--k99-surface-2); color: var(--k99-text); font-size: 15px; }
.k99-pc-form .k99-btn { border-radius: 999px; }
.k99-sheet { position: fixed; inset: 0; z-index: 400; }
.k99-sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.k99-sheet-box { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(560px, 100%); max-height: 72vh; display: flex; flex-direction: column; background: var(--k99-surface); border-radius: 20px 20px 0 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); box-sizing: border-box; animation: k99-up .25s ease; }
@keyframes k99-up { from { transform: translate(-50%, 100%); } }
.k99-sheet-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--k99-line); margin-bottom: 12px; }
.k99-sheet-x { background: none; border: 0; color: var(--k99-muted); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.k99-sheet .k99-pc-list { overflow-y: auto; flex: 1; min-height: 120px; }
body.k99-sheet-open { overflow: hidden; }
/* composer */
.k99-composer { width: min(520px, calc(100% - 32px)); }
.k99-composer textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 140px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--k99-line); background: var(--k99-surface-2); color: var(--k99-text); font: 16px/1.5 Roboto, system-ui, sans-serif; }
.k99-composer-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; margin-top: 6px; }
.k99-composer-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
/* profile posts */
.k99-pminis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.k99-pmini { --k99-pc: #e50914; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 130px; padding: 16px; border-radius: 14px; text-decoration: none; background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--k99-pc) 45%, transparent), transparent 65%), var(--k99-surface); border: 1px solid var(--k99-line); }
.k99-pmini p { margin: 0; color: #fff; font-weight: 600; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.k99-pmini-meta { color: rgba(255, 255, 255, .7); font-size: 12px; }
/* right column: today's viral posts */
.k99-side-posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.k99-side-posts a { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: var(--k99-surface-2); text-decoration: none; border: 1px solid transparent; }
.k99-side-posts a:hover { border-color: var(--k99-line); }
.k99-side-posts .is-lead a { background: radial-gradient(120% 100% at 0% 0%, rgba(229, 9, 20, .35), transparent 65%), var(--k99-surface-2); padding: 16px; }
.k99-side-post-body { margin: 0; color: var(--k99-text); font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.k99-side-posts .is-lead .k99-side-post-body { font-size: 16px; font-weight: 700; color: #fff; }
.k99-side-post-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--k99-muted); }
.k99-side-post-meta .k99-face { width: 24px; height: 24px; font-size: 11px; }
.k99-side-post-meta b { color: var(--k99-text); font-weight: 600; }
.k99-side-post-meta span:last-child { margin-left: auto; white-space: nowrap; }
@media (max-width: 640px) {
  .k99-posts { padding-top: 8px; }
  .k99-posts-new span { display: none; }
  .k99-posts-new { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  body.k99-swipe-page .k99-swipe { height: calc(100dvh - var(--k99-head) - 190px); min-height: 380px; border-radius: 16px; }
  .k99-pcard { padding: 60px 70px 64px 20px; border-radius: 16px; }
  .k99-pcard-text { font-size: 19px; }
  .k99-pcard-text.is-short { font-size: 25px; }
  .k99-pcard-text.is-long { font-size: 15px; }
  .k99-pcard-rail { right: 8px; }
  .k99-pact-ic { width: 42px; height: 42px; font-size: 19px; }
}

/* install button (phones) and the steps dialog */
.k99-install { display: none; }
.k99-install svg { width: 22px; height: 22px; }
.k99-install-help { width: min(420px, calc(100% - 32px)); }
.k99-install-help h3 { margin: 0 0 14px; }
.k99-steps { list-style: decimal; margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.k99-key { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 6px; background: var(--k99-surface-2); border: 1px solid var(--k99-line); font-size: 14px; vertical-align: middle; }
.k99-install-help .k99-muted { font-size: 13px; line-height: 1.5; margin: 0 0 16px; }
@media (max-width: 768px) {
  .k99-install:not([hidden]) { display: inline-flex; margin-left: auto; }
  .k99-install:not([hidden]) + .k99-search-toggle { margin-left: 0; }
}
.k99-steps li::marker { color: var(--k99-red); font-weight: 800; }

/* /app/ install page */
.k99-app { display: flex; justify-content: center; padding: 24px 0 120px; }
.k99-app-card { width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; background: var(--k99-surface); border: 1px solid var(--k99-line); border-radius: 22px; padding: 28px 22px; box-sizing: border-box; }
.k99-app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(229, 9, 20, .35); }
.k99-app h1 { margin: 0; font-size: 24px; }
.k99-app-status { margin: 0; color: var(--k99-muted); line-height: 1.5; }
.k99-app-steps { text-align: left; align-self: stretch; background: var(--k99-surface-2); border-radius: 14px; padding: 16px 16px 16px 38px; }
.k99-app-skip { color: var(--k99-muted) !important; font-size: 14px; }
.k99-share-arrow { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 600; display: flex; flex-direction: column; align-items: center; color: #fff; font: 900 34px/1 Roboto, system-ui, sans-serif; text-shadow: 0 2px 12px rgba(229, 9, 20, .9); animation: k99-bounce 1s ease-in-out infinite; pointer-events: none; }
.k99-share-arrow span { font-size: 14px; font-weight: 700; background: var(--k99-red); padding: 6px 12px; border-radius: 999px; margin-bottom: 4px; text-shadow: none; }
.k99-app.is-top .k99-share-arrow { top: calc(6px + env(safe-area-inset-top)); bottom: auto; left: auto; right: 24px; transform: none; flex-direction: column; }
.k99-app.is-top .k99-share-arrow { font-size: 0; }
.k99-app.is-top .k99-share-arrow::before { content: '↑'; font-size: 34px; }
.k99-app-way { display: flex; flex-direction: column; align-items: stretch; gap: 10px; align-self: stretch; }
.k99-app-note { margin: 0; line-height: 1.5; background: var(--k99-surface-2); border-radius: 12px; padding: 12px 14px; text-align: left; }
.k99-app-open { justify-content: center; }
.k99-app-small { font-size: 13px; line-height: 1.5; margin: 0; }
@keyframes k99-bounce { 50% { translate: 0 10px; } }
body.k99-app-page .k99-bottom { display: none !important; }

/* banner slots from /admin/banners/ (filled by the script in the page head) */
.k99-ad { display: block; line-height: 0; margin: 0 auto; max-width: 100%; }
.k99-ad:not([data-k99-done="1"]) { display: none !important; }
.k99-ad img { max-width: 100%; height: auto; border-radius: 6px; }
.k99-ad-wide img { width: 728px; }
.k99-ad-mobile img { width: 320px; }
.k99-ad-square img { width: 300px; }
.k99-side-ad { display: flex; justify-content: center; }
.k99-side-ad .k99-ad:not([data-k99-done="1"]) + *, .k99-side-ad:has(.k99-ad[data-k99-done="0"]) { display: none; }
/* the phones' sticky bar holds a banner slot: hidden when this view's set has no phone picture */
#cf-sticky-bottom:has(.k99-ad):not(:has(.k99-ad[data-k99-done="1"])) { display: none !important; }
/* banner rows from /admin/banners/ (hidden until a set fills them) */
.k99-ad-row { display: flex; justify-content: center; margin: 22px 0; }
.k99-ad-row:has(.k99-ad:not([data-k99-done="1"])) { display: none; }
.k99-ad-row[data-where="page-top"] { margin: 16px auto; padding: 0 16px; max-width: 1280px; }
.k99-ad-row .k99-ad img { display: block; width: 728px; max-width: 100%; height: auto; border-radius: 8px; }
.k99-ad-row .k99-ad-mobile img { width: 320px; }
.k99-side-ad:has(.k99-ad:not([data-k99-done="1"])) { display: none; }
.k99-side-sticky { position: sticky; top: 84px; }
