@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700;800&display=swap");

:root {
  --red-950: #2a0505;
  --red-900: #450a0a;
  --red-800: #7f1d1d;
  --red-700: #991b1b;
  --red-600: #b91c1c;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --orange-50: #fff7ed;
  --paper: #fffaf0;
  --ink: #2b1608;
  --muted: #7c5a37;
  --line: rgba(127, 29, 29, 0.18);
  --shadow: 0 20px 50px rgba(69, 10, 10, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 42%, #fff 100%);
  color: var(--ink);
  font-family: "Noto Serif SC", "Microsoft YaHei", "PingFang SC", serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.9);
  border-bottom: 1px solid rgba(127, 29, 29, 0.18);
  box-shadow: 0 12px 30px rgba(69, 10, 10, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red-900);
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--amber-100);
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(153, 27, 27, 0.28);
}

.brand-text {
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: var(--red-900);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: var(--red-600);
}

.header-search {
  position: relative;
  width: 220px;
}

.site-search-input,
.local-filter-input {
  width: 100%;
  border: 1px solid rgba(127, 29, 29, 0.18);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--red-950);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search-input:focus,
.local-filter-input:focus {
  border-color: rgba(185, 28, 28, 0.5);
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.12);
  background: #fff;
}

.site-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-height: 430px;
  overflow: auto;
  padding: 10px;
  background: rgba(255, 250, 240, 0.98);
  border: 1px solid rgba(127, 29, 29, 0.18);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover {
  background: rgba(254, 243, 199, 0.9);
  transform: translateY(-1px);
}

.search-result-item img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result-item strong {
  display: block;
  color: var(--red-900);
  font-size: 15px;
  line-height: 1.35;
}

.search-result-item span,
.search-result-empty {
  color: var(--muted);
  font-size: 13px;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--red-900);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

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

.mobile-search {
  position: relative;
  margin-bottom: 14px;
}

.mobile-nav {
  display: grid;
  gap: 10px;
}

.hero-section {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--red-950);
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.03);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(252, 211, 77, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(42, 5, 5, 0.9), rgba(69, 10, 10, 0.72) 48%, rgba(42, 5, 5, 0.28)),
    linear-gradient(0deg, rgba(42, 5, 5, 0.74), transparent 42%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 108px;
  width: min(720px, calc(100% - 48px));
  color: #fff;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 12px;
  color: var(--amber-300);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.04;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #fff7d6;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  border: 1px solid rgba(252, 211, 77, 0.35);
  border-radius: 999px;
  padding: 6px 11px;
  color: #fff5c4;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-button,
.glass-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  box-shadow: 0 16px 30px rgba(185, 28, 28, 0.32);
}

.glass-button {
  color: #fffbe7;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.primary-button:hover,
.glass-button:hover,
.section-link:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover,
.rank-list-item:hover {
  transform: translateY(-3px);
}

.hero-controls {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 52px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 64px;
  background: var(--amber-300);
}

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

.section-rise {
  position: relative;
  z-index: 4;
  margin-top: -38px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head h2,
.page-hero-content h1,
.detail-info h1,
.article-card h2 {
  margin: 0;
  color: var(--red-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
}

.section-head.on-dark h2,
.section-head.on-dark .section-kicker {
  color: var(--amber-100);
}

.section-link {
  min-height: 40px;
  color: var(--red-900);
  background: rgba(254, 243, 199, 0.78);
  border: 1px solid rgba(127, 29, 29, 0.16);
}

.section-link.light {
  color: #fff8d6;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-grid,
.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-grid {
  gap: 20px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(127, 29, 29, 0.12);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(69, 10, 10, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(185, 28, 28, 0.34);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--red-950);
}

.compact-card .poster-wrap {
  aspect-ratio: 3 / 4;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(42, 5, 5, 0.75), transparent 56%);
}

.type-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.type-pill {
  right: 12px;
  background: rgba(153, 27, 27, 0.88);
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--amber-300), #f59e0b);
  color: var(--red-950);
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(185, 28, 28, 0.86);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 9px;
  color: var(--red-900);
  font-size: 20px;
  line-height: 1.35;
}

.compact-card .card-body h2 {
  font-size: 17px;
}

.card-line {
  min-height: 52px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #8a4f1f;
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: var(--red-900);
  background: rgba(254, 243, 199, 0.8);
  border-color: rgba(127, 29, 29, 0.14);
}

.red-band {
  background:
    radial-gradient(circle at 22% 16%, rgba(252, 211, 77, 0.18), transparent 34%),
    linear-gradient(135deg, var(--red-950), var(--red-800) 52%, var(--red-950));
}

.band-inner {
  padding-top: 76px;
  padding-bottom: 76px;
}

.category-grid,
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card,
.category-overview-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card img,
.category-overview-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card div,
.category-overview-body {
  padding: 18px;
}

.category-card h2,
.category-overview-card h2 {
  margin: 0 0 8px;
  color: var(--amber-100);
  font-size: 22px;
}

.category-card p,
.category-overview-card p,
.category-overview-card span {
  margin: 0;
  color: #ffe7a3;
  font-size: 14px;
}

.two-column-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.tight-head {
  margin-bottom: 20px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-list-item {
  display: grid;
  grid-template-columns: 42px 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(127, 29, 29, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(69, 10, 10, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-list-item img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.list-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red-700);
  border-radius: 50%;
  font-weight: 800;
}

.rank-list-item strong {
  color: var(--red-900);
  font-size: 17px;
}

.rank-list-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.filter-panel {
  padding-top: 58px;
}

.filter-bar {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(127, 29, 29, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 30px rgba(69, 10, 10, 0.08);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  border: 1px solid rgba(127, 29, 29, 0.16);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--red-900);
  background: #fffaf0;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-buttons button:hover,
.filter-buttons button.active {
  color: #fff;
  background: var(--red-700);
  transform: translateY(-1px);
}

.page-hero,
.detail-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--red-950);
}

.slim-hero {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 70% 22%, rgba(252, 211, 77, 0.22), transparent 32%),
    linear-gradient(135deg, var(--red-950), var(--red-800));
}

.page-hero > img,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-layer,
.detail-bg-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(42, 5, 5, 0.88), rgba(69, 10, 10, 0.68), rgba(42, 5, 5, 0.28));
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
  color: #fffbe7;
}

