/* DangCloud 创作者公开主页 — Desktop 优先 + Mobile 兼容 */

:root {
  --ch-primary: #4f5ef0;
  --ch-primary-2: #6b5cff;
  --ch-primary-soft: rgba(79, 94, 240, 0.12);
  --ch-bg: #fbfbfd;
  --ch-surface: #ffffff;
  --ch-text: #111827;
  --ch-text-2: #4b5563;
  --ch-text-3: #6b7280;
  --ch-text-4: #9ca3af;
  --ch-border: #e8ecf2;
  --ch-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  --ch-shadow-md: 0 14px 40px rgba(15, 23, 42, 0.1);
  --ch-radius: 14px;
  --ch-radius-sm: 10px;
  --ch-container: 1200px;
  --ch-gutter: 28px;
  --ch-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ch-font: "PingFang SC", "HarmonyOS Sans", "Segoe UI", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.ch-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ch-bg);
  color: var(--ch-text);
  font-family: var(--ch-font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.ch-page.is-demo {
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(96, 93, 255, 0.10), transparent 60%),
    radial-gradient(900px 420px at 88% 0%, rgba(56, 189, 248, 0.08), transparent 55%),
    var(--ch-bg);
}

/* 主内容撑满剩余视口，避免内容少时页脚上浮 */
body.ch-page > main {
  flex: 1 0 auto;
  width: 100%;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.ch-container {
  width: 100%;
  max-width: var(--ch-container);
  margin: 0 auto;
  padding: 0 var(--ch-gutter);
}

/* 大屏分段加宽：笔记本 → 1080p → 2K → 4K，内容区更大气，但设上限避免字行过长 */
@media (min-width: 1440px) {
  :root {
    --ch-container: 1320px;
    --ch-gutter: 32px;
  }
}
@media (min-width: 1680px) {
  :root {
    --ch-container: 1440px;
    --ch-gutter: 36px;
  }
  .ch-layout { gap: 32px; grid-template-columns: minmax(0, 1fr) 300px; }
  .ch-hero { min-height: 460px; padding: 90px 0 80px; }
  .ch-hero__name { font-size: clamp(36px, 3.2vw, 48px); }
}
@media (min-width: 1920px) {
  :root {
    --ch-container: 1600px;
    --ch-gutter: 40px;
  }
  .ch-layout { gap: 36px; grid-template-columns: minmax(0, 1fr) 320px; }
  .ch-feed-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .ch-collection-rail { gap: 16px; }
  .ch-hero { min-height: 500px; padding: 100px 0 88px; }
  .ch-hero__avatar { width: 120px; height: 120px; }
  .ch-body { padding: 36px 0 80px; }
}
@media (min-width: 2560px) {
  :root {
    --ch-container: 1840px;
    --ch-gutter: 48px;
  }
  .ch-layout { gap: 40px; grid-template-columns: minmax(0, 1fr) 340px; }
  .ch-feed-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
  .ch-collection-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
  .ch-hero { min-height: 440px; }
  .ch-hero__name { font-size: 40px; }
  .ch-block__title { font-size: 20px; }
}
@media (min-width: 3840px) {
  :root {
    --ch-container: 2000px;
    --ch-gutter: 56px;
  }
  .ch-layout { gap: 48px; grid-template-columns: minmax(0, 1fr) 360px; }
  .ch-feed-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
}

/* ========== Topbar ========== */
.ch-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  color: #fff;
}
.ch-topbar__inner {
  max-width: var(--ch-container);
  margin: 0 auto;
  padding: 16px var(--ch-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ch-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ch-brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #3b6cff, #8b5cf6);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}
.ch-brand__text { font-size: 15px; }
.ch-topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ch-topbar__link {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  transition: background .2s var(--ch-ease);
}
.ch-topbar__link:hover { background: rgba(255,255,255,0.16); }
.ch-topbar__cta {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(90deg, #3b6cff, #6b5cff 55%, #8b5cf6);
  box-shadow: 0 8px 24px rgba(59, 108, 255, 0.35);
}
.ch-topbar__menu {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,255,255,0.1);
}
.ch-topbar__menu span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
}
/* 仅移动端汉堡菜单用；桌面端永远不显示 */
.ch-topbar__drawer {
  display: none;
  margin: 8px var(--ch-gutter) 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  flex-direction: column;
  gap: 4px;
}
.ch-topbar__drawer[hidden] {
  display: none !important;
}
.ch-drawer__item {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  text-align: left;
}
.ch-drawer__item:hover { background: rgba(255,255,255,0.08); }

/* ========== Hero ========== */
.ch-hero {
  position: relative;
  min-height: 420px;
  padding: 70px 0 72px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 70% at 70% 20%, rgba(59,108,255,0.28), transparent 55%),
    linear-gradient(160deg, #0b1220 0%, #121a2b 45%, #1a2236 100%);
  text-align: center;
}
.ch-hero--banner { background: #0b1220; }
.ch-hero__bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  transform: scale(1.02);
  animation: chHeroIn .9s var(--ch-ease) both;
}
.ch-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,12,24,0.35) 0%, rgba(8,12,24,0.55) 40%, rgba(8,12,24,0.82) 100%);
}
.ch-hero__curve {
  display: none;
}
.ch-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: chRise .7s var(--ch-ease) .1s both;
}
.ch-hero__avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.92);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  margin-bottom: 18px;
  background: #1f2937;
}
.ch-hero__name {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.ch-hero__bio {
  margin: 0 0 18px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.86);
}
.ch-hero__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(90deg, #3b6cff, #6b5cff);
  box-shadow: 0 10px 28px rgba(59,108,255,0.4);
  margin-bottom: 28px;
  transition: transform .2s var(--ch-ease), box-shadow .2s var(--ch-ease);
}
.ch-hero__contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(59,108,255,0.48);
}
.ch-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
}
.ch-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 96px;
  color: rgba(255,255,255,0.78);
}
.ch-stat svg { opacity: 0.85; margin-bottom: 2px; }
.ch-stat strong {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.ch-stat span { font-size: 12px; }

/* ========== Body layout ========== */
.ch-body {
  position: relative;
  z-index: 2;
  margin-top: -8px;
  padding: 28px 0 64px;
  background: var(--ch-bg);
}
.ch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}
.ch-main { min-width: 0; }

