/* ============================================================
 * style.css —— 布局系统（干净重写，不复用原站样式表）
 * ------------------------------------------------------------
 * 令牌 → 容器 → 头部 → 主视觉 → 卡片族 → 网格 → 详情页 → 响应式
 * 卡片全部用 aspect-ratio 控制比例，不写死高度。
 * ============================================================ */

:root {
  /* 颜色令牌 */
  --c-bg: #05060c;
  --c-bg-soft: #0a0d16;
  --c-surface: rgba(255, 255, 255, .04);
  --c-surface-2: rgba(255, 255, 255, .07);
  --c-border: rgba(255, 255, 255, .09);
  --c-text: #f2f4fa;
  --c-muted: rgba(242, 244, 250, .58);
  --c-primary: #3f7af2;
  --c-secondary: #675ff6;
  --c-deep: #473df4;
  --grad-primary: linear-gradient(135deg, #3f7af2, #675ff6, #473df4);
  --grad-text: linear-gradient(135deg, #a1f8a6, #3f7af2);

  /* 尺寸令牌 */
  --h-header: 56px;
  --h-subnav: 47px;
  --container: 1320px;
  --gap: 24px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 8px 28px rgba(0, 0, 0, .5);
  --shadow-glow: 0 0 22px rgba(103, 95, 246, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--h-header) + var(--h-subnav));
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================ 头部（sticky 56px） ============================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--h-header);
  background: rgba(5, 6, 12, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: flex; align-items: center; height: 40px; flex-shrink: 0; }
.brand img, .brand__logo { height: 34px; width: auto; max-width: 220px; object-fit: contain; display: block; }

.site-tabs { display: flex; align-items: center; gap: 4px; }

.site-tabs a {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--c-muted);
  transition: .18s;
}
.site-tabs a:hover { color: var(--c-text); background: var(--c-surface); }
.site-tabs a.active {
  color: #fff;
  background: var(--grad-primary);
  box-shadow: var(--shadow-glow);
}
.site-tabs a .tab-badge { font-size: 10px; padding: 1px 6px; border-radius: 5px;
  background: rgba(255, 120, 90, .9); color: #fff; line-height: 1.4; }

.badge-hot {
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  background: rgba(255, 90, 120, .16);
  color: #ff7a94;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: .18s;
}
.icon-btn:hover { background: var(--c-surface-2); }

.btn-ghost, .btn-solid {
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
}
.btn-ghost {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
}
.btn-ghost:hover { color: var(--c-text); }
.btn-solid {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* ============================ 二级导航（sticky 47px） ============================ */
.secondary-nav {
  position: fixed;
  top: var(--h-header);
  inset-inline: 0;
  z-index: 80;
  height: var(--h-subnav);
  background: rgba(8, 10, 18, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}

.secondary-nav__inner {
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.secondary-nav__inner::-webkit-scrollbar { display: none; }

.nav-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--c-muted);
  white-space: nowrap;
  transition: .18s;
}
.nav-tab:hover { color: var(--c-text); }
.nav-tab.active { color: #fff; font-weight: 600; }
.nav-tab.active::after {
  content: '';
  position: absolute;
  inset: auto 12px 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
}

/* ============================ 主视觉 ============================ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-soft);
}

/* 全屏铺底大图（与原站一致：封面横铺整宽，右侧主体可见） */
.hero__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 80% 20%, #1a2540 0%, #0a0d16 62%, transparent 100%);
  pointer-events: none;
}
.hero__backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center right; opacity: .9; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 8, 16, .94) 0%, rgba(6, 8, 16, .5) 40%, rgba(6, 8, 16, .12) 72%, rgba(6, 8, 16, .38) 100%),
              linear-gradient(0deg, var(--c-bg) 1%, transparent 46%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  height: 480px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
}

.hero__content { max-width: 660px; position: relative; z-index: 2; }

.hero__title {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .3px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--c-muted);
  font-size: 13px;
}
.hero__score {
  color: #ffc45a;
  font-weight: 700;
}

