/* 朱砂纸卷 · 浅底直角杂志风（与墨金圆角影院模板拉开差异） */

:root {
  --bg: #f3eee4;
  --bg2: #e8e0d2;
  --card: #fffcf7;
  --ink: #1c1612;
  --text: #241c18;
  --muted: #6f665c;
  --line: #d8cec0;
  --brand: #b4232a;
  --brand-deep: #7f151c;
  --copper: #c45c26;
  --pine: #1f6f64;
  --cream: #f8f1e4;
  --radius: 4px;
  --shadow: 0 10px 28px rgba(36, 28, 24, 0.08);
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  word-break: break-word;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}
[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
}
.skip-link:focus {
  top: 8px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.crumb a {
  font-weight: 700;
  color: var(--ink);
}
.crumb a:hover {
  color: var(--brand);
}
.crumb [aria-current='page'] {
  color: var(--brand);
  font-weight: 800;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 420px at 0% 0%, rgba(180, 35, 42, 0.06), transparent 55%),
    var(--bg);
}
.app-shell > main {
  flex: 1;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.top-strip {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 0;
  padding-top: max(7px, env(safe-area-inset-top));
  color: var(--cream);
  background: var(--ink);
  border-bottom: 3px solid var(--brand);
}
.top-strip .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-top {
  border-bottom: 1px solid var(--line);
}
.header-top__inner {
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 10px 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--cream);
  background: var(--brand);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
}
.header-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.header-brand__text strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.header-brand__text span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.header-search {
  width: 100%;
  max-width: 520px;
  justify-self: center;
  display: flex;
  height: 44px;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: #fff;
  overflow: hidden;
}
.header-search:focus-within {
  outline: 2px solid rgba(180, 35, 42, 0.28);
  outline-offset: 2px;
}
.header-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 14px;
  font-size: 16px;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}
.header-search input::placeholder {
  color: #9a9084;
}
.header-search input:focus {
  outline: none;
}
.header-search button {
  flex-shrink: 0;
  border: none;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
  color: var(--cream);
  background: var(--brand);
  cursor: pointer;
}
.header-search button:hover {
  background: var(--brand-deep);
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-link-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  padding: 8px 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.header-link-btn:hover {
  color: var(--brand);
}
a.header-link-btn {
  display: inline-flex;
}
.header-reg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--cream);
  background: var(--ink);
}
.header-reg:hover {
  background: var(--brand);
}

.header-menu {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.header-nav {
  background: var(--brand);
}
.header-nav__inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 46px;
}
.header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(248, 241, 228, 0.78);
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}
.header-nav a:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.12);
}
.header-nav a.active {
  color: var(--ink);
  background: var(--cream);
}
.header-nav .nav-extra {
  display: none;
}

/* 首页分栏英雄 */
.hero-split {
  padding: 24px 0 8px;
}
.hero-split__inner {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-split__poster {
  display: block;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--line);
  min-height: 0;
}
.hero-split__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}
.hero-split__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid var(--brand);
  padding-left: 24px;
  min-width: 0;
}
.hero-cine__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.hero-cine__pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cream);
  background: var(--ink);
}
.hero-cine__scores {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-cine__rating {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hero-cine__rating-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.hero-cine__rating-label {
  font-size: 12px;
  color: var(--muted);
}
.hero-cine__dur {
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}
.hero-seo-h1 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
  color: var(--brand);
  letter-spacing: 0;
}
.hero-cine__title {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.hero-cine__director {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--copper);
  font-weight: 700;
}
.hero-cine__desc {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-cine__tags {
  margin: 0 0 22px;
  font-size: 12px;
  color: var(--pine);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.hero-cine__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-hero--primary {
  color: var(--cream);
  background: var(--brand);
}
.btn-hero--primary:hover {
  background: var(--brand-deep);
}
.btn-hero--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}
.btn-hero--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-hero--fav {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}
.btn-hero--fav.is-on {
  color: var(--brand);
  border-color: var(--brand);
  background: rgba(180, 35, 42, 0.08);
}

.home-sections {
  padding: 28px 0 56px;
}

.section-head {
  text-align: left;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-head--row {
  text-align: left;
}
.section-head--tight {
  text-align: left;
  margin-bottom: 18px;
}
.section-head--tight h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.section-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}
.section-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 640px;
}
.section-head--row .section-sub {
  max-width: none;
}

/* 精选：四列等高竖海报，避免侧卡大块留白 */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pick-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pick-card--lead {
  grid-row: auto;
}
.pick-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg2);
}
.pick-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.pick-card:hover .pick-card__cover img {
  transform: scale(1.04);
}
.pick-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 8px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--cream);
  background: var(--pine);
}
.pick-card__score {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 900;
  color: var(--cream);
  background: var(--brand);
}
.pick-card__body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pick-card__line {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pick-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pick-card h3 a:hover {
  color: var(--brand);
}
.pick-card__more {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
}

.section-more {
  text-align: left;
  margin-top: 22px;
}
.link-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--cream);
  background: var(--ink);
}
.link-more:hover {
  background: var(--brand);
}