.ch-block { margin-bottom: 15px; }
.ch-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ch-block__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ch-block__more {
  font-size: 13px;
  color: var(--ch-primary);
  font-weight: 500;
}

/* Collections */
.ch-collection-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.ch-collection-card {
  display: block;
  background: var(--ch-surface);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  overflow: hidden;
  transition: transform .25s var(--ch-ease), box-shadow .25s var(--ch-ease), border-color .25s var(--ch-ease);
}
.ch-collection-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ch-shadow);
  border-color: rgba(59,108,255,0.25);
}
.ch-collection-card__cover {
  position: relative;
  aspect-ratio: 16 / 8;
  background: #e5e7eb;
  overflow: hidden;
}
.ch-collection-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ch-collection-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
}
.ch-collection-card__play::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 11px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}
.ch-collection-card__title {
  margin: 10px 12px 2px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-collection-card__meta {
  margin: 0 12px 12px;
  font-size: 12px;
  color: var(--ch-text-3);
}
.ch-block__hint {
  font-size: 12px;
  color: var(--ch-text-4);
  font-weight: 500;
}
.ch-collection-card--demo {
  cursor: default;
}
.ch-collection-card--demo:hover {
  transform: translateY(-4px);
  box-shadow: var(--ch-shadow-md);
}
.ch-collection-card__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
.ch-collection-card--demo .ch-collection-card__cover {
  aspect-ratio: 16 / 10;
}
.ch-collection-card--demo .ch-collection-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.35));
  pointer-events: none;
}
.ch-card--demo {
  cursor: default;
}
.ch-card--demo:hover {
  transform: translateY(-3px);
}
.ch-card--demo .ch-card__cover img {
  transition: transform .35s var(--ch-ease);
}
.ch-card--demo:hover .ch-card__cover img {
  transform: scale(1.045);
}
.ch-recent__item--demo {
  cursor: default;
  pointer-events: none;
}
/* demo banner removed */

