:root {
  --page: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5eefc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --green: #22c55e;
  --orange: #fb923c;
  --pink: #f472b6;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  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;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(34, 211, 238, 0.18), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(20, 184, 166, 0.12), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
}

body.locked {
  overflow: hidden;
}

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

img {
  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: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #06b6d4, #2563eb 55%, #7c3aed);
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.28);
}

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

.logo-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-sub {
  margin-top: 3px;
  color: rgba(103, 232, 249, 0.74);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 13px;
  color: var(--soft);
  border-radius: 999px;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: white;
  background: rgba(34, 211, 238, 0.13);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: rgba(15, 23, 42, 0.82);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #020617;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 40%, rgba(34, 211, 238, 0.20), transparent 30rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.34) 100%),
    linear-gradient(0deg, #020617 0%, transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 56px;
  min-height: 76vh;
  padding-top: 42px;
  padding-bottom: 56px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.16);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 12px;
  max-width: 900px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 0 0 16px;
  color: #67e8f9;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.12;
}

.hero-desc {
  margin: 0 0 24px;
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.9;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.62);
  font-size: 13px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.68);
  cursor: pointer;
  transition: 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.16);
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 45px rgba(14, 165, 233, 0.32);
}

.button-primary:hover {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: var(--shadow);
}

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

.hero-poster-info {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(18px);
}

.hero-poster-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.hero-poster-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  right: max(18px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 22px;
}

.hero-arrow:hover {
  background: rgba(34, 211, 238, 0.28);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active {
  width: 28px;
  background: #22d3ee;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: rgba(15, 23, 42, 0.46);
}

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

.section-kicker {
  margin: 0 0 8px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-text {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.9;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.70);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.search-field,
.filter-field {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  color: white;
  outline: none;
  background: rgba(2, 6, 23, 0.72);
}

.search-field {
  padding: 0 16px;
}

.filter-field {
  padding: 0 12px;
}

.search-field:focus,
.filter-field:focus {
  border-color: rgba(34, 211, 238, 0.58);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.search-results {
  display: none;
  margin-top: 18px;
}

.search-results.is-visible {
  display: grid;
}

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

.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));
}

.movie-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.20);
  transition: 0.22s ease;
}

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

.movie-poster {
  position: relative;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.56);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.movie-body {
  padding: 17px;
}

.movie-title {
  margin: 0 0 9px;
  color: white;
  font-size: 18px;
  line-height: 1.35;
}

.movie-title a:hover {
  color: #67e8f9;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(37, 99, 235, 0.08)),
    rgba(15, 23, 42, 0.76);
  box-shadow: 0 18px 65px rgba(0, 0, 0, 0.24);
  transition: 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.42);
}

.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 20px;
  color: var(--soft);
  line-height: 1.8;
}

.category-strip {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.category-strip img {
  width: 48px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  transition: 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(15, 23, 42, 0.92);
}

.rank-num {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.rank-thumb img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-title a:hover {
  color: #67e8f9;
}

.rank-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.page-hero {
  padding: 72px 0 44px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 20%, rgba(34, 211, 238, 0.18), transparent 24rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.48), rgba(2, 6, 23, 0));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #93c5fd;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.page-title {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-desc {
  max-width: 860px;
  margin: 18px 0 0;
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 17px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 32px;
  align-items: start;
}

.player-card,
.detail-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.movie-player {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.18), transparent 18rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.player-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-size: 34px;
  text-indent: 5px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 20px 55px rgba(14, 165, 233, 0.38);
}

.movie-player.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-info {
  padding: 22px;
}

.player-info h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.18;
}

.player-info p {
  margin: 0;
  color: var(--soft);
  line-height: 1.9;
}

.detail-card {
  padding: 22px;
}

.detail-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 16px;
  color: var(--soft);
  line-height: 1.9;
}

.side-poster {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 22px;
}

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

.inline-facts {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.inline-facts div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.inline-facts dt {
  color: var(--muted);
}

.inline-facts dd {
  margin: 0;
  color: white;
  text-align: right;
}

.footer {
  margin-top: 46px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: #94a3b8;
  background: rgba(2, 6, 23, 0.78);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

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

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

@media (max-width: 980px) {
  .hero-content,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 66px;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

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

  .main-nav {
    position: fixed;
    top: 66px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: var(--shadow);
  }

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-content {
    padding-top: 24px;
    padding-bottom: 96px;
  }

  .hero h1 {
    letter-spacing: -0.035em;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-controls {
    right: 16px;
    left: 16px;
    justify-content: space-between;
  }

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

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-body {
    padding: 13px;
  }

  .movie-title {
    font-size: 16px;
  }

  .movie-desc {
    font-size: 13px;
  }

  .rank-item {
    grid-template-columns: 44px 58px minmax(0, 1fr);
  }

  .rank-num {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .rank-thumb img {
    width: 58px;
    height: 78px;
  }

  .rank-item .button {
    grid-column: 1 / -1;
  }

  .section {
    padding: 52px 0;
  }

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

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

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .meta-row,
  .tag-row {
    gap: 8px;
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
