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

:root {
  color-scheme: light;
  --red-950: #3d0808;
  --red-900: #5f1010;
  --red-800: #7f1d1d;
  --red-700: #991b1b;
  --red-600: #b91c1c;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --ink: #21120e;
  --muted: #6f5b55;
  --line: rgba(127, 29, 29, 0.16);
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 60px rgba(95, 16, 16, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(252, 211, 77, 0.32), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #fffaf0 48%, #fff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 2px solid rgba(127, 29, 29, 0.28);
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(254, 226, 226, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(127, 29, 29, 0.12);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--amber-100);
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
  box-shadow: 0 16px 34px rgba(127, 29, 29, 0.25);
  transition: transform 0.28s ease;
}

.brand:hover .brand-mark {
  transform: rotate(6deg) scale(1.04);
}

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

.brand-text strong,
.footer-brand strong {
  color: var(--red-900);
  font-size: 24px;
  letter-spacing: 0.03em;
}

.brand-text small {
  color: var(--red-700);
  font-size: 12px;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--red-900);
  font-weight: 600;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--red-700);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(153, 27, 27, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--red-900);
}

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

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  background-image:
    linear-gradient(90deg, rgba(61, 8, 8, 0.95) 0%, rgba(61, 8, 8, 0.76) 44%, rgba(61, 8, 8, 0.34) 100%),
    var(--hero-bg);
  background-position: center;
  background-size: cover;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(252, 211, 77, 0.18), transparent 22rem),
    linear-gradient(0deg, rgba(61, 8, 8, 0.8), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 56px;
  align-items: center;
  padding: 78px 0 110px;
}

.hero-copy h1 {
  margin: 14px 0 20px;
  max-width: 780px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--amber-100);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.85;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--amber-300);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

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

.hero-actions,
.page-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red-900));
  box-shadow: 0 18px 42px rgba(153, 27, 27, 0.35);
}

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

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.ghost-button.red {
  color: var(--red-900);
  border-color: rgba(153, 27, 27, 0.2);
  background: rgba(153, 27, 27, 0.06);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(252, 211, 77, 0.5);
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
}

.hero-controls > button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  font-size: 32px;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 34px;
  border-radius: 999px;
  background: var(--amber-300);
}

.quick-search,
.section-block,
.filter-panel,
.page-hero,
.breadcrumb,
.detail-hero,
.player-section,
.detail-content {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-search {
  margin-top: -62px;
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(252, 211, 77, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 251, 235, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.content-card h2 {
  margin: 0;
  color: var(--red-900);
}

.quick-search h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.quick-search p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-block {
  padding: 70px 0 0;
}

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

.section-heading h2 {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading a {
  color: var(--red-700);
  font-weight: 700;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 16px 40px rgba(95, 16, 16, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(153, 27, 27, 0.34);
  box-shadow: 0 26px 58px rgba(95, 16, 16, 0.18);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--red-950);
}

.card-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.06);
  opacity: 0.9;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: rgba(153, 27, 27, 0.92);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  font-size: 13px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber-300), var(--red-700));
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--red-700);
  font-size: 13px;
  font-weight: 700;
}

.card-body h3 {
  margin: 10px 0 8px;
  color: var(--red-950);
  font-size: 20px;
  line-height: 1.35;
}

.card-body p {
  min-height: 3.5em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.movie-card.compact .card-body p {
  min-height: 3em;
  font-size: 13px;
}

.tag-row span {
  color: var(--red-800);
  border-color: rgba(153, 27, 27, 0.16);
  background: rgba(254, 243, 199, 0.7);
}

.warm-panel {
  padding: 70px 24px 32px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.72), rgba(254, 226, 226, 0.52));
}

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

.category-tile {
  overflow: hidden;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 36px rgba(95, 16, 16, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(95, 16, 16, 0.16);
}

.tile-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.tile-images img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
}

.category-tile strong {
  color: var(--red-900);
  font-size: 19px;
}

.category-tile em,
.wide-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.ranking-list {
  display: grid;
  gap: 18px;
}

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

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

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
}

.wide-card {
  scroll-snap-align: start;
  overflow: hidden;
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(95, 16, 16, 0.1);
}

.wide-card img {
  width: 96px;
  height: 140px;
  object-fit: cover;
}

