:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --green-50: #f0fdf4;
  --green-500: #22c55e;
  --blue-50: #eff6ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 4px 18px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.18);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--rose-50), var(--white) 48%, var(--amber-50));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  max-width: 1180px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, #fb7185, var(--pink-500));
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand strong {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-600);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

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

.mobile-nav .nav-link {
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-nav .nav-link:hover {
  background: var(--rose-50);
}

.main-home,
.page-main {
  padding-top: 64px;
}

.section-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 20px;
}

.narrow-wrap {
  max-width: 980px;
}

.hero-section {
  position: relative;
  height: 640px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.90), rgba(219, 39, 119, 0.84) 48%, rgba(245, 158, 11, 0.72)),
    linear-gradient(90deg, rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.08));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  color: var(--white);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--rose-600);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-kicker {
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.section-kicker.green {
  color: var(--green-500);
}

.section-kicker.amber {
  color: var(--amber-500);
}

.hero-content h1 {
  margin: 0 0 24px;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
}

.hero-content h1 span {
  display: block;
  color: var(--amber-100);
  font-size: 0.56em;
  letter-spacing: 0;
  margin-top: 10px;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  line-height: 1.8;
}

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

.primary-button,
.ghost-button,
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.home-search button {
  color: var(--rose-600);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.primary-button:hover,
.home-search button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.ghost-button {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

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

.hero-dot.active {
  background: var(--white);
}

.quick-search-section {
  background: linear-gradient(180deg, var(--rose-50), rgba(255, 255, 255, 0));
}

.quick-search-card {
  padding-top: 34px;
  padding-bottom: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
}

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

.home-search {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.home-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 18px;
  color: var(--gray-800);
  background: transparent;
}

.home-search button {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
}

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

.section-heading h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

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

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

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

.full-grid {
  align-items: stretch;
}

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), var(--amber-100));
}

.movie-card-large .poster-link {
  aspect-ratio: 4 / 3;
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.56));
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.28);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--rose-600);
}

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

.card-text {
  margin: 0;
  min-height: 48px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--rose-700);
  background: var(--rose-50);
  font-size: 12px;
  font-weight: 700;
}

.tag-row.light span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tinted-section {
  background: linear-gradient(135deg, var(--green-50), var(--white), var(--blue-50));
}

.rose-tint {
  background: linear-gradient(135deg, var(--rose-50), var(--white), var(--amber-50));
}

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

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

.rank-row {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rank-link {
  display: grid;
  grid-template-columns: 56px 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px 12px 12px;
}

.rank-num {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 900;
}

.rank-num.rank-top {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
}

.rank-link img {
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-main strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-main small {
  overflow: hidden;
  color: var(--gray-500);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  color: var(--gray-500);
  font-size: 13px;
  white-space: nowrap;
}

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

.category-tile,
.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-tile > a,
.category-main-link {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.tile-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 14px 36px rgba(225, 29, 72, 0.24);
}

.category-tile strong,
.category-main-link strong {
  font-size: 22px;
}

.category-tile p,
.category-main-link p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.tile-samples,
.overview-samples {
  display: grid;
  gap: 10px;
  padding: 0 18px 20px;
}

.mini-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: var(--gray-50);
}

.mini-card img {
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.mini-card span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mini-card strong,
.mini-card small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-card small {
  color: var(--gray-500);
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.94), rgba(219, 39, 119, 0.90), rgba(245, 158, 11, 0.78));
}

.page-hero .section-wrap {
  padding-top: 88px;
  padding-bottom: 74px;
}

.page-hero .section-kicker,
.page-hero .section-kicker.amber {
  color: rgba(255, 255, 255, 0.86);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.1;
}

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

.filter-panel {
  position: sticky;
  top: 78px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(225, 29, 72, 0.10);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.search-box {
  display: grid;
  gap: 6px;
  color: var(--gray-700);
  font-weight: 800;
}

.search-box input,
.filter-actions select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  outline: none;
  color: var(--gray-800);
  background: var(--white);
}

.search-box input {
  padding: 0 14px;
}

.search-box input:focus,
.filter-actions select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.filter-actions select {
  min-width: 130px;
  padding: 0 10px;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.30), rgba(17, 24, 39, 0.84)),
    linear-gradient(135deg, rgba(225, 29, 72, 0.78), rgba(219, 39, 119, 0.48));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

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

.detail-hero h1 {
  max-width: 920px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-hero p {
  max-width: 840px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  line-height: 1.8;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.detail-content,
.detail-side,
.content-block,
.info-panel {
  min-width: 0;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #05070d;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #05070d;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.30), rgba(5, 7, 13, 0.68));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 999px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.94);
  font-size: 30px;
  box-shadow: var(--shadow-md);
}

.content-block,
.info-panel {
  margin-top: 24px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.content-block h2,
.info-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-block p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.95;
}

.detail-poster {
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.info-panel dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

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

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

.info-panel a {
  color: var(--rose-600);
  font-weight: 800;
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid rgba(225, 29, 72, 0.12);
  background: linear-gradient(135deg, var(--rose-50), var(--amber-50));
}

.footer-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  gap: 26px;
}

.footer-brand p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-links a {
  color: var(--gray-700);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--rose-600);
}

.copyright {
  margin: 0;
  color: var(--gray-500);
}

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

@media (max-width: 1024px) {
  .movie-grid,
  .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
}

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

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

  .brand-text small {
    display: none;
  }

  .hero-section {
    height: 620px;
  }

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

  .quick-search-card,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .home-search,
  .filter-actions {
    flex-direction: column;
  }

  .home-search {
    border-radius: var(--radius-md);
  }

  .home-search input {
    height: 46px;
  }

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

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

  .rank-meta {
    grid-column: 3;
  }

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

@media (max-width: 560px) {
  .nav-wrap {
    padding: 0 14px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

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

  .section-wrap {
    padding: 48px 14px;
  }

  .hero-section {
    height: 590px;
  }

  .hero-content {
    width: calc(100% - 28px);
  }

  .hero-actions a {
    width: 100%;
  }

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

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

  .detail-hero {
    min-height: 480px;
  }

  .content-block,
  .info-panel {
    padding: 20px;
  }
}