.hero__play {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 30px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  transition: transform .18s;
}
.hero__play:hover { transform: translateY(-1px); }

/* 轮播左右箭头 */
.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: rgba(10, 12, 20, .55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: .18s;
}
.hero__nav:hover { background: rgba(103, 95, 246, .7); border-color: transparent; }
.hero__nav--prev { left: 24px; }
.hero__nav--next { right: 24px; }

/* 底部标题滚动条（与原站 banner 条一致） */
.hero__strip {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px 24px 22px;
  display: flex;
  gap: 12px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.strip-item {
  flex: 0 0 auto;
  padding: 7px 16px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  transition: .2s;
}
.strip-item:hover { border-color: rgba(103, 95, 246, .7); background: rgba(103, 95, 246, .12); }
.strip-item__title {
  display: block;
  font-size: 12px;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

/* ============================ 区块通用 ============================ */
.home__body { max-width: var(--container); margin-inline: auto; padding: 0 24px 40px; }

.section { padding: 28px 0; }

.section__header {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.section__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section__title::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--grad-primary);
}

.section__subtitle { margin: 0; font-size: 12px; color: var(--c-muted); }

.section__more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: 12px;
  color: var(--c-muted);
  transition: .18s;
}
.section__more:hover { color: #fff; border-color: rgba(63, 122, 242, .5); }

/* 排序 tab */
.sort-tabs { margin-left: auto; display: flex; gap: 8px; }
.sort-tabs button {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--c-muted);
  background: var(--c-surface);
  border: 1px solid transparent;
  transition: .18s;
}
.sort-tabs button.active {
  color: #fff;
  background: rgba(63, 122, 242, .18);
  border-color: rgba(63, 122, 242, .55);
}

/* ============================ 卡片族 ============================ */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.back-link:hover { opacity: .92; }

/* 通用海报卡：2:3 封面 + 渐变遮罩 + 角标 + 文案 */
.card { display: block; }

.card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: .22s;
}
.card__poster img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__poster {
  border-color: rgba(103, 95, 246, .65);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 6, 12, .92) 0%, transparent 46%);
  pointer-events: none;
}

.card__heat {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .6);
  color: #dfe6f7;
  font-size: 11px;
  backdrop-filter: blur(4px);
}

/* 名次角标 */
.card__rank {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 34px;
  padding: 6px 8px 8px;
  border-bottom-right-radius: 10px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  line-height: 1;
}
.card--rank:nth-child(1) .card__rank { background: linear-gradient(135deg, #ffcc4d, #ff8a3d); color: #2a1a00; }
.card--rank:nth-child(2) .card__rank { background: linear-gradient(135deg, #d8e2f0, #98a7bd); color: #1a2130; }
.card--rank:nth-child(3) .card__rank { background: linear-gradient(135deg, #e0a06a, #b97340); color: #2a1a0a; }

/* 榜单卡片副信息（评分 + 集数） */
.card__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--c-muted);
}
.card__score { color: #ffc45a; font-weight: 700; }

/* 右上角小标签（HD 等） */
.card__ribbon {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(63, 122, 242, .9);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
}

.card__copy { padding: 10px 2px 0; }

.card__title {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 导演卡：头像 + 身份头部，封面独立，底部按钮 */
.director-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: .22s;
}
.director-card:hover { border-color: rgba(103, 95, 246, .6); box-shadow: var(--shadow-glow); }

.director-card__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.director-card__avatar {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(103, 95, 246, .5);
}
.director-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.director-card__identity { min-width: 0; }
.director-card__name { font-size: 14px; font-weight: 600; }
.director-card__role { font-size: 12px; color: var(--c-muted); }

.director-card__cover {
  position: relative;
  aspect-ratio: 232 / 325;
  overflow: hidden;
}
.director-card__cover img { width: 100%; height: 100%; object-fit: cover; }

.director-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #2a1a00;
  background: linear-gradient(135deg, #ffcc4d, #ff9a3d);
}
.director-card__badge--nova {
  color: #04220f;
  background: linear-gradient(135deg, #a1f8a6, #4bd07a);
}

.director-card__count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .62);
  font-size: 11px;
  backdrop-filter: blur(4px);
}

.director-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 12px 12px;
  height: 38px;
  border-radius: 9px;
  background: var(--c-surface-2);
  font-size: 12px;
  color: var(--c-muted);
  transition: .18s;
}
.director-card:hover .director-card__button {
  background: var(--grad-primary);
  color: #fff;
}

/* 加载更多 */
.load-more { display: flex; justify-content: center; padding-top: 20px; }
.load-more button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 30px;
  border-radius: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  transition: .18s;
}
.load-more button:hover { color: #fff; border-color: rgba(63, 122, 242, .55); }

/* ============================ 详情页 ============================ */
.detail { max-width: var(--container); margin-inline: auto; padding: 24px; }

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
}
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.player__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 6, 12, .55);
  pointer-events: none;
}
.player__overlay span {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid var(--c-border);
  font-size: 12px;
  color: var(--c-muted);
}

