:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --orange-50: #fff7ed;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --pink-50: #fdf2f8;
  --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: 0 12px 35px rgba(31, 41, 55, 0.12);
  --shadow-soft: 0 8px 24px rgba(244, 63, 94, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, var(--rose-50) 0%, var(--orange-50) 45%, var(--pink-50) 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.96));
  box-shadow: 0 6px 20px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--max-width), calc(100% - 32px));
  height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  box-shadow: var(--shadow-soft);
  font-size: 14px;
}

.brand-text {
  font-size: clamp(20px, 2vw, 26px);
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

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

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-search {
  position: relative;
  width: min(270px, 24vw);
}

.nav-search input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 10px 44px 10px 16px;
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.nav-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  color: var(--rose-500);
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.hero {
  position: relative;
  height: clamp(480px, 58vw, 650px);
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.48), transparent 30%), linear-gradient(135deg, #111827, #431407);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.46) 44%, rgba(17, 24, 39, 0.12));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - var(--max-width)) / 2));
  right: 24px;
  bottom: clamp(58px, 8vw, 106px);
  max-width: 760px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  box-shadow: var(--shadow-soft);
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
}

.hero-content p {
  margin: 0 0 28px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 21px);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 46px;
  padding: 12px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
  box-shadow: var(--shadow-soft);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.ghost-button.light {
  color: var(--rose-600);
  border-color: rgba(244, 63, 94, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.primary-button:hover,
.ghost-button:hover,
.category-card:hover,
.movie-card:hover .card-link {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.2);
}

.small-button {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 14px;
}

.full-button {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 22px;
  transform: translateY(-50%);
}

.hero-next {
  right: 22px;
  transform: translateY(-50%);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.section {
  padding-block: 54px;
}

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

.compact-heading {
  margin-bottom: 20px;
}

.section-heading h2,
.page-hero h1,
.detail-content h1 {
  margin: 12px 0 0;
  color: var(--gray-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-kicker {
  color: var(--rose-600);
  background: var(--rose-100);
  box-shadow: none;
}

.text-link {
  color: var(--rose-600);
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card.is-hidden {
  display: none;
}

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.42), transparent 34%), linear-gradient(135deg, #881337, #7c2d12);
}

.card-cover img,
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s ease, opacity 0.2s ease;
}

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

.card-cover img.is-missing,
.poster-card img.is-missing,
.hero-slide img.is-missing {
  opacity: 0;
}

.card-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
}

.card-chip {
  top: 10px;
  right: 10px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 34px;
  text-align: center;
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  display: -webkit-box;
  min-height: 1.35em;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta span,
.detail-meta span,
.tag-row span,
.tag-row a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--gray-100);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
}

.panel,
.category-overview-card,
.player-card,
.side-card {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.panel {
  padding: 28px;
}

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

.category-card {
  min-height: 168px;
  padding: 22px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--white), rgba(255, 241, 242, 0.8));
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  border-color: rgba(244, 63, 94, 0.34);
}

.category-card span {
  color: var(--gray-800);
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 12px;
  color: var(--gray-600);
  font-size: 14px;
}

.category-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 700;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--gray-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-link:hover {
  background: var(--rose-50);
  transform: translateX(3px);
}

.mini-link span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  font-size: 13px;
  font-weight: 850;
}

.mini-link strong,
.mini-link em {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-link strong {
  color: var(--gray-800);
  font-size: 14px;
}

.mini-link em {
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  margin-top: 38px;
  padding: clamp(42px, 8vw, 82px);
  border-radius: 30px;
  color: var(--gray-800);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 242, 0.9));
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--gray-600);
  font-size: 18px;
}

.category-overview-list {
  display: grid;
  gap: 28px;
  padding-block: 42px 60px;
}

.category-overview-card {
  padding: 26px;
}

.overview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.overview-head h2 {
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 26px;
  font-weight: 900;
}

.overview-head p {
  margin: 0;
  color: var(--gray-600);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}

.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--gray-700);
  background: var(--white);
  outline: none;
}

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

.detail-shell {
  padding-block: 30px 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose-600);
  font-weight: 750;
}

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

.player-card {
  overflow: hidden;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.video-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.32), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-symbol {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  font-size: 28px;
  padding-left: 4px;
}

.detail-content {
  padding: clamp(22px, 4vw, 34px);
}

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

.tag-row a {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
  font-weight: 800;
}

.tag-row span {
  color: var(--rose-600);
  background: var(--rose-100);
  font-weight: 700;
}

.detail-meta {
  margin: 12px 0 22px;
}

.lead-text {
  margin: 0 0 26px;
  color: var(--gray-700);
  font-size: 19px;
  font-weight: 650;
}

.detail-content h2,
.side-card h2 {
  margin: 26px 0 12px;
  color: var(--gray-800);
  font-size: 22px;
  font-weight: 900;
}

.detail-content p {
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 16px;
}

.related-section {
  padding-bottom: 0;
}

.detail-side {
  display: grid;
  gap: 22px;
}

.side-card {
  padding: 22px;
}

.poster-card {
  overflow: hidden;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #881337, #7c2d12);
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, var(--gray-900), #1f2937);
}

.footer-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
  gap: 34px;
  padding-block: 48px;
}

.footer-brand p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-logo .brand-text {
  color: var(--white);
  background: none;
  -webkit-text-fill-color: var(--white);
}

.footer-links {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 16px;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  font-size: 14px;
}

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

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

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

@media (max-width: 860px) {
  .nav-shell {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu,
  .nav-search {
    display: none;
    width: 100%;
  }

  .nav-menu.is-open,
  .nav-search.is-open {
    display: grid;
  }

  .nav-menu {
    gap: 6px;
  }

  .nav-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    left: 22px;
    bottom: 72px;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

@media (max-width: 620px) {
  .movie-grid,
  .small-grid,
  .category-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card-body {
    padding: 13px;
  }

  .card-body h2 {
    font-size: 15px;
  }

  .card-body p {
    font-size: 13px;
  }

  .panel,
  .category-overview-card,
  .side-card,
  .page-hero {
    padding: 20px;
  }

  .play-symbol {
    width: 62px;
    height: 62px;
  }
}
