:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.82);
  --border: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --violet: #7c3aed;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 32rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #67e8f9, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #cbd5e1;
  font-weight: 650;
}

.nav-links a,
.mobile-menu a,
.footer-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover,
.footer-links a:hover {
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.85);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.mobile-menu.is-open {
  display: flex;
}

main {
  padding-top: 68px;
}

.hero-slider {
  position: relative;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.72s ease, transform 0.72s ease;
  transform: scale(1.02);
}

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

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  z-index: -3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 40%, rgba(2, 6, 23, 0.34) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), #020617 98%);
  z-index: -2;
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0 130px;
  max-width: 760px;
  justify-self: center;
  transform: translateX(-220px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  color: #67e8f9;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content h1 {
  max-width: 680px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
}

.hero-content h2 {
  margin-top: 16px;
  color: #67e8f9;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}

.hero-content p,
.page-hero p,
.detail-lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.85;
}

.hero-tags,
.tag-list,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-list span,
.detail-meta span,
.breadcrumb a {
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.11);
}

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

.primary-btn,
.ghost-btn,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn,
.hero-search button {
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.28);
}

.ghost-btn {
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 86px;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dots button {
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.6rem;
}

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

.hero-dots button {
  width: 28px;
  height: 8px;
  border-radius: 999px;
  padding: 0;
}

.hero-dots button.is-active {
  width: 48px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 6;
  width: min(720px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.hero-search input,
.filter-panel input,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.72);
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--cyan);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.58));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 26px 64px rgba(8, 145, 178, 0.14);
}

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

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent);
}

.play-badge,
.rank-mark {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.42);
}

.rank-mark {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #020617;
  font-weight: 900;
  background: #67e8f9;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #67e8f9;
  font-size: 0.76rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--cyan);
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list {
  margin-top: 13px;
}

.tag-list span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #cbd5e1;
  font-size: 0.72rem;
  background: rgba(148, 163, 184, 0.1);
}

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

.category-tile,
.category-panel {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.category-tile img,
.category-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.category-tile:hover img,
.category-panel:hover img {
  transform: scale(1.08);
  opacity: 0.48;
}

.category-tile span,
.category-panel h2 {
  position: relative;
  display: block;
  margin: 0;
  padding: 82px 18px 6px;
  font-size: 1.4rem;
  font-weight: 900;
}

.category-tile small,
.category-panel p,
.category-panel span {
  position: relative;
  display: block;
  padding: 0 18px 18px;
  color: #cbd5e1;
  line-height: 1.7;
}

.category-panel {
  min-height: 230px;
}

.category-panel span {
  padding-top: 66px;
  padding-bottom: 0;
  color: #67e8f9;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.category-panel h2 {
  padding-top: 8px;
}

.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0 44px;
}

.page-hero {
  min-height: 350px;
  display: grid;
  align-items: end;
}

.slim-hero {
  min-height: 270px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.filter-panel,
.search-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(14px);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 800;
}

.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.year-tabs button {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.46);
  cursor: pointer;
}

.year-tabs button.is-active,
.year-tabs button:hover {
  border-color: rgba(34, 211, 238, 0.46);
  color: #020617;
  background: #67e8f9;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #94a3b8;
}

.detail-copy h1 {
  font-size: clamp(2.2rem, 5vw, 5rem);
}

.detail-meta {
  margin-top: 22px;
}

.detail-tags span {
  color: #dbeafe;
}

.player-section {
  padding-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.82));
  cursor: pointer;
}

.player-shell.is-playing .player-overlay {
  display: none;
}

.big-play {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.38);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.content-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 900;
}

.content-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.95;
}

.link-index-wrap {
  padding-bottom: 20px;
}

.link-index {
  columns: 3 240px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-index li {
  break-inside: avoid;
  margin-bottom: 10px;
}

.link-index a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.55);
}

.link-index a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.24);
}

.link-index span {
  color: #94a3b8;
  white-space: nowrap;
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
}

.footer-grid p {
  max-width: 560px;
  color: #94a3b8;
  line-height: 1.85;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: #cbd5e1;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 36px;
  color: #64748b;
  font-size: 0.9rem;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero-content {
    transform: none;
  }

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

  .detail-hero {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    width: calc(100% - 24px);
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

  .hero-content {
    padding-top: 68px;
  }

  .hero-controls {
    bottom: 98px;
  }

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

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

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

  .detail-hero,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-panel-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .hero-content h1 {
    font-size: 2.35rem;
  }
}