.detail__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: 24px 0;
}

.detail__title { margin: 0 0 12px; font-size: 24px; line-height: 1.35; }

.detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--c-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.detail__actions { display: flex; gap: 10px; margin-bottom: 20px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag-list span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: 12px;
  color: var(--c-muted);
}

.synopsis {
  margin: 0 0 24px;
  color: var(--c-muted);
  line-height: 1.8;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episodes__title { margin: 0 0 12px; font-size: 15px; }
.episodes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
}
.episode {
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: 12px;
  color: var(--c-muted);
  transition: .18s;
}
.episode:hover, .episode.active {
  color: #fff;
  background: rgba(63, 122, 242, .18);
  border-color: rgba(63, 122, 242, .55);
}

.detail__side .panel {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
}
.panel__title { margin: 0 0 12px; font-size: 14px; font-weight: 600; }

.mini-list { display: grid; gap: 10px; }
.mini-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.mini-item__cover {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.mini-item__cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-item__title {
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================ 页脚 ============================ */
.site-footer {
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-soft);
  padding: 32px 0;
}
.site-footer__inner { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.footer-title { margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 24px; }
.footer-links a { font-size: 12px; color: var(--c-muted); }
.footer-links a:hover { color: var(--c-primary); }
.footer-copy {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--c-border);
  font-size: 12px;
  color: rgba(242, 244, 250, .38);
}

/* ============================ 响应式 ============================ */
@media (max-width: 1200px) {
  .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__inner { height: 420px; }
}

@media (max-width: 960px) {
  .site-tabs { display: none; }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__inner { height: auto; padding-block: 26px; }
  .hero__title { font-size: 24px; }
  .hero__nav { display: none; }
  .detail__body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  :root { --gap: 12px; }
  .container, .site-header__inner, .secondary-nav__inner, .hero__inner,
  .hero__strip, .home__body, .site-footer__inner, .detail { padding-inline: 14px; }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__portrait { max-width: 200px; }
  .hero__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-actions .btn-ghost { display: none; }
}

/* ============================================================
 * SPA 扩展组件 —— 页面头 / 筛选 / 分页 / 文章 / 评论 / 表单 / 播放器
 * 与上面设计系统共用同一套令牌，不引入新颜色体系
 * ============================================================ */

main { min-height: 46vh; }

.page-head { display: flex; align-items: flex-end; gap: 16px; margin: 28px 0 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: -.3px; }
.page-head p { margin: 0; color: var(--c-muted); font-size: 13px; }
.page-head .grow { flex: 1; }

.crumbs { font-size: 12px; color: var(--c-muted); margin: 22px 0 0; }
.crumbs a:hover { color: var(--c-text); }
.crumbs span { opacity: .5; margin: 0 6px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.chip {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-muted); font-size: 13px; cursor: pointer;
  transition: .16s;
}
.chip:hover { color: var(--c-text); border-color: rgba(255,255,255,.2); }
.chip.active { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-group + .chip-group { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--c-border); }

.search-mini { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--c-border); background: var(--c-surface); min-width: 240px; }
.search-mini input { flex: 1; background: none; border: 0; color: var(--c-text); outline: none; font: inherit; }
.search-mini button { color: var(--c-muted); display: grid; place-items: center; }

