:root {
  --sky: #0284c7;
  --sky-dark: #0369a1;
  --emerald: #059669;
  --orange: #ea580c;
  --purple: #7c3aed;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

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

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

.brand-name {
  font-size: 21px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--emerald));
  box-shadow: 0 12px 25px rgba(2, 132, 199, 0.28);
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--sky-dark);
  background: #e0f2fe;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #111827;
  border-radius: 3px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff 0%, #eef6ff 48%, #ecfdf5 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.75;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -90px;
  background: rgba(2, 132, 199, 0.17);
}

.hero::after {
  width: 340px;
  height: 340px;
  left: -120px;
  bottom: -90px;
  background: rgba(5, 150, 105, 0.16);
}

.hero-shell {
  position: relative;
  z-index: 1;
  min-height: 620px;
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 46px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sky-dark);
  background: rgba(224, 242, 254, 0.9);
  border: 1px solid rgba(125, 211, 252, 0.6);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 20px 0 18px;
  max-width: 680px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.07em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--sky), var(--emerald));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 650px;
  color: #475569;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: all 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--emerald));
  box-shadow: 0 16px 30px rgba(2, 132, 199, 0.26);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.34);
}

.btn-ghost {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(148, 163, 184, 0.28);
}

.btn-ghost:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.hero-search {
  display: flex;
  max-width: 620px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.hero-search input,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  background: #f8fafc;
  font-size: 15px;
}

.hero-search button {
  min-width: 102px;
  border: 0;
  cursor: pointer;
}

.hero-slider {
  position: relative;
  min-height: 520px;
}

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

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

.hero-card {
  overflow: hidden;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #dbeafe, #d1fae5);
}

.hero-card-image img {
  height: 100%;
  object-fit: cover;
}

.hero-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.48));
}

.hero-rank {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.hero-card-body {
  padding: 24px;
}

.hero-card-body h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.hero-card-body p {
  margin: 0 0 18px;
  color: #475569;
}

.slider-dots {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.25);
  cursor: pointer;
}

.slider-dot.active {
  width: 28px;
  background: var(--sky);
}

.section {
  padding: 60px 0;
}

.section.alt {
  background: #ffffff;
}

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

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

.section-desc {
  max-width: 760px;
  color: #64748b;
  margin: 10px 0 0;
}

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

.movie-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ecfdf5);
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--sky-dark);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h2 {
  margin: 9px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--sky-dark);
}

.movie-card p {
  flex: 1;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
}

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

.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  min-height: 170px;
  border-radius: 26px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.1);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
}

.category-tile p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-radius: 22px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  font-weight: 900;
}

.rank-item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe, #fef3c7);
}

.rank-item h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.page-hero {
  padding: 54px 0 38px;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
}

.page-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.page-hero p {
  max-width: 800px;
  margin: 0;
  color: #475569;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 22px;
}

.breadcrumb a:hover {
  color: var(--sky-dark);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 340px;
  gap: 28px;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.player-card {
  overflow: hidden;
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky), var(--emerald));
  box-shadow: 0 20px 50px rgba(2, 132, 199, 0.36);
  font-size: 32px;
  padding-left: 5px;
}

.player-start.is-hidden {
  display: none;
}

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

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

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

.detail-card p {
  color: #475569;
  margin: 0 0 16px;
}

.side-card {
  padding: 18px;
  margin-bottom: 18px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #dbeafe, #ecfdf5);
}

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

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 8px;
  transition: background 0.2s ease;
}

.mini-card:hover {
  background: #f1f5f9;
}

.mini-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe, #ecfdf5);
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  line-height: 1.35;
}

.mini-card em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  margin-top: 3px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 160px 160px 160px;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
  margin-bottom: 30px;
}

.empty-state {
  display: none;
  border-radius: 24px;
  padding: 34px;
  color: #64748b;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

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

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

.footer-brand {
  color: #ffffff;
  font-size: 21px;
}

.site-footer p {
  margin: 14px 0 0;
  color: #94a3b8;
}

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

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

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #64748b;
  font-size: 14px;
}

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

  .hero-slider {
    min-height: 540px;
  }

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

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

  .search-panel {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .nav-list {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

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

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

  .hero-search {
    display: grid;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-slider {
    min-height: 500px;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    display: block;
  }

  .grid,
  .rank-list,
  .category-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

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