:root {
  --page-bg: #f4f8ff;
  --panel-bg: rgba(255, 255, 255, 0.86);
  --ink: #111827;
  --muted: #64748b;
  --soft: #e0f2fe;
  --line: rgba(148, 163, 184, 0.28);
  --primary: #2563eb;
  --primary-2: #06b6d4;
  --accent: #f59e0b;
  --dark: #020617;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 32rem),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.16), transparent 30rem),
    linear-gradient(135deg, #f8fbff 0%, #eff6ff 45%, #ecfeff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

.logo-text {
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

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

.primary-nav a {
  padding: 10px 14px;
  color: #334155;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #0f172a;
  background: #e0f2fe;
  cursor: pointer;
}

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

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

.main-space {
  padding: 48px 0 76px;
}

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

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.62) 45%, rgba(2, 6, 23, 0.12)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.08) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 118px 0 92px;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.32);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 24px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  width: min(620px, 100%);
  margin: 0;
  color: rgba(226, 232, 240, 0.92);
  font-size: 19px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 32px;
}

.hero-meta span,
.meta-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 700;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.34);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-light {
  color: #075985;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.18);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.hero-dot {
  width: 38px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #67e8f9;
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.section {
  margin: 42px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-subtitle {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--muted);
}

.panel {
  background: var(--panel-bg);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 16px;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #1e40af;
  background: rgba(219, 234, 254, 0.72);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

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

.category-tile {
  position: relative;
  min-height: 182px;
  padding: 24px;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.26), transparent 26%),
    linear-gradient(135deg, #1d4ed8, #06b6d4);
  box-shadow: 0 22px 58px rgba(37, 99, 235, 0.22);
}

.category-tile:nth-child(3n + 2) {
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #7c3aed, #2563eb);
}

.category-tile:nth-child(3n) {
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #0891b2, #14b8a6);
}

.category-tile h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

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

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 26px 68px rgba(37, 99, 235, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #dbeafe;
}

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

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

.movie-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 9px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.rank-badge {
  right: 12px;
  left: auto;
  background: linear-gradient(135deg, #f97316, #facc15);
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 50%;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.32);
}

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

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

.movie-card h3 a:hover {
  color: #2563eb;
}

.movie-meta {
  margin: 0 0 9px;
  color: #64748b;
  font-size: 13px;
}

.movie-desc {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

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

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 26px 0;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #2563eb;
  font-weight: 800;
}

.page-hero {
  padding: 42px;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(125, 211, 252, 0.4), transparent 34%),
    linear-gradient(135deg, #0f172a, #1d4ed8 48%, #0891b2);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

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

.player-section {
  padding: 22px;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 32px;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.24);
}

.player-title {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(28px, 5vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 24px 54px rgba(37, 99, 235, 0.42);
  font-size: 32px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 26px;
  margin-top: 28px;
}

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

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

.detail-info {
  padding: 28px;
}

.detail-info h2,
.content-block h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.detail-info p,
.content-block p {
  margin: 0 0 14px;
  color: #475569;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.meta-list div {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.meta-list strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
}

.meta-list span {
  color: #64748b;
}

.content-block {
  padding: 28px;
  margin-top: 24px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.ranking-cover {
  width: 86px;
  height: 116px;
  overflow: hidden;
  border-radius: 16px;
  background: #dbeafe;
}

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

.ranking-main h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.ranking-main p {
  margin: 0;
  color: #64748b;
}

.ranking-num {
  min-width: 56px;
  text-align: center;
  color: #1d4ed8;
  font-size: 24px;
  font-weight: 950;
}

.no-result {
  display: none;
  padding: 24px;
  text-align: center;
  color: #64748b;
}

.no-result.is-visible {
  display: block;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

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

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

.site-footer p,
.site-footer a {
  color: #94a3b8;
}

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

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

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

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

  .primary-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

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

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

  .hero-controls {
    bottom: 20px;
  }

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

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

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

  .detail-poster {
    max-width: 380px;
  }
}

@media (max-width: 620px) {
  .container,
  .header-inner,
  .hero-controls {
    width: min(100% - 22px, 1180px);
  }

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

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

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

  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .page-hero,
  .detail-info,
  .content-block,
  .player-section {
    padding: 20px;
    border-radius: 24px;
  }

  .meta-list,
  .ranking-item {
    grid-template-columns: 1fr;
  }

  .ranking-num {
    text-align: left;
  }
}
