:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --orange: #f97316;
  --orange-soft: rgba(249, 115, 22, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 5%, rgba(34, 211, 238, 0.16), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(249, 115, 22, 0.12), transparent 28%),
    linear-gradient(180deg, #020617 0%, #08111f 48%, #020617 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 12px 35px rgba(34, 211, 238, 0.3);
  color: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--cyan);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: var(--muted-strong);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-search input,
.inline-filter input,
.intro-search input,
.search-page-form input {
  width: 230px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.header-search input:focus,
.inline-filter input:focus,
.intro-search input:focus,
.search-page-form input:focus {
  border-color: var(--cyan);
  background: rgba(15, 23, 42, 0.96);
}

.header-search button,
.inline-filter button,
.intro-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), #ea580c);
  color: white;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.22);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.85);
  color: white;
  border-radius: 12px;
  padding: 8px 11px;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 50px;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: -120px calc((100vw - 100%) / -2);
  z-index: -2;
  opacity: 0.42;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.84) 36%, rgba(2, 6, 23, 0.42) 100%),
    linear-gradient(0deg, #020617 0%, transparent 45%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.03);
}

.hero-content {
  max-width: 760px;
  padding-top: 38px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(34, 211, 238, 0.34);
  background: var(--cyan-soft);
  color: var(--cyan);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1,
.detail-info h1,
.intro-panel h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-one-line,
.intro-panel p {
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--muted-strong);
  padding: 6px 10px;
  font-size: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.24);
  color: white;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted-strong);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 54%, rgba(2, 6, 23, 0.82));
}

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

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--cyan);
}

.intro-panel,
.page-hero,
.detail-hero,
.player-section,
.content-card,
.section-block,
.category-card-large a {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  margin-top: -52px;
  position: relative;
  z-index: 5;
}

.intro-panel h1 {
  margin-top: 0;
  font-size: clamp(28px, 4vw, 46px);
}

.intro-panel p {
  margin-bottom: 0;
}

.intro-search,
.inline-filter,
.search-page-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.intro-search input,
.search-page-form input {
  width: min(460px, 100%);
}

.page-main {
  padding: 38px 0 70px;
}

.page-hero {
  padding: 42px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.1);
  filter: blur(4px);
}

.slim-hero h1,
.category-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(36px, 5vw, 58px);
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}

.section-block {
  padding: 26px;
  margin: 28px 0;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  color: var(--cyan);
  font-weight: 900;
  white-space: nowrap;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.76);
  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 20px 50px rgba(0, 0, 0, 0.28);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(249, 115, 22, 0.12));
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(2, 6, 23, 0.78));
  opacity: 0.88;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: #00111a;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.34);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  color: white;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

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

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

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

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

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.movie-card-compact h2 {
  font-size: 16px;
}

.movie-card-compact .movie-card-body {
  padding: 12px;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  padding: 4px 8px;
}

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

.feature-card,
.category-card-large a,
.category-pill {
  display: block;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-card {
  padding: 22px;
}

.feature-card:hover,
.category-card-large a:hover,
.category-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(15, 23, 42, 0.96);
}

.feature-card span,
.category-card-large h2 {
  display: block;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.feature-card p,
.category-card-large p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-card-large a {
  height: 100%;
  padding: 26px;
}

.category-card-large span {
  display: inline-flex;
  margin-top: 20px;
  color: var(--cyan);
  font-weight: 900;
}

.mini-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.mini-links a {
  color: var(--muted-strong);
  font-size: 14px;
}

.mini-links a:hover {
  color: var(--cyan);
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-pill {
  padding: 16px 18px;
  min-width: 180px;
}

.category-pill strong {
  display: block;
  margin-bottom: 5px;
}

.category-pill span {
  color: var(--muted);
  font-size: 13px;
}

.detail-main {
  padding-top: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  padding: 30px;
  margin-bottom: 28px;
}

.detail-cover {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(249, 115, 22, 0.12));
}

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

.detail-info h1 {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 62px);
}

.player-section {
  padding: 26px;
  margin-bottom: 28px;
}

.video-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
  color: white;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: #00111a;
  font-size: 30px;
  box-shadow: 0 20px 48px rgba(34, 211, 238, 0.35);
}

.video-overlay strong {
  max-width: 90%;
  font-size: clamp(20px, 3vw, 34px);
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 25px;
}

.content-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.9;
}

.info-list {
  grid-column: 1 / -1;
}

.info-list dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-list div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.26);
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.info-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.detail-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.detail-pager a {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.76);
  border-radius: 18px;
  padding: 16px;
  color: var(--muted-strong);
}

.detail-pager a:hover {
  border-color: rgba(34, 211, 238, 0.42);
  color: var(--cyan);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  padding-top: 42px;
}

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

.footer-brand {
  display: inline-block;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 18px;
}

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

.footer-links a {
  color: var(--muted-strong);
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.search-empty {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  padding: 32px;
  color: var(--muted-strong);
  text-align: center;
}

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

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

  .main-nav,
  .header-search {
    display: none;
    width: 100%;
  }

  .main-nav.is-open,
  .header-search.is-open {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  .header-search input {
    width: 100%;
  }

  .hero,
  .hero-slider {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
  }

  .hero-poster {
    width: min(260px, 72vw);
  }

  .intro-panel,
  .category-hero,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .feature-grid,
  .category-large-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero h1,
  .page-hero h1,
  .detail-info h1,
  .intro-panel h1 {
    letter-spacing: -0.035em;
  }

  .section-block,
  .page-hero,
  .intro-panel,
  .detail-hero,
  .player-section,
  .content-card {
    padding: 18px;
    border-radius: 18px;
  }

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

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

  .movie-card h2 {
    font-size: 16px;
  }

  .movie-card p {
    display: none;
  }

  .section-heading,
  .intro-search,
  .inline-filter,
  .search-page-form,
  .detail-pager {
    flex-direction: column;
    align-items: stretch;
    display: flex;
  }

  .info-list dl {
    grid-template-columns: 1fr;
  }
}
