:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-600: #db2777;
  --orange-500: #f97316;
  --yellow-400: #facc15;
  --green-500: #22c55e;
  --blue-600: #2563eb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-soft: 0 18px 48px rgba(190, 18, 60, 0.12);
  --shadow-card: 0 14px 34px rgba(17, 24, 39, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, var(--rose-50) 58%, #ffffff 100%);
  color: var(--gray-900);
}

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: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--rose-100);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
}

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

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

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

.desktop-nav a,
.mobile-panel nav a {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

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

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

.header-search input,
.mobile-panel input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  background: #ffffff;
  padding: 11px 16px;
  outline: none;
  color: var(--gray-900);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.18);
}

.header-search button,
.mobile-panel button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--rose-500);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
  color: var(--gray-900);
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 16px;
}

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

.mobile-panel form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

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

.mobile-panel nav a {
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
}

.hero-section {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: radial-gradient(circle at 18% 24%, rgba(251, 113, 133, 0.88), transparent 32%), linear-gradient(120deg, #be123c 0%, #db2777 48%, #7c3aed 100%);
  color: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.08)), radial-gradient(circle at 78% 14%, rgba(255, 255, 255, 0.24), transparent 24%);
}

.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 20px 64px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: 54px;
  min-height: 486px;
}

.hero-slide.active {
  display: grid;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  padding: 7px 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 20px 0 8px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.12;
  color: #ffe4e6;
}

.hero-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

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

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

.primary-btn {
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(190, 18, 60, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  min-height: 430px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(1.5deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  right: 20px;
  top: 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  padding: 9px 13px;
  font-weight: 900;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.hero-dots button {
  width: 42px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dots button.active {
  background: #ffffff;
}

.section-block {
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 20px;
}

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

.section-title span {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.section-title.tight {
  margin-bottom: 20px;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.compact-card .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.68));
}

.poster-meta,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.poster-meta {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.62);
  padding: 6px 10px;
  font-size: 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500));
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.28);
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
  flex: 1;
}

.movie-card-body strong {
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body small {
  color: var(--gray-500);
  font-weight: 700;
}

.movie-card-body em {
  min-height: 44px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  background: var(--rose-50);
  color: var(--rose-600);
  padding: 5px 9px;
  font-size: 12px;
}

.category-strip {
  padding-bottom: 16px;
}

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

.category-tile,
.category-card-large > a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, var(--rose-50));
  border: 1px solid rgba(244, 63, 94, 0.12);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card-large > a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.category-tile span,
.category-card-large h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 950;
  color: var(--gray-900);
}

.category-tile small,
.category-card-large p {
  color: var(--gray-600);
  line-height: 1.7;
}

.wide-panel {
  background: linear-gradient(120deg, #fff7ed, #fff1f2, #fdf2f8);
}

.panel-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 38px;
}

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

.rank-line {
  display: grid;
  grid-template-columns: 44px 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.rank-line span {
  font-size: 18px;
  font-weight: 950;
  color: var(--rose-600);
}

.rank-line img {
  width: 72px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-line b {
  display: block;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-line small {
  grid-column: 3;
  color: var(--gray-500);
}

.page-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, var(--rose-500), var(--orange-500));
  color: #ffffff;
}

.page-hero > div {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 58px 20px;
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.category-hero {
  background: radial-gradient(circle at 75% 18%, rgba(255, 255, 255, 0.24), transparent 30%), linear-gradient(120deg, #be123c, #db2777, #f97316);
}

.rank-hero {
  background: radial-gradient(circle at 18% 24%, rgba(250, 204, 21, 0.35), transparent 28%), linear-gradient(120deg, #831843, #be123c, #f97316);
}

.search-hero {
  background: radial-gradient(circle at 74% 28%, rgba(255, 255, 255, 0.24), transparent 30%), linear-gradient(120deg, #7c2d12, #be123c, #db2777);
}

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

.category-card-large div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-card-large div a {
  border-radius: 999px;
  background: #ffffff;
  color: var(--rose-600);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-bar select {
  appearance: none;
}

.breadcrumb {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 20px 64px;
}

.detail-head {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: center;
  padding: 28px;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff, #fff1f2);
  box-shadow: var(--shadow-soft);
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

.detail-info .eyebrow,
.page-hero .eyebrow {
  background: rgba(255, 255, 255, 0.2);
}

.detail-info .eyebrow {
  background: var(--rose-50);
  color: var(--rose-600);
}

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

.lead-text {
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  border-radius: 999px;
  background: #ffffff;
  color: var(--gray-700);
  padding: 8px 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.detail-tags span {
  background: var(--rose-100);
  color: var(--rose-600);
}

.player-section,
.content-section,
.related-block {
  margin-top: 30px;
}

.player-section,
.content-section {
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 26px;
}

.player-section h2,
.content-section h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  object-fit: contain;
}

.play-button,
.player-cover {
  position: absolute;
  cursor: pointer;
}

.play-button {
  z-index: 8;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.95);
  color: #ffffff;
  font-size: 30px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.player-cover {
  z-index: 7;
  inset: 0;
  border: 0;
  padding: 0;
  background: #000000;
  color: #ffffff;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.player-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 98px;
  height: 98px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 42px;
}

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

.content-section p {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 30px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px;
}

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

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

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

.footer-links a {
  border-radius: 999px;
  background: #ffffff;
  color: var(--gray-700);
  padding: 8px 12px;
  font-weight: 800;
}

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

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid var(--gray-200);
  padding: 18px 20px 28px;
  color: var(--gray-500);
  font-weight: 700;
}

[data-movie-card].is-hidden {
  display: none;
}

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

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

  .hero-slide,
  .detail-head,
  .panel-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 360px;
  }

  .hero-poster img {
    min-height: 360px;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 16px;
  }

  .brand {
    font-size: 20px;
  }

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

  .hero-inner {
    padding: 42px 16px 46px;
  }

  .hero-slide {
    gap: 30px;
  }

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

  .hero-copy h2 {
    font-size: 27px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 310px;
  }

  .section-block {
    padding: 40px 16px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.two-col,
  .category-grid,
  .category-large-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .page-hero > div {
    padding: 42px 16px;
  }

  .detail-layout,
  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-head,
  .player-section,
  .content-section {
    padding: 18px;
    border-radius: 24px;
  }

  .detail-info h1 {
    font-size: 34px;
  }

  .rank-line {
    grid-template-columns: 36px 64px 1fr;
  }

  .rank-line img {
    width: 64px;
    height: 46px;
  }

  .footer-inner {
    padding: 34px 16px;
  }
}
