/* ==========================================================================
   前台样式
   骨架:一条顶栏 + 全宽海报墙。深墨黑底,海报是唯一光源。
   依赖 tokens.css 中的变量与基础层。
   ========================================================================== */

/* ==========================================================================
   1. 走片进度线 —— 全站页顶一条琥珀细线,随滚动增长,像放映机走片
   ========================================================================== */
.reel-line {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
}
.reel-line > i {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 60%, #FFF3D6 100%);
  box-shadow: 0 0 10px rgba(232, 180, 74, .45);
}

/* ==========================================================================
   2. 顶栏
   ========================================================================== */
.site-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar-h);
  border-bottom: 1px solid transparent;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.site-bar.is-stuck {
  background: rgba(13, 12, 10, .88);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom-color: var(--line-soft);
}

.site-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.2rem);
  height: 100%;
}

/* 站点标识 */
.brand {
  display: flex;
  align-items: center;
  gap: .58rem;
  flex: none;
  font-family: var(--f-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand:hover { color: var(--paper); }
.brand__mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  flex: none;
  border-radius: 2px;
  background: var(--gold);
  color: #14120D;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

/* 主导航 */
.bar-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.9rem);
}
.nav-link {
  position: relative;
  padding: .35em 0;
  font-size: .9rem;
  color: var(--paper-2);
  transition: color var(--t) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t) var(--ease);
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--paper); }

/* 类型下拉:原生 details,无 JS 依赖 */
.nav-drop { position: relative; }
.nav-drop > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .35em;
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::marker { content: ""; }
.nav-drop[open] > summary { color: var(--paper); }
.nav-drop__caret {
  font-size: .55em;
  transform: translateY(-1px);
  transition: transform var(--t) var(--ease);
}
.nav-drop[open] .nav-drop__caret { transform: rotate(180deg); }
.nav-drop__menu {
  position: absolute;
  top: calc(100% + .85rem);
  left: -.9rem;
  min-width: 190px;
  padding: .55rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .1rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  z-index: 10;
}
.nav-drop__menu a {
  padding: .38em .6em;
  border-radius: 2px;
  font-size: .84rem;
  color: var(--paper-2);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.nav-drop__menu a:hover { background: var(--ink-3); color: var(--gold); }

/* 顶栏搜索 */
.bar-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .45rem;
  width: clamp(180px, 22vw, 250px);
  padding: .34em .7em;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.bar-search:focus-within { border-color: var(--gold); background: var(--ink-3); }
.bar-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font-size: .86rem;
}
.bar-search input::placeholder { color: #5F5748; }
.bar-search button {
  flex: none;
  display: grid;
  place-items: center;
  padding: .15em;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  transition: color var(--t) var(--ease);
}
.bar-search button:hover { color: var(--gold); }

.bar-admin {
  flex: none;
  font-size: .82rem;
  color: var(--muted);
}
.bar-admin:hover { color: var(--gold); }

/* 汉堡按钮 */
.bar-toggle {
  display: none;
  width: 34px; height: 34px;
  flex: none;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
}
.bar-toggle > span,
.bar-toggle > span::before,
.bar-toggle > span::after {
  display: block;
  width: 15px; height: 1.5px;
  background: var(--paper);
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.bar-toggle > span::before,
.bar-toggle > span::after { content: ""; position: relative; }
.bar-toggle > span::before { top: -5px; }
.bar-toggle > span::after  { top: 3.5px; }
.bar-toggle.is-open > span { background: transparent; }
.bar-toggle.is-open > span::before { transform: rotate(45deg); top: 0; }
.bar-toggle.is-open > span::after  { transform: rotate(-45deg); top: -1.5px; }

/* ==========================================================================
   3. 首屏 —— 整幅背景大图,影片名压在左下
   ========================================================================== */
.stage {
  position: relative;
  min-height: clamp(400px, 72vh, 640px);
  display: flex;
  align-items: flex-end;
  margin-top: calc(var(--bar-h) * -1);
  padding-top: var(--bar-h);
  overflow: hidden;
}
.stage__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
/* 两层遮罩:一层压暗整体,一层从底部并入页底色,让影片名读得清 */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,12,10,.62) 0%, rgba(13,12,10,.28) 32%, rgba(13,12,10,.82) 74%, var(--ink) 100%);
}
.stage__inner {
  position: relative;
  width: 100%;
  padding-block: clamp(2rem, 5vw, 3.6rem);
}

