:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --panel: rgba(28, 25, 23, 0.78);
  --panel-strong: rgba(41, 37, 36, 0.95);
  --line: rgba(120, 113, 108, 0.24);
  --text: #fafaf9;
  --muted: #a8a29e;
  --soft: #d6d3d1;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --copper: #c2410c;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 4%, rgba(245, 158, 11, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(194, 65, 12, 0.18), transparent 30rem),
    linear-gradient(180deg, #0c0a09 0%, #1c1917 48%, #0c0a09 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(245, 158, 11, 0.14);
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(1480px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--copper));
  box-shadow: 0 12px 38px rgba(245, 158, 11, 0.34);
}

.logo-text {
  font-size: 1.28rem;
  background: linear-gradient(90deg, var(--amber-light), #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--soft);
  font-weight: 650;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--amber-light);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(41, 37, 36, 0.9);
  color: var(--text);
}

.mobile-nav {
  display: none;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.96);
}

.mobile-nav a {
  display: block;
  padding: 11px 12px;
  color: var(--soft);
  border-radius: 12px;
}

.mobile-nav a:hover {
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.08);
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  isolation: isolate;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.96) 0%, rgba(12, 10, 9, 0.74) 42%, rgba(12, 10, 9, 0.18) 100%),
    linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0.52) 38%, rgba(12, 10, 9, 0.15) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1480px, calc(100% - 32px));
  min-height: 72vh;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding: 96px 0 72px;
}

.hero-copy {
  width: min(760px, 100%);
  animation: fadeUp 0.8s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  margin-bottom: 18px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.09);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 22px;
  color: #e7e5e4;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
}

.meta-row,
.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.09);
  font-size: 0.86rem;
  font-weight: 720;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  color: var(--text);
  background: rgba(41, 37, 36, 0.76);
  font-weight: 850;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.58);
  background: rgba(68, 64, 60, 0.92);
}

.btn-primary {
  color: #1c1917;
  border-color: transparent;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 20px 42px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(214, 211, 209, 0.36);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 54px;
  background: var(--amber-light);
}

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

.section {
  padding: 58px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-subtitle {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--muted);
}

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

.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;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1c1917;
}

.poster.tall {
  aspect-ratio: 3 / 4;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.92), transparent);
}

.card-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #1c1917;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  font-size: 0.78rem;
  font-weight: 900;
}

.card-rating {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(12, 10, 9, 0.78);
  border: 1px solid rgba(251, 191, 36, 0.24);
  font-size: 0.8rem;
  font-weight: 850;
}

.card-body {
  padding: 16px;
}

.card-title {
  min-height: 3.2em;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  min-height: 3.7em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: #d6d3d1;
  font-size: 0.86rem;
}

.category-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.18), transparent 8rem),
    linear-gradient(135deg, rgba(41, 37, 36, 0.86), rgba(28, 25, 23, 0.88));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, 0.42);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 76px 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.38);
}

.rank-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #1c1917;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  font-size: 1.2rem;
  font-weight: 950;
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #1c1917;
}

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

.rank-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.rank-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28, 25, 23, 0.82);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(120, 113, 108, 0.36);
  border-radius: 14px;
  color: var(--text);
  background: rgba(12, 10, 9, 0.72);
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(245, 158, 11, 0.74);
}

.page-hero {
  padding: 74px 0 44px;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(28, 25, 23, 0.92), rgba(12, 10, 9, 0.98));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 960px;
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--amber-light);
}

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

.player-shell {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  pointer-events: auto;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.22), transparent 16rem),
    rgba(0, 0, 0, 0.36);
}

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

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1c1917;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 20px 54px rgba(245, 158, 11, 0.42);
  font-size: 2.2rem;
  transform: translateZ(0);
  transition: transform 0.22s ease;
}

.play-overlay:hover .play-button {
  transform: scale(1.08);
}

.detail-card,
.side-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28, 25, 23, 0.76);
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
}

.detail-card p {
  color: var(--soft);
  white-space: pre-line;
}

.detail-poster {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 20px;
  background: #1c1917;
}

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

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

.related-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-thumb {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: #1c1917;
}

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

.related-title {
  margin: 0 0 5px;
  font-weight: 850;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item:hover .related-title {
  color: var(--amber-light);
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: rgba(12, 10, 9, 0.86);
}

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

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .grid-5,
  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  .navbar {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero,
  .hero-inner {
    min-height: 78vh;
  }

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

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

  .section-head,
  .footer-inner {
    display: block;
  }

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

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

  .rank-number {
    width: 42px;
    height: 42px;
  }

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

  .detail-card,
  .side-card {
    padding: 18px;
  }
}

@media (max-width: 460px) {
  .container,
  .navbar,
  .footer-inner,
  .mobile-nav,
  .hero-inner {
    width: min(100% - 22px, 1480px);
  }

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

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