:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --amber: #d97706;
  --emerald: #059669;
  --cyan: #0891b2;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #fee2e2;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 63, 94, 0.10), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(217, 119, 6, 0.12), transparent 24rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 24rem, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(190, 18, 60, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--amber), var(--emerald));
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
}

.logo-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--rose), var(--amber), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

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

.top-search input,
.mobile-search input,
.filter-input {
  width: 230px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.top-search input:focus,
.mobile-search input:focus,
.filter-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.15);
}

.top-search button,
.mobile-search button,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, var(--rose), var(--amber));
  box-shadow: 0 12px 22px rgba(225, 29, 72, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 32px rgba(225, 29, 72, 0.30);
}

.secondary-btn {
  color: var(--rose);
  background: rgba(255, 255, 255, 0.92);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--rose);
}

.mobile-panel {
  display: none;
  padding: 0 20px 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 6px;
  max-width: 1180px;
  margin: 0 auto 14px;
}

.mobile-search {
  max-width: 1180px;
  margin: 0 auto;
}

.mobile-search input {
  flex: 1;
  width: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #fff;
  background: #111827;
}

.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-slide img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(17, 24, 39, 0.68) 42%, rgba(17, 24, 39, 0.18)),
    linear-gradient(0deg, rgba(3, 7, 18, 0.88), transparent 50%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px 20px 90px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 900;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.hero-actions,
.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-meta {
  margin-bottom: 30px;
}

.hero-meta span,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

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

.hero-links a {
  color: #fde68a;
  font-weight: 800;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 20px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--rose), var(--amber), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-desc {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(254, 205, 211, 0.82);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(244, 63, 94, 0.36);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.card-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.68), transparent 62%);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--amber));
  font-size: 12px;
  font-weight: 900;
}

.card-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h3 a:hover,
.related-list a:hover {
  color: var(--rose);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.65;
  font-size: 14px;
}

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

.card-meta span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--amber), var(--emerald));
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.20);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, var(--amber), var(--emerald), var(--cyan));
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #7c3aed, var(--rose), var(--amber));
}

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

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

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

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

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 116px 58px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(254, 205, 211, 0.82);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.06);
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

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

.rank-index {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--amber));
}

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-info p {
  margin: 0 0 10px;
  color: #4b5563;
  line-height: 1.6;
}

.detail-hero {
  color: #fff;
  background: #111827;
}

.detail-hero-inner {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.detail-hero-inner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.94), rgba(17, 24, 39, 0.70) 54%, rgba(17, 24, 39, 0.18)),
    linear-gradient(0deg, rgba(3, 7, 18, 0.92), transparent 55%);
}

.detail-copy {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 20px;
}

.breadcrumb {
  margin-bottom: 24px;
  color: #fecdd3;
  font-weight: 800;
}

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

.detail-copy h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 760px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

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

.content-card,
.side-card {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(254, 205, 211, 0.82);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.07);
}

.content-card {
  padding: 28px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.22), rgba(0, 0, 0, 0.58));
}

.play-cover span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 18px 40px rgba(225, 29, 72, 0.42);
}

.play-cover.is-hidden {
  display: none;
}

.side-card {
  padding: 22px;
}

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

.related-list a {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 12px;
}

.related-list img {
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.related-list strong {
  display: block;
  margin-bottom: 5px;
  line-height: 1.35;
}

.related-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(254, 205, 211, 0.82);
}

.filter-input {
  width: min(420px, 100%);
  border-radius: 16px;
}

.empty-state {
  display: none;
  padding: 46px 20px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: #fff;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 30px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  color: #fff;
  font-size: 22px;
}

.site-footer p {
  max-width: 620px;
  margin: 12px 0 0;
  color: #9ca3af;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 1020px) {
  .top-search {
    display: none;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
  }

  .site-nav {
    display: none;
  }

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

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

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 62px;
  }

  .hero-actions,
  .section-head,
  .filter-bar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .rank-info p {
    display: none;
  }
}

@media (max-width: 520px) {
  .page-wrap {
    padding: 38px 14px;
  }

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

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

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

  .content-card {
    padding: 20px;
  }
}