/* Tabs / filters — 顶行 Tab+搜索，下行分类/标签 */
.ch-feed {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 0 22px;
  box-shadow: none;
}
.ch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 2px;
  border-bottom: 1px solid #eef1f6;
  margin-bottom: 14px;
}
.ch-tabs {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  flex-shrink: 0;
  min-width: 0;
}
.ch-tab {
  position: relative;
  padding: 6px 2px 12px;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  letter-spacing: 0.01em;
  transition: color .2s var(--ch-ease);
}
.ch-tab:hover { color: #111827; }
.ch-tab.is-active {
  color: #4f5ef0;
  font-weight: 700;
}
.ch-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #4f5ef0;
}
.ch-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 420px;
  min-width: 200px;
  height: 40px;
  margin-bottom: 8px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f4f5f9;
  border: 1px solid transparent;
  transition: background .2s var(--ch-ease), border-color .2s var(--ch-ease), box-shadow .2s var(--ch-ease);
}
.ch-search:focus-within {
  background: #fff;
  border-color: rgba(79, 94, 240, 0.35);
  box-shadow: 0 0 0 3px rgba(79, 94, 240, 0.1);
}
.ch-search svg { color: #9aa3b2; flex-shrink: 0; }
.ch-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ch-text);
}
.ch-search input::placeholder { color: #a0a8b8; }

.ch-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.ch-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.ch-filter-row__label {
  flex-shrink: 0;
  height: 30px;
  line-height: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.02em;
}
.ch-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.ch-chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  background: #f3f4f7;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  transition: background .2s var(--ch-ease), color .2s var(--ch-ease), border-color .2s var(--ch-ease);
}
.ch-chip:hover {
  color: #111827;
  background: #ebeef5;
}
.ch-chip.is-active {
  background: #eef0fe;
  border-color: #4f5ef0;
  color: #4f5ef0;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(79, 94, 240, 0.06);
}

/* Feed cards — desktop grid */
.ch-feed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.ch-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--ch-radius);
  overflow: hidden;
  background: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: transform .25s var(--ch-ease), box-shadow .25s var(--ch-ease);
}
.ch-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}
.ch-card__cover {
  position: relative;
  aspect-ratio: 16 / 8;
  background: #e5e7eb;
  overflow: hidden;
}
.ch-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ch-ease);
}
.ch-card:hover .ch-card__cover img { transform: scale(1.04); }
.ch-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: rgba(15,23,42,0.5);
  opacity: 0;
  transition: opacity .2s var(--ch-ease);
}
.ch-card:hover .ch-card__play { opacity: 1; }
.ch-card__play::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #fff;
}
.ch-card__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, #6b5cff, #8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.ch-card__duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.ch-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 14px;
  flex: 1;
}
.ch-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-card__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ch-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-card__meta {
  margin: auto 0 0;
  font-size: 12px;
  color: var(--ch-text-4);
}

.ch-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 44px;
  margin-top: 18px;
  border-radius: 12px;
  background: #f3f5f9;
  color: var(--ch-text-2);
  font-size: 14px;
  font-weight: 500;
}
.ch-load-more::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.ch-load-more:hover { background: #e9eef6; color: var(--ch-text); }

.ch-empty,
.ch-search-empty {
  margin: 28px 0 12px;
  text-align: center;
  color: var(--ch-text-3);
}
.ch-empty h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ch-text);
}
.ch-empty p,
.ch-search-empty { margin: 0; font-size: 13px; }