.stage__title {
  font-size: clamp(2.1rem, 6.2vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.06;
  margin-block: .5rem .7rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
}
.stage__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-mono);
  font-size: .84rem;
  color: var(--paper-2);
}
.stage__meta .dot { color: var(--gold); }
.stage__meta .score { color: var(--gold); font-weight: 700; }
.stage__summary {
  max-width: 58ch;
  margin-top: .85rem;
  font-size: .95rem;
  color: var(--paper-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.5rem;
}

/* ==========================================================================
   4. 区块骨架
   ========================================================================== */
.sec { margin-top: clamp(2.6rem, 5.5vw, 4.2rem); }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  padding-bottom: .85rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.sec-head__title { min-width: 0; font-size: clamp(1.15rem, 2.3vw, 1.5rem); }
.sec-head__en { flex: none; }
.sec-head__more {
  margin-left: auto;
  flex: none;
  font-size: .82rem;
  color: var(--muted);
  transition: color var(--t) var(--ease);
}
.sec-head__more:hover { color: var(--gold); }

/* ==========================================================================
   5. 海报卡片
   ========================================================================== */
.poster-card { position: relative; }

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--ink-3);
  border: 1px solid var(--line-soft);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.poster__void {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: #3A3222;
  background: linear-gradient(150deg, #1C1913 0%, #14120D 100%);
}

/* 曝光条:线长即评分。是数据,不是装饰 */
.poster__gauge {
  position: absolute;
  z-index: 1;
  left: 0; bottom: 0;
  height: 3px;
  width: calc(var(--v, 0) * 1%);
  max-width: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 100%);
  transition: height var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent 0%, rgba(13,12,10,.72) 100%);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
  pointer-events: none;
}

/* 悬停时升起的播放钮 */
.poster__play {
  position: absolute;
  z-index: 1;
  left: 50%; bottom: 14px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #14120D;
  font-size: .78rem;
  padding-left: 2px;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.poster-card:hover .poster { border-color: var(--gold-line); transform: translateY(-3px); }
.poster-card:hover .poster img { transform: scale(1.05); }
.poster-card:hover .poster::after { opacity: 1; }
.poster-card:hover .poster__play { opacity: 1; transform: translate(-50%, 0); }
.poster-card:hover .poster__gauge { height: 5px; box-shadow: 0 0 14px rgba(232, 180, 74, .55); }

.poster-card__row {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  margin-top: .6rem;
}

.poster-card__title {
  flex: 1;
  min-width: 0;
  font-family: var(--f-body);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t) var(--ease);
}
.poster-card:hover .poster-card__title { color: var(--gold); }

.poster-card__meta {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: .18rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--muted);
}
.poster-card__meta .dot { color: #4A4234; }
.poster-card__score { flex: none; color: var(--gold); }

/* ==========================================================================
   6. 横向海报行
   ========================================================================== */
/* 横向海报行:严格收在容器内滚动,不向屏幕外溢出 */
.rail {
  display: flex;
  gap: clamp(.8rem, 1.7vw, 1.15rem);
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: .4rem 1.1rem;
  scroll-snap-type: x proximity;
  cursor: grab;
  scrollbar-width: none;
  /* 右边缘渐隐,提示这一行还能继续横向滑动 */
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent);
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail > * {
  flex: 0 0 clamp(150px, 12vw, 192px);
  scroll-snap-align: start;
}

/* ==========================================================================
   7. 影片墙(列表 / 搜索结果)
   ========================================================================== */
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(182px, 45vw), 1fr));
  gap: clamp(1rem, 2.2vw, 1.7rem) clamp(.8rem, 1.6vw, 1.3rem);
}

/* ==========================================================================
   8. 页头、面包屑、类型胶囊
   ========================================================================== */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  padding-top: 1.4rem;
  font-size: .78rem;
  color: var(--muted);
}
.crumbs .sep { color: #453D2E; }
.crumbs a:hover { color: var(--gold); }

.page-head {
  padding-top: clamp(1.4rem, 3.4vw, 2.6rem);
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 1.8rem;
}
.page-head__title {
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  letter-spacing: -.02em;
  font-weight: 900;
}
.page-head__sub {
  margin-top: .45rem;
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--muted);
}