.block-cats {
  margin-top: 48px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  counter-reset: cat;
}
.cat-tile {
  counter-increment: cat;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px 18px;
  border-radius: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  background: var(--card);
  position: relative;
}
.cat-tile::before {
  content: counter(cat, decimal-leading-zero);
  font-size: 28px;
  font-weight: 800;
  color: rgba(180, 35, 42, 0.22);
  line-height: 1;
}
.cat-tile:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.cat-tile:hover .cat-tile__sub,
.cat-tile:hover .cat-tile__stats,
.cat-tile:hover .cat-tile__go {
  color: rgba(248, 241, 228, 0.72);
}
.cat-tile h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}
.cat-tile__sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.cat-tile__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: #8a8074;
}
.cat-tile__go {
  margin-top: auto;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
}

.stats-strip {
  margin: 40px 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.stats-strip__item {
  padding: 8px 24px 8px 0;
  border-right: 1px solid var(--line);
}
.stats-strip__item:last-child {
  border-right: none;
  padding-right: 0;
}
.stats-strip__item:not(:first-child) {
  padding-left: 24px;
}
.stats-strip__item strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.stats-strip__item span {
  font-size: 13px;
  color: var(--muted);
}

.block-latest {
  margin-top: 8px;
}
.latest-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.latest-tabs__btn {
  padding: 10px 16px;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: -1px;
}
.latest-tabs__btn.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: transparent;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.latest-poster {
  background: var(--card);
  border: 1px solid var(--line);
}
.latest-poster__cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg2);
}
.latest-poster__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.latest-poster__badge {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  color: var(--cream);
  background: var(--pine);
}
.latest-poster__body {
  padding: 10px 10px 12px;
}
.latest-poster__ep {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--copper);
}
.latest-poster h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-poster h3 a:hover {
  color: var(--brand);
}
.latest-poster__meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
}

.latest-hints {
  list-style: none;
  margin: 28px 0 0;
  padding: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  border-top: 1px solid var(--line);
}
.latest-hints li {
  padding: 0 24px 0 0;
  border-right: 1px solid var(--line);
  margin: 0;
}
.latest-hints li:last-child {
  border-right: none;
  padding-right: 0;
}
.latest-hints strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--ink);
}
.latest-hints span {
  font-size: 12px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 16px;
}
.card-grid--related,
.card-grid--catalog {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.video-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}
.video-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg2);
  display: block;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.video-card:hover .video-thumb img {
  transform: scale(1.05);
}
.tag-left,
.tag-time {
  position: absolute;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  padding: 3px 7px;
  border-radius: 0;
}
.tag-left {
  top: 0;
  left: 0;
  background: var(--pine);
}
.tag-time {
  bottom: 0;
  right: 0;
  top: auto;
  background: var(--ink);
}
.video-body {
  padding: 10px 10px 12px;
}
.video-body h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.related-block .section-head--tight h2 {
  font-size: 20px;
}

.inner-page {
  padding: 24px 0 48px;
}

.page-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 22px;
  margin-bottom: 16px;
}
.page-panel--flush {
  padding: 8px 0 0;
  background: transparent;
  border: none;
}

.page-head-panel .section-title h1,
.section-title.left-title h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}
.page-head-panel .section-title p,
.section-title.left-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.cat-head {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cat-head h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
}
.cat-head > p {
  margin: 0;
  color: var(--muted);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.filter-chip {
  padding: 8px 16px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--card);
}
.filter-chip:hover,
.filter-chip.active,
.filter-chip.is-active {
  background: var(--brand);
  color: var(--cream);
  border-color: var(--brand);
}

.search-empty {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.detail-page {
  padding-bottom: 32px;
}
.detail-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: var(--card);
}
.detail-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 24px;
  padding: 24px;
}
.detail-hero__cover {
  overflow: hidden;
  border: 1px solid var(--line);
}
.detail-hero__cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.detail-hero__body h1 {
  margin: 10px 0 12px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
}
.detail-hero__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.pill-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  height: auto;
  padding: 4px 10px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--cream);
  background: var(--ink);
  border: none;
  line-height: 1.45;
  max-width: min(100%, 520px);
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.detail-tags span {
  padding: 4px 10px;
  border-radius: 0;
  font-size: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--bg);
}
.detail-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 0;
  font-weight: 800;
  color: var(--cream);
  background: var(--brand);
  border: none;
  cursor: pointer;
}
.primary-btn:hover {
  background: var(--brand-deep);
}
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 0;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--ink);
  background: transparent;
}
.ghost-btn:hover {
  background: var(--ink);
  color: var(--cream);
}

