/* AIGame51 — Clarity (cl-*) · light · high contrast · no hero slabs */

:root {
  --cl-bg: #e6e8ea;
  --cl-surface: #ffffff;
  --cl-ink: #111318;
  --cl-muted: #4a5058;
  --cl-border: #c8ccd2;
  --cl-accent: #0b57d0;
  --cl-accent-soft: #e8f0fe;
  --cl-radius: 8px;
  --cl-font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

img,
video {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  color: var(--cl-ink);
  font: 400 16px/1.55 var(--cl-font);
  background: var(--cl-bg);
  min-height: 100dvh;
  padding-bottom: max(var(--cl-cookie-pad, 0px), env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.cl-no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.cl-site {
  position: relative;
  z-index: 1;
  overflow-x: clip;
}

/* Top bar — solid white, sharp border */
.cl-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cl-surface);
  border-bottom: 2px solid var(--cl-border);
}

.cl-header__inner {
  max-width: min(88rem, 100%);
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 12px max(14px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.cl-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cl-ink);
  min-width: 0;
}

.cl-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cl-brand img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--cl-border);
  object-fit: cover;
}

.cl-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.cl-nav a {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cl-muted);
}

.cl-nav a:hover {
  background: var(--cl-accent-soft);
  color: var(--cl-accent);
}

.cl-nav a.is-active {
  background: var(--cl-accent);
  color: #fff;
}

.cl-header__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 200px;
  justify-content: flex-end;
  min-width: 0;
}

.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  border: 1px solid var(--cl-border);
  background: var(--cl-surface);
  color: var(--cl-ink);
}

.cl-btn:hover {
  border-color: var(--cl-accent);
  color: var(--cl-accent);
}

.cl-btn--ghost {
  background: transparent;
}

.cl-btn--fill {
  background: var(--cl-accent);
  border-color: var(--cl-accent);
  color: #fff;
}

.cl-btn--fill:hover {
  filter: brightness(1.05);
  color: #fff;
}

.cl-btn--sm {
  padding: 6px 10px;
  font-size: 0.68rem;
}

.cl-search {
  display: flex;
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--cl-surface);
  flex: 1;
  max-width: 300px;
  min-width: 0;
}

.cl-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  font: inherit;
  color: var(--cl-ink);
  outline: none;
}

.cl-search input::placeholder {
  color: #6b7280;
}

.cl-search button {
  border: 0;
  border-left: 1px solid var(--cl-border);
  padding: 0 14px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  background: var(--cl-accent-soft);
  color: var(--cl-accent);
}

/* Main card — white panel, readable */
.cl-main {
  max-width: min(88rem, 100%);
  margin: clamp(12px, 2vw, 20px) auto clamp(32px, 4vw, 48px);
  padding-top: max(clamp(16px, 3vw, 28px), env(safe-area-inset-top, 0px));
  padding-bottom: max(clamp(16px, 3vw, 28px), env(safe-area-inset-bottom, 0px));
  padding-left: max(clamp(16px, 3vw, 28px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 3vw, 28px), env(safe-area-inset-right, 0px));
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.cl-main--flush {
  margin-top: 12px;
}

.cl-main--flush-top {
  margin-top: 12px;
}

.cl-title-lg {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  font-weight: 800;
  color: var(--cl-ink);
  line-height: 1.2;
}

.cl-lede {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--cl-muted);
  max-width: 65ch;
}

.cl-ad {
  display: flex;
  justify-content: center;
  margin: 14px 0;
}

.cl-ad__inner {
  width: min(100%, 960px);
  text-align: center;
}

/* Featured = one line, no slab */
.cl-featured-line {
  margin: 0 0 18px;
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--cl-ink);
  background: var(--cl-accent-soft);
  border: 1px solid #b4c9f0;
  border-radius: 6px;
}

.cl-featured-line a {
  font-weight: 700;
  color: var(--cl-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cl-intro {
  margin: 0 0 14px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--cl-muted);
  max-width: 65ch;
}

.cl-section {
  margin-top: 26px;
}

.cl-section__title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cl-ink);
}

.cl-section__title--sm {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.cl-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cl-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  background: #fafbfc;
}

.cl-step__n {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--cl-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.cl-step strong {
  display: block;
  font-size: 0.9rem;
  color: var(--cl-ink);
  margin-bottom: 4px;
}

.cl-step__txt {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--cl-muted);
}

.cl-two-col {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.cl-panel {
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  padding: 14px 16px;
  background: var(--cl-surface);
}

.cl-panel--tight {
  padding: 12px 14px;
}

.cl-checklist {
  margin: 0;
  padding-left: 1.15em;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--cl-muted);
}

