:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(16, 185, 129, 0.34);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #10b981;
  --accent-strong: #14b8a6;
  --rose: #fb7185;
  --amber: #f59e0b;
  --blue: #60a5fa;
  --purple: #a78bfa;
  --radius: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(16, 185, 129, 0.18), transparent 30%),
    radial-gradient(circle at 82% 6%, rgba(45, 212, 191, 0.14), transparent 26%),
    linear-gradient(135deg, #020617 0%, #0f172a 46%, #020617 100%);
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.28);
}

.logo-text {
  background: linear-gradient(90deg, #a7f3d0, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
  border-radius: 12px;
  color: #dbeafe;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
  padding: 10px 14px;
  font-size: 15px;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fff;
  background: rgba(51, 65, 85, 0.74);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: rgba(15, 23, 42, 0.65);
}

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

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

.mobile-nav a {
  padding: 13px 16px;
}

main {
  min-height: 68vh;
}

.hero {
  position: relative;
  min-height: 560px;
  height: 70vh;
  overflow: hidden;
}

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

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

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

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

.hero-slide.active .hero-media img {
  animation: slowZoom 7s ease forwards;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.72) 38%, rgba(2, 6, 23, 0.25) 72%, rgba(2, 6, 23, 0.66) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.08) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  align-items: center;
  padding: 72px 0 82px;
}

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

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

.eyebrow {
  margin-bottom: 18px;
}

.meta-line {
  margin: 16px 0 22px;
  color: #dbeafe;
  font-size: 14px;
}

.badge,
.tag,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid rgba(16, 185, 129, 0.26);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
  font-size: 13px;
  font-weight: 700;
}

.badge.rose {
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.14);
  color: #fecdd3;
}

.badge.blue {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

.hero-title {
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero-copy {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.75;
}

.hero-actions,
.section-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: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.24);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}

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

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

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.section {
  padding: 64px 0;
}

.section.compact {
  padding: 42px 0;
}

.section-shell {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.42));
  box-shadow: var(--shadow);
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a7f3d0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

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

.section-text {
  max-width: 760px;
  color: var(--muted-strong);
  line-height: 1.8;
}

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

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

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

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-row .movie-card {
  width: 260px;
  flex: 0 0 260px;
}

.movie-card,
.movie-list-card,
.rank-card,
.category-card,
.info-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.movie-card,
.category-card,
.info-card {
  border-radius: 22px;
}

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover,
.movie-list-card:hover,
.rank-card:hover,
.category-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(15, 23, 42, 0.82);
  transform: translateY(-4px);
}

.card-link {
  display: block;
  height: 100%;
}

.card-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #0f172a;
}

.card-poster.wide {
  aspect-ratio: 16 / 9;
}

.card-poster img,
.list-poster img,
.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .card-poster img,
.movie-list-card:hover .list-poster img,
.rank-card:hover .rank-poster img,
.category-card:hover .category-backdrop img {
  transform: scale(1.08);
}

.card-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.16));
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-layer,
.movie-list-card:hover .card-layer,
.rank-card:hover .card-layer {
  opacity: 1;
}

.play-token {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.card-float {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  font-size: 12px;
}

.card-float span {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  padding: 5px 9px;
  backdrop-filter: blur(6px);
}

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

.card-title {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title,
.movie-list-card:hover .list-title,
.rank-card:hover .rank-title {
  color: #34d399;
}

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

.clamp-1,
.clamp-2,
.clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.clamp-1 {
  -webkit-line-clamp: 1;
}

.clamp-2 {
  -webkit-line-clamp: 2;
}

.clamp-3 {
  -webkit-line-clamp: 3;
}

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

.movie-list-card {
  display: flex;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.list-poster {
  position: relative;
  width: 168px;
  flex: 0 0 168px;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.list-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

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

.category-card {
  overflow: hidden;
  min-height: 240px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.category-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.92));
}

.category-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: end;
  padding: 22px;
}

.category-content h3 {
  margin: 0 0 9px;
  font-size: 22px;
}

.category-content p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.65;
  font-size: 14px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 76px 180px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.rank-no {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(20, 184, 166, 0.08));
  color: #a7f3d0;
  font-size: 18px;
  font-weight: 900;
}

.rank-poster {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

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

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px 150px 120px auto;
  gap: 12px;
  margin: 22px 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
}

.filters input,
.filters select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  outline: none;
  background: rgba(2, 6, 23, 0.62);
  color: #fff;
  padding: 12px 14px;
}

.filters input:focus,
.filters select:focus {
  border-color: rgba(16, 185, 129, 0.58);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.reset-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0 16px;
  font-weight: 800;
}

.empty-state {
  display: none;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--muted-strong);
  text-align: center;
  background: rgba(15, 23, 42, 0.6);
}

.empty-state.is-visible {
  display: block;
}

.page-hero {
  padding: 64px 0 28px;
}

.page-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-desc {
  max-width: 840px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.8;
}

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

.breadcrumb a:hover {
  color: #34d399;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.88fr);
  gap: 32px;
  padding: 34px 0 70px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.26);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.18));
  color: #fff;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.76);
  box-shadow: 0 22px 60px rgba(16, 185, 129, 0.3);
  font-size: 38px;
  padding-left: 6px;
}

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

.detail-title {
  margin: 30px 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.info-card {
  padding: 26px;
  margin-top: 22px;
}

.info-card h2,
.info-card h3 {
  margin: 0 0 14px;
}

.info-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.88;
}

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

.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(2, 6, 23, 0.95));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 46px 0;
}

.footer h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer p,
.footer a {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.footer a:hover {
  color: #34d399;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--muted);
  font-size: 13px;
}

@keyframes slowZoom {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.12);
  }
}

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

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

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 620px;
    height: auto;
  }

  .hero-content {
    align-items: end;
  }

  .hero-dots {
    left: 16px;
    right: auto;
  }

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

  .movie-grid,
  .movie-grid.four,
  .movie-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .rank-card {
    grid-template-columns: 56px 110px 1fr;
  }

  .rank-meta {
    display: none;
  }

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

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

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

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

  .logo {
    font-size: 18px;
  }

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

  .hero-title {
    font-size: 38px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .section {
    padding: 42px 0;
  }

  .section-shell {
    padding: 22px;
    border-radius: 24px;
  }

  .scroll-row .movie-card {
    width: 220px;
    flex-basis: 220px;
  }

  .movie-list-card {
    display: grid;
  }

  .list-poster {
    width: 100%;
    flex-basis: auto;
  }

  .rank-card {
    grid-template-columns: 48px 1fr;
  }

  .rank-poster {
    display: none;
  }

  .detail-title {
    font-size: 30px;
  }

  .player-overlay span {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }
}
