
:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(30, 41, 59, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --orange: #f97316;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
}

* {
  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 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

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

.header-shell,
.footer-shell,
.section-block,
.page-hero,
.detail-top,
.detail-content,
.text-page,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand strong {
  font-size: 1.12rem;
  letter-spacing: 0.06em;
}

.brand-text small {
  color: var(--cyan);
  font-size: 0.72rem;
  margin-top: 4px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.96rem;
}

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

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
}

.header-search input,
.hero-search input,
.search-page-form input,
.filter-panel input {
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
}

.header-search input {
  width: 210px;
  padding: 8px 10px;
}

.header-search button,
.hero-search button,
.search-page-form button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.hero-search button,
.search-page-form button,
.primary-button {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.22);
}

.header-search button {
  padding: 8px 16px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.header-search button:hover,
.hero-search button:hover,
.search-page-form button:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.3);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.86);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: white;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

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

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, transform 1.2s ease;
  transform: scale(1.04);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
}

.hero-content > * {
  max-width: 720px;
}

.hero-kicker,
.section-heading span,
.page-hero span,
.detail-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  color: white;
  background: rgba(34, 211, 238, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.32);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1,
.hero-content h2 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-title {
  margin: 18px 0 0;
  color: var(--cyan);
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 900;
}

.hero-content p {
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.8;
}

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

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

.hero-dots button {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 4;
  width: min(760px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.hero-search input {
  padding: 0 18px;
  min-height: 50px;
}

.hero-search button,
.search-page-form button {
  padding: 0 24px;
}

.section-block {
  padding: 76px 0;
}

.intro-block {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}

.intro-copy h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.text-page h2,
.detail-content h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.intro-copy h2,
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.intro-copy p,
.page-hero p,
.text-page p,
.detail-content p,
.detail-copy p {
  color: #cbd5e1;
  line-height: 1.9;
}

.intro-copy span {
  color: var(--cyan);
  font-weight: 900;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.intro-links a {
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
  color: #dbeafe;
  font-weight: 800;
}

.alt-section,
.category-showcase,
.related-block {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.left-heading {
  text-align: left;
}

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

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: grid;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card a:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.8));
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue);
  transform: scale(0.92);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card a:hover .play-dot {
  opacity: 1;
  transform: scale(1);
}

.movie-copy {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.movie-copy strong {
  min-height: 2.8em;
  font-size: 0.98rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-copy em,
.movie-copy small {
  color: var(--muted);
  font-style: normal;
}

.movie-copy small {
  min-height: 3.3em;
  font-size: 0.78rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.tag-row span,
.meta-pills span,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
  font-size: 0.75rem;
  font-weight: 700;
}

.ranking-grid .movie-card:nth-child(1) .rank-badge,
.ranking-grid .movie-card:nth-child(2) .rank-badge,
.ranking-grid .movie-card:nth-child(3) .rank-badge {
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 40px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.86);
  color: white;
  font-weight: 950;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.category-tile::before,
.category-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.9));
}

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 1;
}

.category-tile span {
  color: var(--cyan);
  font-size: 1.25rem;
  font-weight: 950;
}

.category-tile strong {
  margin-top: 8px;
  color: #e2e8f0;
  font-size: 0.86rem;
  line-height: 1.6;
}

.center-action {
  margin-top: 34px;
  text-align: center;
}

.page-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 72px 0 46px;
}

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

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

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
}

.category-card > a {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 220px;
}

.category-cover {
  position: relative;
  background-size: cover;
  background-position: center;
}

.category-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 26px;
}

.category-body strong {
  font-size: 1.6rem;
  font-weight: 950;
}

.category-body em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.category-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 26px 24px;
}

.category-card li a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #dbeafe;
  font-size: 0.86rem;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--line);
}

.filter-panel input {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid var(--line);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #dbeafe;
}

.filter-buttons button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
}

.empty-state {
  margin-top: 28px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.76);
  color: #dbeafe;
  text-align: center;
}

.detail-top {
  padding: 42px 0 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

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

.detail-hero-card {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.13), rgba(59, 130, 246, 0.07)),
    var(--panel);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  background: #0f172a;
}

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

.detail-copy {
  align-self: center;
}

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

.detail-copy p {
  margin: 20px 0 0;
  max-width: 780px;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.player-section {
  padding: 30px 0 72px;
}

.video-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: black;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.video-stage video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-stage video {
  object-fit: contain;
  background: black;
}

.player-cover {
  display: grid;
  place-items: center;
  border: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 34%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.34));
}

.player-cover span {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-size: 2.2rem;
  box-shadow: 0 22px 58px rgba(34, 211, 238, 0.32);
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-bottom: 50px;
}

.detail-content article,
.text-page {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.detail-content h2,
.text-page h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.tag-cloud div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(680px, 100%);
  margin-top: 28px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
}

.search-page-form input {
  min-height: 50px;
  padding: 0 18px;
}

.text-page {
  margin-bottom: 76px;
}

.text-page h2 + p {
  margin-bottom: 26px;
}

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

.footer-shell {
  padding: 56px 0 26px;
}

.footer-brand p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.footer-columns h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-columns ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #64748b;
}

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

  .header-search {
    margin-left: auto;
  }

  .menu-button {
    display: block;
  }

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

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

@media (max-width: 820px) {
  .header-shell {
    height: auto;
    min-height: 72px;
    padding: 12px 0;
  }

  .header-search {
    display: none;
  }

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

  .hero-search,
  .search-page-form {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search button,
  .search-page-form button {
    min-height: 48px;
  }

  .intro-block,
  .detail-hero-card,
  .category-card > a,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .page-hero {
    display: grid;
  }

  .intro-links {
    justify-content: flex-start;
  }

  .detail-hero-card {
    padding: 18px;
  }

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

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

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

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

@media (max-width: 520px) {
  .header-shell,
  .footer-shell,
  .section-block,
  .page-hero,
  .detail-top,
  .detail-content,
  .text-page,
  .player-section {
    width: min(100% - 22px, 1180px);
  }

  .brand-text small {
    display: none;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 2.55rem;
  }

  .hero-dots {
    bottom: 146px;
  }

  .section-block {
    padding: 54px 0;
  }

  .movie-grid,
  .category-grid,
  .category-list-grid {
    gap: 14px;
  }

  .movie-copy {
    padding: 12px;
  }

  .movie-copy small,
  .tag-row {
    display: none;
  }

  .category-tile {
    min-height: 170px;
    padding: 16px;
  }

  .video-stage {
    border-radius: 18px;
  }

  .player-cover span {
    width: 66px;
    height: 66px;
    font-size: 1.7rem;
  }
}
