:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --purple-500: #a855f7;
  --orange-500: #f97316;
  --yellow-500: #eab308;
  --green-500: #22c55e;
  --blue-500: #3b82f6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 42px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.22);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, #ffffff 0%, #fff1f2 48%, #ffffff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(253, 242, 248, 0.96));
  border-bottom: 1px solid var(--rose-100);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.nav-container {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  color: var(--white);
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.32);
  transition: transform 0.3s ease;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

.site-logo:hover .logo-mark {
  transform: rotate(12deg) scale(1.05);
}

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

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--rose-600);
}

.search-form,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form input,
.mobile-search input,
.search-panel input {
  width: 260px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--white);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-form input:focus,
.mobile-search input:focus,
.search-panel input:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14);
}

.search-form button,
.mobile-search button,
.search-panel button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-form button:hover,
.mobile-search button:hover,
.search-panel button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.32);
}

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

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(244, 63, 94, 0.08);
  cursor: pointer;
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--gray-700);
}

.mobile-panel {
  display: none;
  padding: 14px 24px 22px;
  border-top: 1px solid var(--rose-100);
  background: var(--white);
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--rose-50);
  color: var(--gray-700);
  font-weight: 700;
}

.hero-slider {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(120deg, #fb7185, #ec4899 50%, #a855f7);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(190, 18, 60, 0.58), rgba(15, 23, 42, 0.56));
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  min-height: 600px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.78fr);
  gap: 48px;
  align-items: center;
  color: var(--white);
}

.hero-content {
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  margin: 0 0 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-content h1,
.hero-content h2 {
  margin: 0;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content h2 {
  margin-top: 16px;
  font-size: clamp(30px, 4.6vw, 56px);
  color: #ffe4e6;
}

.hero-content p {
  margin: 20px 0 0;
  max-width: 660px;
  font-size: 19px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.hero-tags,
.card-tags,
.detail-tags,
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.card-tags span,
.detail-tags span,
.category-pills a,
.filter-button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.card-tags span,
.detail-tags span,
.category-pills a,
.filter-button {
  color: var(--rose-600);
  background: var(--rose-50);
}

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

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

.hero-card {
  position: relative;
  min-height: 206px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hero-card:first-child {
  grid-column: span 2;
  min-height: 245px;
}

.hero-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 36px 80px rgba(15, 23, 42, 0.34);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.hero-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  color: var(--white);
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.78));
}

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

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-dots button.is-active {
  width: 48px;
  background: var(--white);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section.tight {
  padding-top: 42px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.2;
}

.section-heading p,
.page-lead {
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
  max-width: 760px;
}

.view-more {
  color: var(--rose-600);
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #fce7f3);
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.28s ease;
}

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

.movie-year,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  border-radius: 9px;
  padding: 5px 9px;
  background: var(--rose-500);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(0, 0, 0, 0.72);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(244, 63, 94, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.24s ease, transform 0.24s ease;
  box-shadow: 0 20px 48px rgba(244, 63, 94, 0.34);
}

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

.movie-info {
  padding: 18px;
}

.movie-title {
  display: block;
  min-height: 44px;
  margin-bottom: 8px;
  color: var(--gray-900);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--rose-600);
}

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-band {
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  color: var(--white);
  padding: 70px 0;
}

.category-band .section {
  padding-top: 0;
  padding-bottom: 0;
}

.category-band h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
}

.category-band p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  font-size: 18px;
}

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

.category-card {
  padding: 26px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 25px;
}

.category-card p {
  min-height: 55px;
  color: var(--gray-600);
  line-height: 1.75;
}

.horizontal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.horizontal-card,
.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--gray-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.horizontal-card:hover,
.related-card:hover {
  background: var(--rose-50);
  transform: translateX(3px);
}

.horizontal-card img,
.related-card img {
  width: 86px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.horizontal-card strong,
.related-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gray-900);
  font-size: 14px;
  line-height: 1.35;
}

.horizontal-card em,
.related-card em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.filter-panel,
.search-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-button {
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-button.is-active,
.filter-button:hover {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  transform: translateY(-1px);
}

.sort-select {
  min-width: 150px;
  border: 1px solid var(--rose-100);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--gray-700);
  background: var(--white);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 70px 168px minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ranking-number {
  color: var(--rose-600);
  font-size: 34px;
  font-weight: 900;
  text-align: center;
}

.ranking-item img {
  width: 168px;
  height: 104px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-item h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.ranking-item p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.65;
}

.ranking-side {
  color: var(--gray-600);
  text-align: right;
  line-height: 1.7;
  font-weight: 700;
}

.detail-hero {
  background: linear-gradient(110deg, #111827, #9f1239 52%, #581c87);
  color: var(--white);
}

.detail-hero .section {
  padding-top: 44px;
  padding-bottom: 44px;
}

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

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

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--black);
  box-shadow: var(--shadow-lg);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--black);
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay strong {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 25px 60px rgba(244, 63, 94, 0.45);
  font-size: 32px;
}

.play-overlay span {
  font-weight: 800;
  font-size: 18px;
}

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

.detail-card {
  margin-top: 24px;
  padding: 28px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--gray-600);
}

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

.detail-card h2,
.sidebar-card h2 {
  margin: 26px 0 12px;
  font-size: 24px;
}

.detail-card p {
  color: var(--gray-700);
  line-height: 1.9;
  font-size: 16px;
}

.sidebar-card {
  margin-bottom: 20px;
  padding: 22px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.sidebar-card h2 {
  margin-top: 0;
}

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

.no-results {
  display: none;
  padding: 34px;
  border-radius: 24px;
  color: var(--gray-600);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-weight: 700;
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  margin-top: 40px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 30px;
}

.footer-brand p {
  max-width: 430px;
  color: var(--gray-600);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 16px;
  font-size: 17px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer li a {
  color: var(--gray-600);
  font-size: 14px;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 14px;
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

  .search-form input {
    width: 200px;
  }

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-card-grid {
    display: none;
  }

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

  .ranking-item {
    grid-template-columns: 54px 130px minmax(0, 1fr);
  }

  .ranking-side {
    grid-column: 2 / -1;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .nav-container,
  .section,
  .hero-inner,
  .category-band .section,
  .detail-hero .section {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .movie-info {
    padding: 14px;
  }

  .movie-title {
    font-size: 15px;
  }

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

  .hero-content p {
    font-size: 16px;
  }

  .section-heading {
    display: block;
  }

  .filter-panel,
  .search-panel {
    align-items: stretch;
  }

  .search-panel input,
  .mobile-search input {
    width: 100%;
  }

  .ranking-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .ranking-item img {
    grid-column: 1 / -1;
    width: 100%;
    height: 190px;
  }

  .ranking-side {
    grid-column: 1 / -1;
  }

  .horizontal-list {
    grid-template-columns: 1fr;
  }
}

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

  .hero-actions {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    text-align: center;
  }
}