.cl-checklist li {
  margin-bottom: 0.55em;
}

.cl-checklist li:last-child {
  margin-bottom: 0;
}

.cl-checklist a {
  color: var(--cl-accent);
  font-weight: 600;
}

.cl-lede--inline {
  margin: -4px 0 12px;
  font-size: 0.88rem;
  max-width: 70ch;
}

.cl-more-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  overflow: hidden;
}

.cl-more-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--cl-border);
  background: var(--cl-surface);
  font-size: 0.9rem;
}

.cl-more-list li:last-child {
  border-bottom: none;
}

.cl-more-list a {
  font-weight: 600;
  color: var(--cl-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cl-more-list__tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cl-muted);
}

.cl-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cl-faq__item {
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  background: #fafbfc;
  padding: 0 12px;
}

.cl-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cl-ink);
  padding: 12px 0;
  list-style: none;
}

.cl-faq__item summary::-webkit-details-marker {
  display: none;
}

.cl-faq__item summary::after {
  content: "";
  float: right;
  width: 0.45em;
  height: 0.45em;
  margin-top: 0.35em;
  border-right: 2px solid var(--cl-muted);
  border-bottom: 2px solid var(--cl-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.cl-faq__item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.5em;
}

.cl-faq__item p {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--cl-muted);
}

.cl-faq__item p a {
  color: var(--cl-accent);
  font-weight: 600;
}

.cl-prose__h {
  margin: 1.15em 0 0.45em;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--cl-ink);
}

.cl-prose code {
  font-size: 0.88em;
  background: #eef0f2;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--cl-border);
}

.cl-catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.cl-catalog-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.cl-count {
  font-size: 0.82rem;
  color: var(--cl-muted);
  font-variant-numeric: tabular-nums;
}

.cl-count strong {
  color: var(--cl-accent);
}

.cl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.cl-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--cl-border);
  background: #f8f9fa;
  color: var(--cl-muted);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.cl-chip:hover {
  border-color: var(--cl-accent);
  color: var(--cl-accent);
}

.cl-chip.is-active {
  background: var(--cl-accent);
  border-color: var(--cl-accent);
  color: #fff;
}

.cl-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  overflow: hidden;
}

.cl-tile {
  position: relative;
  border-bottom: 1px solid var(--cl-border);
  background: var(--cl-surface);
}

.cl-tile:last-child {
  border-bottom: none;
}

.cl-tile:hover {
  background: #fafbfc;
}

.cl-tile__link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 44px 12px 12px;
  min-height: 0;
  color: inherit;
}

.cl-tile__cover {
  width: 64px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--cl-border);
  background: #eef0f2;
}

.cl-tile__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cl-tile__body {
  min-width: 0;
}

.cl-tile__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cl-ink);
  line-height: 1.25;
  word-break: break-word;
}

.cl-tile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.76rem;
  color: var(--cl-muted);
}

.cl-tile__rating {
  font-weight: 700;
  color: var(--cl-ink);
}

.cl-tile__plays {
  font-variant-numeric: tabular-nums;
}

.cl-tile__desc {
  margin: 0 0 8px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--cl-muted);
}

.cl-tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.cl-tile__pill {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--cl-border);
  background: #f4f5f7;
  color: var(--cl-muted);
}

.cl-tile__tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cl-muted);
}

.cl-tile__fav {
  position: absolute;
  right: 10px;
  top: 14px;
  transform: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  background: var(--cl-surface);
  color: var(--cl-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.cl-tile__fav:hover,
.cl-tile__fav.is-on {
  color: #c5221f;
  border-color: #f0b4b2;
}

.cl-tile.cl-io-tile {
  opacity: 0;
  transform: translateY(6px);
}

.cl-tile.cl-io-tile.cl-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
  transition-delay: calc(var(--cl-i, 0) * 18ms);
}

.cl-hint {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--cl-muted);
}

.cl-mini {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--cl-border);
}

.cl-mini__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.cl-mini__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.cl-mini__scores {
  font-size: 0.78rem;
  color: var(--cl-muted);
}

.cl-mini__scores strong {
  color: var(--cl-accent);
}

#sl-mini-canvas {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  background: #f0f2f4;
  touch-action: none;
  cursor: pointer;
  user-select: none;
}

.cl-article {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--cl-border);
}

.cl-article__inner {
  max-width: 65ch;
}

.cl-article__inner h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
}

.cl-prose {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--cl-muted);
}

.cl-prose p {
  margin: 0 0 0.9em;
}

.cl-prose a {
  color: var(--cl-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cl-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--cl-border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--cl-muted);
}

.cl-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.cl-footer a {
  font-weight: 600;
  color: var(--cl-accent);
}

