
:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.82);
  --bg-card-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5f1ff;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #38bdf8;
  --violet: #8b5cf6;
  --gold: #facc15;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(34, 211, 238, 0.24), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(139, 92, 246, 0.24), transparent 32rem),
    linear-gradient(135deg, #020617 0%, #0f172a 46%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
}

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

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #08111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.46);
}

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

.desktop-nav,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.14);
  transform: translateY(-1px);
}

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

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

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
}

.hero {
  position: relative;
  width: min(1440px, calc(100% - 32px));
  margin: 22px auto 0;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.75) 40%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.8), transparent 45%);
}

.hero-copy {
  position: absolute;
  left: clamp(28px, 7vw, 96px);
  top: 50%;
  transform: translateY(-50%);
  width: min(660px, calc(100% - 48px));
}

.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.detail-copy .lead {
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  max-width: 760px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag,
.meta-pills span,
.poster-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: #bff4ff;
  background: rgba(8, 145, 178, 0.16);
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1;
}

.hero-actions,
.detail-copy .primary-btn {
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.section-action,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.28);
}

.primary-btn.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.ghost-btn,
.section-action {
  margin-left: 10px;
  color: #e2e8f0;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.62);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-action:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  left: clamp(24px, 7vw, 96px);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button,
.hero-dot {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.62;
}

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

.hero-search {
  width: min(820px, calc(100% - 40px));
  margin: -32px auto 0;
  position: relative;
  z-index: 3;
}

.hero-search form {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-search input,
.search-box input,
.filter-selects select {
  border: 1px solid var(--line);
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.68);
  outline: none;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border-radius: 999px;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.section {
  padding: 70px 0 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 680px;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  opacity: 0.56;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
  opacity: 0.74;
}

.category-tile span,
.category-tile p {
  position: absolute;
  left: 18px;
  right: 18px;
}

.category-tile span {
  bottom: 64px;
  font-size: 22px;
  font-weight: 800;
}

.category-tile p {
  bottom: 16px;
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
}

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

.catalog-grid {
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: 40px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(2, 6, 23, 0.72);
}

.card-body {
  padding: 16px;
}

.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card h3,
.rank-item h3 {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p,
.rank-item p {
  margin: 10px 0 0;
  color: #aebbd0;
  font-size: 14px;
}

.text-link {
  min-height: 34px;
  margin-top: 14px;
  padding: 0;
  color: var(--cyan);
}

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

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

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

.rank-list.full {
  padding-bottom: 40px;
}

.rank-item {
  display: grid;
  grid-template-columns: 58px 76px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.rank-num {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  width: 76px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

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

.rank-info h3 {
  margin-top: 0;
}

.heat {
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

.page-main {
  padding-top: 36px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 78px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.2), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.78));
  box-shadow: var(--shadow);
}

.page-hero.slim {
  padding: clamp(34px, 6vw, 64px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-card);
}

.search-box {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 700;
}

.search-box input,
.filter-selects select {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  padding: 0 16px;
}

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

.category-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.category-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  padding: 18px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 22px;
}

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

.category-card h2 {
  margin: 0;
  font-size: 30px;
}

.category-card p {
  color: var(--muted);
}

.detail-page {
  overflow: hidden;
}

.detail-hero {
  position: relative;
  min-height: 600px;
  background: #020617;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cover-image);
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.55);
  transform: scale(1.1);
  opacity: 0.62;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.92)),
    linear-gradient(0deg, #020617 0%, transparent 44%);
}

.detail-wrap {
  position: relative;
  padding: 34px 0 72px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 330px) 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

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

.movie-player,
.player-overlay,
.player-overlay img {
  width: 100%;
  height: 100%;
}

.movie-player {
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.58;
}

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

.play-ring {
  position: relative;
  width: clamp(76px, 10vw, 112px);
  height: clamp(76px, 10vw, 112px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 50px rgba(34, 211, 238, 0.44);
}

.play-ring span {
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid #07111d;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 20px;
  margin-top: 28px;
}

.story-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-card-strong);
  padding: clamp(22px, 4vw, 34px);
}

.story-card h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 34px);
}

.story-card p {
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 16px;
}

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

.footer-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #cbd5e1;
}

.footer-inner p {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

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

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

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

  .menu-button {
    display: block;
  }

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

  .hero-stage,
  .hero-image {
    min-height: 560px;
  }

  .hero-copy {
    top: 47%;
  }

  .hero-search form,
  .search-panel,
  .footer-inner,
  .section-head,
  .category-card,
  .detail-grid,
  .content-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

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

  .category-card {
    display: grid;
  }

  .filter-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 64px 1fr;
  }

  .heat {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 62px;
  }

  .brand-text {
    font-size: 16px;
  }

  .hero {
    width: calc(100% - 20px);
  }

  .hero-stage,
  .hero-image {
    min-height: 560px;
    border-radius: 24px;
  }

  .hero-copy {
    left: 22px;
    width: calc(100% - 44px);
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .ghost-btn {
    margin-left: 0;
  }

  .hero-controls {
    left: 22px;
    bottom: 22px;
  }

  .hero-search {
    width: calc(100% - 20px);
  }

  .hero-search form {
    border-radius: 24px;
  }

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

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

  .rank-item {
    grid-template-columns: 34px 58px 1fr;
    gap: 10px;
  }

  .page-hero,
  .story-card {
    border-radius: 24px;
  }
}
