:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --rose-soft: #fff1f2;
  --gold: #f59e0b;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #fff7f8;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 32%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), #fb7185);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.3);
}

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

.nav-link {
  padding: 10px 15px;
  color: #374151;
  font-weight: 650;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #f9fafb;
  border-radius: 14px;
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #374151;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid var(--line);
}

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

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #0f172a;
}

.hero-track,
.hero-slide,
.hero-slide img,
.hero-mask {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.hero-mask {
  background:
    radial-gradient(circle at 20% 35%, rgba(244, 63, 94, 0.55), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(15, 23, 42, 0.55) 48%, rgba(15, 23, 42, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 72vh;
  padding: 92px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.hero-kicker {
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 20px;
  color: #fecdd3;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.hero-content h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 32px;
  color: #f3f4f6;
  font-size: clamp(17px, 2vw, 23px);
}

.hero-actions,
.detail-actions,
.page-hero-links,
.rank-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), #fb7185);
  box-shadow: 0 16px 32px rgba(225, 29, 72, 0.3);
}

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

.primary-button.small,
.ghost-button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
}

.ghost-button.dark {
  color: var(--text);
  background: #ffffff;
  border-color: var(--line);
}

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

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

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.intro-band {
  margin-top: -42px;
  position: relative;
  z-index: 8;
  padding: 0 24px;
}

.intro-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 34px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), #f97316);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-inner h2,
.intro-inner p {
  margin: 0;
}

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

.warm-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1240px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1240px) / 2 + 24px));
  background: linear-gradient(90deg, #fffbeb, #fff1f2);
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.article-section h2 {
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
}

.filter-panel {
  margin: 0 0 28px;
  display: grid;
  gap: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 8px 10px 8px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.search-box span {
  color: var(--rose);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  font-size: 16px;
  background: transparent;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-buttons button {
  min-height: 38px;
  padding: 0 15px;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
  color: #ffffff;
  border-color: var(--rose);
  background: var(--rose);
}

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e5e7eb;
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--rose);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.25s ease;
}

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

.movie-badge,
.movie-region {
  position: absolute;
  z-index: 5;
  top: 12px;
  padding: 4px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
}

.movie-badge {
  left: 12px;
  background: var(--rose);
}

.movie-region {
  right: 12px;
  background: #2563eb;
}

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

.movie-card-body h3 {
  min-height: 52px;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.45;
}

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

.movie-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.movie-line {
  margin: 0;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 310px);
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 20px;
}

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

.category-card,
.overview-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.category-card h3,
.overview-body h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p,
.overview-body p,
.footer-column p,
.footer-brand p {
  color: var(--muted);
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-links a {
  padding: 6px 10px;
  color: var(--rose);
  background: var(--rose-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.rank-list li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-num {
  color: var(--rose);
  font-weight: 900;
}

.rank-list em,
.rank-actions strong {
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--rose);
  font-weight: 800;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.page-hero {
  padding: 86px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 30%, rgba(251, 113, 133, 0.35), transparent 28%),
    linear-gradient(135deg, #fff1f2, #ffffff 55%, #fffbeb);
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 70px);
}

.category-hero {
  text-align: left;
  padding-left: max(24px, calc((100vw - 1240px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1240px) / 2 + 24px));
}

.category-hero p {
  margin-left: 0;
}

.page-hero-links {
  margin-top: 24px;
}

.overview-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
}

.overview-posters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.overview-posters img {
  aspect-ratio: 2 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  padding: 18px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  color: #ffffff;
  background: var(--rose);
  border-radius: 999px;
  font-weight: 900;
}

.rank-card h2 {
  margin: 0 0 8px;
}

.detail-hero {
  color: #ffffff;
  background: #0f172a;
}

.detail-bg,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px);
  transform: scale(1.08);
  opacity: 0.45;
}

.detail-shade {
  background:
    radial-gradient(circle at 24% 30%, rgba(225, 29, 72, 0.42), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.93), rgba(15, 23, 42, 0.72));
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: #fecdd3;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 38px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.detail-one {
  max-width: 820px;
  margin: 0 0 22px;
  color: #f3f4f6;
  font-size: 20px;
}

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

.detail-meta div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.detail-meta dt {
  color: #fecdd3;
  font-size: 13px;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tag-list span {
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-weight: 700;
}

.player-section {
  padding-top: 44px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  width: min(100%, 1080px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

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

.video-player {
  z-index: 1;
  background: #000000;
}

.player-cover {
  z-index: 2;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000000;
  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.72;
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--rose);
  border-radius: 999px;
  font-size: 30px;
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 42px rgba(225, 29, 72, 0.38);
}

.article-section {
  max-width: 940px;
  font-size: 18px;
}

.article-section h2 {
  font-size: 32px;
}

.article-section p {
  color: #374151;
}

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

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  color: #ffffff;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-column a:hover {
  color: #fb7185;
}

.is-hidden-by-filter {
  display: none !important;
}

@media (max-width: 1024px) {
  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section,
  .footer-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .mobile-menu-button {
    display: block;
  }

  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

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

  .hero,
  .hero-content {
    min-height: 78vh;
  }

  .hero-content {
    padding: 82px 18px;
  }

  .movie-grid,
  .related-grid,
  .category-grid,
  .overview-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .overview-card,
  .rank-card {
    grid-template-columns: 1fr;
  }

  .overview-posters {
    grid-template-columns: repeat(4, 1fr);
  }

  .rank-list li {
    grid-template-columns: auto 1fr;
  }

  .rank-list li span:last-of-type,
  .rank-list li em {
    grid-column: 2;
  }

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

  .section {
    padding: 52px 16px;
  }

  .page-hero {
    padding: 58px 18px;
  }

  .player-shell {
    border-radius: 18px;
  }

  .footer-inner {
    padding: 42px 18px;
  }
}
