:root {
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --soft: #eff6ff;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --indigo: #4f46e5;
  --amber: #f59e0b;
  --shadow: 0 20px 45px rgba(30, 64, 175, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a,
.main-nav button {
  color: #374151;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav button:hover {
  color: var(--blue);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 32px;
  right: 0;
  display: none;
  min-width: 160px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-panel {
  display: grid;
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.hero-slider {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: linear-gradient(135deg, #eff6ff, #eef2ff 45%, #faf5ff);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.86) 44%, rgba(248, 250, 252, 0.28) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: saturate(1.1);
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.18), transparent 36%),
    radial-gradient(circle at 72% 38%, rgba(79, 70, 229, 0.2), transparent 40%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 48px;
  max-width: 1280px;
  min-height: 640px;
  margin: 0 auto;
  padding: 78px 20px 120px;
}

.hero-copy {
  max-width: 700px;
  animation: fade-in 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 10px;
  color: var(--blue);
}

.hero-copy p,
.page-hero p {
  max-width: 720px;
  color: #374151;
  font-size: 18px;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  color: #1e3a8a;
  background: rgba(219, 234, 254, 0.82);
  border: 1px solid rgba(147, 197, 253, 0.52);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
}

.btn.ghost {
  color: #1e40af;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(147, 197, 253, 0.72);
}

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

.hero-poster {
  position: relative;
  justify-self: center;
  width: min(360px, 82vw);
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  box-shadow: 0 30px 70px rgba(30, 64, 175, 0.25);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #dbeafe;
}

.poster-glow {
  position: absolute;
  inset: auto 24px 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  filter: blur(16px);
}

.hero-tabs {
  position: absolute;
  right: max(20px, calc((100% - 1280px) / 2 + 20px));
  bottom: 92px;
  display: flex;
  gap: 10px;
  max-width: 640px;
}

.hero-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 150px;
  padding: 10px 12px;
  overflow: hidden;
  color: #374151;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-tab span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: #fff;
  border-radius: 50%;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.hero-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
}

.hero-search,
.inline-search,
.big-search {
  position: relative;
  display: flex;
  max-width: 720px;
  margin: -74px auto 22px;
  padding: 8px;
  border: 1px solid rgba(191, 219, 254, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-search input,
.inline-search input,
.big-search input {
  min-width: 0;
  flex: 1;
  padding: 13px 18px;
  border: 0;
  outline: none;
  background: transparent;
}

.hero-search button,
.inline-search button,
.big-search button {
  padding: 0 22px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  cursor: pointer;
  font-weight: 800;
}

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 920px;
  margin: 0 auto 34px;
  padding: 0 20px;
}

.hero-cats a {
  padding: 9px 14px;
  color: #1e40af;
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-weight: 700;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1280px;
  margin: 34px auto 0;
  padding: 0 20px;
}

.stats-strip div {
  padding: 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.stats-strip strong {
  display: block;
  color: var(--blue);
  font-size: 32px;
}

.section-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 20px;
}

.soft-bg {
  max-width: none;
  padding-inline: max(20px, calc((100% - 1280px) / 2 + 20px));
  background: linear-gradient(135deg, #eef2ff, #eff6ff, #faf5ff);
}

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

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

.section-title a,
.section-title span {
  color: var(--blue);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
  transition: 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(30, 64, 175, 0.16);
}

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

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.68), transparent);
  transition: 0.25s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.38);
}

.corner,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.corner.region {
  top: 10px;
  left: 10px;
  background: var(--blue);
}

.corner.year {
  top: 10px;
  right: 10px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(6px);
}

.rank-badge {
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--amber), #ef4444);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  min-height: 44px;
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.45;
}

.card-body h3 a:hover {
  color: var(--blue);
}

.muted,
.card-body p {
  color: var(--muted);
  font-size: 13px;
}