.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.2rem;
}
.kinds a {
  padding: .3em .85em;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .82rem;
  color: var(--paper-2);
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease),
              background var(--t) var(--ease);
}
.kinds a:hover { border-color: var(--gold-line); color: var(--gold); background: var(--gold-a); }
.kinds a.is-active { background: var(--gold); border-color: var(--gold); color: #14120D; }

/* ---- 筛选区(全部影片页) ---- */
.filters {
  padding: .3rem 1.2rem .5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: rgba(20, 18, 13, .45);
}

.filter-row {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: .75rem 0;
}
.filter-row + .filter-row { border-top: 1px solid var(--line-soft); }

.filter-row__label {
  flex: none;
  width: 3em;
  font-size: .82rem;
  color: var(--muted);
}

.filter-row__opts {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}

.opt-chip {
  display: inline-flex;
  align-items: baseline;
  gap: .35em;
  padding: .24em .75em;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .82rem;
  color: var(--paper-2);
  white-space: nowrap;
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease);
}
.opt-chip:hover { background: var(--ink-3); color: var(--paper); }
.opt-chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #14120D;
  font-weight: 600;
}
/* 选项后面的影片数量 */
.opt-chip i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: .68rem;
  opacity: .45;
}
.opt-chip.is-active i { opacity: .65; }

/* 「更多」折叠:外层 span 用 display:contents,否则它会变成一个 flex 项撑开布局 */
.filter-row__extra { display: contents; }
.filter-row__extra[hidden] { display: none; }

.filter-more {
  padding: .24em .6em;
  border: 0;
  border-radius: 100px;
  background: none;
  font-family: var(--f-body);
  font-size: .78rem;
  color: var(--gold);
  cursor: pointer;
  transition: background var(--t) var(--ease);
}
.filter-more:hover { background: var(--gold-a); }

/* ==========================================================================
   9. 分页
   ========================================================================== */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.pager a,
.pager span {
  padding: .5em 1.1em;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: .84rem;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.pager a:hover { border-color: var(--gold-line); color: var(--gold); }
.pager .count {
  border: 0;
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--muted);
}
.pager .disabled { color: #4A4234; border-color: var(--line-soft); }

/* ==========================================================================
   10. 排行榜
   ========================================================================== */
.chart {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chart__row + .chart__row { border-top: 1px solid var(--line-soft); }

.chart__link {
  display: grid;
  grid-template-columns: 2.4rem 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  padding: .62rem .5rem;
  border-radius: var(--r);
  transition: background var(--t) var(--ease);
}
.chart__link > span { min-width: 0; }
.chart__link:hover { background: var(--ink-2); }

.chart__no {
  font-family: var(--f-mono);
  font-size: .92rem;
  color: var(--muted);
  text-align: right;
}
.chart__row:nth-child(-n+3) .chart__no { color: var(--gold); font-weight: 700; }

.chart__thumb {
  width: 42px; height: 60px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--line-soft);
  background: var(--ink-3);
}
.chart__thumb--void {
  display: grid;
  place-items: center;
  color: #3A3222;
  font-family: var(--f-display);
  font-size: 1.1rem;
}

.chart__name { font-size: .9rem; font-weight: 600; display: block; }
.chart__link:hover .chart__name { color: var(--gold); }
.chart__meta { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }

.chart__val {
  font-family: var(--f-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* 排行榜:三榜并排,一页看全 */
.charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 2.6vw, 2.6rem);
  align-items: start;
}

.chart-col__head {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding-bottom: .7rem;
  margin-bottom: .8rem;
  border-bottom: 1px solid var(--line-soft);
}
.chart-col__title { font-size: 1.15rem; }

@media (max-width: 1120px) {
  .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .charts { grid-template-columns: 1fr; }
}

/* ==========================================================================
   11. 详情页
   ========================================================================== */
.film-hero {
  position: relative;
  margin-top: calc(var(--bar-h) * -1);
  padding-top: var(--bar-h);
  overflow: hidden;
}
.film-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.film-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,12,10,.66) 0%, rgba(13,12,10,.34) 30%, rgba(13,12,10,.9) 78%, var(--ink) 100%);
}
.film-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 264px) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.4rem, 3.4vw, 3.2rem);
  padding-block: clamp(2rem, 4.6vw, 3.4rem);
}

