:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --orange: #f97316;
  --yellow: #fde68a;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --muted: #64748b;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --border: rgba(226, 232, 240, 0.9);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 26px rgba(244, 63, 94, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #fff7f9 0%, #ffffff 34%, #fff7ed 100%);
}

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;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 12px 34px rgba(244, 63, 94, 0.32);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

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

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--yellow);
  opacity: 1;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input {
  width: 230px;
  border: 0;
  outline: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  color: var(--rose);
  background: #ffffff;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

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

.mobile-search input {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  color: #ffffff;
  background: var(--slate);
}

.hero-slides {
  min-height: 660px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: 52px;
  padding: 84px max(32px, calc((100vw - 1180px) / 2)) 96px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff7ed;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  max-width: 660px;
  font-size: 19px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
}

.hero-tags,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 24px 0 30px;
}

.hero-tags span,
.card-tags span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero-actions,
.cta-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.32);
}

.btn.ghost,
.btn.glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.btn.light {
  color: var(--rose);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.hero-poster {
  position: relative;
  z-index: 2;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

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

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

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

.section,
.page-main {
  padding: 58px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.cta-panel h2 {
  margin: 0;
  color: #111827;
  letter-spacing: -0.04em;
}

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

.section-head p,
.page-hero p,
.cta-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link,
.card-link,
.card-category {
  color: var(--rose);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fb7185, #fdba74);
}

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

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

.card-year,
.card-type {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.card-year {
  left: 12px;
}

.card-type {
  right: 12px;
}

.card-body {
  padding: 18px;
}

.card-meta {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
}

.card-body p {
  min-height: 64px;
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.65;
}

.card-tags {
  margin-bottom: 16px;
}

.card-tags span {
  color: #be123c;
  background: #ffe4e6;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.card-category {
  color: #ea580c;
  font-size: 14px;
}

.category-section {
  border-radius: 34px;
  padding: 42px;
  background: linear-gradient(90deg, #fff1f2, #ffedd5);
}

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

.category-card {
  min-height: 210px;
  border-radius: 28px;
  padding: 24px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-6px);
}

.category-card span {
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.ranking-section {
  border-radius: 34px;
  padding: 42px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: #fff7ed;
}

.rank-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.rank-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
}

.rank-row img {
  grid-row: 1 / span 2;
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-title {
  font-weight: 900;
  color: #111827;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.cta-panel {
  margin: 50px auto 80px;
  border-radius: 34px;
  padding: 62px 32px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: var(--shadow);
}

.cta-panel h2,
.cta-panel p {
  color: #ffffff;
}

.cta-actions {
  margin-top: 26px;
  justify-content: center;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: 58px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(38px, 6vw, 62px);
}

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

.small-hero {
  margin-bottom: 36px;
}

.category-hero {
  margin-bottom: 28px;
}

.filter-panel {
  display: flex;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  color: #111827;
  background: #fff7f9;
}

.filter-panel select {
  max-width: 220px;
}

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

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

.overview-card {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.overview-image {
  min-height: 170px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background-position: center;
  background-size: cover;
}

.overview-body {
  padding: 22px;
}

.overview-body h2 {
  margin: 0 0 10px;
}

.overview-body p {
  color: var(--muted);
  line-height: 1.7;
}

.overview-samples {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: #4b5563;
  font-size: 14px;
}

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

.ranking-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px 132px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.rank-badge {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.ranking-cover img {
  width: 132px;
  height: 176px;
  object-fit: cover;
  border-radius: 20px;
}

.ranking-card h2 {
  margin: 0 0 8px;
}

.ranking-card p {
  color: #4b5563;
  line-height: 1.7;
}

.ranking-meta {
  font-weight: 800;
  color: var(--muted);
}

.detail-main {
  background: linear-gradient(180deg, #0f172a 0, #111827 260px, #fff7f9 260px, #ffffff 100%);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  padding-top: 54px;
  padding-bottom: 48px;
}

.detail-poster img {
  width: 260px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.45);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 18px;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

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

.detail-tags a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.player-section {
  padding: 32px 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.36);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 6px;
  font-size: 38px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.42);
}

.play-label {
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.detail-content {
  padding: 24px 0 16px;
}

.detail-article {
  border-radius: 30px;
  padding: 34px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-article h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 28px;
}

.detail-article p {
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
}

.meta-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.meta-table div {
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
}

.meta-table dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.meta-table dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b, #111827);
  margin-top: 70px;
}

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

.footer-inner h2,
.footer-inner h3 {
  color: #ffffff;
  margin-top: 0;
}

.footer-inner p {
  line-height: 1.8;
}

.footer-inner a {
  display: block;
  margin: 10px 0;
  color: #cbd5e1;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 72px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .detail-poster img {
    width: 190px;
  }

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

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

@media (max-width: 720px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .logo {
    font-size: 19px;
  }

  .hero,
  .hero-slides {
    min-height: 580px;
  }

  .hero-slide {
    padding: 60px 22px 86px;
  }

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

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

  .hero-control {
    display: none;
  }

  .section,
  .page-main {
    padding: 36px 0;
  }

  .section-head {
    display: block;
  }

  .movie-grid,
  .featured-grid,
  .related-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .category-section,
  .ranking-section,
  .page-hero,
  .detail-article {
    padding: 24px;
    border-radius: 26px;
  }

  .filter-panel {
    flex-direction: column;
  }

  .filter-panel select {
    max-width: none;
  }

  .ranking-card {
    grid-template-columns: 60px 90px 1fr;
    gap: 12px;
  }

  .rank-badge {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 18px;
  }

  .ranking-cover img {
    width: 90px;
    height: 120px;
    border-radius: 16px;
  }

  .ranking-card p {
    display: none;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .detail-poster img {
    width: 160px;
  }

  .detail-info h1 {
    font-size: 38px;
  }

  .player-shell {
    border-radius: 22px;
  }

  .play-circle {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }

  .meta-table {
    grid-template-columns: 1fr;
  }
}