.cl-toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 400;
  transform: translateX(-50%) translateY(10px);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--cl-surface);
  border: 2px solid var(--cl-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cl-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cl-toast.is-leaving {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}

.cl-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  padding: 12px clamp(12px, 3vw, 20px) max(12px, env(safe-area-inset-bottom, 0px)) clamp(12px, 3vw, 20px);
  background: var(--cl-surface);
  border-top: 2px solid var(--cl-border);
}

.cl-cookie__inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--cl-muted);
}

.cl-cookie__inner p {
  margin: 0;
  flex: 1 1 260px;
}

.cl-cookie__inner a {
  color: var(--cl-accent);
  font-weight: 600;
}

/* Detail player */
.cl-player {
  border: 2px solid var(--cl-border);
  border-radius: var(--cl-radius);
  overflow: hidden;
  background: var(--cl-surface);
}

.cl-player.cl-runtime-live {
  border-color: var(--cl-accent);
}

.cl-player__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-bottom: 1px solid var(--cl-border);
  background: #f4f5f7;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cl-muted);
}

.cl-player__bar strong {
  color: var(--cl-accent);
  font-size: 0.72rem;
}

.cl-player__grow {
  flex: 1;
}

.cl-player__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a0a0a;
}

.cl-player__poster,
.cl-player__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cl-player__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cl-player__iframe {
  border: 0;
}

.cl-player__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid var(--cl-border);
  background: #fafbfc;
}

.cl-player__tip {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.78rem;
  color: var(--cl-muted);
}

.cl-player.is-mobile-theater {
  position: fixed;
  inset: 0;
  z-index: 100;
  margin: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.cl-player.is-mobile-theater .cl-player__stage {
  flex: 1;
  aspect-ratio: auto;
}

.cl-detail-grid {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

@media (min-width: 760px) {
  .cl-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cl-panel {
  padding: 16px;
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  background: #fafbfc;
}

.cl-panel h1 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
}

.cl-kicker {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cl-accent);
}

.cl-title-sm {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cl-muted);
}

.cl-related h2 {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cl-muted);
}

.cl-rows {
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  overflow: hidden;
}

a.cl-row-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--cl-border);
  background: var(--cl-surface);
  color: inherit;
  text-decoration: none;
}

a.cl-row-line:last-child {
  border-bottom: none;
}

a.cl-row-line:hover {
  background: var(--cl-accent-soft);
}

.cl-row-line img {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--cl-border);
}

.cl-row-line h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.cl-row-line span.g {
  font-size: 0.65rem;
  color: var(--cl-muted);
  text-transform: uppercase;
}

.cl-prose--editorial {
  max-width: 68ch;
}

.cl-prose--wide {
  max-width: 52rem;
}

.cl-section--editorial {
  margin-top: 22px;
}

.cl-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.cl-pick-card {
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  background: var(--cl-surface);
  overflow: hidden;
}

.cl-pick-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.cl-pick-card__link img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-bottom: 1px solid var(--cl-border);
  background: #eef0f2;
}

.cl-pick-card__body {
  padding: 12px 14px 14px;
}

.cl-pick-card__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cl-ink);
}

.cl-pick-card__meta {
  display: block;
  font-size: 0.72rem;
  color: var(--cl-muted);
  margin-bottom: 8px;
}

.cl-pick-card__desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--cl-muted);
}

.cl-hot-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  overflow: hidden;
}

.cl-hot-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--cl-border);
  background: var(--cl-surface);
}

.cl-hot-list li:last-child {
  border-bottom: none;
}

.cl-hot-list a {
  font-weight: 700;
  color: var(--cl-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cl-hot-list__meta {
  font-size: 0.75rem;
  color: var(--cl-muted);
}

.cl-detail-deep {
  margin-top: 24px;
  padding: 20px 18px;
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  background: #fafbfc;
}

.cl-detail-deep__h {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cl-ink);
}

.cl-detail-deep__h3 {
  margin: 22px 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cl-ink);
}

.cl-detail-list {
  margin: 0 0 0 1.1em;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--cl-muted);
}

.cl-detail-list li {
  margin-bottom: 0.35em;
}

.cl-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--cl-muted);
}

.cl-detail-stats__rate {
  font-weight: 800;
  color: var(--cl-ink);
}

.cl-faq--detail {
  margin-top: 4px;
}

.cl-related--alt {
  margin-top: 20px;
}

.cl-footer__tagline {
  max-width: 42rem;
  margin: 10px auto 6px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--cl-muted);
}

/* Doc pages */
.cl-doc .cl-main {
  margin-bottom: 32px;
}

.cl-sheet {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  background: #fafbfc;
  max-width: 50rem;
}