.line-one,
.line-two {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.line-one {
  -webkit-line-clamp: 1;
}

.line-two {
  min-height: 40px;
  -webkit-line-clamp: 2;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
}

.card-foot a {
  color: var(--blue);
  font-weight: 800;
}

.card-foot span {
  color: var(--muted);
}

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

.movie-card-wide .poster-wrap img {
  aspect-ratio: 16 / 10;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  padding: 22px;
  color: #fff;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.18);
}

.tile-cover {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: linear-gradient(to top, #0f172a, transparent), var(--tile-image);
  background-size: cover;
  background-position: center;
  transition: 0.28s ease;
}

.category-tile:hover .tile-cover {
  transform: scale(1.05);
}

.category-tile strong,
.category-tile em {
  position: relative;
  display: block;
}

.category-tile strong {
  margin-top: 82px;
  font-size: 22px;
}

.category-tile em {
  font-style: normal;
  opacity: 0.86;
}

.list-cards,
.ranking-list {
  display: grid;
  gap: 14px;
}

.list-card,
.ranking-item {
  display: grid;
  grid-template-columns: auto 86px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: 0.22s ease;
}

.list-card:hover,
.ranking-item:hover {
  transform: translateX(6px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.12);
}

.list-card img,
.ranking-item img {
  width: 86px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
}

.list-rank,
.ranking-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  font-weight: 900;
}

.list-card span,
.ranking-copy {
  display: grid;
  gap: 4px;
}

.list-card em,
.ranking-copy em,
.list-card small,
.ranking-copy small {
  color: var(--muted);
  font-style: normal;
}

.ranking-score {
  color: var(--blue);
  font-weight: 900;
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 84px 20px 34px;
}

.category-page-hero,
.rank-hero,
.search-hero {
  max-width: none;
  padding-inline: max(20px, calc((100% - 1280px) / 2 + 20px));
  background:
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.18), transparent 34%),
    linear-gradient(135deg, #eff6ff, #eef2ff, #faf5ff);
}

.inline-search,
.big-search {
  margin: 28px 0 0;
}

.filter-title {
  align-items: center;
}

.local-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 300px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.local-filter input {
  width: 100%;
  border: 0;
  outline: 0;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.overview-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 24px;
}

.category-overview-card p {
  color: var(--muted);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a {
  padding: 6px 10px;
  color: #1e40af;
  background: #dbeafe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 20px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.detail-poster {
  overflow: hidden;
  background: #dbeafe;
  border: 10px solid #fff;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

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

.detail-info {
  align-self: center;
}

.detail-line {
  max-width: 760px;
  color: #374151;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 800;
}

.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.video-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border: 12px solid #111827;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.video-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #fff;
  border: 0;
  background:
    linear-gradient(to top, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.15)),
    rgba(2, 6, 23, 0.28);
  cursor: pointer;
}

.video-start span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.32);
  font-size: 30px;
}

.video-start strong {
  font-size: 18px;
}

.video-box.is-playing .video-start {
  display: none;
}

.video-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  color: #bfdbfe;
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 24px;
}

.detail-article,
.side-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.detail-article {
  padding: 28px;
}

.detail-article h2 {
  margin: 0 0 12px;
}

.detail-article p + h2 {
  margin-top: 30px;
}

.side-panel {
  padding: 24px;
}

.side-panel h3 {
  margin-top: 0;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
}

.side-panel dt {
  color: var(--muted);
}

.side-panel dd {
  margin: 0;
  font-weight: 700;
}

.side-panel a {
  color: var(--blue);
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.2fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 20px 34px;
}

.footer-grid h3 {
  color: #fff;
  margin-top: 0;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

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

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hidden-by-search {
  display: none !important;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

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

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

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

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

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-dropdown:hover .dropdown-panel,
  .dropdown-panel {
    position: static;
    display: grid;
    box-shadow: none;
  }

  .hero-slider {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
  }

  .hero-slide:not(.active) {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 54px 20px 130px;
  }

  .hero-tabs {
    position: static;
    overflow-x: auto;
    padding: 0 20px 86px;
  }

  .hero-search {
    margin-top: -68px;
    margin-inline: 20px;
  }

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

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

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

  .category-overview-card,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .hero-search,
  .inline-search,
  .big-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-search button,
  .inline-search button,
  .big-search button {
    min-height: 42px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .list-card,
  .ranking-item {
    grid-template-columns: auto 72px 1fr;
  }

  .ranking-score {
    display: none;
  }

  .list-card img,
  .ranking-item img {
    width: 72px;
    height: 92px;
  }
}