/* Sidebar */
.ch-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 20px;
}
.ch-side-card {
  background: var(--ch-surface);
  border: 1px solid var(--ch-border);
  border-radius: 16px;
  padding: 16px;
}
.ch-side-card__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}
.ch-side-card__empty {
  margin: 0;
  font-size: 13px;
  color: var(--ch-text-4);
}
.ch-hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ch-hot-tag {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f5f9;
  color: var(--ch-text-2);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}
.ch-hot-tag:hover { background: #e8eefc; color: var(--ch-primary); }
.ch-recent { display: flex; flex-direction: column; gap: 12px; }
.ch-recent__item {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ch-recent__item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #e5e7eb;
  flex-shrink: 0;
}
.ch-recent__title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ch-recent__meta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ch-text-4);
}

/* Footer */
.ch-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--ch-border);
  background: #fff;
  text-align: center;
}
.ch-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ch-text-2);
  margin-bottom: 8px;
}
.ch-footer__copy {
  margin: 0;
  font-size: 12px;
  color: var(--ch-text-4);
}

/* ========== 精选合集列表页 ========== */
.ch-page--collections {
  background: #f7f8fb;
}
.ch-cl-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.ch-cl-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}
.ch-cl-brand {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  max-width: 50%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-cl-top__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ch-cl-top__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background .2s var(--ch-ease), color .2s var(--ch-ease);
}
.ch-cl-top__link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.ch-cl-main {
  padding: 36px 0 64px;
}
.ch-cl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.ch-cl-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ch-text-4);
}
.ch-cl-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ch-text);
}
.ch-cl-sub {
  margin: 0;
  font-size: 14px;
  color: var(--ch-text-3);
}
.ch-cl-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 360px;
  min-width: 220px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ch-border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: border-color .2s, box-shadow .2s;
}
.ch-cl-search:focus-within {
  border-color: rgba(79, 94, 240, 0.4);
  box-shadow: 0 0 0 3px rgba(79, 94, 240, 0.1);
}
.ch-cl-search svg { color: #9aa3b2; flex-shrink: 0; }
.ch-cl-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ch-text);
}
.ch-cl-search input::placeholder { color: #a0a8b8; }
.ch-cl-search__clear {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--ch-primary);
  font-weight: 500;
}
.ch-cl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ch-cl-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--ch-radius);
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
  transition: transform .25s var(--ch-ease), box-shadow .25s var(--ch-ease);
}
.ch-cl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}
.ch-cl-card__cover {
  position: relative;
  aspect-ratio: 16 / 8;
  background: #e5e7eb;
  overflow: hidden;
}
.ch-cl-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ch-ease);
}
.ch-cl-card:hover .ch-cl-card__cover img { transform: scale(1.04); }
.ch-cl-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .2s;
}
.ch-cl-card:hover .ch-cl-card__play { opacity: 1; }
.ch-cl-card__play::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 14px;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #fff;
}
.ch-cl-card__count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.ch-cl-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 18px;
  flex: 1;
}
.ch-cl-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ch-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-cl-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ch-text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.ch-cl-card__meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ch-text-4);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ch-cl-dot { opacity: 0.5; }
.ch-cl-empty { margin-top: 48px; }
.ch-cl-empty a { color: var(--ch-primary); }

@media (min-width: 1440px) {
  .ch-cl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
}
@media (min-width: 1920px) {
  .ch-cl-grid { gap: 24px; }
}
@media (max-width: 960px) {
  .ch-cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ch-cl-main { padding: 28px 0 48px; }
  .ch-cl-head { margin-bottom: 20px; }
  .ch-cl-search { max-width: none; width: 100%; }
}
@media (max-width: 640px) {
  .ch-cl-grid { grid-template-columns: 1fr; gap: 14px; }
  .ch-cl-title { font-size: 26px; }
  .ch-cl-card__desc { min-height: 0; }
  .ch-cl-card:hover { transform: none; }
  .ch-cl-card__play { opacity: 0.85; }
  .ch-cl-card:hover .ch-cl-card__cover img { transform: none; }
}

