:root {
  --bg: #fff7f4;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(248, 113, 113, 0.2);
  --brand: #e11d48;
  --brand-2: #f97316;
  --brand-3: #ec4899;
  --shadow: 0 24px 60px rgba(225, 29, 72, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.12), transparent 30rem),
    var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.28);
}

.logo-text {
  font-size: 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-weight: 650;
}

.primary-nav > a,
.nav-dropdown > button {
  padding: 10px 0;
  border: 0;
  color: inherit;
  background: transparent;
}

.primary-nav a:hover,
.primary-nav .is-active,
.nav-dropdown > button:hover {
  color: var(--brand);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  border: 1px solid rgba(244, 114, 182, 0.18);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
}

.nav-dropdown-panel a:hover {
  color: var(--brand);
  background: #fff1f2;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand);
}

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

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 42px;
  align-items: center;
  padding: 72px;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.34)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-content {
  max-width: 680px;
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.page-hero .eyebrow,
.detail-info .eyebrow,
.spotlight-card .eyebrow {
  color: #fecdd3;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-poster {
  position: relative;
  display: block;
  padding: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #be123c;
  background: #ffe4e6;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags .tag,
.detail-tags .tag {
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.28);
}

.ghost-button {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-dots {
  position: absolute;
  left: 72px;
  bottom: 38px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-link {
  color: #be123c;
  background: white;
  border: 1px solid rgba(244, 63, 94, 0.16);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 180px));
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(244, 114, 182, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.08);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: white;
}

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

.filter-empty {
  margin: 20px 0;
  padding: 20px;
  border-radius: 18px;
  color: var(--muted);
  background: white;
  text-align: center;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 114, 182, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(244, 63, 94, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(244, 63, 94, 0.16);
}

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

.movie-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-rating,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  border-radius: 999px;
  color: white;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.25);
}

.movie-rating {
  right: 12px;
  bottom: 12px;
}

.rank-badge {
  top: 12px;
  left: 12px;
}

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

.movie-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.category-pill {
  color: #be123c;
  font-weight: 800;
}

.movie-card h3 {
  min-height: 54px;
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 900;
}

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

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

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

.spotlight-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  border-radius: 30px;
  color: white;
  background: linear-gradient(135deg, #111827, #7f1d1d 55%, #9f1239);
  box-shadow: var(--shadow);
}

.spotlight-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.spotlight-card h3 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.2;
}

.spotlight-card p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

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

.ranking-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 114, 182, 0.16);
  border-radius: 18px;
  background: white;
}

.ranking-list span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.ranking-list strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.category-card,
.category-overview-card,
.copy-card {
  border: 1px solid rgba(244, 114, 182, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(244, 63, 94, 0.08);
}

.category-card-main {
  display: block;
  padding: 22px;
}

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

.category-card span {
  color: var(--muted);
  line-height: 1.7;
}

.category-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 22px;
}

.category-card-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-size: 13px;
  font-weight: 800;
}

.mini-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 160px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.mini-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: white;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.1);
}

.mini-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.mini-card span,
.mini-card em {
  display: block;
  padding: 0 12px;
}

.mini-card span {
  padding-top: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.mini-card em {
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 360px;
  margin: 28px auto 0;
  display: grid;
  align-items: end;
  padding: 52px;
  overflow: hidden;
  border-radius: 34px;
  color: white;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(159, 18, 57, 0.78)),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.compact-hero {
  min-height: 300px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  margin-bottom: 22px;
}

.category-overview-text h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 900;
}

.category-overview-text p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

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

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(127, 29, 29, 0.74), rgba(17, 24, 39, 0.84)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.detail-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(18px);
  background: rgba(17, 24, 39, 0.24);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 58px;
}

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

.breadcrumb a:hover {
  color: white;
}

.detail-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  padding: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.detail-section {
  margin-top: 56px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #0f172a;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.56));
}

.play-icon {
  position: relative;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 34px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 45px rgba(225, 29, 72, 0.35);
}

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

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

.copy-card {
  padding: 28px;
}

.copy-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 900;
}

.copy-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

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

.site-footer {
  margin-top: 80px;
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  color: white;
  font-size: 22px;
}

.footer-inner p {
  max-width: 640px;
  margin: 12px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a:hover {
  color: white;
}

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 300px;
    padding: 48px;
  }

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

@media (max-width: 820px) {
  .mobile-menu-button {
    display: block;
  }

  .primary-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    padding: 18px;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-dropdown-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    background: #fff7f4;
  }

  .hero-slider {
    min-height: 760px;
  }

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

  .hero-poster {
    width: min(260px, 100%);
  }

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

  .filter-panel,
  .category-grid,
  .category-overview-card,
  .detail-grid,
  .spotlight-card {
    grid-template-columns: 1fr;
  }

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

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

  .page-hero {
    padding: 32px 24px;
  }
}

@media (max-width: 540px) {
  .header-inner,
  .hero,
  .section,
  .page-hero,
  .detail-hero-inner,
  .footer-inner {
    width: min(100% - 20px, 1180px);
  }

  .movie-grid,
  .wide-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    border-radius: 24px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .section {
    margin: 52px auto;
  }
}