.film-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(232, 180, 74, .22);
  box-shadow: var(--shadow);
  background: var(--ink-3);
}
.film-poster img { width: 100%; height: 100%; object-fit: cover; }
.film-poster__void {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 3rem;
  color: #3A3222;
}

.film-title {
  font-size: clamp(1.8rem, 4.8vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-top: .55rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .55);
}
.film-original {
  margin-top: .4rem;
  font-family: var(--f-mono);
  font-size: .82rem;
  color: var(--muted);
}

.film-score {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-top: 1rem;
}
.film-score__num {
  font-family: var(--f-mono);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.film-score__of { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }

.film-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1.1rem;
}
.film-tags a,
.film-tags span {
  padding: .22em .7em;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .78rem;
  color: var(--paper-2);
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.film-tags a:hover { border-color: var(--gold-line); color: var(--gold); }

.film-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.5rem;
}

/* 简介正文 */
.prose {
  max-width: 74ch;
  font-size: .95rem;
  line-height: 1.9;
  color: var(--paper-2);
}

/* 资料表 */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  margin: 0;
  border-top: 1px solid var(--line-soft);
}
.facts > div {
  display: flex;
  gap: .9rem;
  padding: .78rem .2rem;
  border-bottom: 1px solid var(--line-soft);
}
.facts dt {
  flex: none;
  width: 4.2em;
  font-size: .8rem;
  color: var(--muted);
}
.facts dd { margin: 0; font-size: .88rem; }

/* 演职员 */
.cast {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 30vw), 1fr));
  gap: 1.3rem 1rem;
}
.cast__item { text-align: center; }
.cast__face {
  width: 84px; height: 84px;
  margin: 0 auto .55rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-3);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 1.7rem;
  color: #4A4234;
  transition: border-color var(--t) var(--ease);
}
.cast__face img { width: 100%; height: 100%; object-fit: cover; }
.cast__item:hover .cast__face { border-color: var(--gold-line); }
.cast__name { font-size: .82rem; font-weight: 600; display: block; }
.cast__item:hover .cast__name { color: var(--gold); }
.cast__role {
  display: block;
  margin-top: .12rem;
  font-size: .72rem;
  color: var(--muted);
  font-style: normal;
}

/* 制作团队 */
.crew {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  margin: 0;
}
.crew > div {
  display: flex;
  gap: .8rem;
  padding: .6rem .2rem;
  border-bottom: 1px solid var(--line-soft);
}
.crew dt { flex: 0 0 auto; min-width: 4em; font-size: .78rem; color: var(--muted); }
.crew dd { margin: 0; font-size: .85rem; }

/* 剧照 */
.stills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(248px, 44vw), 1fr));
  gap: .8rem;
}
.still {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background: none;
  cursor: zoom-in;
  transition: transform var(--t) var(--ease);
}
.still img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  transition: border-color var(--t) var(--ease);
}
.still:hover { transform: scale(1.02); }
.still:hover img { border-color: var(--gold-line); }

/* 剧照放大层:点任意空白处或按 Esc 关闭 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  /* 用 flex 而不是 grid:grid 在 auto 轨道下 align-content 相当于 start,
     图片会靠上不居中;flex 的 align/justify 双居中更直接 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 7, 5, .93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
  animation: lightbox-in .22s var(--ease);
}
.lightbox[hidden] { display: none; }
/* 图片最多占视口的 80%,超出就按原比例缩下来;比 80% 小的维持原尺寸不放大。
   这里只用 vw / vh,不掺百分比 —— 原先写成 min(80vw, 100%) 时,百分比在
   auto 尺寸的网格轨道里形成循环依赖,整条声明被浏览器丢掉,大图直接铺到
   屏幕外面。flex: 0 0 auto 保证不被拉伸或压缩。 */
.lightbox img {
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  border-radius: var(--r);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .8);
  cursor: default;
}