@keyframes chHeroIn {
  from { transform: scale(1.08); opacity: .7; }
  to { transform: scale(1.02); opacity: 1; }
}
@keyframes chRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Tablet ========== */
@media (max-width: 1100px) {
  .ch-layout { grid-template-columns: 1fr; }
  .ch-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .ch-feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ch-collection-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .ch-collection-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ========== Mobile ========== */
@media (max-width: 767px) {
  :root { --ch-gutter: 18px; }

  .ch-topbar__link,
  .ch-topbar__cta { display: none; }
  .ch-topbar__menu { display: inline-flex; }
  .ch-topbar__drawer:not([hidden]) {
    display: flex;
  }

  .ch-hero {
    min-height: 0;
    padding: 84px 0 56px;
    text-align: center;
  }
  .ch-hero__curve {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 28px;
    background: var(--ch-bg);
    border-radius: 28px 28px 0 0;
  }
  .ch-hero__avatar {
    width: 92px;
    height: 92px;
    margin-bottom: 14px;
  }
  .ch-hero__name {
    font-size: 28px;
  }
  .ch-hero__bio {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .ch-hero__contact {
    width: min(220px, 100%);
    justify-content: center;
    margin-bottom: 22px;
  }
  .ch-hero__stats {
    gap: 16px 20px;
    width: 100%;
  }
  .ch-stat { min-width: 0; flex: 1; }
  .ch-stat strong { font-size: 15px; }
  .ch-stat span { font-size: 11px; }

  .ch-body {
    margin-top: 0;
    padding-top: 8px;
    background: #fff;
  }
  .ch-layout { gap: 20px; }
  .ch-sidebar {
    grid-template-columns: 1fr;
  }

  .ch-block__title { font-size: 17px; }

  .ch-collection-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .ch-collection-rail::-webkit-scrollbar { display: none; }
  .ch-collection-card {
    flex: 0 0 168px;
    scroll-snap-align: start;
  }

  .ch-feed {
    border: 0;
    border-radius: 0;
    padding: 8px 0 20px;
    box-shadow: none;
    background: transparent;
  }
  .ch-toolbar {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px 16px;
    margin-bottom: 12px;
  }
  .ch-tabs {
    width: 100%;
    gap: 20px;
    border-bottom: none;
  }
  .ch-search {
    max-width: none;
    width: 100%;
    margin-bottom: 4px;
  }
  .ch-filter-row {
    flex-direction: column;
    gap: 8px;
  }
  .ch-filter-row__label {
    height: auto;
    line-height: 1.2;
  }
  .ch-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .ch-chip-row::-webkit-scrollbar { display: none; }
  .ch-chip { flex: 0 0 auto; }

  /* Mobile list cards */
  .ch-feed-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .ch-card {
    flex-direction: row;
    align-items: stretch;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .ch-card:hover {
    transform: none;
    box-shadow: none;
  }
  .ch-card__cover {
    width: 132px;
    flex-shrink: 0;
    aspect-ratio: 16/11;
    border-radius: 12px;
    overflow: hidden;
  }
  .ch-card__play { opacity: 0.85; width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .ch-card__play::before {
    left: 11px;
    top: 8px;
    border-width: 6px 0 6px 9px;
  }
  .ch-card__body {
    padding: 2px 0 2px 12px;
    gap: 2px;
    min-width: 0;
  }
  .ch-card__title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    -webkit-line-clamp: unset;
  }
  .ch-card__desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    -webkit-line-clamp: unset;
  }
  .ch-card__meta { margin-top: 4px; }
  .ch-card:hover .ch-card__cover img { transform: none; }

  .ch-side-card {
    border-radius: 14px;
    background: #f8fafc;
  }
  .ch-footer { background: #fff; }
}

@media (max-width: 420px) {
  .ch-card__cover { width: 118px; }
  .ch-hero__stats { gap: 10px; }
}
