html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e2e8f0;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.12), transparent 34rem),
    radial-gradient(circle at 90% 16%, rgba(59, 130, 246, 0.14), transparent 32rem),
    #020617;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), transparent 86%);
}

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: 40;
  border-bottom: 1px solid rgba(51, 65, 85, 0.72);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #22d3ee, #2563eb 62%, #7c3aed);
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.18);
}

.brand strong {
  display: block;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 0.78rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-weight: 600;
}

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

.desktop-nav a:hover,
.mobile-menu a:hover {
  color: #22d3ee;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-search {
  position: relative;
  width: 240px;
}

.nav-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(51, 65, 85, 0.92);
  border-radius: 14px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  padding: 11px 44px 11px 14px;
}

.nav-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
  background: rgba(15, 23, 42, 0.96);
}

.nav-search button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
}

.nav-search button:hover {
  color: #22d3ee;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(51, 65, 85, 0.92);
  border-radius: 14px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

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

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  background: rgba(2, 6, 23, 0.94);
}

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

.mobile-menu-inner {
  display: grid;
  gap: 14px;
  padding: 18px 0 22px;
}

.mobile-menu .nav-search {
  width: 100%;
}

.hero {
  position: relative;
  padding: 42px 0 58px;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  min-height: 568px;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: 34px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.64);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 24px;
  padding: 58px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.36)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.16) 42%, rgba(2, 6, 23, 0.3)),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(1.08);
}

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

.hero-copy,
.hero-poster-wrap {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(8, 47, 73, 0.32);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 0;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
}

.hero-text {
  max-width: 660px;
  margin: 20px 0 0;
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.82;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.68);
  font-size: 0.86rem;
  font-weight: 700;
}

.pill {
  padding: 8px 12px;
}

.tag {
  padding: 6px 10px;
}

.hero-actions,
.section-head,
.card-head,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.46);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.34);
}

.btn-primary {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb 62%, #7c3aed);
  box-shadow: 0 16px 32px rgba(34, 211, 238, 0.16);
}

.hero-poster-wrap {
  align-self: center;
  justify-self: end;
  width: min(100%, 380px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4.2;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.92));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.44);
}

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

.hero-mini {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.hero-mini strong {
  display: block;
  color: #ffffff;
  font-size: 1.08rem;
}

.hero-mini span {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 0.88rem;
}

.hero-controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 34px 0;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-kicker {
  margin: 0 0 7px;
  color: #22d3ee;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2,
.page-hero h1,
.detail-section h2,
.prose h2 {
  margin: 0;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.section-desc,
.page-hero p,
.category-card p,
.prose p {
  color: #94a3b8;
  line-height: 1.85;
}

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

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

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

.movie-card,
.category-card,
.rank-card,
.info-panel,
.prose,
.related-panel,
.filter-panel {
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.54));
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.22);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.36);
}

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

.movie-card img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover img {
  transform: scale(1.07);
  filter: saturate(1.12);
}

.card-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.card-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  color: #082f49;
  background: #67e8f9;
}

.card-body {
  padding: 18px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 11px;
  color: #94a3b8;
  font-size: 0.84rem;
}

.movie-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1.36;
}

.movie-card h3 a:hover,
.rank-card a:hover,
.breadcrumb a:hover {
  color: #22d3ee;
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.45em;
  margin: 10px 0 14px;
  overflow: hidden;
  color: #94a3b8;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

.category-card {
  position: relative;
  min-height: 168px;
  padding: 22px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 68%);
}

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

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffffff;
  font-size: 1.24rem;
}

.category-card p,
.category-card span {
  position: relative;
  z-index: 1;
}

.category-card span {
  display: inline-flex;
  margin-top: 16px;
  color: #67e8f9;
  font-weight: 900;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 56px 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.rank-num {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  color: #0f172a;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
  font-weight: 900;
}

.rank-card img {
  width: 82px;
  height: 110px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.rank-info strong {
  display: block;
  color: #ffffff;
  font-size: 1.02rem;
}

.rank-info p {
  margin: 7px 0 0;
  color: #94a3b8;
  line-height: 1.6;
}

.page-hero {
  padding: 58px 0 26px;
}

.page-hero-card {
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 32px;
  padding: clamp(24px, 5vw, 46px);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 34rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.58));
  box-shadow: 0 24px 72px rgba(2, 6, 23, 0.32);
}

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

.page-hero p {
  max-width: 820px;
  margin: 16px 0 0;
}

.filter-panel {
  margin: 24px 0 28px;
  padding: 18px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
}

.filter-input,
.filter-select {
  min-height: 46px;
  padding: 0 14px;
}

.filter-select {
  appearance: none;
}

.detail-shell {
  padding: 34px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #94a3b8;
  font-size: 0.92rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.player-card {
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 28px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.78)),
    center / cover no-repeat var(--poster-image);
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.player-button {
  display: grid;
  place-items: center;
  gap: 10px;
}

.player-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb 62%, #7c3aed);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.28);
  font-size: 2rem;
}

.player-text {
  font-weight: 900;
  letter-spacing: 0.08em;
}

.info-panel {
  padding: 18px;
}

.detail-poster {
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.detail-title {
  margin-top: 22px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.prose,
.related-panel {
  margin-top: 24px;
  padding: clamp(20px, 4vw, 34px);
}

.prose .lead {
  color: #cbd5e1;
  font-size: 1.08rem;
}

.prose h2,
.detail-section h2 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 1.55rem;
}

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

.related-grid .movie-card h3 {
  font-size: 0.98rem;
}

.related-grid .movie-card p {
  min-height: auto;
  -webkit-line-clamp: 1;
}

.site-footer {
  margin-top: 52px;
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  background: rgba(2, 6, 23, 0.68);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding: 40px 0;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-grid p,
.footer-grid a,
.copyright {
  color: #94a3b8;
  line-height: 1.8;
}

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

.footer-links a:hover {
  color: #22d3ee;
}

.copyright {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(51, 65, 85, 0.42);
  font-size: 0.92rem;
}

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

@media (max-width: 1080px) {
  .desktop-nav,
  .nav-actions > .nav-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 42px;
  }

  .hero-poster-wrap {
    justify-self: start;
    width: min(100%, 300px);
  }

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

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

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

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

  .brand strong {
    font-size: 1.08rem;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-stage {
    min-height: 690px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 28px;
  }

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

  .hero-controls {
    right: 18px;
    bottom: 18px;
  }

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

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

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

  .rank-card .btn {
    grid-column: 1 / -1;
  }

  .rank-card img {
    width: 64px;
    height: 88px;
  }

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

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

@media (max-width: 480px) {
  .grid-3,
  .grid-4,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 720px;
  }

  .hero-poster-wrap {
    width: 220px;
  }

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