.wide-card strong,
.wide-card em {
  display: block;
}

.wide-card strong {
  color: var(--red-900);
  font-size: 18px;
  margin-bottom: 8px;
}

.page-hero {
  margin-top: 36px;
  padding: 48px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 22%, rgba(252, 211, 77, 0.3), transparent 22rem),
    linear-gradient(135deg, var(--red-950), var(--red-700));
  box-shadow: var(--shadow);
}

.page-hero.slim h1 {
  color: #fff;
  margin-top: 12px;
  font-size: clamp(36px, 6vw, 64px);
}

.page-hero.slim p {
  max-width: 780px;
  color: var(--amber-100);
  font-size: 18px;
}

.filter-panel {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(95, 16, 16, 0.1);
}

.filter-panel label {
  display: grid;
  gap: 7px;
}

.filter-panel span {
  color: var(--red-900);
  font-size: 14px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(153, 27, 27, 0.18);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  padding: 0 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--red-700);
  box-shadow: 0 0 0 4px rgba(153, 27, 27, 0.1);
}

.filter-panel button {
  height: 46px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  padding: 0 18px;
  background: var(--red-800);
}

.empty-state {
  margin: 36px 0;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  color: var(--red-700);
  font-weight: 700;
}

.detail-hero {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 38px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(252, 211, 77, 0.42);
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 10%, rgba(252, 211, 77, 0.25), transparent 20rem),
    linear-gradient(135deg, rgba(255, 251, 235, 0.94), rgba(254, 226, 226, 0.62));
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(153, 27, 27, 0.18);
  border-radius: 26px;
  box-shadow: 0 24px 58px rgba(95, 16, 16, 0.22);
}

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

.detail-info .eyebrow {
  color: var(--red-700);
}

.detail-info h1 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.12;
}

.detail-info .lead {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.9;
}

.detail-tags {
  margin-top: 20px;
}

.detail-tags span {
  color: var(--red-800);
  border-color: rgba(153, 27, 27, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.player-section {
  padding-top: 44px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #090909;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(61, 8, 8, 0.78));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.video-shell.is-playing .play-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red-900);
  background: var(--amber-300);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  font-size: 34px;
  padding-left: 5px;
}

.play-cover strong {
  font-size: 24px;
  letter-spacing: 0.08em;
}

.detail-content {
  padding-top: 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}

.content-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(95, 16, 16, 0.1);
}

.content-card h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

.review-card {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.92), rgba(255, 255, 255, 0.9));
}

.info-card {
  grid-column: 1 / -1;
}

.info-card dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-card div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(153, 27, 27, 0.06);
}

.info-card dt {
  color: var(--red-700);
  font-weight: 700;
}

.info-card dd {
  margin: 6px 0 0;
  color: var(--ink);
}

.related-block {
  padding-bottom: 80px;
}

.site-footer {
  margin-top: 80px;
  color: var(--amber-100);
  background: linear-gradient(135deg, var(--red-950), var(--red-800));
}

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

.footer-brand strong {
  color: var(--amber-100);
}

.footer-brand p {
  max-width: 460px;
  margin: 8px 0 0;
  color: var(--amber-200);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 24px;
  color: var(--amber-200);
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .site-nav {
    gap: 14px;
    font-size: 14px;
  }

  .hero-content {
    grid-template-columns: 1fr 280px;
    gap: 32px;
  }

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

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

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

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

  .info-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    height: 68px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 251, 235, 0.98);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 13px 12px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 54px;
  }

  .hero-poster {
    width: min(220px, 70vw);
    margin: 0 auto;
    transform: none;
  }

  .hero-controls > button {
    width: 40px;
    height: 40px;
  }

  .quick-search,
  .section-heading,
  .footer-inner {
    display: block;
  }

  .quick-search .primary-button,
  .section-heading a {
    margin-top: 16px;
  }

  .movie-grid,
  .featured-grid,
  .home-ranking,
  .full-ranking,
  .category-grid,
  .filter-panel,
  .detail-hero,
  .detail-content,
  .info-card dl {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-hero {
    padding: 28px;
  }

  .detail-poster {
    max-width: 260px;
    margin: 0 auto;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 24px;
  }
}