.empty { padding: 70px 20px; text-align: center; color: var(--c-muted); }
.empty strong { display: block; color: var(--c-text); font-size: 15px; margin-bottom: 6px; }

.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 28px 0 10px; }
.pager button { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--c-border); background: var(--c-surface); font-size: 13px; }
.pager button:disabled { opacity: .35; cursor: not-allowed; }
.pager button.active { background: var(--grad-primary); border-color: transparent; color: #fff; }
.pager .info { color: var(--c-muted); font-size: 12px; margin: 0 8px; }

/* 文章 */
.post-list { display: grid; gap: 14px; }
.post-card { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 16px; padding: 14px;
  border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface);
  transition: .18s; }
.post-card:hover { background: var(--c-surface-2); border-color: rgba(255,255,255,.16); transform: translateY(-1px); }
.post-card__cover { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--c-bg-soft); }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 { margin: 2px 0 8px; font-size: 16px; line-height: 1.35; }
.post-card p { margin: 0; color: var(--c-muted); font-size: 13px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { display: flex; gap: 12px; color: var(--c-muted); font-size: 12px; margin-top: 10px; }

.article { max-width: 820px; }
.article h1 { font-size: 27px; line-height: 1.35; margin: 0 0 12px; }
.article__meta { display: flex; gap: 14px; color: var(--c-muted); font-size: 12px; margin-bottom: 22px;
  padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.article__body { font-size: 15px; line-height: 1.9; color: rgba(242,244,250,.86); white-space: pre-wrap; }
.article__cover { aspect-ratio: 16/8; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }

/* 评论 */
.comments { margin-top: 34px; }
.comments h3 { font-size: 16px; margin: 0 0 14px; }
.comment-form { display: grid; grid-template-columns: 130px minmax(0,1fr) 90px; gap: 10px; margin-bottom: 20px; }
.comment-form input, .comment-form textarea { background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 8px; padding: 9px 12px; color: var(--c-text); font: inherit; outline: none; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--c-primary); }
.comment { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; padding: 13px 0;
  border-top: 1px solid var(--c-border); }
.comment__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-primary);
  display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.comment__head { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.comment__head time { color: var(--c-muted); font-size: 11px; }
.comment__body { margin: 5px 0 6px; font-size: 14px; line-height: 1.65; }
.comment__like { font-size: 12px; color: var(--c-muted); }
.comment__like:hover { color: var(--c-primary); }

/* 表单 / 登录 */
.form-card { width: 100%; max-width: 420px; margin: 48px auto; padding: 28px;
  border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); }
.form-card h1 { margin: 0 0 4px; font-size: 21px; }
.form-card .sub { color: var(--c-muted); font-size: 13px; margin: 0 0 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--c-muted); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; background: var(--c-bg-soft);
  border: 1px solid var(--c-border); border-radius: 8px; padding: 10px 12px; color: var(--c-text);
  font: inherit; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(63,122,242,.15); }
.form-msg { font-size: 12px; min-height: 18px; margin: 4px 0 10px; color: #ff8f8f; }
.form-msg.ok { color: #7ee2a8; }
.btn-full { width: 100%; justify-content: center; }
.link-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-muted); margin-top: 14px; }
.link-row a:hover { color: var(--c-text); }

/* 播放器 */
.player-wrap { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--c-border); }
.player-wrap video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-note { position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: rgba(242,244,250,.6); font-size: 13px; pointer-events: none; padding: 20px; }
.player-head { display: flex; gap: 12px; align-items: center; margin: 16px 0 6px; flex-wrap: wrap; }
.player-head h1 { font-size: 20px; margin: 0; }
.player-head .badge { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--c-surface-2);
  color: var(--c-muted); }

