/* kuroleesov card: static, no build. Flat dark video-site look, one theme, everything local. */
:root {
  color-scheme: dark;
  --bg: #000;
  --s1: #1b1b1b;
  --s2: #2c2c2c;
  --text: #fff;
  --text-2: #b5b5b5;
  --text-3: #9a9a9a;
  --o: #ff9000;
  --r: 5px;
  --gutter: 16px;
  --sidew: 232px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  overflow-x: hidden;
}
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.sprite { position: absolute; }
body.vopen { overflow: hidden; }
svg { fill: currentColor; }
:focus-visible { outline: 3px solid var(--o); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- shared bits ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--r);
  background: var(--o); color: #000; font-weight: 700; font-size: 14px; text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: #ffa31a; }
.btn:focus-visible { outline-color: #fff; }

/* ---------- top utility bar ---------- */
.topbar { background: var(--s1); border-bottom: 1px solid var(--s2); font-size: 12px; }
.bar-in { max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tb-note { color: var(--text-2); }
.tb-links { display: flex; gap: 4px; margin-left: auto; }
.tb-links a { display: block; padding: 5px 10px; color: var(--text-2); text-decoration: none; border-radius: 3px; }
.tb-links a:hover { color: var(--o); }

/* ---------- header ---------- */
.head { background: var(--bg); border-bottom: 1px solid var(--s2); }
.head-in { max-width: 1600px; margin: 0 auto; padding: 14px var(--gutter); display: grid; grid-template-columns: var(--sidew) minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 3px; text-decoration: none; font-weight: 700; font-size: 26px; letter-spacing: -.5px; line-height: 1; width: fit-content; }
.logo span { color: #fff; }
.logo b { background: var(--o); color: #000; padding: 3px 6px 4px; border-radius: 5px; font-weight: 700; }
.search { display: flex; width: 100%; max-width: 760px; margin: 0 auto; }
.search input {
  flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 2px solid #767676; border-right: 0;
  border-radius: var(--r) 0 0 var(--r); background: var(--s1); font-size: 16px;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--text-3); opacity: 1; }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.search input:focus-visible { outline-offset: 0; border-color: var(--o); }
.search button {
  width: 56px; height: 44px; border: 0; border-radius: 0 var(--r) var(--r) 0; background: var(--o); color: #000;
  display: grid; place-items: center; padding: 0;
}
.search button:hover { background: #ffa31a; }
.search button:focus-visible { outline-color: #000; outline-offset: -4px; }
.search button svg { width: 22px; height: 22px; }

/* ---------- shell: sidebar + main ---------- */
.shell { max-width: 1600px; margin: 0 auto; padding: 16px var(--gutter) 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
#cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cat {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--s2); font-weight: 700; font-size: 14px;
}
.cat i { font-style: normal; font-weight: 400; font-size: 12px; color: var(--text-2); }
.cat:hover { background: #3a3a3a; }
.cat[aria-pressed="true"] { background: var(--o); color: #000; }
.cat[aria-pressed="true"] i { color: #000; }
.link-list { display: grid; gap: 6px; }
.pill {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; text-align: left;
  border: 0; border-radius: var(--r); background: var(--s1); color: #fff; text-decoration: none;
}
.pill svg { width: 20px; height: 20px; flex: none; }
.pill .t { display: grid; line-height: 1.2; min-width: 0; }
.pill b { font-size: 14px; }
.pill small { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.pill:hover { background: var(--o); color: #000; }
.pill:hover small { color: #000; }
.pill:focus-visible { outline-color: #fff; }

.main { min-width: 0; }
.main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

/* ---------- channel strip ---------- */
.channel { background: var(--s1); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 8px; }
.ch-top { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.ch-id { min-width: 0; margin-right: auto; }
.name { font-size: 24px; line-height: 1.15; font-weight: 700; }
.handle { color: var(--text-2); font-size: 13px; }
.stats { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.stats b { color: #fff; font-weight: 700; }
.bio { color: var(--text-2); max-width: 90ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--s2); border-radius: var(--r); padding: 2px 9px; font-size: 12px; font-weight: 700; }

/* ---------- featured game "video" ---------- */
.feature { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--s1); border-radius: var(--r); padding: 12px; }
.feature .pic {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000;
  display: grid; place-items: center; border: 1px solid var(--s2);
}
.feature .pic svg { width: 44px; height: 44px; color: var(--o); }
.feature .pic .game {
  position: absolute; left: 10px; bottom: 8px; font-size: 18px; font-weight: 700; letter-spacing: -.3px;
}
.badge { position: absolute; padding: 1px 6px; border-radius: 3px; font-size: 12px; font-weight: 700; line-height: 1.5; }
.badge.o { left: 8px; top: 8px; background: var(--o); color: #000; }
.badge.d { right: 8px; bottom: 8px; background: rgba(0, 0, 0, .85); color: #fff; }
.feature h2 { font-size: 18px; line-height: 1.25; }
.feature p { color: var(--text-2); margin: 2px 0 10px; }

/* ---------- grid ---------- */
.grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; border-bottom: 2px solid var(--s2); padding-bottom: 8px; }
.grid-head h2 { font-size: 20px; line-height: 1.2; }
.grid-head h2::after { content: ""; }
.count { color: var(--text-2); font-size: 13px; text-align: right; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.card { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--s1); outline: 2px solid transparent; outline-offset: 0; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .thumb, .card:focus-visible .thumb { outline-color: var(--o); }
.card:hover .thumb img, .card:focus-visible .thumb img { transform: scale(1.06); }
.card:focus-visible { outline: none; }
.card:focus-visible .thumb { outline: 3px solid var(--o); }
.dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .85); color: #fff; font-size: 12px; font-weight: 700; padding: 0 5px; border-radius: 3px; line-height: 1.6; }
.ttl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-weight: 700; font-size: 14px; line-height: 1.3; min-height: 2.6em; overflow-wrap: anywhere; }
.card:hover .ttl { color: var(--o); }
.meta { display: flex; justify-content: space-between; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--text-2); }
.meta .rate { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.meta svg { width: 12px; height: 12px; color: var(--o); }
.vw { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nothing { grid-column: 1 / -1; padding: 40px 12px; text-align: center; color: var(--text-2); background: var(--s1); border-radius: var(--r); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px 0 8px; }
.pager button, .pager span {
  min-width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: var(--r); background: var(--s2);
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.pager span { background: transparent; color: var(--text-2); min-width: 20px; padding: 0; }
.pager button:hover { background: #444; }
.pager button[aria-current="page"] { background: var(--o); color: #000; }
.pager button:disabled { opacity: .45; cursor: default; }
.pager button:disabled:hover { background: var(--s2); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--s2); margin-top: 16px; padding: 18px 0 28px; color: var(--text-3); font-size: 12px; }
.foot-in { max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 -8px 4px; }
.foot-links a, .foot-links button { min-height: 44px; display: inline-flex; align-items: center; padding: 8px; border: 0; background: none; color: var(--text-3); font-size: 12px; text-decoration: none; }
.foot-links a:hover, .foot-links button:hover { color: var(--o); text-decoration: underline; }

/* ---------- viewer (full-screen swipe feed) ---------- */
.viewer { position: fixed; inset: 0; z-index: 30; background: #000; display: grid; place-items: center; }
.viewer[hidden] { display: none; }
.screen { position: relative; width: min(100vw, 520px); height: 100vh; height: 100dvh; background: #000; overflow: hidden; isolation: isolate; box-shadow: 0 0 0 1px var(--s2); }
.vclose {
  position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 6; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--r); background: rgba(0, 0, 0, .8); color: #fff; display: grid; place-items: center;
}
.vclose:hover { background: var(--o); color: #000; }
.vclose svg { width: 22px; height: 22px; }
.counter {
  position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 12px; z-index: 6; padding: 2px 9px; border-radius: 3px;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; background: rgba(0, 0, 0, .8);
}
.feed {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory;
  overscroll-behavior: contain; overflow-anchor: none; scrollbar-width: none; outline-offset: -4px;
  -webkit-overflow-scrolling: touch;
}
.feed::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #0a0a0a; color: #fff; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .3s; }
.slide img.on { opacity: 1; }
/* blur on a layer 1/4 the size, scaled back x4.8 (= x1.2 cover): same look at ~1/16 of the filter cost */
.slide .bgimg { width: 25%; height: 25%; object-fit: cover; filter: blur(6px) brightness(.55); transform-origin: 0 0; transform: scale(4.8) translate(-8.33%, -8.33%); }
.slide .fgimg { object-fit: contain; -webkit-user-drag: none; }
.slide .scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .35) 55%, transparent); pointer-events: none; }
.caption { position: absolute; left: 16px; right: 76px; bottom: 22px; font-size: 14px; line-height: 1.35; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.caption a { display: block; text-decoration: none; padding: 13px 0; margin: -13px 0; }
.caption a span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.caption a:hover { text-decoration: underline; color: var(--o); }
.actions { position: absolute; right: 12px; bottom: 22px; display: grid; gap: 12px; }
.act { width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center; border: 0; padding: 0; background: rgba(0, 0, 0, .8); box-shadow: inset 0 0 0 1px var(--s2); }
.act:hover { background: var(--s2); }
.act svg { width: 24px; height: 24px; fill: #fff; transition: transform .2s; }
.act[aria-pressed="true"] svg { fill: var(--o); transform: scale(1.1); }
.burst { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; z-index: 5; pointer-events: none; fill: var(--o); animation: burst .85s ease-out forwards; }
@keyframes burst {
  0% { transform: scale(.3); opacity: 0; }
  25% { transform: scale(1.2); opacity: 1; }
  60% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.05) translateY(-40px); opacity: 0; }
}
.empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 32px; text-align: center; color: #fff; font-weight: 700; }
.empty small { display: block; font-weight: 400; color: var(--text-2); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 10px 20px; border-radius: var(--r); font-weight: 700; background: var(--o); color: #000;
  transition: transform .25s, opacity .2s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- breakpoints ---------- */
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; } }
@media (min-width: 1020px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1340px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

@media (max-width: 899px) {
  .head-in { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .logo { font-size: 24px; }
  .shell { gap: 12px; padding-top: 12px; }
  /* categories collapse to one horizontal pill row; the row scrolls inside itself, the page does not */
  #cats { flex-wrap: nowrap; overflow-x: auto; margin: -3px -16px 0; padding: 3px 16px 8px; scrollbar-width: thin; }
  .cat { flex: none; }
  .pill { min-height: 44px; }
  .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .main { gap: 12px; }
}
@media (max-width: 520px) {
  .ch-top { gap: 10px; }
  .ch-id { flex: 1 1 100%; }
  .name { font-size: 22px; }
  .tb-note { display: none; }
  .grid-head h2 { font-size: 18px; }
  .pager button { padding: 0 8px; }
}

/* ---------- channel cover, tabs, link row, hero, viewer hint (ported from variants A/C) ---------- */
:root { --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='32' cy='42' rx='15' ry='12'/%3E%3Ccircle cx='13' cy='28' r='6'/%3E%3Ccircle cx='25' cy='15' r='6'/%3E%3Ccircle cx='39' cy='15' r='6'/%3E%3Ccircle cx='51' cy='28' r='6'/%3E%3C/svg%3E"); --tabs-h: 52px; }
.channel { overflow: hidden; }
.cover { height: 44px; margin: -14px -16px 4px; background: linear-gradient(90deg, #2a1700, var(--s2)); position: relative; }
.cover::before, .cover::after { content: ""; position: absolute; top: 6px; width: 32px; height: 32px; background: var(--o); opacity: .35; -webkit-mask: var(--paw) center/contain no-repeat; mask: var(--paw) center/contain no-repeat; }
.cover::before { left: 16px; }
.cover::after { left: 64px; top: 8px; transform: rotate(18deg); }
.tabs { display: flex; border-bottom: 1px solid var(--s2); }
.tabs button { min-height: 44px; padding: 0 18px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--text-2); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.tabs button:hover { color: #fff; }
.tabs button[aria-current] { color: #fff; border-bottom-color: var(--o); }
.tabs button:focus-visible { outline-offset: -3px; }
.linkrow .link-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.linkrow, .grid-sec, .channel { scroll-margin-top: 12px; }
.feature { grid-template-columns: 340px minmax(0, 1fr); gap: 20px; max-height: 220px; }
.feature .pic .game { left: 14px; bottom: 14px; font-size: 24px; letter-spacing: -.8px; text-shadow: 0 2px 8px #000; }
.feature .pic svg { width: 48px; height: 48px; }
.feature .pic { background: radial-gradient(circle at 30% 30%, #3a2200, #000 70%); }
.feature .pic .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--s2); }
.feature .pic .bar::before { content: ""; position: absolute; inset: 0 62% 0 0; background: var(--o); }
.feature h2 { font-size: 20px; }
.v-hint { position: absolute; z-index: 6; top: calc(18px + env(safe-area-inset-top)); left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 190px); padding: 2px 9px; border-radius: 3px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 12px; text-align: center; pointer-events: none; }
@media (max-width: 1100px) { .linkrow .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--s1); border-top: 1px solid var(--s2); border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .tabs button { flex: 1; min-height: var(--tabs-h); padding: 0 4px; border-bottom: 0; border-top: 3px solid transparent; }
  .tabs button[aria-current] { color: var(--o); border-top-color: var(--o); }
  .foot { padding-bottom: calc(var(--tabs-h) + 28px); }
  .toast { bottom: calc(var(--tabs-h) + 16px + env(safe-area-inset-bottom)); }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 12px; max-height: none; }
  .feature .pic .game { font-size: 22px; }
  .v-hint { top: calc(62px + env(safe-area-inset-top)); max-width: calc(100% - 24px); }
  #subscribe { width: 100%; min-height: 44px; }
  #open-feed { min-height: 44px; }
  .tb-links a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .burst { opacity: .9; }
  .card:hover .thumb img, .card:focus-visible .thumb img { transform: none; }
}
