:root {
  --rose: #f43f5e;
  --orange: #f97316;
  --emerald: #10b981;
  --yellow: #f59e0b;
  --ink: #172033;
  --muted: #667085;
  --line: #e8ebf2;
  --soft: #f7f8fb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(20, 30, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7f7 0, #f8fafc 420px, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.35);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
}

.desktop-nav a,
.mobile-nav a {
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 8px 10px;
  background: transparent;
}

.header-search button,
.hero-search button,
.filter-panel button,
.cta-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover,
.filter-panel button:hover,
.cta-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.3);
}

.ghost-button {
  color: var(--rose);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(244, 63, 94, 0.25);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--rose);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 38px 0 26px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px -80px auto auto;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.28), rgba(249, 115, 22, 0));
}

.hero-shell {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(127, 29, 29, 0.9));
  box-shadow: var(--shadow);
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 32px;
  align-items: center;
  min-height: 540px;
  padding: 58px;
  color: #fff;
}

.hero-slide.active {
  display: grid;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

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

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

.hero-media {
  position: relative;
  z-index: 2;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 12% -6% -6% 10%;
  z-index: -1;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.72), rgba(249, 115, 22, 0.64));
  filter: blur(28px);
}

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 30px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

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

.hero-dots button.active {
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

.hero-search-panel {
  position: relative;
  z-index: 6;
  margin: -44px auto 0;
  padding: 24px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  outline: 0;
  background: #fff;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-tags a,
.tag-list span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-size: 13px;
  font-weight: 800;
}

.quick-tags a {
  padding: 8px 12px;
}

.section {
  padding: 54px 0;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--rose);
  font-weight: 900;
}

.section h2,
.page-hero h1,
.detail-title h1,
.content-block h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head p,
.page-hero p,
.content-block p,
.detail-title p {
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.26);
  box-shadow: 0 24px 55px rgba(244, 63, 94, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  font-weight: 800;
  backdrop-filter: blur(12px);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h2,
.movie-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 950;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 5px 9px;
}

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

.category-card {
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff, #fff7ed);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(244, 63, 94, 0.15);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

.ranking-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.55fr);
  gap: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(244, 63, 94, 0.32);
}

.rank-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  font-weight: 950;
}

.rank-item img {
  width: 64px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-text strong,
.rank-text small {
  display: block;
}

.rank-text strong {
  font-weight: 950;
}

.rank-text small {
  color: var(--muted);
}

.rank-heat {
  padding: 7px 10px;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-weight: 900;
}

.page-hero {
  padding: 54px 0 24px;
}

.page-hero .panel,
.detail-shell,
.content-block,
.filter-panel {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.page-hero .panel {
  padding: 36px;
}

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

.breadcrumb a {
  color: var(--rose);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px auto;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 24px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.detail-shell {
  overflow: hidden;
  margin-top: 28px;
}

.player-section {
  padding: 20px;
  background: linear-gradient(135deg, #0f172a, #3b1224);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
}

.movie-video,
.player-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.movie-video {
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  filter: brightness(0.58);
}

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

.play-button {
  position: relative;
  z-index: 2;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 22px 48px rgba(244, 63, 94, 0.35);
}

.play-button::before {
  content: "";
  margin-left: 6px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 26px solid #fff;
}

.detail-main {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
}

.detail-poster img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.18);
}

.detail-title p {
  margin: 16px 0 0;
  font-size: 17px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.meta-pill {
  padding: 8px 12px;
}

.content-block {
  margin-top: 24px;
  padding: 28px;
}

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

.content-block p {
  margin: 0;
  font-size: 17px;
}

.site-footer {
  margin-top: 60px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

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

.site-footer p {
  max-width: 480px;
  margin: 12px 0 0;
}

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

.footer-links a {
  color: #cbd5e1;
}

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

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

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

  .nav-bar {
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: flex;
  }

  .hero-slide,
  .ranking-panel,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    padding: 38px;
  }

  .hero-media {
    max-width: 420px;
  }

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

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

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

  .brand {
    font-size: 20px;
  }

  .hero-shell,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 28px;
  }

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

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

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

  .movie-grid,
  .category-grid,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .rank-heat {
    display: none;
  }

  .detail-main,
  .content-block,
  .page-hero .panel {
    padding: 22px;
  }
}
