:root {
  --bg: #f9fafb;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --orange: #f97316;
  --pink: #ec4899;
  --red: #ef4444;
  --yellow: #facc15;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.navbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.26);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 700;
}

.nav-links a {
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--orange);
  transform: translateY(-1px);
}

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

.header-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  outline: none;
  padding: 11px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.search-button,
.mobile-toggle {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  color: #fff;
  font-weight: 800;
  padding: 11px 16px;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.18);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
}

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

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

.mobile-menu a,
.mobile-menu form {
  display: block;
  margin: 10px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 12%, rgba(250, 204, 21, 0.35), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(236, 72, 153, 0.36), transparent 34%),
    linear-gradient(135deg, #f97316 0%, #ec4899 55%, #7c3aed 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.32;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 92px;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: center;
  gap: 48px;
  padding: 70px 0 96px;
}

.hero-slide {
  display: none;
}

.hero-slide.is-active {
  display: block;
  animation: heroFade 0.65s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero-title-accent {
  display: block;
  background: linear-gradient(90deg, #fef3c7, #facc15);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 700px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  padding: 14px 24px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.015);
}

.btn-primary {
  background: #fff;
  color: var(--orange);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.18);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--orange);
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  min-height: 480px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 34px 70px rgba(17, 24, 39, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.02);
}

.hero-frame-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(16px);
}

.hero-frame-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-frame-panel span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.hero-dots {
  position: absolute;
  left: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
}

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

.stats-strip {
  background: #fff;
  padding: 48px 0;
}

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

.stat-card {
  text-align: center;
}

.stat-icon {
  width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffedd5, #fce7f3);
  color: var(--orange);
  font-size: 30px;
  transition: transform 0.25s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.section {
  padding: 70px 0;
}

.section-white {
  background: #fff;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.section h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.section-desc,
.page-title p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -42px;
  top: -42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 55px rgba(236, 72, 153, 0.22);
}

.category-tile h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.92);
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.36);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

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

.tag {
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 12px;
  font-weight: 800;
}

.page-hero {
  padding: 76px 0 54px;
  background:
    radial-gradient(circle at 18% 4%, rgba(249, 115, 22, 0.2), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(236, 72, 153, 0.16), transparent 34%),
    #fff;
}

.page-title {
  max-width: 860px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.88);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

.rank-thumb {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: #f3f4f6;
}

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

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

.rank-info p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.rank-link {
  color: var(--orange);
  font-weight: 900;
  white-space: nowrap;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.player-card,
.detail-card,
.related-card {
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.92);
}

.player-card {
  overflow: hidden;
}

.player-box {
  position: relative;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f172a;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.28));
  z-index: 2;
}

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

.play-cover-inner {
  text-align: center;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: 34px;
  box-shadow: 0 24px 46px rgba(236, 72, 153, 0.32);
}

.play-cover strong {
  display: block;
  font-size: 26px;
  margin-bottom: 10px;
}

.play-cover span {
  color: rgba(255, 255, 255, 0.82);
}

.player-info,
.detail-card,
.related-card {
  padding: 26px;
}

.player-info h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.035em;
}

.detail-card h2,
.related-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-card p,
.player-info p {
  color: #374151;
  line-height: 1.85;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 20px;
  aspect-ratio: 3 / 4;
  background: #f3f4f6;
}

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

.side-links {
  display: grid;
  gap: 12px;
}

.side-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f9fafb;
  transition: transform 0.25s ease, background 0.25s ease;
}

.side-link:hover {
  transform: translateX(4px);
  background: #fff7ed;
}

.side-link img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: #e5e7eb;
}

.side-link strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
}

.side-link span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 14px;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.25);
}

.back-top.is-visible {
  display: grid;
}

@media (max-width: 1024px) {
  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .hero-frame,
  .hero-frame img {
    min-height: 420px;
    height: 420px;
  }
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 46px 0 86px;
  }

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

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

  .section-head,
  .footer-grid {
    display: block;
  }

  .footer-grid > div {
    margin-bottom: 24px;
  }

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

  .rank-item {
    grid-template-columns: 44px 68px minmax(0, 1fr);
  }

  .rank-link {
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .navbar {
    height: 64px;
  }

  .logo {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 40px;
  }

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

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

  .player-info,
  .detail-card,
  .related-card {
    padding: 20px;
  }
}
