:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --orange-400: #fb923c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #0f172a;
  --shadow-soft: 0 14px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, #ffffff 0%, #fff7f8 32%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.site-nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 13px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--gray-700);
  font-weight: 600;
}

.nav-links a,
.mobile-panel a,
.footer-links a {
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gray-900);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
  padding: 12px 18px 18px;
}

.mobile-panel a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 600;
}

.mobile-panel a:hover,
.mobile-panel a.is-active {
  color: var(--rose-600);
  background: var(--rose-50);
}

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

.hero-carousel {
  position: relative;
  min-height: 640px;
  margin-top: 68px;
  overflow: hidden;
  background: var(--black);
}

.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;
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 38%, rgba(244, 63, 94, 0.34), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.74) 46%, rgba(15, 23, 42, 0.18)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.7), transparent 38%);
}

.hero-inner {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 78px 0;
}

.hero-copy {
  color: var(--white);
}

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

.hero-copy h1,
.hero-copy h2 {
  max-width: 760px;
  margin: 12px 0 18px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy h2 + p,
.hero-copy p {
  max-width: 720px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

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

.primary-button,
.secondary-button,
.home-search button,
.mini-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button,
.home-search button,
.mini-play {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 15px 28px rgba(244, 63, 94, 0.34);
}

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

.primary-button:hover,
.secondary-button:hover,
.home-search button:hover,
.mini-play:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 13px;
  color: var(--white);
  background: rgba(244, 63, 94, 0.9);
  border-radius: 999px;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
  z-index: 4;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 99px;
  background: var(--rose-500);
}

.quick-search-section,
.section-block {
  padding: 54px 0 0;
}

.quick-search-card,
.filter-panel,
.content-card,
.category-card,
.movie-card,
.rank-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 63, 94, 0.1);
  box-shadow: var(--shadow-card);
}

.quick-search-card {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.quick-search-card h2,
.section-heading h2,
.filter-panel h1,
.page-hero h1,
.content-card h2 {
  margin: 0;
  color: var(--gray-900);
  letter-spacing: -0.04em;
}

.quick-search-card h2,
.section-heading h2,
.content-card h2 {
  font-size: 30px;
}

.quick-search-card p,
.filter-panel p,
.page-hero p,
.category-card p,
.movie-card p,
.rank-body p,
.content-card p,
.site-footer p {
  color: var(--gray-600);
}

.home-search,
.search-box {
  display: flex;
  gap: 12px;
}

.home-search input,
.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: none;
  color: var(--gray-900);
  background: var(--white);
}

.home-search input:focus,
.search-box input:focus {
  border-color: rgba(244, 63, 94, 0.55);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), var(--gray-100));
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-type,
.rank-badge,
.card-play {
  position: absolute;
  z-index: 2;
}

.card-type {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
  border-radius: 50%;
  font-weight: 900;
}

.card-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(244, 63, 94, 0.88);
  border-radius: 50%;
  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);
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h3,
.rank-body h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 46px;
  margin: 0 0 12px;
  font-size: 14px;
}

.tag-row span {
  color: var(--rose-600);
  background: var(--rose-50);
}

.small-card .movie-card-body {
  padding: 14px;
}

.small-card h3 {
  font-size: 16px;
}

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.category-card > a {
  display: block;
  min-height: 190px;
  padding: 22px;
  background:
    radial-gradient(circle at 88% 10%, rgba(244, 63, 94, 0.24), transparent 35%),
    linear-gradient(135deg, #fff, var(--rose-50));
}

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

.category-card strong {
  display: block;
  margin: 12px 0 10px;
  color: var(--gray-900);
  font-size: 21px;
  line-height: 1.25;
}

.category-card p {
  margin: 0;
  font-size: 14px;
}

.category-preview {
  display: grid;
  gap: 6px;
  padding: 14px 18px 18px;
}

.category-preview a {
  color: var(--gray-600);
  font-size: 14px;
}

.category-preview a:hover {
  color: var(--rose-600);
}

.page-main {
  padding: 104px 0 70px;
}

.page-hero,
.filter-panel {
  margin-bottom: 28px;
  padding: 34px;
  border-radius: var(--radius-lg);
}

.small-hero {
  background:
    radial-gradient(circle at 80% 15%, rgba(244, 63, 94, 0.18), transparent 28%),
    linear-gradient(135deg, var(--white), var(--rose-50));
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: var(--shadow-card);
}

.page-hero h1,
.filter-panel h1 {
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 56px);
}

.filter-panel {
  display: grid;
  gap: 20px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.empty-state {
  padding: 42px;
  text-align: center;
  color: var(--gray-500);
  background: var(--white);
  border-radius: var(--radius-md);
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 68px 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
  border-radius: 16px;
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
}

.rank-thumb img {
  width: 92px;
  height: 120px;
  object-fit: cover;
}

.rank-body h3 {
  font-size: 20px;
}

.rank-body p {
  margin: 0 0 8px;
}

.mini-play {
  min-height: 40px;
  padding: 0 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.page-main .breadcrumb {
  color: var(--gray-600);
}

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

.detail-main {
  padding-bottom: 70px;
}

.detail-hero {
  position: relative;
  min-height: 640px;
  padding: 118px 0 60px;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.12);
  transform: scale(1.08);
  opacity: 0.4;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 63, 94, 0.26), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.68));
}

.detail-hero .container {
  position: relative;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
  gap: 34px;
  align-items: center;
}

.video-player {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.video-player video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-player video {
  object-fit: contain;
  z-index: 1;
}

.player-cover {
  z-index: 2;
  padding: 0;
  border: 0;
  background: #000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  object-fit: cover;
  opacity: 0.76;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.1));
}

.player-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.38);
  transform: translate(-50%, -50%);
  font-size: 28px;
}

.detail-info h1 {
  margin: 12px 0 14px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.detail-meta {
  margin-bottom: 14px;
}

.detail-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 44px;
}

.content-card {
  padding: 28px;
  border-radius: var(--radius-md);
}

.content-card p {
  margin: 14px 0 0;
  font-size: 16px;
}

.site-footer {
  margin-top: 70px;
  padding: 46px 0 0;
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-links a {
  color: var(--gray-600);
  font-weight: 700;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: 20px 0;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 12px;
    font-size: 14px;
  }

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

  .hero-poster {
    display: none;
  }

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

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

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

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-carousel,
  .hero-inner {
    min-height: 620px;
  }

  .hero-inner {
    padding: 54px 0 74px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .detail-info h1 {
    font-size: 42px;
  }

  .hero-actions,
  .home-search {
    flex-direction: column;
  }

  .quick-search-card,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 44px 74px 1fr;
    gap: 12px;
  }

  .rank-thumb img {
    width: 74px;
    height: 98px;
  }

  .rank-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
  }

  .rank-body p,
  .rank-body .meta-line {
    display: none;
  }

  .mini-play {
    grid-column: 3;
    justify-self: start;
    min-height: 34px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .page-hero,
  .filter-panel,
  .quick-search-card,
  .content-card {
    padding: 22px;
  }

  .hero-controls {
    bottom: 18px;
  }
}
