:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --orange: #f97316;
  --amber: #f59e0b;
  --blue: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--rose), var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: #374151;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--rose);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 10px 16px 18px;
}

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

.mobile-link {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: #374151;
}

.mobile-link:hover {
  background: #fff1f2;
  color: var(--rose);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(244, 63, 94, 0.42), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

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

.hero-copy {
  width: min(760px, 100%);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
}

.hero-kicker {
  padding: 8px 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

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

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-search {
  display: flex;
  width: min(620px, 100%);
  margin-bottom: 24px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px 18px;
  color: #ffffff;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.34);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.35);
}

.btn.ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn.light {
  color: var(--rose);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chip {
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-chip:hover {
  background: rgba(255, 255, 255, 0.28);
}

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

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

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

.section {
  padding: 72px 0;
}

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

.section-head h2,
.center-head h2,
.page-hero h1,
.cta-inner h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--rose);
  font-weight: 900;
  background: #fff1f2;
}

.section-link.blue {
  color: var(--blue);
  background: #eff6ff;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

.latest-grid,
.category-grid,
.search-grid,
.related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.poster-wrap {
  position: relative;
  height: 290px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #3f0f1f);
}

.movie-card.compact .poster-wrap {
  height: 230px;
}

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

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

.poster-tag,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 11px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.card-body h3 {
  margin: 0 0 8px;
  overflow: hidden;
  color: #1f2937;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--rose);
}

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

.card-meta,
.rank-meta,
.movie-meta-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: auto;
  color: #6b7280;
  font-size: 13px;
}

.movie-card.horizontal {
  flex-direction: row;
}

.movie-card.horizontal .poster-wrap {
  width: 34%;
  min-height: 210px;
  height: auto;
}

.movie-card.horizontal .card-body {
  width: 66%;
  justify-content: center;
}

.pill {
  width: fit-content;
  padding: 6px 12px;
  color: var(--rose);
  background: #fff1f2;
}

.pill.small {
  margin-bottom: 10px;
}

.pill.strong {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 14px;
}

.category-band {
  padding: 72px 0;
  background: linear-gradient(135deg, #fff1f2, #fff7ed, #fffbeb);
}

.center-head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.center-head p,
.page-hero p,
.cta-inner p {
  color: var(--muted);
  font-size: 18px;
}

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

.category-pill {
  min-height: 132px;
  padding: 22px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-pill:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-pill strong {
  display: block;
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 20px;
}

.category-pill span {
  color: var(--muted);
  font-size: 14px;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.rank-content {
  min-width: 0;
}

.rank-content h3 {
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-content p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.ranking-item img {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  background: #111827;
}

.cta-band {
  padding: 70px 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--orange), var(--amber));
}

.cta-inner {
  text-align: center;
}

.cta-inner p {
  margin: 16px auto 28px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
}

.page-main {
  min-height: 60vh;
  background: #f9fafb;
}

.page-hero {
  padding: 64px 0;
}

.gradient-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 15%, rgba(255, 255, 255, 0.25), transparent 20%),
    linear-gradient(90deg, var(--rose), var(--orange), var(--amber));
}

.gradient-hero .section-kicker,
.gradient-hero p {
  color: rgba(255, 255, 255, 0.9);
}

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

.breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.detail-breadcrumb {
  margin: 28px 0;
  color: #6b7280;
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 160px;
  background: #111827;
}

.category-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.category-overview-body {
  padding: 22px;
}

.category-overview-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-overview-body p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 22px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-title {
  font-weight: 900;
  color: #1f2937;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0 14px;
  color: #1f2937;
  background: #ffffff;
  outline: none;
}

.filter-controls input {
  min-width: min(360px, 100%);
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.detail-main {
  background: #f9fafb;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  padding-left: 4px;
  border-radius: 999px;
  font-size: 28px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 36px rgba(225, 29, 72, 0.42);
}

.text-card,
.info-panel {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.text-card {
  margin-top: 26px;
  padding: 28px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.title-row h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0;
  color: #4b5563;
  font-size: 18px;
}

.movie-intro h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.movie-intro p {
  margin: 0;
  color: #374151;
}

.review-box {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-list span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #374151;
  font-size: 14px;
  background: #f3f4f6;
  transition: background 0.2s ease, color 0.2s ease;
}

.tag-list span:hover {
  color: var(--rose);
  background: #fff1f2;
}

.info-panel {
  position: sticky;
  top: 100px;
  padding: 22px;
}

.info-panel img {
  width: 100%;
  height: 360px;
  border-radius: 18px;
  object-fit: cover;
  background: #111827;
}

.info-panel h2 {
  margin: 22px 0 16px;
  font-size: 22px;
}

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

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

.info-panel dd {
  margin: 0;
  color: #1f2937;
  font-weight: 700;
}

.info-panel dd a {
  color: var(--rose);
}

.related-section {
  padding-top: 56px;
}

.site-footer {
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  padding: 56px 0 36px;
}

.site-footer p {
  max-width: 420px;
  color: var(--muted);
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: #6b7280;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid #d1d5db;
  padding: 20px 16px;
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1024px) {
  .featured-grid,
  .latest-grid,
  .category-grid,
  .search-grid,
  .related-grid,
  .category-pill-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .info-panel {
    position: static;
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    height: 680px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.66));
  }

  .section-head,
  .filter-panel,
  .title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-controls,
  .filter-controls input,
  .filter-controls select {
    width: 100%;
  }

  .ranking-grid,
  .category-pill-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero {
    height: 720px;
  }

  .hero-search {
    align-items: stretch;
    flex-direction: column;
    border-radius: 22px;
  }

  .hero-search button {
    min-height: 46px;
  }

  .featured-grid,
  .latest-grid,
  .category-grid,
  .search-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    flex-direction: column;
  }

  .movie-card.horizontal .poster-wrap,
  .movie-card.horizontal .card-body {
    width: 100%;
  }

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

  .ranking-item img {
    display: none;
  }

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

  .info-panel img {
    height: 300px;
  }
}
