:root {
  --bg: #fff7f4;
  --surface: #ffffff;
  --surface-soft: #fff1ed;
  --text: #15121a;
  --muted: #6b6472;
  --line: #f2d8d1;
  --rose: #e11d48;
  --rose-dark: #be123c;
  --orange: #fb923c;
  --gold: #f59e0b;
  --shadow: 0 24px 70px rgba(190, 18, 60, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(225, 29, 72, 0.14), transparent 34rem),
    var(--bg);
  min-height: 100vh;
}

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

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

[hidden],
.is-hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(242, 216, 209, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(104, 30, 50, 0.08);
}

.header-inner {
  max-width: 1180px;
  height: 74px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.28);
}

.brand-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--rose-dark), var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 15px;
  color: #4b4451;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--rose);
  transform: translateY(-1px);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff1ed;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--rose-dark);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 22px 20px;
  background: rgba(255, 255, 255, 0.98);
}

.mobile-menu a {
  display: block;
  padding: 11px 0;
  font-weight: 700;
  color: #4b4451;
}

.mobile-menu.is-open {
  display: block;
}

.main-shell,
.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 66px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  min-height: 560px;
  background: #17070d;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr);
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-visual {
  position: absolute;
  inset: 0;
}

.hero-visual img {
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.08);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 7, 13, 0.92), rgba(23, 7, 13, 0.72) 46%, rgba(23, 7, 13, 0.2)),
    linear-gradient(0deg, rgba(23, 7, 13, 0.76), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 72px 58px;
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #fff3ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  max-width: 720px;
  margin: 22px 0 16px;
  color: #ffffff;
  font-size: clamp(38px, 5.5vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 660px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span,
.info-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff2ed;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn-primary,
.btn-secondary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.32);
}

.btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.btn-soft {
  color: var(--rose-dark);
  background: #fff1ed;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-soft:hover {
  transform: translateY(-2px);
}

.hero-side {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 0 36px 42px 0;
}

.hero-side-card {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.hero-side-card img {
  height: 310px;
  object-fit: cover;
}

.hero-side-card div {
  padding: 18px;
  color: #ffffff;
}

.hero-side-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hero-side-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 58px;
  bottom: 36px;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.section-block {
  margin-top: 52px;
}

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

.section-heading h2,
.page-title h1,
.detail-copy h2,
.related-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-title p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 44px rgba(190, 18, 60, 0.08);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #f0cbc2;
  border-radius: 16px;
  padding: 0 15px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(225, 29, 72, 0.5);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(242, 216, 209, 0.98);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 46px rgba(110, 26, 48, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 29, 72, 0.26);
  box-shadow: 0 28px 68px rgba(110, 26, 48, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1ed, #ffe7d8);
}

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.05);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 15, 18, 0.72);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

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

.movie-card-meta,
.rank-meta,
.detail-meta {
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h2 {
  margin: 7px 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.62;
  font-size: 14px;
}

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

.category-card {
  min-height: 188px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(242, 216, 209, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 237, 0.92)),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.18), transparent 12rem);
  box-shadow: 0 18px 46px rgba(110, 26, 48, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 64px rgba(110, 26, 48, 0.14);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

.category-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.65;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 38px rgba(110, 26, 48, 0.07);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 950;
}

.rank-poster {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #fff1ed;
}

.rank-poster img {
  height: 100%;
  object-fit: cover;
}

.rank-item h2 {
  margin: 0 0 7px;
  font-size: 18px;
}

.rank-item p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.page-title {
  padding: 46px;
  margin-bottom: 28px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 237, 0.86)),
    radial-gradient(circle at top right, rgba(225, 29, 72, 0.15), transparent 28rem);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose-dark);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.82fr);
  gap: 28px;
  align-items: start;
}

.player-panel,
.detail-side,
.detail-copy,
.related-section {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 54px rgba(110, 26, 48, 0.1);
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  aspect-ratio: 16 / 9;
  background: #080407;
}

.player-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080407;
  z-index: 1;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #ffffff;
  background: #080407;
}

.player-cover img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 4, 7, 0.72), rgba(8, 4, 7, 0.08));
}

.play-button {
  position: relative;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 20px 46px rgba(225, 29, 72, 0.38);
  font-size: 34px;
  padding-left: 5px;
}

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

.player-info {
  padding: 24px;
}

.player-info h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.player-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.detail-side {
  padding: 24px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  background: #fff1ed;
}

.detail-poster img {
  height: 100%;
  object-fit: cover;
}

.info-list {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.info-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid #f5dfd8;
  color: var(--muted);
}

.info-line strong {
  color: var(--text);
}

.detail-copy,
.related-section {
  margin-top: 28px;
  padding: 30px;
}

.detail-copy p {
  color: #3f3945;
  line-height: 1.9;
  font-size: 17px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.related-grid .movie-card h2 {
  font-size: 16px;
}

.site-footer {
  margin-top: 34px;
  background: #171018;
  color: #d7ced9;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 22px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 950;
  color: #ffffff;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #ffffff;
}

.site-footer p,
.site-footer li {
  color: #afa6b2;
  line-height: 1.75;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #fb7185;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 22px;
  color: #978d9b;
  text-align: center;
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

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

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

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

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

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

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

  .brand-name {
    font-size: 20px;
  }

  .main-shell,
  .page-shell {
    padding: 22px 16px 48px;
  }

  .hero-slider {
    min-height: 620px;
    border-radius: 26px;
  }

  .hero-content {
    padding: 54px 24px 86px;
  }

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

  .hero-content p {
    font-size: 16px;
  }

  .hero-dots {
    left: 24px;
    bottom: 28px;
  }

  .section-heading {
    display: block;
  }

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

  .movie-grid,
  .category-grid,
  .rank-list,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 70px minmax(0, 1fr);
  }

  .page-title {
    padding: 28px;
    border-radius: 26px;
  }

  .detail-copy,
  .related-section {
    padding: 22px;
  }
}