.detail-info-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.detail-info-grid div {
  padding: 14px;
  border-radius: 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  background: var(--bg);
}
.detail-info-grid span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}
.detail-info-grid strong {
  font-size: 14px;
  line-height: 1.5;
}

.play-page {
  padding-bottom: 32px;
}
.player-head-simple {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.player-head-simple h1 {
  margin: 8px 0 0;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  max-height: min(56.25vw, calc(100vh - 220px));
  max-height: min(56.25vw, calc(100dvh - 220px));
  border: 1px solid var(--ink);
}
.video-el {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.play-info-section {
  margin-top: 18px;
  padding: 18px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--bg);
}
.play-info-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}
.play-info-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.play-info-desc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.auth-page {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 16px;
}
.auth-card {
  width: min(400px, 100%);
  padding: 0 28px 28px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.auth-card::before {
  content: '';
  display: block;
  height: 6px;
  background: var(--brand);
  margin: 0 -28px 22px;
}
.auth-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
}
.auth-field {
  margin-bottom: 14px;
}
.auth-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.auth-field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0 12px;
  font-size: 16px;
  background: #fff;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}
.auth-field input:focus {
  outline: 2px solid rgba(180, 35, 42, 0.28);
  outline-offset: 1px;
}
.auth-submit {
  width: 100%;
  margin-top: 6px;
}
.auth-err {
  color: var(--brand);
  font-size: 13px;
  margin: 0 0 10px;
}
.auth-switch {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.auth-switch a {
  color: var(--brand);
  font-weight: 800;
}

.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: var(--cream);
  padding: 0;
  border-top: 6px solid var(--brand);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 36px 0 28px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.footer-col h3 {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(248, 241, 228, 0.55);
  font-weight: 800;
}
.footer-col--brand strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}
.footer-col--brand p,
.footer-col p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(248, 241, 228, 0.7);
}
.footer-col nav,
.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: rgba(248, 241, 228, 0.82);
}
.footer-col a:hover {
  color: #fff;
}
.footer-copy {
  margin: 0;
  padding: 14px 0 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(248, 241, 228, 0.12);
  font-size: 12px;
  color: rgba(248, 241, 228, 0.45);
}

@media (max-width: 1100px) {
  .pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cat-grid,
  .latest-grid,
  .card-grid--related,
  .card-grid--catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-split__inner {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-top__inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .header-menu {
    display: inline-flex;
    align-items: center;
  }
  .header-search {
    grid-column: 1 / -1;
    max-width: none;
    justify-self: stretch;
  }
  .header-auth {
    display: none;
  }
  .header-nav {
    display: none;
  }
  .header-nav.is-open {
    display: block;
  }
  .header-nav__inner {
    flex-direction: column;
    padding: 8px 0 12px;
  }
  .header-nav a {
    height: 42px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    justify-content: flex-start;
  }
  .header-nav .nav-extra {
    display: inline-flex;
  }
  .header-nav .header-link-btn.nav-extra {
    display: inline-flex;
    color: var(--cream);
    height: 42px;
  }
  .hero-split__inner {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .hero-split__poster {
    max-width: 200px;
  }
  .hero-split__copy {
    border-left: none;
    border-top: 4px solid var(--brand);
    padding-left: 0;
    padding-top: 16px;
  }
  .pick-grid,
  .cat-grid,
  .stats-strip,
  .latest-hints,
  .latest-grid,
  .card-grid--related,
  .card-grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-strip__item,
  .latest-hints li {
    border-right: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .stats-strip__item:not(:first-child) {
    padding-left: 0;
  }
  .latest-hints li {
    padding-right: 0;
  }
  .detail-hero__inner {
    grid-template-columns: 1fr;
  }
  .detail-hero__cover {
    max-width: 180px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 480px) {
  .hero-cine__rating-num {
    font-size: 28px;
  }
  .cat-grid,
  .stats-strip,
  .latest-hints {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pick-card__cover img,
  .video-thumb img {
    transition: none;
  }
  .pick-card:hover .pick-card__cover img,
  .video-card:hover .video-thumb img {
    transform: none;
  }
}