.category-hero .page-hero-content,
.rank-hero .page-hero-content {
  padding-top: 118px;
}

.page-hero-content h1 {
  color: #fffbe7;
}

.page-hero-content p {
  max-width: 760px;
  color: #ffe7a3;
  font-size: 19px;
}

.category-overview-card {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(127, 29, 29, 0.13);
  box-shadow: 0 14px 34px rgba(69, 10, 10, 0.11);
}

.category-overview-card h2 {
  color: var(--red-900);
}

.category-overview-card p,
.category-overview-card span {
  color: var(--muted);
}

.detail-hero {
  min-height: 640px;
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 76px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #ffe7a3;
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.35);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  color: #fffbe7;
  font-size: clamp(38px, 6vw, 68px);
}

.detail-one-line {
  max-width: 820px;
  color: #ffe7a3;
  font-size: 20px;
}

.detail-meta {
  margin: 20px 0 12px;
}

.detail-tags span {
  color: #fffbe7;
}

.player-section {
  padding-bottom: 38px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 26px 70px rgba(42, 5, 5, 0.25);
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  object-fit: contain;
  background: #000;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.64;
  filter: blur(1px) saturate(1.12);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(185, 28, 28, 0.2), rgba(0, 0, 0, 0.58));
}

.player-cover.is-hidden {
  display: none;
}

.player-play-button {
  position: relative;
  z-index: 3;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  box-shadow: 0 18px 40px rgba(185, 28, 28, 0.42);
  font-size: 36px;
  transition: transform 0.2s ease;
}

.player-cover:hover .player-play-button {
  transform: scale(1.08);
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  border-radius: 14px;
  padding: 12px 16px;
  color: #fffbe7;
  background: rgba(69, 10, 10, 0.86);
}

.detail-text-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding-top: 28px;
}

.article-card {
  padding: 28px;
  border: 1px solid rgba(127, 29, 29, 0.13);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(69, 10, 10, 0.1);
}

.article-card h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.article-card p {
  margin: 0;
  color: #55371c;
  font-size: 17px;
}

.accent-card {
  background: linear-gradient(135deg, #fff7d6, #fff);
}

.site-footer {
  color: #fff2bf;
  background: linear-gradient(180deg, var(--red-950), #050000);
  border-top: 4px solid var(--red-800);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: var(--amber-300);
  font-size: 24px;
  font-weight: 800;
}

.footer-brand p,
.footer-links a {
  color: #ffe7a3;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: var(--amber-200);
  font-size: 18px;
}

.footer-link-grid {
  display: grid;
  gap: 9px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #e9c979;
  border-top: 1px solid rgba(252, 211, 77, 0.14);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1060px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .feature-grid,
  .mini-grid,
  .catalog-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column-section,
  .detail-text-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero-section {
    min-height: 620px;
  }

  .hero-content {
    bottom: 88px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-button,
  .glass-button {
    width: 100%;
  }

  .content-section {
    padding: 48px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid,
  .mini-grid,
  .catalog-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .rank-list-item {
    grid-template-columns: 34px 64px 1fr;
  }

  .rank-list-item img {
    width: 64px;
    height: 84px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 260px;
  }

  .detail-inner {
    padding-bottom: 48px;
  }

  .player-shell {
    border-radius: 18px;
  }

  .player-play-button {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

  .site-search-results {
    left: 0;
    right: auto;
    width: 100%;
  }
}
