:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --cyan: #0891b2;
  --cyan-light: #06b6d4;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan-light), var(--blue));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.28);
}

.logo-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: #334155;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--panel-soft);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #334155;
}

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

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #334155;
  font-weight: 650;
}

.mobile-link:hover,
.mobile-link.active {
  background: #ecfeff;
  color: var(--cyan);
}

.hero-carousel {
  position: relative;
  height: 72vh;
  min-height: 540px;
  overflow: hidden;
  background: var(--dark);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #155e75);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.18)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.98), transparent 58%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 64px 0 76px;
  color: #ffffff;
}

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

.eyebrow,
.section-heading span,
.detail-meta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 30px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

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

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-light), var(--blue));
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.26);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.main-wrap {
  padding: 58px 0 0;
}

.section {
  margin: 0 0 72px;
}

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

.section-heading h2 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
}

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

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

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

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

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

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

.feature-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #155e75);
  transition: transform 0.7s ease;
}

.feature-card:hover img {
  transform: scale(1.08);
}

.feature-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.22));
}

.feature-content {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 9px;
  padding: 26px;
  color: #ffffff;
}

.feature-meta {
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
}

.feature-content strong {
  font-size: 27px;
  line-height: 1.12;
}

.feature-content span:last-child {
  color: #dbeafe;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(6, 182, 212, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #155e75);
}

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

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

.card-year,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-year {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--cyan-light), var(--blue));
}

.card-body {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--cyan);
}

.card-desc {
  display: -webkit-box;
  min-height: 46px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.card-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: 12px;
  font-weight: 750;
}

.soft-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

.horizontal-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x proximity;
}

.horizontal-row .movie-card {
  width: 280px;
  min-width: 280px;
  scroll-snap-align: start;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #155e75 52%, #2563eb);
  color: #ffffff;
  box-shadow: var(--shadow);
}

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

.category-tile p {
  margin: 0;
  color: #dbeafe;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -42px;
  bottom: -48px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.28);
}

.page-hero {
  padding: 64px 0 38px;
  background:
    radial-gradient(circle at 18% 20%, rgba(6, 182, 212, 0.16), transparent 30%),
    linear-gradient(180deg, #ffffff, #f8fafc);
}

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

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(150px, 1fr));
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--text);
  padding: 0 12px;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan-light);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.no-results {
  display: none;
  padding: 34px;
  border-radius: 22px;
  background: #f1f5f9;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

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

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

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: #334155;
  font-weight: 800;
}

.pagination a:hover,
.pagination a.current {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan-light), var(--blue));
  color: #ffffff;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--dark);
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #155e75);
  filter: saturate(1.1);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.36)),
    linear-gradient(0deg, #0f172a, rgba(15, 23, 42, 0.18));
}

.detail-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
  align-items: end;
  min-height: 560px;
  padding: 82px 0 64px;
  color: #ffffff;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #155e75);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

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

.detail-info h1 {
  max-width: 880px;
  margin: 12px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-info .lead {
  max-width: 760px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 19px;
}

.detail-info .tag-list span {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.player-section {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  background: radial-gradient(circle at 50% 45%, rgba(6, 182, 212, 0.26), rgba(2, 6, 23, 0.66));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-light), var(--blue));
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.32);
  font-size: 34px;
  text-indent: 5px;
}

.player-title-row {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.player-title-row h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.player-title-row p {
  margin: 0;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: 42px;
}

.content-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.content-card {
  padding: 30px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.content-card p {
  margin: 0 0 24px;
  color: #334155;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.side-card {
  align-self: start;
  padding: 22px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 76px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #155e75);
}

.side-item strong {
  display: block;
  line-height: 1.25;
}

.side-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.index-list {
  columns: 4 220px;
  column-gap: 28px;
}

.index-list a {
  display: block;
  break-inside: avoid;
  padding: 8px 0;
  color: #334155;
  font-weight: 650;
}

.index-list a:hover {
  color: var(--cyan);
}

.site-footer {
  margin-top: 82px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0 34px;
}

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

.footer-text {
  max-width: 380px;
  color: #94a3b8;
}

.footer-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

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

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  padding: 20px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  color: #64748b;
}

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

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

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

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

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

  .menu-button {
    display: block;
  }

  .hero-carousel {
    height: 76vh;
    min-height: 560px;
  }

  .hero-content {
    padding: 40px 0 72px;
  }

  .hero-control {
    display: none;
  }

  .feature-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .category-tiles,
  .footer-grid,
  .filter-panel,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    align-items: start;
    gap: 24px;
  }

  .detail-poster {
    width: 210px;
  }
}

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

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

  .hero-copy h1,
  .hero-copy h2,
  .detail-info h1 {
    font-size: 40px;
  }

  .main-wrap {
    padding-top: 38px;
  }

  .section {
    margin-bottom: 52px;
  }

  .grid {
    gap: 16px;
  }

  .feature-card,
  .feature-card img {
    min-height: 360px;
  }

  .soft-panel,
  .content-card {
    padding: 22px;
  }

  .pagination a {
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
  }
}

.hero-copy .hero-subtitle {
  margin-top: -8px;
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.04em;
  opacity: 0.92;
}
