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

:root {
  --red-950: #240000;
  --red-900: #4c0519;
  --red-800: #7f1d1d;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --orange-50: #fff7ed;
  --cream: #fffbeb;
  --ink: #201515;
  --muted: #6f5b54;
  --shadow: 0 24px 60px rgba(76, 5, 25, 0.18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #fef3c7 35%, #fff7ed 100%);
  font-family: "Noto Serif SC", "Microsoft YaHei", "PingFang SC", serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #fffbeb 0%, #fff7ed 55%, #fee2e2 100%);
  border-bottom: 3px solid var(--red-800);
  box-shadow: 0 14px 34px rgba(76, 5, 25, 0.14);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 228px;
}

.site-logo-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--amber-100);
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 12px 24px rgba(127, 29, 29, 0.22);
  transition: transform 0.25s ease;
}

.site-logo:hover .site-logo-mark {
  transform: rotate(-7deg) scale(1.04);
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-logo-text strong {
  color: var(--red-900);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.site-logo-text em {
  margin-top: 4px;
  color: var(--red-700);
  font-style: normal;
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--red-900);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: white;
  background: linear-gradient(135deg, var(--red-700), var(--red-900));
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--red-900);
  background: rgba(127, 29, 29, 0.1);
  cursor: pointer;
}

.hero {
  position: relative;
  height: 680px;
  overflow: hidden;
  background: #120506;
}

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

.hero-slide {
  opacity: 0;
  visibility: hidden;
  background-image: linear-gradient(90deg, rgba(24,0,0,0.86), rgba(24,0,0,0.48), rgba(24,0,0,0.72)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.28), transparent 32%), linear-gradient(180deg, transparent 0%, rgba(36, 0, 0, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 32px));
  padding-top: 110px;
  margin-left: max(24px, calc((100vw - 1240px) / 2));
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--amber-100);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
}

.eyebrow.dark {
  color: var(--red-800);
  background: rgba(185, 28, 28, 0.12);
}

.light-text {
  color: var(--amber-100);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(3rem, 6vw, 5.9rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-shadow: 0 12px 32px rgba(0,0,0,0.52);
}

.hero p {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--amber-100);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.85;
  text-shadow: 0 10px 22px rgba(0,0,0,0.42);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-button,
.ghost-button,
.search-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 13px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-row button {
  color: white;
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
  box-shadow: 0 14px 30px rgba(185, 28, 28, 0.32);
}

.ghost-button {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.search-row button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: max(24px, calc((100vw - 1240px) / 2));
  bottom: 42px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.32);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--amber-400);
}

.hero-side-list {
  position: absolute;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 38px;
  z-index: 3;
  width: min(380px, 36vw);
  display: grid;
  gap: 12px;
}

.section-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0;
}

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.search-panel,
.filter-panel {
  border: 1px solid rgba(127, 29, 29, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.search-panel {
  padding: 24px;
}

.search-panel label,
.filter-field label {
  display: block;
  color: var(--red-900);
  font-weight: 700;
  margin-bottom: 10px;
}

.search-row {
  display: flex;
  gap: 12px;
}

.search-row input,
.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(127, 29, 29, 0.18);
  border-radius: 13px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
  outline: none;
}

.search-row input:focus,
.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--red-700);
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.12);
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.category-strip a {
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--red-900);
  background: #fff;
  box-shadow: 0 12px 26px rgba(127, 29, 29, 0.12);
  font-weight: 700;
}

.category-strip a:hover {
  color: white;
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
}

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

.section-heading h2 {
  margin: 12px 0 0;
  color: var(--red-900);
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.1;
}

.section-heading.light h2 {
  color: var(--amber-100);
}

.text-link {
  color: var(--red-700);
  font-weight: 700;
}

.text-link:hover {
  color: var(--red-950);
}

.light-link {
  color: var(--amber-200);
}

.featured-grid,
.poster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: white;
  box-shadow: 0 18px 38px rgba(76, 5, 25, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dark-band .movie-card {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px rgba(76, 5, 25, 0.22);
}

.movie-card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red-900), var(--red-700));
}

.featured-grid .movie-card-poster,
.wide-card .movie-card-poster {
  aspect-ratio: 16 / 10;
}

.movie-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover img {
  transform: scale(1.08);
}

.movie-card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.78) 100%);
  opacity: 0.88;
}

.movie-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.86);
  border-radius: 999px;
  color: white;
  background: rgba(185, 28, 28, 0.88);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card-body {
  padding: 17px;
}

.movie-card-title {
  display: block;
  color: var(--red-950);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.35;
}

.dark-band .movie-card-title {
  color: white;
}

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 9px 0 10px;
  color: var(--red-700);
  font-size: 0.83rem;
  font-weight: 600;
}

.dark-band .movie-card-meta {
  color: var(--amber-200);
}

.movie-card p {
  margin: 0;
  min-height: 3.3em;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.dark-band .movie-card p {
  color: rgba(255,255,255,0.76);
}

.movie-card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.movie-card-tags span,
.detail-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--red-800);
  background: rgba(185, 28, 28, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
}

.dark-band {
  background: linear-gradient(90deg, var(--red-950), var(--red-800), var(--red-950));
  box-shadow: inset 0 28px 70px rgba(0,0,0,0.18);
}

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

