:root {
  --rose-950: #4c0519;
  --rose-900: #881337;
  --rose-800: #9f1239;
  --rose-700: #be123c;
  --rose-600: #e11d48;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --rose-100: #ffe4e6;
  --rose-50: #fff1f2;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(76, 5, 25, 0.16);
  --soft-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--rose-50), #fff7ed 38%, var(--white));
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-950), var(--rose-800), var(--amber-700));
  box-shadow: 0 12px 24px rgba(76, 5, 25, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, var(--amber-500));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.32);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
}

.desktop-nav > a,
.nav-dropdown > a {
  color: rgba(255, 255, 255, 0.94);
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > a:hover {
  color: #fde68a;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  width: 178px;
  padding: 8px;
  border-radius: 16px;
  background: var(--white);
  color: var(--gray-700);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--gray-700);
}

.dropdown-panel a:hover {
  color: var(--rose-900);
  background: var(--rose-50);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.header-search input,
.mobile-nav input,
.inline-filter input {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.header-search button,
.mobile-nav button,
.inline-filter button {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--rose-950);
  font-weight: 800;
  cursor: pointer;
  background: #fde68a;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-nav button:hover,
.inline-filter button:hover {
  transform: translateY(-1px);
  background: #fcd34d;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.mobile-nav a {
  color: rgba(255, 255, 255, 0.92);
  padding: 7px 0;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--gray-950);
}

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

.hero-slide {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(76, 5, 25, 0.72) 46%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
  color: var(--white);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: #fcd34d;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0 0 28px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-tags,
.detail-meta,
.card-meta,
.large-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-tags span:first-child,
.tag-row span {
  background: rgba(225, 29, 72, 0.88);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-600), var(--amber-600));
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.32);
}

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

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

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

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

.section-head.slim {
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  color: var(--gray-800);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.section-head a {
  color: var(--rose-700);
  font-weight: 800;
}

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

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

.horizontal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.movie-card {
  min-width: 0;
}

.card-link {
  display: block;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  color: inherit;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-900), var(--amber-700));
}

.thumb-wrap img,
.movie-card-large img,
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card-link:hover .thumb-wrap img,
.card-link:hover.movie-card-large img,
.movie-card-large .card-link:hover img {
  transform: scale(1.08);
}

.pill,
.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.top-left {
  top: 12px;
  left: 12px;
  background: var(--rose-600);
}

.duration {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.75);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  min-width: 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-600));
}

.card-content {
  padding: 18px;
}

.card-content h3 {
  min-height: 54px;
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--rose-700);
  font-size: 13px;
  font-weight: 800;
}

.card-meta {
  color: var(--gray-500);
  font-size: 13px;
}

.movie-card-horizontal .card-link {
  display: grid;
  grid-template-columns: 190px 1fr;
}

.movie-card-horizontal .thumb-wrap {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card-horizontal .card-content h3 {
  min-height: auto;
}

.movie-card-large .card-link {
  position: relative;
  min-height: 420px;
  background: var(--gray-950);
}

.movie-card-large img {
  position: absolute;
  inset: 0;
}

.large-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: var(--white);
  background: linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.78));
}

.large-overlay span {
  width: max-content;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 900;
  background: var(--amber-500);
}

.large-overlay h3 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.large-overlay p {
  margin: 0 0 18px;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
}

.large-meta b,
.large-meta em {
  border-radius: 999px;
  padding: 7px 12px;
  font-style: normal;
  background: rgba(255, 255, 255, 0.16);
}

.soft-band {
  background: linear-gradient(90deg, var(--rose-100), var(--amber-100));
}

.rank-band {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-950), var(--amber-700));
}

.rank-band .section-head h2,
.rank-band .section-head p,
.rank-band .section-head a {
  color: var(--white);
}

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

.rank-list .movie-card-horizontal .card-link {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: end;
}

.side-stack {
  display: grid;
  gap: 20px;
}

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

.category-tile {
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 242, 0.96));
  box-shadow: var(--soft-shadow);
}

.category-tile a:first-child {
  display: block;
}

.category-tile span {
  color: var(--rose-700);
  font-weight: 900;
}

.category-tile h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.tile-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
}

.tile-links a {
  color: var(--gray-600);
}

.tile-links a:hover {
  color: var(--rose-700);
}

.page-hero {
  padding: 76px 0;
  color: var(--white);
  background: linear-gradient(100deg, var(--rose-950), var(--rose-800), var(--amber-700));
}

.page-hero span {
  color: #fde68a;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(40px, 7vw, 62px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.inline-filter {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin-top: 24px;
}

.overview-list {
  padding: 56px 0;
}

.category-overview-block {
  margin-bottom: 50px;
}

.empty-state {
  margin: 30px 0;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  color: var(--gray-600);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.detail-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: blur(10px);
  transform: scale(1.05);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(76, 5, 25, 0.78));
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 34px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fde68a;
}

.detail-head-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: center;
}

.poster-card {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--rose-900), var(--amber-700));
}

.detail-kicker {
  color: #fcd34d;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.detail-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.detail-copy .primary-button {
  margin-top: 26px;
}

.watch-section {
  margin-top: -64px;
  position: relative;
  z-index: 3;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.6));
}

.player-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 6px;
  color: var(--white);
  font-size: 34px;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.35);
}

.player-overlay strong {
  font-size: clamp(20px, 3vw, 32px);
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 54px 0 10px;
}

.article-panel,
.info-panel {
  border-radius: 24px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.article-panel h2,
.info-panel h2 {
  margin: 0 0 16px;
  color: var(--gray-800);
}

.article-panel p {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 17px;
}

.info-panel dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.info-panel dt {
  color: var(--gray-500);
}

.info-panel dd {
  margin: 0;
  color: var(--gray-800);
  font-weight: 700;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, var(--gray-900), #000000);
  padding: 54px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 12px;
  color: #fde68a;
  font-size: 24px;
  font-weight: 900;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fde68a;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

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

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

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

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    height: 600px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.85), rgba(76, 5, 25, 0.86));
  }

  .hero-actions,
  .inline-filter,
  .mobile-nav form {
    flex-direction: column;
  }

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

  .movie-grid,
  .mini-grid,
  .horizontal-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .card-link {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .thumb-wrap {
    aspect-ratio: 16 / 10;
  }

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

  .detail-head-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .poster-card {
    width: min(100%, 300px);
  }

  .watch-section {
    margin-top: 18px;
  }

  .detail-body {
    padding-top: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}