.episode-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px;
  max-height: 210px; overflow-y: auto; padding-right: 4px; }
.episode-list .episode { width: 100%; }

/* 榜单 */
.rank-rows { display: grid; gap: 8px; }
.rank-row { display: grid; grid-template-columns: 40px 56px minmax(0,1fr) 90px 70px; gap: 12px;
  align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--c-surface);
  border: 1px solid transparent; transition: .16s; }
.rank-row:hover { background: var(--c-surface-2); border-color: var(--c-border); }
.rank-row__no { font-size: 16px; font-weight: 700; color: var(--c-muted); text-align: center; }
.rank-row:nth-child(-n+3) .rank-row__no { color: #ffce6b; }
.rank-row__cover { width: 56px; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; background: var(--c-bg-soft); }
.rank-row__cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-row__title { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row__meta { font-size: 12px; color: var(--c-muted); }

/* 数据条 */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { padding: 16px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); }
.kpi b { display: block; font-size: 22px; letter-spacing: -.4px; }
.kpi span { font-size: 12px; color: var(--c-muted); }

/* 提示条 */
.notice { padding: 14px 16px; border-radius: var(--radius); background: rgba(63,122,242,.09);
  border: 1px solid rgba(63,122,242,.28); color: rgba(242,244,250,.85); font-size: 13px; line-height: 1.7; }
.notice--warn { background: rgba(255,190,90,.08); border-color: rgba(255,190,90,.3); }

.toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(12px);
  background: rgba(18,22,34,.96); border: 1px solid var(--c-border); color: var(--c-text);
  padding: 10px 18px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none;
  transition: .22s; z-index: 999; box-shadow: var(--shadow-card); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04));
  background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.grid-5--skeleton > div { aspect-ratio: 3/4; }

.two-col { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 26px; align-items: start; }
.side-panel { border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); padding: 16px; }
.side-panel h3 { margin: 0 0 12px; font-size: 14px; }

@media (max-width: 960px) {
  .two-col { grid-template-columns: minmax(0,1fr); }
  .post-card { grid-template-columns: 1fr; }
  .post-card__cover { aspect-ratio: 16/7; }
  .comment-form { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 30px 44px minmax(0,1fr) 60px; }
  .rank-row__meta:last-child { display: none; }
}

/* 品牌与卡片副标题（SPA 用到） */
.brand { gap: 9px; }
.brand__mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--grad-primary); color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow-glow); flex-shrink: 0;
}
.brand__name { font-size: 16px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }
.card__sub { margin: 3px 0 0; font-size: 12px; color: var(--c-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment__like.active { color: var(--c-primary); }

/* ============================ 资讯图片画廊 + 大图 ============================ */
.post-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 4px;
}
.post-gallery__item {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  transition: .2s;
  background: var(--c-surface);
}
.post-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.post-gallery__item:hover { border-color: rgba(103, 95, 246, .7); transform: translateY(-2px); }

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 5, 10, .92);
  display: grid;
  place-items: center;
  padding: 40px;
}
/* display:grid 会覆盖 hidden 属性，需显式隐藏，否则蒙版常驻无法关闭 */
.img-lightbox[hidden] { display: none; }
.img-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.img-lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.img-lightbox__close:hover { background: rgba(103, 95, 246, .6); }
@media (max-width: 680px) {
  .post-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 弹窗（后台可控，默认关闭） */
.popup { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 6, 12, .62); backdrop-filter: blur(3px); padding: 24px; }
.popup[hidden] { display: none; }
.popup__body { position: relative; max-width: 560px; width: 100%; max-height: 86vh; overflow: auto;
  background: #12131c; border: 1px solid rgba(103, 95, 246, .35); border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }
.popup__body:empty { display: none; }
.popup__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1;
  color: #cfd0dc; background: rgba(20, 21, 32, .9); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%; cursor: pointer; transition: background .15s, color .15s; }
.popup__close:hover { background: rgba(103, 95, 246, .5); color: #fff; }
