:root {
  --page: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --soft-blue: #eff6ff;
  --soft-cyan: #ecfeff;
  --dark: #020617;
  --radius: 22px;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.10), transparent 28rem),
    var(--page);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}

img {
  width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.24);
}

.brand-mark::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 12px;
  content: "";
}

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a,
.mobile-panel a {
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.nav-links a {
  padding: 10px 14px;
}

.nav-links a:hover,
.nav-links a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
  background: var(--soft-blue);
  color: var(--blue);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 16px;
}

.hero {
  position: relative;
  margin: 32px auto 34px;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.88) 52%, rgba(8, 145, 178, 0.84)),
    #020617;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  color: #ffffff;
}

.hero::before,
.hero::after {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.28);
  filter: blur(46px);
  content: "";
}

.hero::before {
  top: -160px;
  right: 12%;
}

.hero::after {
  bottom: -180px;
  left: -40px;
  background: rgba(37, 99, 235, 0.26);
}

.hero-slide {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 530px;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 48px;
  padding: 54px;
}

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

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 20px 0 0;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.9;
}

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

.button-primary,
.button-ghost,
.button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.button-primary {
  padding: 13px 22px;
  background: linear-gradient(90deg, #ffffff, #dbeafe);
  color: #1d4ed8;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
}

.button-ghost {
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.button-small {
  padding: 9px 14px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 13px;
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags a,
.hero-tags span,
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags a,
.hero-tags span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
}

.hero-media {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.30);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  height: 520px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster:hover img {
  transform: scale(1.04);
}

.hero-floating-card {
  position: absolute;
  right: -14px;
  bottom: 28px;
  width: min(270px, 80%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.64);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-floating-card strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 18px;
}

.hero-floating-card span {
  color: #bae6fd;
  font-size: 13px;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  right: 54px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

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

.search-panel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr auto;
  gap: 12px;
  margin: -2px auto 34px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  padding: 0 16px;
  font-weight: 700;
}

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

.section {
  margin: 38px auto;
}

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

.section-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-desc,
.page-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card,
.category-card,
.info-card,
.rank-row,
.player-card {
  border: 1px solid rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.12);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(6, 182, 212, 0.12));
}

.card-cover img {
  aspect-ratio: 3 / 4;
  height: 285px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  padding: 7px 10px;
  background: rgba(15, 23, 42, 0.76);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-text {
  display: -webkit-box;
  overflow: hidden;
  color: #475569;
  font-size: 13px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag {
  padding: 6px 9px;
  background: var(--soft-blue);
  color: var(--blue);
}

.category-card {
  display: block;
  min-height: 145px;
  padding: 22px;
  border-radius: 24px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.12);
}

.category-card strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}

.category-card span {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 86px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 22px;
}

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

.rank-thumb {
  overflow: hidden;
  border-radius: 16px;
}

.rank-thumb img {
  aspect-ratio: 3 / 4;
  height: 112px;
  object-fit: cover;
}

.rank-info strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

.rank-info p {
  display: -webkit-box;
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-score {
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.page-hero {
  margin: 32px auto;
  padding: 38px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.76)),
    rgba(2, 6, 23, 0.32);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.play-button {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.70);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 36px;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.player-caption {
  padding: 22px;
}

.player-caption h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.player-caption p {
  margin-top: 10px;
  color: #64748b;
  line-height: 1.8;
}

.info-card {
  padding: 24px;
  border-radius: 28px;
}

.info-card h2,
.info-card h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.info-card p {
  color: #475569;
  line-height: 1.95;
}

.meta-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.meta-table div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #475569;
  font-size: 14px;
}

.meta-table strong {
  color: #0f172a;
}

.footer {
  margin-top: 60px;
  background: #020617;
  color: #cbd5e1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 42px 0;
}

.footer h2,
.footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.footer p,
.footer a {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.8;
}

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

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

.copy {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 18px 0;
  color: #94a3b8;
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 32px;
  border: 1px dashed #bfdbfe;
  border-radius: 22px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

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

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

  .hero {
    margin-top: 20px;
    border-radius: 26px;
  }

  .hero-slide {
    min-height: auto;
    padding: 34px 24px 78px;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .hero-poster img {
    height: 360px;
  }

  .hero-dots {
    right: 28px;
    bottom: 28px;
  }

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

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

  .rank-row {
    grid-template-columns: 44px 72px 1fr;
  }

  .rank-score {
    grid-column: 2 / 4;
  }

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

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

  .brand-text span {
    display: none;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero-slide {
    padding: 28px 18px 76px;
  }

  .hero-poster img {
    height: 310px;
  }

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

  .page-hero {
    padding: 26px 20px;
  }

  .card-cover img {
    height: 320px;
  }
}
