:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --accent-soft: #cffafe;
  --danger: #ef4444;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 28rem),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.10), transparent 24rem),
    var(--bg);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

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

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

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

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

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

.nav-link {
  border-radius: 999px;
  padding: 9px 14px;
  color: #475569;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: #eff6ff;
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 18rem),
    linear-gradient(135deg, #1d4ed8 0%, #2563eb 42%, #06b6d4 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -28% -10%;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.95));
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 2;
  min-height: 660px;
  padding: 74px 0 92px;
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 54px;
  animation: fadeIn 0.45s ease both;
}

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

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

.hero-kicker,
.page-kicker,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 7px 12px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.08em;
}

.hero-lead {
  max-width: 640px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}

.hero-info span,
.detail-pill,
.card-tags span,
.rank-tag,
.category-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  color: #1e3a8a;
  background: #dbeafe;
  font-weight: 800;
  font-size: 13px;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.25);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.32);
}

.button.secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.button.ghost {
  color: var(--primary);
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  box-shadow: none;
}

.hero-visual {
  position: relative;
}

.hero-poster-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.45)),
    rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
  transform: rotate(1deg);
}

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

.hero-poster-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  border-radius: 24px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(16px);
}

.hero-poster-overlay h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.hero-poster-overlay p {
  margin: 0;
  color: #dbeafe;
}

.hero-search {
  display: flex;
  max-width: 560px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 18px;
  color: #ffffff;
  background: transparent;
  outline: 0;
}

.hero-search input::placeholder {
  color: #dbeafe;
}

.hero-search button {
  border: 0;
}

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

.hero-control {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

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

main {
  position: relative;
  z-index: 2;
}

.content-section {
  padding: 58px 0 0;
}

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

.section-kicker {
  color: var(--primary);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.section-heading h2 {
  margin: 9px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.section-more {
  color: var(--primary);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background:
    radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.28), transparent 12rem),
    linear-gradient(145deg, #dbeafe, #e0f2fe);
}

.poster.is-empty::before {
  content: "ASIA HD";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(30, 58, 138, 0.35);
  font-weight: 900;
  letter-spacing: 0.08em;
}

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.68);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

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

.movie-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 6px 0 6px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span {
  padding: 4px 8px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.18), transparent 20rem),
    linear-gradient(135deg, #1e40af, #0891b2);
}

.page-hero .container {
  padding: 70px 0 76px;
}

.page-hero h1 {
  max-width: 900px;
  margin: 16px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

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

.page-kicker {
  color: #ffffff;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(6, 182, 212, 0.18));
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--muted);
}

.category-chip {
  position: relative;
  z-index: 1;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.rank-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 18px;
  font-weight: 900;
}

.rank-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: #dbeafe;
}

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

.rank-item h2,
.rank-item h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.rank-tag {
  padding: 4px 9px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 44px 0 0;
}

.pagination a,
.pagination span {
  min-width: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
  background: #ffffff;
  font-weight: 800;
}

.pagination .current {
  color: #ffffff;
  border-color: var(--primary);
  background: var(--primary);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 34px;
  padding: 58px 0 0;
}

.detail-poster {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.25), transparent 18rem),
    linear-gradient(145deg, #dbeafe, #e0f2fe);
}

.detail-poster img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
}

.detail-poster.is-empty {
  min-height: 620px;
}

.detail-content h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.07em;
}

.detail-lead {
  color: #334155;
  font-size: 20px;
}

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.detail-section {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  margin-top: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-section p {
  margin: 0;
  color: #334155;
}

.video-section {
  padding-top: 58px;
}

.video-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-player video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(37, 99, 235, 0.22), transparent 22rem),
    rgba(2, 6, 23, 0.30);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-player.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.38);
  font-size: 34px;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.06);
}

.player-message {
  margin-top: 12px;
  color: #bfdbfe;
  text-align: center;
  font-weight: 800;
}

.video-caption {
  padding: 18px 22px 22px;
  color: #cbd5e1;
}

.video-caption h2 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 24px;
}

.video-caption p {
  margin: 0;
}

.search-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  outline: 0;
}

.search-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px #dbeafe;
}

.search-stats {
  margin: 16px 0 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 72px;
  padding: 48px 0 26px;
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-logo {
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  max-width: 520px;
  color: #94a3b8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  margin-top: 34px;
  padding-top: 22px;
  color: #94a3b8;
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

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

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

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

  .hero-poster-card {
    min-height: auto;
  }

  .hero-poster-card img {
    height: 420px;
  }

  .detail-poster {
    position: relative;
    top: auto;
  }
}

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

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

  .main-nav {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 12px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 12px 14px;
  }

  .hero-shell {
    min-height: auto;
    padding: 46px 0 68px;
  }

  .hero h1 {
    letter-spacing: -0.05em;
  }

  .hero-search,
  .search-form {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search input,
  .search-form input {
    min-height: 46px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

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

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

  .rank-item .button {
    grid-column: 2 / -1;
    width: fit-content;
  }

  .detail-section {
    padding: 18px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .movie-card h3 {
    font-size: 15px;
  }

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

  .play-button {
    width: 76px;
    height: 76px;
    font-size: 28px;
  }
}