/* 右上角关闭 */
.lightbox__close {
  position: absolute;
  z-index: 1;
  top: clamp(1rem, 3vw, 2.2rem);
  right: clamp(1rem, 3vw, 2.2rem);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(237, 230, 214, .22);
  border-radius: 50%;
  background: rgba(13, 12, 10, .6);
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease),
              color var(--t) var(--ease), transform var(--t) var(--ease);
}
.lightbox__close:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #14120D;
  transform: scale(1.06);
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 片段入口 */
.clips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(224px, 46vw), 1fr));
  gap: .7rem;
}
.clips a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .68em .9em;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: .84rem;
  color: var(--paper-2);
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), background var(--t) var(--ease);
}
.clips a:hover { border-color: var(--gold-line); color: var(--gold); background: var(--gold-a); }
.clips .play-ico { color: var(--gold); font-size: .7em; }

/* ==========================================================================
   12. 人物页
   ========================================================================== */
.person-head {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2rem);
  padding-block: clamp(1.6rem, 3.6vw, 2.6rem);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 1.9rem;
}
.person-head__face {
  width: clamp(88px, 16vw, 132px);
  aspect-ratio: 1;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-3);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 2.6rem;
  color: #4A4234;
}
.person-head__face img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   13. 播放页
   ========================================================================== */
/* 放映厅:整幅播放器 + 一圈放映机打出的光晕 */
.cinema { padding-top: clamp(1rem, 2.6vw, 1.8rem); }

/* 银幕跟着容器放大。16:9 下宽度直接决定高度,所以要有个止损:
   取「容器宽」和「视口高的 92% 折算出的宽度」里较小的那个 ——
   2K 屏上会铺满整个容器,矮屏上按高度收一点,不至于要滚动才看得全。
   (原先这里写死 1400px 上限,在 1080p 屏上折算出来恰好等于旧容器
    1320 的可用宽度,于是容器放宽了播放器却纹丝不动。) */
.cinema__head,
.cinema__frame,
.cinema__controls,
.cinema .notice {
  max-width: min(100%, calc(92vh * 16 / 9));
  margin-inline: auto;
}
.cinema .notice { margin-top: 1.1rem; }

.cinema__head { margin-bottom: 1.3rem; }
.cinema__title {
  margin-top: .35rem;
  font-size: clamp(1.6rem, 4.2vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.14;
}
.cinema__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-top: .6rem;
  font-family: var(--f-mono);
  font-size: .82rem;
  color: var(--paper-2);
}
.cinema__meta .dot { color: var(--gold); }
.cinema__meta .score { color: var(--gold); font-weight: 700; }

.cinema__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(232, 180, 74, .16);
  box-shadow:
    0 30px 90px -24px rgba(232, 180, 74, .14),
    0 40px 100px -30px rgba(0, 0, 0, .9);
}
.cinema__frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* 无线路时的占位:仍是同一块银幕,只是黑的 */
.cinema__frame--empty {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
}
.cinema__off { padding: 2rem 1.5rem; text-align: center; }
.cinema__off h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.cinema__off p { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }

.cinema__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2.2rem;
  margin-top: 1.3rem;
}
.cinema__controls .lines { flex: 1 1 auto; max-width: none; margin: 0; }

/* 播放页下方的影片信息:海报 + 简介资料并排 */
.film-brief {
  display: grid;
  grid-template-columns: minmax(0, 176px) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
}
.film-brief__poster {
  aspect-ratio: 2 / 3;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--ink-3);
}
.film-brief__poster img { width: 100%; height: 100%; object-fit: cover; }
.film-brief__body > .facts { margin-top: 1.2rem; }
/* 没有海报时不要留一个空列 */
.film-brief--solo { grid-template-columns: minmax(0, 1fr); }

.lines {
  max-width: 980px;
  margin: 1.4rem auto 0;
}
.lines__label {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}
.lines__row { display: flex; flex-wrap: wrap; gap: .5rem; }