.category-card,
.overview-card {
  min-height: 174px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, white 0%, #fff7ed 100%);
  box-shadow: 0 18px 38px rgba(76, 5, 25, 0.12);
  border: 1px solid rgba(127, 29, 29, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover,
.overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(76, 5, 25, 0.2);
}

.category-card strong,
.overview-card strong {
  display: block;
  color: var(--red-900);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.category-card span,
.overview-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.overview-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  background: var(--red-900);
}

.ranking-grid,
.ranking-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.compact-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 14px 30px rgba(76, 5, 25, 0.1);
  border: 1px solid rgba(127,29,29,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(76, 5, 25, 0.18);
}

.compact-thumb {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  background: var(--red-900);
}

.compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.compact-content strong {
  color: var(--red-950);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-content em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

.rank-badge {
  width: 34px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
  font-size: 0.82rem;
  font-weight: 700;
}

.horizontal-section {
  padding-bottom: 28px;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 390px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
}

.horizontal-scroll .movie-card {
  scroll-snap-align: start;
}

.scroll-actions {
  display: flex;
  gap: 8px;
}

.scroll-actions button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--red-900);
  cursor: pointer;
  font-size: 1.6rem;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.28), transparent 30%), linear-gradient(135deg, var(--red-950), var(--red-800));
}

.page-hero-inner {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0;
  text-align: center;
}

.page-hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--amber-100);
  font-size: 1.1rem;
  line-height: 1.85;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  padding: 20px;
  margin-bottom: 30px;
}

.empty-state {
  display: none;
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  min-height: 540px;
  background-image: linear-gradient(90deg, rgba(36, 0, 0, 0.92), rgba(36, 0, 0, 0.55), rgba(36, 0, 0, 0.86)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 25%, rgba(251, 191, 36, 0.24), transparent 32%), linear-gradient(180deg, transparent 0%, rgba(36, 0, 0, 0.88) 100%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--amber-100);
  font-size: 0.94rem;
}

.breadcrumb a:hover {
  color: var(--amber-400);
}

.detail-title-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  margin-top: 58px;
}

.detail-cover {
  width: 260px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0,0,0,0.42);
  background: var(--red-900);
}

.detail-title-row h1 {
  margin: 18px 0;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 1.1;
}

.detail-title-row p {
  max-width: 820px;
  margin: 0;
  color: var(--amber-100);
  font-size: 1.16rem;
  line-height: 1.9;
}

.detail-tags span {
  color: var(--amber-100);
  background: rgba(255,255,255,0.16);
}

.detail-shell {
  padding-top: 40px;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #050505;
  box-shadow: 0 30px 80px rgba(0,0,0,0.34);
  border: 4px solid rgba(127, 29, 29, 0.24);
}

.video-screen {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  object-fit: cover;
}

.play-trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(185, 28, 28, 0.32), rgba(0,0,0,0.58));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-trigger span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
  box-shadow: 0 24px 48px rgba(0,0,0,0.32);
  font-size: 2.2rem;
  padding-left: 6px;
}

.play-trigger.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: 36px;
}

.content-main,
.detail-aside {
  padding: 30px;
  border-radius: 24px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
}

.content-main section + section {
  margin-top: 30px;
}

.content-main h2,
.detail-aside h2,
.related-section h2 {
  margin: 0 0 16px;
  color: var(--red-900);
  font-size: 1.65rem;
}

.content-main p {
  margin: 0;
  color: #4a3d39;
  font-size: 1.02rem;
  line-height: 2;
}

.detail-aside dl {
  margin: 0;
}

.detail-aside div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(127,29,29,0.12);
}

.detail-aside dt {
  color: var(--red-800);
  font-weight: 700;
}

.detail-aside dd {
  margin: 0;
  color: var(--muted);
}

.related-section {
  margin-top: 48px;
}

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

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  font-size: 1.35rem;
}

.footer-inner p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--amber-200);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--amber-400);
}

@media (max-width: 1100px) {
  .featured-grid,
  .poster-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-side-list {
    display: none;
  }

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

@media (max-width: 820px) {
  .nav-shell {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding: 8px 0 12px;
    justify-content: flex-start;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    height: 590px;
  }

  .hero-content {
    padding-top: 90px;
  }

  .quick-search,
  .filter-panel,
  .detail-title-row {
    grid-template-columns: 1fr;
  }

  .category-strip {
    justify-content: flex-start;
  }

  .featured-grid,
  .poster-grid,
  .category-grid,
  .overview-grid,
  .ranking-grid,
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-cover {
    width: 200px;
  }

  .detail-title-row {
    margin-top: 36px;
  }
}

@media (max-width: 560px) {
  .site-logo-text strong {
    font-size: 1.08rem;
  }

  .site-logo-text em {
    display: none;
  }

  .hero h1,
  .detail-title-row h1,
  .page-hero h1 {
    font-size: 2.55rem;
  }

  .hero-actions,
  .search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .featured-grid,
  .poster-grid,
  .category-grid,
  .overview-grid,
  .ranking-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .horizontal-scroll {
    grid-auto-columns: minmax(270px, 82vw);
  }

  .content-main,
  .detail-aside {
    padding: 22px;
  }

  .play-trigger span {
    width: 72px;
    height: 72px;
    font-size: 1.7rem;
  }
}
