:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --red: #ef4444;
  --dark: #020617;
  --dark-soft: #0f172a;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 32rem), var(--bg);
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(135deg, #ffffff, #93c5fd 60%, #67e8f9);
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link,
.nav-button {
  color: rgba(255, 255, 255, 0.82);
  border: 0;
  background: transparent;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-button:hover {
  color: #60a5fa;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 168px;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.dropdown-menu a:hover {
  background: #eff6ff;
  color: var(--blue);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  transition: 0.2s ease;
}

.icon-button:hover {
  background: rgba(96, 165, 250, 0.25);
}

.menu-button {
  display: none;
}

.header-search {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 10px;
}

.header-search.is-open {
  display: flex;
}

.header-search input,
.page-search input,
.quick-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  outline: none;
}

.header-search input::placeholder,
.page-search input::placeholder,
.quick-search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.header-search button,
.page-search button,
.quick-search button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 700;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav.is-open {
  display: flex;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  color: #ffffff;
  background: var(--dark);
}

.hero-slide {
  display: none;
  min-height: 650px;
  position: relative;
}

.hero-slide.is-active {
  display: block;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(22px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.45;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 44%, rgba(15, 23, 42, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 420px;
  gap: 56px;
  align-items: center;
  padding: 72px 0 82px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #60a5fa;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.07em;
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 12px;
}

.hero-tags span,
.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

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

.movie-body .tag-chip,
.detail-tags .tag-chip,
.wide-body .tag-chip {
  background: #eff6ff;
  color: #2563eb;
}

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

.primary-button,
.secondary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  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(--blue), var(--cyan));
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.secondary-button {
  color: var(--blue);
  background: #eff6ff;
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

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

.slim {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
}

.text-link {
  min-height: auto;
  padding: 0;
  color: var(--blue);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.50);
  transform: rotate(2deg);
}

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

.poster-play,
.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

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

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

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

.section,
.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: center;
}

.section-heading,
.section-title-row {
  margin-bottom: 26px;
}

.section-heading h2,
.section-title-row h2,
.detail-card h2,
.aside-card h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.section-heading p {
  color: var(--muted);
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.compact h2 {
  font-size: 30px;
}

.quick-search-card,
.spotlight-panel,
.detail-card,
.aside-card,
.category-page-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.quick-search-card {
  padding: 22px;
}

.quick-search {
  display: flex;
  gap: 10px;
}

.quick-search input,
.page-search input {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff;
}

.quick-search input::placeholder,
.page-search input::placeholder {
  color: #98a2b3;
}

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

.category-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  background: var(--dark-soft);
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transition: transform 0.3s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.78);
}

.category-tile:hover img {
  transform: scale(1.08);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-cover,
.wide-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.movie-cover {
  aspect-ratio: 16 / 10;
}

.movie-cover img,
.wide-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.movie-cover::after,
.wide-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.78));
}

.play-float {
  width: 48px;
  height: 48px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
}

.card-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.movie-body,
.wide-body {
  padding: 18px;
}

.movie-title,
.wide-title {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-title:hover,
.wide-title:hover {
  color: var(--blue);
}

.movie-meta {
  margin: 8px 0;
  color: #667085;
  font-size: 13px;
}

.movie-body p,
.wide-body p,
.detail-card p,
.category-page-card p,
.spotlight-panel p {
  color: var(--muted);
}

.movie-body p,
.wide-body p {
  display: -webkit-box;
  min-height: 3.3em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.wide-list {
  display: grid;
  gap: 16px;
}

.wide-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.wide-cover {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

.rank-number {
  position: absolute;
  z-index: 3;
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), #f59e0b);
  font-weight: 900;
}

.spotlight-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.spotlight-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 36px;
}

.simple-hero,
.category-hero {
  color: #ffffff;
  width: 100%;
  padding: 88px max(16px, calc((100% - 1180px) / 2)) 56px;
  background: radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.55), transparent 30rem), linear-gradient(135deg, #020617, #111827 55%, #172554);
}

.simple-hero p,
.category-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.page-search {
  display: flex;
  gap: 10px;
  width: min(680px, 100%);
  margin-top: 28px;
}

.category-page-grid {
  display: grid;
  gap: 22px;
}

.category-page-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
}

.category-cover {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
}

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

.category-page-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.sample-links a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.ranking-section {
  display: grid;
  gap: 52px;
}

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

.detail-wrap {
  padding-top: 36px;
}

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

.breadcrumb a {
  color: var(--blue);
  font-weight: 700;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
  font-size: 30px;
  transition: 0.2s ease;
}

.player-start:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.player-start.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-card,
.aside-card {
  margin-top: 24px;
  padding: 24px;
}

.detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.detail-heading h1 {
  margin: 8px 0 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-weight: 700;
  font-size: 13px;
}

.detail-card h2,
.aside-card h2 {
  margin-top: 26px;
  font-size: 25px;
}

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

.related-card {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  border-radius: 18px;
  color: #ffffff;
  background: #0f172a;
}

.related-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.25s ease;
}

.related-card span {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 14px;
  font-weight: 900;
}

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

.poster-info img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 16px;
}

.aside-list .wide-card {
  grid-template-columns: 96px minmax(0, 1fr);
}

.aside-list .wide-body p,
.aside-list .tag-row {
  display: none;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #020617;
  margin-top: 40px;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 10px;
}

.footer-grid h3 {
  color: #ffffff;
  margin: 0 0 12px;
}

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

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 14px;
}

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

@media (max-width: 1024px) {
  .hero-content,
  .intro-section,
  .split-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 360px;
    margin: 0 auto;
  }

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

  .spotlight-panel {
    position: static;
  }
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero,
  .hero-slide,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 48px 0 82px;
    gap: 32px;
  }

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

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

  .hero-actions,
  .quick-search,
  .page-search,
  .section-title-row,
  .detail-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .category-grid,
  .movie-grid,
  .ranking-list,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-page-card,
  .wide-card {
    grid-template-columns: 1fr;
  }

  .section,
  .detail-wrap {
    padding: 42px 0;
  }

  .simple-hero,
  .category-hero {
    padding-top: 62px;
  }
}