.opt {
  padding: .42em 1em;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink-2);
  font-size: .84rem;
  color: var(--paper-2);
  cursor: pointer;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), background var(--t) var(--ease);
}
.opt:hover { border-color: var(--gold-line); color: var(--gold); }
.opt.is-active { background: var(--gold); border-color: var(--gold); color: #14120D; font-weight: 600; }

/* 线路不稳时如实说明,不安慰 */
.notice {
  max-width: 980px;
  margin: 1.2rem auto 0;
  padding: .8em 1.1em;
  border-left: 2px solid var(--gold);
  background: var(--gold-a);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: .84rem;
  color: var(--paper-2);
}

/* ==========================================================================
   14. 错误页
   ========================================================================== */
.errpage {
  min-height: 62vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: .8rem;
  padding: 4rem 1rem;
}
.errpage__code {
  font-family: var(--f-mono);
  font-size: clamp(3.4rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -.03em;
}
.errpage__text { color: var(--muted); max-width: 40ch; margin-inline: auto; }
.errpage__actions { display: flex; gap: .7rem; justify-content: center; margin-top: .6rem; flex-wrap: wrap; }

/* ==========================================================================
   15. 页脚
   ========================================================================== */
.site-foot {
  margin-top: clamp(3.4rem, 7vw, 5.5rem);
  padding-block: 2.4rem 2.8rem;
  border-top: 1px solid var(--line-soft);
}
.foot-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .9rem;
  margin-bottom: 1.4rem;
}
.foot-kinds a {
  font-size: .78rem;
  color: var(--muted);
  transition: color var(--t) var(--ease);
}
.foot-kinds a:hover { color: var(--gold); }

.foot-copy {
  font-size: .76rem;
  line-height: 1.9;
  color: #5F5748;
}
.foot-copy a { color: #5F5748; }
.foot-copy a:hover { color: var(--gold); }

/* 搜索页大输入框 */
.searchbox {
  display: flex;
  gap: .6rem;
  margin-top: 1.3rem;
  max-width: 640px;
}
.searchbox .input { flex: 1; padding: .78em 1.1em; font-size: 1rem; }

/* ==========================================================================
   16. 响应式
   ========================================================================== */
@media (max-width: 1000px) {
  .film-hero__inner { grid-template-columns: minmax(0, 168px) minmax(0, 1fr); }
}

@media (max-width: 940px) {
  .bar-toggle { display: grid; }

  /* 导航收成全屏面板 */
  .bar-nav {
    position: fixed;
    inset: var(--bar-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--pad) 1.6rem;
    background: rgba(13, 12, 10, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
    max-height: calc(100vh - var(--bar-h));
    overflow-y: auto;
  }
  .bar-nav.is-open { opacity: 1; transform: none; visibility: visible; }

  .nav-link { padding: .8em 0; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
  .nav-link::after { display: none; }

  .nav-drop { border-bottom: 1px solid var(--line-soft); }
  .nav-drop > summary { padding: .8em 0; font-size: 1rem; }
  .nav-drop__menu {
    position: static;
    min-width: 0;
    padding: 0 0 .6rem;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-drop__menu a { padding: .45em .6em; font-size: .9rem; }

  .bar-search { display: none; }
  .bar-admin { display: none; }
}

@media (max-width: 620px) {
  .stage { min-height: 74vh; }
  .stage__summary { display: none; }

  /* 筛选器改成标签在上、选项在下 */
  .filter-row { flex-direction: column; align-items: stretch; gap: .5rem; }
  .filter-row__label { width: auto; }
  .filters { padding-inline: .9rem; }

  .film-brief { grid-template-columns: minmax(0, 1fr); }
  .film-brief__poster { max-width: 132px; }
  .cinema__controls { gap: 1rem; }

  .film-hero__inner {
    grid-template-columns: minmax(0, 124px) minmax(0, 1fr);
    align-items: center;
    gap: 1.1rem;
  }
  .film-title { font-size: 1.5rem; }
  .film-score { margin-top: .6rem; }
  .film-tags { margin-top: .7rem; }
  .film-actions .btn { flex: 1; }

  .chart__link { grid-template-columns: 1.9rem 36px 1fr auto; gap: .6rem; }
  .chart__thumb { width: 36px; height: 52px; }

  .facts { grid-template-columns: 1fr; }
  .crew { grid-template-columns: 1fr; }

  .cast__face { width: 68px; height: 68px; font-size: 1.4rem; }
}
