:root {
  --bg: #f1f5f9;
  --bg-elev: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #ef4444;
  --accent-2: #dc2626;
  --link: #4f46e5;
  --vs-accent: #6366f1;
  --vs-accent-hover: #4f46e5;
  --vs-hero-1: #0f172a;
  --vs-hero-2: #1e1b4b;
  --vs-hero-3: #312e81;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #f2f2f2;
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 999;
}
.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: #000;
}
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand-text {
  line-height: 1.15;
}

.footer-brand-block {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-main {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.nav-main a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.nav-main a:hover {
  color: #fff;
}

.promo-strip {
  background: linear-gradient(180deg, #0f131c, #0c0f14);
  border-bottom: 1px solid var(--border);
}
.promo-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem 1rem;
}
.promo-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.promo-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
}
.promo-card {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  aspect-ratio: 16 / 9;
}
.promo-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.promo-empty {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.adsense-slot {
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
  padding: 0;
}
.adsense-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #606060;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}
.adsense-inner {
  min-height: 90px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #ffffff;
}
.adsense-hint {
  display: none;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 100;
  scale: 0 1;
}

.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.hero-content h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.25;
}

.hero-lead {
  color: var(--muted);
  margin-top: 0;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.search-form input {
  flex: 1 1 240px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
}
.search-form button {
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}
.search-form button:hover {
  filter: brightness(1.08);
}

.hero-bullets {
  color: var(--muted);
  padding-inline-start: 1.25rem;
}

.dwell-card,
.panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.dwell-card h2 {
  margin-top: 0;
}

.btn,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}
.btn {
  background: var(--accent);
  color: #fff;
}
.btn:hover {
  filter: brightness(1.06);
  text-decoration: none;
}
.btn-secondary {
  background: #f2f2f2;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost {
  background: transparent;
  color: var(--link);
  border-color: var(--border);
}

.section {
  margin: 2.5rem 0;
}
.section-head h2 {
  margin: 0 0 0.35rem;
}
.section-head p {
  color: var(--muted);
  margin-top: 0;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.channel-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.channel-card-banner {
  height: 96px;
  background-size: cover;
  background-position: center;
}
.channel-card-banner--empty {
  background: linear-gradient(90deg, #ffffff 0%, #f9f9f9 55%, #f1f1f1 100%);
}

.channel-card-body {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  align-items: center;
}
.channel-card-body img {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.channel-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
}
.tagline {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-split {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 880px) {
  .section-split {
    grid-template-columns: 1fr 1fr;
  }
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.acc-btn {
  text-align: start;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.acc-btn[aria-expanded="true"] {
  border-color: var(--accent-2);
}
.acc-panel {
  padding: 0.75rem 1rem 1rem;
  color: var(--muted);
  border-inline-start: 3px solid var(--accent-2);
  margin-inline-start: 0.25rem;
}

.dwell-stack .mini-article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}
.mini-article h3 {
  margin: 0 0 0.35rem;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.88rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #0a0c10;
  padding: 2rem 1.25rem 1rem;
  margin-top: 2rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 720px) and (max-width: 959px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.footer-social-col .footer-handle {
  margin: 0.35rem 0 0.5rem;
  color: var(--text);
  font-weight: 600;
}
.footer-social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}
.footer-social-link {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}
.footer-social-link:hover {
  color: var(--accent);
  text-decoration: none;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.35rem;
}
.footer-small {
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.channel-hero {
  margin: -1.5rem -1.25rem 1.5rem;
  padding: 2rem 1.25rem 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent), var(--bg-elev);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.channel-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--ch-banner);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: saturate(1.1);
}
.channel-hero--nobanner::before {
  display: none;
}
.channel-hero-inner {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.channel-avatar {
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.layout-channel {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 960px) {
  .layout-channel {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.layout-main .panel {
  margin-bottom: 1rem;
}
.panel h2 {
  margin-top: 0;
}

.sub-url {
  word-break: break-all;
  background: #f2f2f2;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.stat-card {
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.stat-value {
  font-weight: 800;
  font-size: 1.1rem;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.social-pill {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f2f2f2;
  color: var(--text);
  text-decoration: none;
}
.social-pill:hover {
  text-decoration: none;
  border-color: var(--accent-2);
}

.shorts-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (max-width: 520px) {
  .shorts-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .short-title {
    font-size: 0.62rem;
    padding: 0.35rem 0.35rem;
  }
}

.short-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
  color: inherit;
  text-decoration: none;
  background: #000;
}
.short-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}
.short-badge {
  position: absolute;
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}
.short-title {
  display: block;
  padding: 0.45rem 0.5rem;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #e8edf5;
}

.video-grid-12 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .video-grid-12 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.video-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
}
.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.video-title {
  display: block;
  padding: 0.5rem 0.55rem;
  font-size: 0.85rem;
  line-height: 1.35;
}

/* Channel tool: surface container */
.yt-chrome-dark {
  background: #ffffff;
  color: var(--text);
  border-radius: 18px;
  padding: 1rem clamp(0.75rem, 2vw, 1.25rem) 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 4px;
}
.yt-chrome-dark .panel {
  background: var(--bg-elev);
}
.yt-chrome-dark a:not(.social-pill):not(.btn):not(.btn-secondary) {
  color: var(--link);
}
.channel-page-intro {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.channel-page-intro:not(.channel-page-intro--nobanner)::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--ch-banner);
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  filter: saturate(1.05);
}
.channel-page-intro--nobanner::before {
  display: none;
}
.channel-page-intro-inner {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.25rem;
}
.channel-page-intro-text {
  flex: 1;
  min-width: 0;
}
.page-kind {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}
.channel-page-intro h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  line-height: 1.2;
}
.channel-handle-line {
  margin: 0 0 0.5rem;
  direction: ltr;
}
.link-youtube-out {
  display: inline-flex;
  font-weight: 700;
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #ff0000;
  border: 1px solid #cc0000;
  color: #fff;
}
.link-youtube-out:hover {
  filter: brightness(1.08);
  text-decoration: none;
  color: #fff;
}
.subscribe-url-box {
  word-break: break-all;
  background: #f2f2f2;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}
.subscribe-focus-title {
  margin-top: 0;
}
.subscribe-focus-lead {
  margin-bottom: 0.85rem;
}
.subscribe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}
.analytics-title {
  margin-top: 0;
}
.adsense-slot {
  min-height: 96px;
  margin: 1rem 0;
  border-radius: 12px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.adsense-inner {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.keywords-line {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  word-break: break-word;
}

.desc-block {
  white-space: pre-wrap;
  font: inherit;
  color: var(--muted);
  margin: 0;
  max-height: 320px;
  overflow: auto;
}

.sticky-aside {
  position: sticky;
  top: 5.5rem;
}
.aside-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.aside-links a {
  display: block;
  padding: 0.35rem 0;
}
.mini-search {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.mini-search input {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
}
.mini-search button {
  padding: 0.55rem;
  border-radius: 10px;
  border: 0;
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}

.page-head h1 {
  margin: 0 0 0.35rem;
}
.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.article-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}
.article h2 {
  margin-top: 1.75rem;
}
.cta-inline {
  margin: 2rem 0 0;
}
.numbered {
  padding-inline-start: 1.2rem;
  color: var(--muted);
}

.prose h2 {
  margin-top: 1.5rem;
}

.error-panel {
  text-align: center;
  padding: 2rem 1rem;
}

/* —— SocialBlade-style channel snapshot card + light tool surface —— */
.sb-profile-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.06);
  margin-bottom: 1.25rem;
  overflow: hidden;
  color: var(--text);
}
.sb-profile-banner {
  height: clamp(96px, 18vw, 160px);
  position: relative;
  background: #f1f1f1;
  overflow: hidden;
}
.sb-profile-card:not(.sb-profile-card--nobanner) .sb-profile-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--sb-banner);
  background-size: cover;
  background-position: center top;
  opacity: 1;
}
.sb-profile-body {
  padding: 0 clamp(1rem, 3vw, 1.5rem) 1.35rem;
}
.sb-profile-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -64px;
}

@media (max-width: 520px) {
  .sb-profile-banner {
    height: 96px;
  }
  .sb-profile-identity {
    margin-top: -58px;
  }
}

/* If no banner image, remove the empty banner block. */
.sb-profile-card--nobanner .sb-profile-banner {
  display: none;
}
.sb-profile-card--nobanner .sb-profile-identity {
  margin-top: 0;
  padding-top: 0.25rem;
}
.sb-profile-avatar {
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  width: 112px;
  height: 112px;
  object-fit: cover;
  background: #ffffff;
}
.sb-profile-text {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}
.sb-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 0.65rem 0 0.5rem;
}
.sb-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.sb-badge--yt {
  color: #ffffff;
  background: #ff0000;
  padding: 0.22rem 0.6rem;
}
.sb-badge--ok {
  color: #14532d;
  background: #bbf7d0;
  padding: 0.22rem 0.55rem;
  font-weight: 700;
}
.sb-profile-title {
  margin: 0.25rem 0 0.35rem;
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
}
.sb-profile-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.sb-profile-desc--empty {
  -webkit-line-clamp: unset;
  display: block;
}
.sb-profile-ytlink-wrap {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
}
.sb-profile-ytlink {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}
.sb-profile-ytlink:hover {
  text-decoration: underline;
}
.sb-url-stack {
  margin: 1rem auto 0;
  max-width: 36rem;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sb-url-block__label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.sb-url-block__hint {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.sb-url-block__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}
.sb-url-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.78rem;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sb-btn-open {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.sb-btn-open:hover {
  background: #f2f2f2;
  text-decoration: none;
}
.sb-about-verbatim {
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.sb-stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem auto 1rem;
  max-width: 520px;
}
.sb-stat-tile {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.45rem;
  text-align: center;
}
.sb-stat-num {
  display: block;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text);
}
.sb-stat-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.sb-kv {
  margin: 0 0 1.15rem;
  padding: 0;
}
.sb-kv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.sb-kv-row dt {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}
.sb-kv-row dd {
  margin: 0;
  text-align: end;
  color: var(--link);
  font-weight: 600;
  font-size: 0.88rem;
}
.sb-kv-row--id {
  grid-template-columns: 1fr;
  gap: 0.45rem;
}
.sb-kv-row--id dd {
  text-align: start;
}
.sb-kv-id-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
}
.sb-kv-id-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.8rem;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sb-btn-copy {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  font: inherit;
}
.sb-btn-copy:hover {
  background: #dbeafe;
}
.sb-panels {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) {
  .sb-panels {
    grid-template-columns: 1fr;
  }
  .sb-stat-tiles {
    gap: 0.5rem;
  }
  .sb-stat-num {
    font-size: 1rem;
  }
}
.sb-info-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem 1rem;
  background: #ffffff;
}
.sb-info-panel__head {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--link);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sb-info-panel__icon {
  display: flex;
  color: var(--link);
  flex-shrink: 0;
}
.sb-info-rows {
  border-top: 1px solid var(--border);
}
.sb-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}
.sb-info-row:last-child {
  border-bottom: 0;
}
.sb-info-k {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.sb-info-v {
  color: var(--text);
  font-weight: 600;
  text-align: end;
  word-break: break-word;
}
.sb-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.sb-links-list li {
  border-bottom: 1px solid var(--border);
}
.sb-links-list li:last-child {
  border-bottom: 0;
}
.sb-link-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0;
  text-decoration: none;
  color: inherit;
}
.sb-link-row:hover .sb-link-label {
  text-decoration: underline;
  color: var(--link);
}
.sb-link-label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
}
.sb-link-url {
  font-size: 0.74rem;
  color: var(--muted);
  word-break: break-all;
}
.sb-links-empty {
  margin: 0;
  font-size: 0.88rem;
}

