:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --teal: #14b8a6;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --purple: #a855f7;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.16), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.24);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text {
  display: grid;
  gap: 1px;
}

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

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.7);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
}

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

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

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.hero-bg,
.hero-gradient,
.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.65s ease, transform 1.8s ease;
}

.hero-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-gradient {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 46%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(2, 6, 23, 0.4) 35%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-inner {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.64fr);
  align-items: end;
  gap: 42px;
  padding: 82px 0 58px;
}

.hero-copy {
  min-height: 410px;
  display: grid;
  align-content: end;
}

.hero-slide {
  display: none;
  max-width: 720px;
  animation: riseIn 0.5s ease both;
}

.hero-slide.is-active {
  display: block;
}

.kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-site-title {
  margin: 0 0 12px;
  color: var(--muted-strong);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
}

.hero-slide h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-text,
.page-hero p {
  margin: 18px 0 0;
  max-width: 680px;
  color: var(--muted-strong);
  font-size: 18px;
}

.hero-meta,
.detail-meta,
.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta {
  margin-top: 22px;
}

.hero-meta span,
.detail-meta span,
.movie-meta-line span {
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
}

.score {
  color: #facc15 !important;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 16px 30px rgba(20, 184, 166, 0.22);
}

.btn-soft {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 28px;
  line-height: 1;
}

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

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

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

.hero-side {
  display: grid;
  gap: 18px;
}

.hero-search,
.filter-panel,
.detail-card,
.side-card,
.player-card,
.category-overview-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-search {
  padding: 18px;
}

.hero-search label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-strong);
  font-weight: 700;
}

.hero-search div,
.inline-search {
  display: flex;
  gap: 10px;
}

.hero-search input,
.inline-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
  padding: 0 14px;
  outline: none;
}

.hero-search input:focus,
.inline-search input:focus {
  border-color: rgba(20, 184, 166, 0.7);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.hero-search button,
.inline-search button {
  min-width: 92px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: var(--teal);
  font-weight: 800;
}

.hero-picks {
  display: grid;
  gap: 12px;
}

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

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

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

.section-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 18px;
}

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

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

.movie-card {
  overflow: hidden;
  background: rgba(30, 41, 59, 0.58);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.01);
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(20, 184, 166, 0.3);
}

.movie-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover img,
.category-card:hover img {
  transform: scale(1.07);
}

.movie-card-shade,
.category-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
}

.play-dot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 32px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(20, 184, 166, 0.95);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: auto;
  right: 10px;
  background: rgba(245, 158, 11, 0.95);
}

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

.movie-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--teal);
}

.movie-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card-wide .movie-card-media {
  aspect-ratio: auto;
  min-height: 112px;
}

.movie-card-wide .movie-card-body {
  display: grid;
  align-content: center;
}

.movie-card-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.category-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111827;
  padding: 20px;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card strong,
.category-card small {
  position: relative;
  z-index: 2;
}

.category-card strong {
  font-size: 22px;
}

.category-card small {
  margin-top: 8px;
  color: var(--muted-strong);
}

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

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

.section-more {
  margin-top: 26px;
  text-align: center;
}

.page-main {
  padding: 34px 0 72px;
}

.page-hero {
  margin: 28px 0 30px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(168, 85, 247, 0.13)),
    rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover,
.text-link:hover {
  color: var(--teal);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.category-overview-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 14px;
}

.category-overview-media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #111827;
}

.category-overview-card h2 {
  margin: 0 0 8px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.text-link {
  color: var(--teal);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
}

.inline-search {
  width: 100%;
}

.filter-row {
  display: grid;
  gap: 10px;
}

.filter-row strong {
  color: var(--muted-strong);
}

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

.filter-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.72);
  padding: 0 14px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: #ffffff;
  background: rgba(20, 184, 166, 0.78);
  border-color: rgba(20, 184, 166, 0.9);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
  gap: 24px;
  margin-top: 24px;
}

.detail-primary {
  display: grid;
  gap: 20px;
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.player-button {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2));
  z-index: 2;
}

.player-button span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.92);
  font-size: 34px;
  box-shadow: 0 18px 45px rgba(20, 184, 166, 0.32);
}

.player-button strong {
  font-size: 18px;
}

.player-shell.is-hidden .player-button {
  display: none;
}

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.detail-meta {
  margin-bottom: 16px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.detail-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.12);
}

.detail-card h2,
.side-card h2 {
  margin: 22px 0 12px;
  font-size: 24px;
}

.detail-card p {
  color: var(--muted-strong);
  margin: 0 0 12px;
}

.lead-text {
  color: #e2e8f0 !important;
  font-size: 17px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  margin-top: 0;
}

.side-card .movie-card-wide {
  grid-template-columns: 118px minmax(0, 1fr);
}

.side-card .movie-card-wide .movie-card-media {
  min-height: 86px;
}

.side-card .movie-card-body {
  padding: 10px;
}

.side-card .movie-card p {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.86);
  margin-top: 78px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 34px;
  padding: 42px 0;
}

.footer-brand p,
.footer-list a,
.footer-tags a,
.footer-bottom {
  color: var(--muted);
}

.footer-brand p {
  max-width: 360px;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.footer-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-list a:hover,
.footer-tags a:hover {
  color: var(--teal);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.45);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .movie-grid-six {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-side {
    max-width: 760px;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 64px 0 44px;
  }

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 24px;
  }
}

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

  .brand-text small {
    display: none;
  }

  .hero-slide h2,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-text,
  .page-hero p {
    font-size: 16px;
  }

  .hero-search div,
  .inline-search {
    flex-direction: column;
  }

  .movie-grid-six,
  .movie-grid-four,
  .category-grid,
  .rank-list,
  .overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .movie-card-wide .movie-card-media {
    min-height: 106px;
  }

  .page-hero,
  .detail-card {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