.cl-sheet h1 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
}

.cl-sheet__h2 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cl-ink);
}

.cl-sheet__h2:first-of-type {
  margin-top: 18px;
}

.cl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin-top: 12px;
}

.cl-form input,
.cl-form textarea {
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: var(--cl-surface);
  color: var(--cl-ink);
}

.cl-form textarea {
  min-height: 120px;
  resize: vertical;
}

.cl-tag-rail {
  margin-bottom: 16px;
}

.cl-tag-rail .cl-chips {
  margin-bottom: 0;
}

.cl-tag-rail a.cl-chip {
  display: inline-flex;
  align-items: center;
}

.cl-list {
  border: 1px solid var(--cl-border);
  border-radius: 6px;
  overflow: hidden;
}

a.cl-list-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--cl-border);
  background: var(--cl-surface);
  color: inherit;
}

a.cl-list-row:last-child {
  border-bottom: none;
}

a.cl-list-row:hover {
  background: var(--cl-accent-soft);
}

.cl-list-row img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--cl-border);
}

.cl-list-row h3 {
  margin: 0 0 4px;
  font-size: 0.92rem;
}

.cl-list-meta {
  font-size: 0.68rem;
  color: var(--cl-muted);
  text-transform: uppercase;
}

.cl-list-arrow {
  color: var(--cl-accent);
  font-weight: 700;
}

.cl-tag-section {
  margin-bottom: 22px;
}

.cl-tag-section .cl-grid {
  margin-top: 12px;
}

.cl-btn:focus-visible,
.cl-chip:focus-visible,
.cl-nav a:focus-visible,
.cl-search input:focus-visible,
.cl-search button:focus-visible,
.cl-tile__fav:focus-visible {
  outline: 2px solid var(--cl-accent);
  outline-offset: 2px;
}

@keyframes cl-shake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-3px); }
  44% { transform: translateX(3px); }
}

@keyframes cl-pop {
  0% { transform: scale(0.98); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes cl-leave {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes cl-chip-pulse {
  0%, 100% { filter: brightness(1); }
  40% { filter: brightness(0.95); }
}

@keyframes cl-fav-pop {
  0% { transform: translateY(-50%) scale(1); }
  45% { transform: translateY(-50%) scale(1.12); }
  100% { transform: translateY(-50%) scale(1); }
}

.cl-tile.cl-filter-pop {
  animation: cl-pop 0.32s ease both;
}

.cl-tile.cl-filter-leave {
  animation: cl-leave 0.28s ease forwards;
}

.cl-chip.cl-chip-flash {
  animation: cl-chip-pulse 0.45s ease;
}

[data-sl-random].cl-act-shake {
  animation: cl-shake 0.5s ease;
}

.cl-tile__fav.cl-fav-burst {
  animation: cl-fav-pop 0.42s ease;
}

@media (max-width: 900px) {
  .cl-two-col {
    grid-template-columns: 1fr;
  }

  .cl-header__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .cl-brand {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .cl-nav {
    flex: 0 0 auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
    padding-bottom: 4px;
  }

  .cl-nav::-webkit-scrollbar {
    display: none;
  }

  .cl-nav a {
    flex-shrink: 0;
    padding: 10px 14px;
  }

  .cl-header__tools {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 8px;
    justify-content: flex-start;
  }

  .cl-header__tools .cl-search {
    order: -1;
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
  }

  .cl-header__tools > .cl-btn {
    width: 100%;
    justify-content: center;
  }

  .cl-header__tools:empty {
    display: none;
  }

  .cl-btn {
    flex-shrink: 0;
  }

  .cl-pick-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  a.cl-row-line {
    grid-template-columns: 52px 1fr auto;
    gap: 8px;
    padding: 10px;
    min-width: 0;
  }

  .cl-row-line img {
    width: 52px;
    height: 40px;
  }

  .cl-row-line h3 {
    word-break: break-word;
  }

  .cl-tile__link {
    padding: 12px 44px 12px 10px;
    min-width: 0;
  }

  .cl-tile__cover {
    width: 56px;
    height: 42px;
  }

  .cl-tile__fav {
    right: 8px;
    top: 12px;
  }

  .cl-tag-rail .cl-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .cl-tag-rail .cl-chips::-webkit-scrollbar {
    display: none;
  }

  .cl-tag-rail a.cl-chip {
    flex-shrink: 0;
  }

  a.cl-list-row {
    grid-template-columns: 56px 1fr auto;
    gap: 8px;
    padding: 10px;
    min-width: 0;
  }

  .cl-list-row img {
    width: 56px;
    height: 42px;
  }

  .cl-list-row h3 {
    word-break: break-word;
  }
}
