:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 12px 30px rgba(17, 24, 39, 0.08);
  --shadow-strong: 0 24px 70px rgba(17, 24, 39, 0.2);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, #ffffff 0%, #fff8f9 36%, #f9fafb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-50), var(--gray-100));
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: var(--max-width);
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo {
  flex: 0 0 auto;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500), var(--rose-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

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

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

.header-search input,
.mobile-search input,
.page-filter input {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #ffffff;
  color: var(--gray-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 190px;
  padding: 10px 15px;
}

.header-search input:focus,
.mobile-search input:focus,
.page-filter input:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button,
.mobile-search button,
.page-filter button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(244, 63, 94, 0.24);
}

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

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

.mobile-panel {
  display: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 18px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin: 10px 0 18px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 255, 255, 0.36), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(135deg, #f43f5e 0%, #ec4899 45%, #fb7185 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-glow-one {
  width: 260px;
  height: 260px;
  left: -70px;
  top: 70px;
  background: #ffffff;
}

.hero-glow-two {
  width: 340px;
  height: 340px;
  right: -80px;
  bottom: -110px;
  background: #ffffff;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  min-height: 620px;
  margin: 0 auto;
  padding: 72px 20px 82px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.68fr);
  gap: 46px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.55s ease both;
}

.hero-text {
  color: #ffffff;
}

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

.hero-kicker {
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-text h1 {
  margin: 24px 0 20px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-text p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--rose-600);
  background: var(--rose-50);
  font-size: 12px;
  font-weight: 800;
}

.hero-tags .tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  padding: 13px 22px;
  color: var(--rose-500);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.18);
}

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

.ghost-button {
  padding: 12px 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
  isolation: isolate;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 1;
}

.hero-poster span,
.card-play {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(244, 63, 94, 0.92);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.34);
}

.hero-poster span {
  left: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  font-size: 28px;
}

.hero-controls {
  position: absolute;
  left: 20px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

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

.section,
.page-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 58px 20px;
}

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

.section-heading h2,
.page-hero h1,
.detail-card h1,
.detail-card h2,
.side-card h2,
.footer-column h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.eyebrow {
  margin: 0 0 6px;
}

.section-link {
  color: var(--rose-600);
  background: var(--rose-50);
  padding: 10px 16px;
}

.featured-grid,
.movie-grid,
.category-card-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.14);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--gray-100);
}

.movie-card-featured .card-cover {
  aspect-ratio: 16 / 10;
}

.card-cover img {
  transition: transform 0.55s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 20%, rgba(0, 0, 0, 0.62) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-badge,
.card-score {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.card-badge {
  top: 10px;
  left: 10px;
  color: #ffffff;
  background: var(--rose-500);
}

.card-score {
  right: 10px;
  bottom: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
}

.card-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 17px;
}

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

.card-body h2 a:hover,
.compact-body h2 a:hover,
.category-content h2 a:hover {
  color: var(--rose-500);
}

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

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

.category-band {
  max-width: calc(var(--max-width) - 40px);
  border-radius: 34px;
  background: linear-gradient(135deg, var(--rose-50), #fdf2f8);
  padding: 42px;
}

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

.category-chip {
  display: block;
  min-height: 122px;
  padding: 18px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(244, 63, 94, 0.07);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-chip:hover {
  transform: translateY(-4px);
  background: #ffffff;
}

.category-chip span {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 900;
}

.category-chip small {
  color: var(--gray-600);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 30px;
  align-items: start;
}

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

.rank-panel,
.side-card,
.detail-card,
.poster-card {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-panel,
.side-card {
  padding: 24px;
}

.compact-list,
.rank-list-page {
  display: grid;
  gap: 16px;
}

.compact-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.compact-cover {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray-100);
}

.compact-body h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.compact-body p {
  margin: 6px 0 7px;
  color: var(--gray-600);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-title-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.rank-number {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--rose-500);
  font-size: 12px;
  font-weight: 900;
}

.horizontal-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroller .movie-card {
  scroll-snap-align: start;
}

.page-main {
  padding-top: 36px;
}

.page-hero {
  border-radius: 34px;
  padding: clamp(36px, 6vw, 64px);
  color: var(--gray-900);
  background:
    radial-gradient(circle at 86% 18%, rgba(244, 63, 94, 0.18), transparent 24%),
    linear-gradient(135deg, #fff7f8, #ffffff);
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 58px);
}

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

.page-filter {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin-top: 28px;
}

.page-filter input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
}

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.category-image span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(244, 63, 94, 0.92);
  font-weight: 900;
}

.category-content {
  padding: 22px;
}

.category-content h2 {
  margin: 0 0 10px;
}

.category-content p {
  color: var(--gray-600);
  margin: 0 0 16px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tags a {
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--rose-600);
  background: var(--rose-50);
  font-size: 12px;
  font-weight: 800;
}

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

.empty-state {
  display: none;
  margin-top: 24px;
  border-radius: var(--radius-xl);
  padding: 26px;
  color: var(--gray-600);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

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

.rank-list-page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

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

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow-strong);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  text-align: center;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--rose-500);
  box-shadow: 0 16px 38px rgba(244, 63, 94, 0.44);
  font-size: 34px;
}

.player-overlay strong {
  max-width: 80%;
  font-size: 22px;
}

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.detail-meta {
  margin: 16px 0 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 800;
}

.lead-text {
  margin: 0 0 20px;
  color: var(--gray-700);
  font-size: 18px;
}

.detail-tags .tag:hover {
  background: var(--rose-100);
}

.prose-card h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.prose-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.detail-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
}

.poster-card {
  overflow: hidden;
  padding: 18px;
}

.poster-card img {
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  overflow: hidden;
}

.full-button {
  width: 100%;
  margin-top: 16px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

.side-card h2 {
  margin-bottom: 18px;
  font-size: 22px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(135deg, #ffffff, var(--gray-100));
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 12px;
  color: var(--rose-600);
  font-size: 24px;
  font-weight: 900;
}

.footer-brand p {
  margin: 0;
  color: var(--gray-600);
}

.footer-column h2 {
  margin-bottom: 13px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 9px;
  color: var(--gray-600);
}

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

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding: 18px 20px;
  color: var(--gray-500);
  text-align: center;
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .detail-sidebar {
    position: static;
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

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

  .menu-button {
    display: flex;
    margin-left: auto;
  }

  .hero-section,
  .hero-inner {
    min-height: auto;
  }

  .hero-slide,
  .hero-slide.is-active {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 360px;
    margin: 0 auto;
    transform: none;
  }

  .hero-controls {
    position: static;
    margin-top: 30px;
  }

  .featured-grid,
  .category-card-grid,
  .footer-inner,
  .rank-list-page,
  .detail-sidebar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .header-inner {
    height: 62px;
  }

  .site-logo {
    font-size: 22px;
  }

  .hero-inner,
  .section,
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .hero-text p,
  .page-hero p,
  .lead-text {
    font-size: 16px;
  }

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

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

  .category-band,
  .page-hero {
    padding: 26px;
    border-radius: 26px;
  }

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

  .compact-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .card-body {
    padding: 13px;
  }

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

  .detail-card {
    padding: 20px;
  }
}
