:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 18px 60px rgba(225, 29, 72, 0.12);
  --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.09);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 113, 133, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 12%, rgba(244, 114, 182, 0.15), transparent 28rem),
    linear-gradient(135deg, var(--rose-50) 0%, #ffffff 44%, #fdf2f8 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rose-100);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.08);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--rose-600);
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
}

.brand-name {
  font-size: 20px;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  color: var(--slate-700);
  transition: color 0.2s ease, background 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--rose-100);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
}

.header-search input {
  width: 220px;
  border: 0;
  outline: 0;
  padding: 8px 10px 8px 14px;
  background: transparent;
  color: var(--slate-800);
}

.header-search button,
.primary-btn,
.secondary-btn,
.filter-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.23);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.filter-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(244, 63, 94, 0.28);
}

.secondary-btn {
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: var(--rose-50);
  color: var(--rose-600);
  border-radius: 12px;
  padding: 9px 12px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--rose-50);
}

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

.hero {
  position: relative;
  margin: 28px auto 52px;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(135deg, #fff1f2, #ffffff 42%, #fce7f3);
  box-shadow: var(--shadow-soft);
  min-height: 520px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(251, 113, 133, 0.28), transparent 22rem),
    radial-gradient(circle at 82% 68%, rgba(236, 72, 153, 0.18), transparent 26rem);
  pointer-events: none;
}

.hero-slider {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 40px;
  align-items: center;
  padding: 58px;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

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

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  box-shadow: 0 8px 26px rgba(244, 63, 94, 0.08);
}

.hero h1,
.page-hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: var(--slate-900);
}

.hero h1 span,
.page-hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p,
.page-hero p {
  max-width: 620px;
  color: var(--slate-500);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.hero-tags,
.hero-stats,
.detail-meta,
.tag-row,
.card-stats,
.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.info-pill,
.breadcrumb a,
.breadcrumb span {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--rose-100);
}

.hero-stats {
  margin-top: 20px;
  color: var(--slate-500);
  font-weight: 700;
}

.hero-poster-wrap {
  position: relative;
  min-height: 410px;
}

.hero-poster-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 34px;
  background: var(--white);
  box-shadow: 0 24px 80px rgba(225, 29, 72, 0.23);
  transform: rotate(2deg);
}

.hero-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster-card::after,
.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.56));
  pointer-events: none;
}

.hero-float-panel {
  position: absolute;
  left: -24px;
  right: 26px;
  bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.hero-float-panel strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.22);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

.section,
.page-hero,
.detail-layout,
.player-section {
  margin-bottom: 54px;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h2,
.player-section h2 {
  margin: 0;
  color: var(--slate-900);
}

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

.section-heading p {
  margin: 8px 0 0;
  color: var(--slate-500);
}

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

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

.category-tile {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 228, 230, 0.9);
  box-shadow: var(--shadow-card);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.18), rgba(244, 114, 182, 0.18));
  transition: opacity 0.22s ease;
}

.category-tile:hover::before {
  opacity: 1;
}

.category-tile strong {
  position: relative;
  display: block;
  font-size: 22px;
  color: var(--slate-900);
}

.category-tile span {
  position: relative;
  display: block;
  margin-top: 10px;
  color: var(--slate-500);
}

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

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

.movie-list {
  display: grid;
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 228, 230, 0.92);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 113, 133, 0.46);
  box-shadow: 0 20px 50px rgba(225, 29, 72, 0.16);
}

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

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

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

.play-pill,
.rank-no {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.32);
}

.play-pill {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  font-size: 13px;
}

.rank-no {
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

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

.movie-meta-line {
  margin-bottom: 10px;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-meta-line a {
  color: var(--rose-600);
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 10px;
  min-height: 3.1em;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.55;
}

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

.movie-card p {
  margin: 0 0 14px;
  color: var(--slate-500);
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-stats {
  justify-content: space-between;
  margin-top: 14px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.movie-card-wide .poster-link {
  aspect-ratio: auto;
  min-height: 250px;
}

.page-hero {
  padding: 44px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 228, 230, 0.95);
  box-shadow: var(--shadow-soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr auto;
  gap: 12px;
  padding: 18px;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--rose-100);
  box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--rose-100);
  border-radius: 14px;
  padding: 0 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--slate-700);
}

.filter-count {
  margin: 0 0 18px;
  color: var(--slate-500);
  font-weight: 700;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy {
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--rose-100);
  box-shadow: var(--shadow-card);
}

.detail-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  color: var(--slate-900);
}

.detail-copy .lead {
  color: var(--slate-500);
  font-size: 18px;
  line-height: 1.85;
}

.detail-copy h2,
.player-section h2 {
  margin-top: 30px;
  font-size: 26px;
}

.detail-copy p {
  color: var(--slate-600);
  line-height: 1.9;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f172a;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.72)),
    radial-gradient(circle at center, rgba(244, 63, 94, 0.32), transparent 30rem);
}

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

.player-start {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--white);
  font-size: 34px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.38);
}

.player-title {
  margin-top: 18px;
  text-align: center;
  font-weight: 800;
}

.empty-state {
  padding: 30px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  color: var(--slate-500);
  text-align: center;
  border: 1px solid var(--rose-100);
}

.site-footer {
  margin-top: 64px;
  padding: 44px 0;
  border-top: 1px solid var(--rose-100);
  background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.6fr;
  gap: 32px;
}

.footer-inner p {
  max-width: 520px;
  color: var(--slate-500);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px 18px;
}

.footer-cats a {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--rose-50);
}

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

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 38px;
  }

  .hero-poster-wrap {
    min-height: 340px;
  }

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

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

@media (max-width: 760px) {
  .main {
    width: min(100% - 24px, 1200px);
  }

  .brand-name {
    font-size: 18px;
  }

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

  .hero-slide {
    padding: 26px;
  }

  .hero-dots {
    left: 26px;
  }

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

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

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

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

  .page-hero,
  .detail-copy {
    padding: 26px;
  }

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

@media (max-width: 460px) {
  .category-grid,
  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-slider {
    min-height: 820px;
  }

  .hero-poster-wrap {
    min-height: 300px;
  }
}
