:root {
  --color-bg: #f9fafb;
  --color-card: #ffffff;
  --color-ink: #111827;
  --color-muted: #6b7280;
  --color-soft: #e5e7eb;
  --color-blue: #2563eb;
  --color-blue-dark: #1e40af;
  --color-cyan: #06b6d4;
  --color-orange: #f97316;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 25px rgba(37, 99, 235, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.16), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(34, 211, 238, 0.12), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #f9fafb 50%, #eef6ff 100%);
}

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

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

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

.container.narrow {
  width: min(100% - 32px, 920px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.logo-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

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

.nav-link {
  border-radius: 999px;
  padding: 10px 16px;
  color: #475569;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 14px;
  background: #eff6ff;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #1e40af;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.hero-slider {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.82) 38%, rgba(15, 23, 42, 0.32) 100%),
    radial-gradient(circle at 18% 28%, rgba(37, 99, 235, 0.58), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.85));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 54px;
  align-items: center;
  padding: 92px 0 72px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.blue {
  color: var(--color-blue);
}

.eyebrow.cyan {
  color: #67e8f9;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-copy p,
.detail-copy p {
  max-width: 700px;
  margin: 20px 0 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.14);
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.tag-row span {
  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: 44px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  box-shadow: var(--shadow-soft);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.ghost-button {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-button.full {
  width: 100%;
}

.hero-poster-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  transform: rotate(2deg);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border-radius: 18px;
  padding: 12px 14px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 32px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

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

.quick-search-card,
.filter-panel,
.content-panel,
.info-panel,
.player-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 28px;
  align-items: center;
  margin-top: -42px;
  padding: 28px;
  position: relative;
  z-index: 10;
}

.quick-search-card h2,
.section-heading h2,
.content-panel h2,
.info-panel h2,
.footer-grid h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.quick-search-card p {
  margin: 8px 0 0;
  color: var(--color-muted);
}

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

.quick-search-form input,
.filter-search input {
  min-width: 0;
  flex: 1;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: #f8fbff;
  color: var(--color-ink);
}

.quick-search-form button,
.filter-search button {
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
}

.section-block {
  padding: 72px 0;
}

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

.section-heading.light {
  color: #ffffff;
}

.text-link {
  color: var(--color-blue);
  background: #eff6ff;
}

.light-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dbeafe;
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(37, 99, 235, 0.88);
  backdrop-filter: blur(8px);
}

.type-badge {
  left: 12px;
  top: 12px;
}

.rank-badge {
  right: 12px;
  top: 12px;
  background: rgba(249, 115, 22, 0.92);
}

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

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

.movie-card-body h3 a:hover,
.ranking-content h2 a:hover {
  color: var(--color-blue);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 9px 0;
  color: var(--color-muted);
  font-size: 13px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #cbd5e1;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card .movie-card-body h3 {
  font-size: 16px;
}

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

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

.category-card {
  display: block;
  min-height: 188px;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: var(--radius-xl);
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92)),
    radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.24), transparent 30%);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 60px rgba(37, 99, 235, 0.16);
}

.category-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #1e3a8a;
}

.category-card p {
  margin: 0 0 18px;
  color: #526176;
}

.category-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-card div a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.ranking-band {
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.22), transparent 32%),
    linear-gradient(135deg, #0f172a, #1d4ed8 58%, #0891b2);
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 92px 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-lg);
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.compact-ranking .ranking-row {
  grid-template-columns: 76px 38px minmax(0, 1fr);
}

.compact-ranking .ranking-row .text-link {
  display: none;
}

.ranking-cover {
  overflow: hidden;
  border-radius: 14px;
}

.ranking-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.ranking-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-orange), #facc15);
}

.ranking-content h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.ranking-content p {
  margin: 8px 0 0;
  color: #475569;
}

.page-hero {
  padding: 96px 0 78px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.32), transparent 30%),
    linear-gradient(135deg, #0f172a, #1d4ed8 62%, #0891b2);
}

.page-hero p {
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 20px;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 22px;
}

.filter-search {
  margin-bottom: 16px;
}

.filter-search input,
.quick-search-form input {
  height: 48px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  border-radius: 999px;
  padding: 9px 14px;
  color: #1e40af;
  font-weight: 800;
  background: #eff6ff;
}

.filter-pill.active,
.filter-pill:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
}

.empty-state {
  margin: 18px 0 0;
  color: #475569;
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.22), transparent 28%);
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 32px 76px rgba(0, 0, 0, 0.35);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #c7d2fe;
  font-size: 14px;
  font-weight: 700;
}

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

.player-section {
  padding: 64px 0 36px;
}

.player-card {
  padding: 14px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #020617;
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.68));
  pointer-events: auto;
}

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

.play-icon {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 999px;
  padding-left: 6px;
  color: #ffffff;
  font-size: 36px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.42);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 28px 0 52px;
}

.content-panel,
.info-panel {
  padding: 28px;
}

.content-panel h2:not(:first-child) {
  margin-top: 28px;
}

.content-panel p {
  margin: 14px 0 0;
  color: #374151;
  font-size: 17px;
}

.info-panel ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.info-panel li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
}

.info-panel li span {
  color: #64748b;
}

.info-panel li strong {
  text-align: right;
  color: #0f172a;
}

.site-footer {
  margin-top: 24px;
  padding: 54px 0 24px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
}

.footer-grid p {
  max-width: 440px;
  margin: 14px 0 0;
}

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

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

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

.footer-bottom {
  margin-top: 34px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 20px;
  color: #94a3b8;
}

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

  .compact-ranking {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .hero-content,
  .detail-hero-grid,
  .detail-content-grid,
  .quick-search-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 26px;
    padding-top: 76px;
  }

  .hero-poster-card,
  .detail-poster {
    max-width: 280px;
  }

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

  .ranking-row {
    grid-template-columns: 76px 36px minmax(0, 1fr);
  }

  .ranking-row .text-link {
    display: none;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .hero-slider,
  .hero-content {
    min-height: 620px;
  }

  .hero-arrow {
    display: none;
  }

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

  .quick-search-form,
  .filter-search,
  .hero-actions {
    flex-direction: column;
  }

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

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

  .movie-card-body h3 {
    font-size: 16px;
  }

  .tag-row span:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-number {
    position: absolute;
    margin: 8px;
  }
}
