:root {
  --bg: #fff7f2;
  --panel: #ffffff;
  --text: #171923;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.10);
  --rose: #e11d48;
  --rose-dark: #be123c;
  --orange: #f97316;
  --pink: #ec4899;
  --slate: #0f172a;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 237, 213, 0.95), transparent 34rem),
    linear-gradient(180deg, #fff7f2 0%, #ffffff 44%, #fff1f2 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.96), rgba(249, 115, 22, 0.95), rgba(236, 72, 153, 0.96));
  box-shadow: 0 18px 46px rgba(190, 18, 60, 0.22);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58), 0 12px 24px rgba(136, 19, 55, 0.25);
}

.brand-text {
  font-size: 21px;
}

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

.desktop-nav a,
.mobile-panel a {
  font-weight: 700;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  opacity: 1;
  color: #fff7ad;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.18);
}

.header-search input,
.mobile-search input,
.page-filter input {
  border: 0;
  outline: 0;
  min-width: 210px;
  padding: 11px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.mobile-search button,
.primary-btn,
.secondary-btn,
.hero-pill,
.filter-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.header-search button,
.mobile-search button {
  padding: 10px 16px;
  color: var(--rose);
  background: #fff;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: #fff;
  border: 0;
  font-size: 28px;
  background: transparent;
}

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

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

.mobile-panel nav,
.mobile-search {
  display: grid;
  gap: 12px;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 680px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.32), transparent 22rem),
    linear-gradient(135deg, #9f1239 0%, #e11d48 38%, #f97316 72%, #ec4899 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.08)),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.18), transparent 20rem);
  pointer-events: none;
}

.hero-stage {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 22px 76px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 44px;
}

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

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

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

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: #fff7ad;
}

.hero-copy p {
  margin: 24px 0 0;
  max-width: 650px;
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255, 255, 255, 0.92);
}

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

.primary-btn,
.secondary-btn,
.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--rose);
  background: #fff;
  box-shadow: 0 18px 40px rgba(127, 29, 29, 0.26);
}

.secondary-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
}

.primary-btn:hover,
.secondary-btn:hover,
.hero-pill:hover {
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.tag-row span,
.detail-tags span,
.info-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-art {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 40px 90px rgba(88, 28, 135, 0.32);
  transform: rotate(1.4deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4.05;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.82));
}

.hero-poster-title {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.hero-poster-title strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.hero-poster-title em {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
}

.hero-floating {
  position: absolute;
  right: -16px;
  bottom: 34px;
  width: 210px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.22);
}

.hero-floating strong {
  display: block;
  font-size: 26px;
}

.hero-floating span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
}

.hero-dot {
  width: 44px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dot.active {
  background: #fff;
}

.hero-links {
  position: relative;
  max-width: 1240px;
  margin: -42px auto 0;
  padding: 0 22px 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero-pill {
  min-height: 72px;
  justify-content: space-between;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.16);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 22px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 29, 72, 0.28);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

.poster-wrap img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.34s ease;
}

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

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--rose);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.35);
}

.card-body {
  padding: 18px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

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

.tag-row,
.detail-tags,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.detail-tags span,
.info-chip {
  color: var(--rose-dark);
  background: #ffe4e6;
}

.feature-strip {
  border-radius: 32px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.92), rgba(255, 228, 230, 0.98), rgba(252, 231, 243, 0.95));
  box-shadow: var(--soft-shadow);
}

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

.category-card {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 18rem),
    linear-gradient(135deg, #9f1239, #e11d48 52%, #f97316);
}

.page-hero .container {
  padding-top: 76px;
  padding-bottom: 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.page-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.page-filter input {
  flex: 1 1 260px;
  color: var(--text);
  background: #fff7f2;
}

.filter-btn {
  padding: 0 18px;
  min-height: 44px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.42fr);
  gap: 32px;
}

.player-card,
.detail-panel,
.rank-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #020617;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.14), rgba(15, 23, 42, 0.58));
}

.play-overlay.hidden {
  display: none;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 22px 52px rgba(225, 29, 72, 0.38);
  font-size: 30px;
}

.player-info,
.detail-content,
.detail-panel,
.rank-panel {
  padding: 26px;
}

.player-info h2,
.detail-content h2,
.detail-panel h2,
.rank-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.25;
}

.player-info p,
.detail-content p,
.detail-panel p,
.rank-panel p {
  margin: 0 0 16px;
  color: var(--muted);
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 20px;
}

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

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.info-list span {
  color: var(--muted);
}

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

.mini-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
}

.mini-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  line-height: 1.25;
}

.mini-card em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 900;
}

.rank-row strong,
.rank-row span,
.rank-score {
  display: block;
}

.rank-row span {
  color: var(--muted);
  font-size: 14px;
}

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

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: #cbd5e1;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 22px;
  text-align: center;
  color: #94a3b8;
}

.empty-state {
  display: none;
  padding: 26px;
  border: 1px dashed rgba(225, 29, 72, 0.3);
  border-radius: 22px;
  color: var(--muted);
  background: #fff;
}

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

  .menu-toggle {
    display: block;
  }

  .hero-slide,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-stage {
    padding: 48px 16px 60px;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions,
  .page-filter {
    display: grid;
  }

  .hero-links,
  .category-grid,
  .grid,
  .grid.large-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 42px 16px;
  }

  .feature-strip {
    padding: 22px;
  }

  .hero-floating {
    position: static;
    width: auto;
    margin-top: 16px;
  }

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

  .rank-score {
    grid-column: 2;
  }
}
