: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-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(225, 29, 72, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 34%, #fff6f8 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

img,
video {
  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.88);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 22px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--gray-900);
}

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

.logo-text {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--gray-700);
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-active {
  color: var(--rose-600);
  background: var(--rose-50);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--rose-600);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--rose-100);
  padding: 12px 22px 18px;
}

.mobile-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mobile-category-row a {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 13px;
}

.hero-carousel {
  max-width: var(--container);
  margin: 28px auto 0;
  padding: 0 22px;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--gray-900);
  box-shadow: var(--shadow-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 42px;
  align-items: center;
  padding: 72px;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.52;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 80% 20%, rgba(244, 63, 94, 0.58), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.45));
}

.hero-content,
.hero-cover {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--rose-600);
  background: rgba(255, 228, 230, 0.92);
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px;
}

.hero-tags span,
.detail-meta span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.hero-actions,
.detail-info-panel .primary-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.ghost-btn,
.inline-search button,
.search-box-large button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.inline-search button,
.search-box-large button {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 14px 24px rgba(244, 63, 94, 0.24);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.inline-search button:hover,
.search-box-large button:hover {
  transform: translateY(-2px);
}

.hero-cover {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.hero-cover img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

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

.hero-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--rose-600);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  opacity: 0.4;
}

.hero-dot.is-active {
  width: 28px;
  opacity: 1;
  background: var(--rose-500);
}

.search-band,
.content-section,
.page-hero,
.detail-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.search-band {
  margin-top: 34px;
}

.search-panel,
.page-hero,
.feature-card,
.player-card,
.movie-article,
.side-panel,
.search-box-large {
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.search-panel h2,
.section-heading h2,
.hot-list h2,
.movie-article h2,
.side-panel h2 {
  margin: 0;
  color: var(--gray-900);
  line-height: 1.18;
}

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

.inline-search input,
.filter-toolbar input,
.filter-toolbar select,
.search-box-large input {
  width: 100%;
  border: 1px solid var(--rose-100);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
}

.inline-search input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus,
.search-box-large input:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14);
}

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

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

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--gray-500);
}

.section-link {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-50);
  font-weight: 800;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--white), var(--rose-50));
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile {
  padding: 20px;
}

.category-tile strong,
.category-overview-card h2 {
  display: block;
  color: var(--gray-900);
  font-size: 20px;
}

.category-tile span,
.category-overview-card span {
  color: var(--rose-600);
  font-size: 14px;
  font-weight: 800;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.two-column-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 22px;
}

.feature-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.feature-card div {
  padding: 34px;
  background: linear-gradient(135deg, #fff, var(--rose-50));
}

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

.feature-card p {
  color: var(--gray-500);
  margin-bottom: 24px;
}

.hot-list {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--rose-50), #fff);
  box-shadow: var(--shadow-card);
}

.rank-item {
  display: grid;
  grid-template-columns: 34px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.rank-item:hover {
  background: var(--white);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-weight: 800;
}

.rank-item img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text em {
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px;
  gap: 12px;
  margin-bottom: 18px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--rose-50);
}

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

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  background: rgba(17, 24, 39, 0.7);
}

.poster-play {
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  background: rgba(244, 63, 94, 0.9);
}

.movie-info {
  padding: 14px;
}

.movie-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--rose-600);
  font-size: 12px;
  font-weight: 800;
}

.movie-info h3 {
  margin: 8px 0 8px;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.32;
}

.movie-info p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 12px;
}

.page-hero {
  margin-top: 28px;
  padding-top: 58px;
  padding-bottom: 58px;
  background:
    radial-gradient(circle at right top, rgba(244, 63, 94, 0.18), transparent 36%),
    linear-gradient(135deg, #fff, #fff1f2);
}

.page-hero h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
}

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

.category-overview-card {
  min-height: 260px;
}

.category-overview-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.category-overview-card div {
  padding: 18px;
}

.category-overview-card p {
  color: var(--gray-500);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 58px 70px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-weight: 900;
}

.ranking-row img {
  width: 70px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-main strong,
.ranking-main em {
  display: block;
}

.ranking-main em,
.ranking-meta {
  color: var(--gray-500);
  font-style: normal;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 58px 0;
  color: var(--white);
  background: var(--gray-900);
}

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

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

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

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

.breadcrumb em {
  font-style: normal;
}

.detail-info-panel h1 {
  max-width: 780px;
  margin: 0 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.detail-tags span {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
}

.detail-content {
  margin-top: 42px;
}

.player-card {
  padding: 18px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #050505;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(244, 63, 94, 0.28), rgba(0, 0, 0, 0.52));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-box.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-start-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 20px 40px rgba(244, 63, 94, 0.36);
  font-size: 32px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  margin-top: 22px;
}

.movie-article,
.side-panel {
  padding: 28px;
}

.movie-article p {
  color: var(--gray-700);
  font-size: 17px;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 12px;
}

.side-panel dt {
  color: var(--gray-500);
}

.side-panel dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
}

.search-page {
  min-height: 520px;
}

.search-box-large {
  padding: 18px;
  margin-bottom: 22px;
}

.search-results {
  display: grid;
  gap: 12px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.search-result-item img {
  width: 70px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.search-result-item p {
  margin: 4px 0 0;
  color: var(--gray-500);
}

.site-footer {
  margin-top: 70px;
  padding: 46px 22px;
  border-top: 1px solid var(--rose-100);
  background: rgba(255, 255, 255, 0.84);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
  max-width: var(--container);
  margin: 0 auto;
}

.footer-grid p,
.footer-grid a {
  display: block;
  color: var(--gray-500);
}

.footer-grid h3 {
  margin-top: 0;
  color: var(--gray-900);
}

@media (max-width: 1024px) {
  .hero-slide {
    grid-template-columns: 1fr;
    padding: 46px;
  }

  .hero-cover {
    display: none;
  }

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

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

  .two-column-feature,
  .article-layout,
  .detail-layout,
  .search-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 300px;
  }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .mobile-nav .nav-link {
    display: block;
    margin: 4px 0;
  }

  .hero-stage {
    min-height: 580px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 34px 24px;
  }

  .hero-content p,
  .detail-one-line {
    font-size: 16px;
  }

  .inline-search,
  .search-box-large,
  .section-heading,
  .filter-toolbar {
    flex-direction: column;
    display: flex;
    align-items: stretch;
  }

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

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

  .ranking-row,
  .search-result-item {
    grid-template-columns: 48px 1fr;
  }

  .ranking-row img,
  .ranking-meta,
  .search-result-item img,
  .search-result-item .primary-btn {
    display: none;
  }

  .footer-grid {
    gap: 18px;
  }
}

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

  .logo-text {
    font-size: 17px;
  }
}