/* —— Channel tool: YouTube-like light theme —— */
body.ythub-site.ythub-channel-tool {
  --bg: #ffffff;
  --bg-elev: #f9f9f9;
  --border: #e5e5e5;
  --text: #0f0f0f;
  --muted: #606060;
  --accent: #ff0000;
  --accent-2: #cc0000;
  background: #f9f9f9 !important;
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light {
  background: #f9f9f9 !important;
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .page-head .lead,
body.ythub-site.ythub-channel-tool .channel-tool-light .page-head h1 {
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .page-head .lead {
  color: #606060 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .btn {
  background: #ff0000 !important;
  color: #ffffff !important;
  border: 1px solid #cc0000 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .btn:hover {
  background: #cc0000 !important;
  color: #ffffff !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-profile-card {
  background: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  color: #0f0f0f !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-profile-banner {
  background: #f1f1f1 !important;
  border-bottom: 1px solid #e5e5e5 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-profile-card:not(.sb-profile-card--nobanner) .sb-profile-banner::before {
  opacity: 1 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-profile-avatar {
  border-color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-profile-title,
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-profile-desc {
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-badge--yt {
  background: #ff0000 !important;
  color: #ffffff !important;
  border: 1px solid #cc0000 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-info-panel {
  background: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-info-panel__head {
  color: #606060 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-info-rows,
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-info-row,
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-links-list,
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-links-list li {
  border-color: #e5e5e5 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-info-k {
  color: #606060 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-info-v {
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-btn-copy {
  background: #f2f2f2 !important;
  color: #0f0f0f !important;
  border: 1px solid #e5e5e5 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-btn-copy:hover {
  background: #e5e5e5 !important;
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-kv-id-input {
  background: #ffffff !important;
  color: #0f0f0f !important;
  border-color: #ccc !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-link-row:hover .sb-link-label {
  color: #065fd4 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-link-label {
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-link-url {
  color: #606060 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .panel {
  background: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  color: #0f0f0f !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .panel h2,
body.ythub-site.ythub-channel-tool .channel-tool-light .panel h3 {
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light a:not(.btn):not(.btn-secondary):not(.sb-link-row):not(.sb-profile-ytlink) {
  color: #065fd4 !important;
  text-decoration: none !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light a:not(.btn):not(.btn-secondary):not(.sb-link-row):not(.sb-profile-ytlink):hover {
  text-decoration: underline !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .muted {
  color: #606060 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .subscribe-url-box {
  background: #f9f9f9 !important;
  border-color: #e5e5e5 !important;
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .btn-secondary {
  background: #f2f2f2 !important;
  color: #0f0f0f !important;
  border: 1px solid #e5e5e5 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .btn-secondary:hover {
  background: #e5e5e5 !important;
  color: #0f0f0f !important;
  text-decoration: none !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .short-card {
  background: #f9f9f9 !important;
  border-color: #e5e5e5 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .short-title {
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .video-card {
  background: #ffffff !important;
  border-color: #e5e5e5 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .video-title {
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .desc-block {
  color: #606060 !important;
  background: #f9f9f9 !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 10px;
  padding: 0.75rem 1rem;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .adsense-slot {
  border-color: #e5e5e5 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .adsense-inner {
  color: #606060 !important;
  background: #ffffff !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .acc-btn {
  background: #f9f9f9 !important;
  border-color: #e5e5e5 !important;
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .acc-btn[aria-expanded="true"] {
  border-color: #065fd4 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .acc-panel {
  color: #606060 !important;
  border-inline-start-color: #065fd4 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .mini-search input {
  background: #ffffff !important;
  border-color: #ccc !important;
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .mini-search button {
  background: #ff0000 !important;
  color: #ffffff !important;
  border: 1px solid #cc0000 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .dwell-stack .mini-article {
  background: #ffffff !important;
  border-color: #e5e5e5 !important;
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .stat-card {
  background: #ffffff !important;
  border-color: #e5e5e5 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .stat-label {
  color: #606060 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .stat-value {
  color: #0f0f0f !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light code,
body.ythub-site.ythub-channel-tool .channel-tool-light .mono {
  background: #f2f2f2 !important;
  color: #0f0f0f !important;
  border: 1px solid #e5e5e5 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .stats-grid--lite {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  max-width: 520px;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .aside-links a {
  color: #065fd4 !important;
  text-decoration: none !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .aside-links a:hover {
  text-decoration: underline !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .keywords-line {
  color: #606060 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .sb-profile-ytlink {
  color: #065fd4 !important;
  border-color: #e5e5e5 !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .subscribe-url-field {
  background: #ffffff !important;
  color: #0f0f0f !important;
  border-color: #ccc !important;
}
body.ythub-site.ythub-channel-tool .channel-tool-light .numbered {
  color: #606060 !important;
}

/* —— Viewstats-inspired home landing —— */
body.ythub-home {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.ythub-home .site-chrome-main {
  padding-top: 0;
}

.home-landing {
  position: relative;
  overflow: hidden;
  margin: 0 0 2rem;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1rem, 3vw, 1.5rem) clamp(2.5rem, 5vw, 3.25rem);
  border-radius: 0 0 20px 20px;
  background: linear-gradient(145deg, var(--vs-hero-1) 0%, var(--vs-hero-2) 42%, var(--vs-hero-3) 100%);
  color: #f8fafc;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.25);
}

.home-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 20%, rgba(99, 102, 241, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(236, 72, 153, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.home-landing__inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.home-landing__eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c7d2fe;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.home-landing h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}

.home-landing .home-lead {
  margin: 0 auto 1.5rem;
  max-width: 40rem;
  color: #cbd5e1;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.65;
}

.home-landing .search-form {
  justify-content: center;
  max-width: 36rem;
  margin: 0 auto 1rem;
}

.home-landing .search-form input {
  flex: 1 1 200px;
  padding: 0.9rem 1.1rem;
  border-radius: 12px 0 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.home-landing .search-form input::placeholder {
  color: #64748b;
}

.home-landing .search-form input:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

.home-landing .search-form button {
  padding: 0.9rem 1.5rem;
  border-radius: 0 12px 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.45);
}

.home-landing .search-form button:hover {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  border-color: rgba(255, 255, 255, 0.25);
}

.home-landing__hint {
  margin: 0 0 1.25rem;
  color: #94a3b8;
  font-size: 0.88rem;
}

.home-landing__hint code {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
}

.home-hero__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.home-hero__cta a.btn-vs-primary {
  background: #fff;
  color: #312e81;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.home-hero__cta a.btn-vs-primary:hover {
  background: #e0e7ff;
  color: #1e1b4b;
}

.home-hero__cta a.btn-vs-ghost {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.home-hero__cta a.btn-vs-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.home-features {
  margin: 0 0 2rem;
  padding: 0 0.25rem;
}

.home-features__head {
  text-align: center;
  margin-bottom: 1.35rem;
}

.home-features__head h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.home-features__head p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.home-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.home-feature-card {
  padding: 1.35rem 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

.home-feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.home-feature-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: var(--vs-accent);
  font-size: 1.35rem;
  line-height: 1;
}

.home-feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

.home-feature-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.home-feature-card code {
  font-size: 0.85em;
  background: #f1f5f9;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

body.ythub-home .home-hero__cta a.btn-vs-primary {
  color: #312e81 !important;
}

body.ythub-home .home-hero__cta a.btn-vs-ghost {
  color: #e2e8f0 !important;
}

body.ythub-home .home-section-panel h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .home-landing .search-form {
    flex-direction: column;
  }
  .home-landing .search-form input {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  .home-landing .search-form button {
    border-radius: 12px;
    width: 100%;
  }
}

/* —— Site-wide: canvas + panels (align with site_chrome shell: #dcdcde, 10px radius) —— */
body.ythub-site {
  background: #ffffff;
  color: #0f0f0f;
}

body.ythub-site .site-chrome-main {
  background: #ffffff;
}

body.ythub-site .panel {
  border: 1px solid #dcdcde;
  border-radius: 10px;
  box-shadow: none;
}

body.ythub-site .panel h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0;
}

body.ythub-site .browse-grid,
body.ythub-site .ch-grid.browse-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  body.ythub-site .browse-grid,
  body.ythub-site .ch-grid.browse-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  body.ythub-site .browse-grid,
  body.ythub-site .ch-grid.browse-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  body.ythub-site .browse-grid,
  body.ythub-site .ch-grid.browse-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 380px) {
  body.ythub-site .browse-grid,
  body.ythub-site .ch-grid.browse-grid {
    grid-template-columns: 1fr;
  }
}

body.ythub-site .browse-card,
body.ythub-site a.ch-card.browse-card {
  display: block;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.ythub-site .browse-card:hover,
body.ythub-site a.ch-card.browse-card:hover {
  border-color: #d4d4d4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

body.ythub-site .browse-card img,
body.ythub-site a.ch-card.browse-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

body.ythub-site .browse-card .meta,
body.ythub-site a.ch-card.browse-card .meta {
  padding: 12px 14px 14px;
}

body.ythub-site .browse-card .t,
body.ythub-site a.ch-card.browse-card .t {
  font-size: 1rem;
  font-weight: 600;
  color: #0f0f0f;
  line-height: 1.35;
}

body.ythub-site .browse-card .v,
body.ythub-site a.ch-card.browse-card .v {
  font-size: 0.875rem;
  color: #888888;
  margin-top: 0.25rem;
}

/* Unified lead text + empty state + pagination (browse + static pages) */
body.ythub-site .panel > p.muted:first-of-type,
body.ythub-site .home-section-panel > p.muted {
  color: #666666;
  font-size: 0.95rem;
  line-height: 1.55;
}

body.ythub-site .home-section-panel > p.muted {
  margin-bottom: 1rem;
}

body.ythub-site .empty {
  padding: 1rem 0;
  color: #606060;
}

body.ythub-site .pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0 0;
}

body.ythub-site .pager a,
body.ythub-site .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  color: #0f0f0f;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

body.ythub-site .pager a:hover {
  background: #f2f2f2;
}

body.ythub-site .pager .current {
  background: #e6f0ff;
  border-color: #065fd4;
  color: #0f0f0f;
}

body.ythub-site .pager .dots {
  border-color: transparent;
  background: transparent;
  min-width: auto;
  padding: 0 6px;
  color: #606060;
}

body.ythub-site .ythub-card-soft {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 12px;
  color: #0f0f0f;
}

body.ythub-site .ythub-card-soft__p {
  margin: 0;
}
