:root {
  --bg: #0c0a09;
  --bg-soft: #1c1917;
  --panel: #1c1917;
  --panel-2: #292524;
  --line: rgba(120, 113, 108, 0.25);
  --text: #f5f5f4;
  --muted: #a8a29e;
  --muted-2: #78716c;
  --accent: #d97706;
  --accent-light: #f59e0b;
  --accent-dark: #92400e;
  --danger: #fb923c;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.12), transparent 36rem),
    radial-gradient(circle at top right, rgba(146, 64, 14, 0.16), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

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;
  background: rgba(12, 10, 9, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-bar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff7ed;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  box-shadow: 0 12px 32px rgba(217, 119, 6, 0.28);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  color: #d6d3d1;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--accent-light);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-input,
.filter-select {
  min-width: 0;
  color: var(--text);
  background: rgba(41, 37, 36, 0.95);
  border: 1px solid rgba(120, 113, 108, 0.35);
  border-radius: 12px;
  outline: none;
  padding: 10px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 180px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16);
}

.header-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.rank-action,
.section-more,
.filter-button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.rank-action:hover,
.section-more:hover,
.filter-button:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.22);
}

.secondary-button {
  background: rgba(41, 37, 36, 0.9);
  color: var(--text);
  border: 1px solid rgba(120, 113, 108, 0.35);
}

.secondary-button:hover {
  background: #44403c;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(120, 113, 108, 0.35);
  border-radius: 12px;
  background: rgba(41, 37, 36, 0.84);
}

.menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: rgba(12, 10, 9, 0.98);
}

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

.mobile-links {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.mobile-search input {
  flex: 1;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  overflow: hidden;
  background: linear-gradient(135deg, #1c1917 0%, #292524 45%, #78350f 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.94), rgba(12, 10, 9, 0.62), rgba(12, 10, 9, 0.92)),
    radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.2), transparent 26rem),
    radial-gradient(circle at 82% 70%, rgba(251, 146, 60, 0.16), transparent 30rem);
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.38;
  pointer-events: none;
}

.hero-glow.one {
  top: 8%;
  left: 6%;
  background: var(--accent);
}

.hero-glow.two {
  right: 3%;
  bottom: 2%;
  background: #ea580c;
}

.hero-inner {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  padding: 64px 0;
}

.hero-slides {
  width: 100%;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 48px;
  animation: fadeUp 0.5s ease both;
}

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

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

.hero-kicker,
.section-heading span,
.page-kicker,
.breadcrumbs {
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 12px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 28px;
  color: #d6d3d1;
  font-size: clamp(17px, 2.2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags a,
.hero-tags span,
.tag-list span,
.detail-tags span {
  border-radius: 999px;
  background: rgba(41, 37, 36, 0.88);
  border: 1px solid rgba(120, 113, 108, 0.24);
  color: #d6d3d1;
  padding: 7px 11px;
  font-size: 13px;
}

.hero-poster {
  position: relative;
  display: block;
  width: min(100%, 390px);
  justify-self: end;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  background: #292524;
  box-shadow: var(--shadow);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.62));
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster-title {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  font-size: 24px;
  font-weight: 800;
}

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

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(214, 211, 209, 0.38);
  padding: 0;
}

.hero-dots button.is-active {
  background: var(--accent-light);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: rgba(28, 25, 23, 0.48);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-heading h2,
.page-head h1,
.detail-title h1 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-head p,
.detail-title p {
  margin: 10px 0 0;
  max-width: 780px;
  color: var(--muted);
}

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

.movie-grid.large {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 17px;
  background: rgba(28, 25, 23, 0.94);
  border: 1px solid rgba(120, 113, 108, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #292524;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.08);
  opacity: 0.84;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.76));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-year,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: var(--accent-light);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.card-year {
  right: 10px;
}

.rank-badge {
  left: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ea580c);
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  transform: translate(-50%, -50%) scale(0.66);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.card-body h3 a:hover {
  color: var(--accent-light);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted-2);
  font-size: 13px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(120, 113, 108, 0.8);
}

.tag-list,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(41, 37, 36, 0.96), rgba(28, 25, 23, 0.92)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 14rem);
  border: 1px solid rgba(120, 113, 108, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.7);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

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

.page-head {
  padding: 62px 0 36px;
}

.breadcrumbs {
  margin-bottom: 14px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.breadcrumbs a:hover {
  color: #fed7aa;
}

.filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 12px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.88);
  border: 1px solid rgba(120, 113, 108, 0.2);
}

.filter-input,
.filter-select {
  width: 100%;
}

.search-status {
  margin: 0 0 20px;
  color: var(--muted);
}

.search-empty {
  display: none;
  padding: 42px;
  text-align: center;
  color: var(--muted);
  border: 1px solid rgba(120, 113, 108, 0.2);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.78);
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.9);
  border: 1px solid rgba(120, 113, 108, 0.18);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.68);
}

.rank-number {
  color: var(--accent-light);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 2 / 3;
  background: var(--panel-2);
}

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

.rank-info h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.rank-info h3 a:hover {
  color: var(--accent-light);
}

.rank-info p {
  margin: 0 0 8px;
  color: var(--muted);
}

.detail-wrap {
  padding: 42px 0 76px;
}

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

.player-panel,
.detail-panel,
.side-panel {
  border-radius: 22px;
  background: rgba(28, 25, 23, 0.9);
  border: 1px solid rgba(120, 113, 108, 0.2);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.player-panel {
  overflow: hidden;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at center, rgba(217, 119, 6, 0.24), transparent 18rem);
}

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

.play-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 154px;
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.28);
}

.play-button span:first-child {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.player-caption {
  padding: 22px 24px 24px;
}

.player-caption h1,
.detail-title h1 {
  margin: 0 0 10px;
}

.player-caption p {
  margin: 0;
  color: var(--muted);
}

.detail-panel {
  padding: 28px;
  margin-top: 24px;
}

.detail-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-panel p {
  margin: 0 0 18px;
  color: #d6d3d1;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.detail-meta div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(41, 37, 36, 0.84);
}

.detail-meta span {
  display: block;
  color: var(--muted-2);
  font-size: 13px;
}

.detail-meta strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.side-poster {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  background: var(--panel-2);
}

.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-links {
  display: grid;
  gap: 10px;
}

.side-links a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(41, 37, 36, 0.84);
  color: #d6d3d1;
}

.side-links a:hover {
  color: var(--accent-light);
  background: rgba(68, 64, 60, 0.88);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #070605;
  margin-top: 72px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 42px;
  padding: 46px 0;
}

.footer-logo {
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 18px;
}

.site-footer p {
  margin: 0;
}

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

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding: 18px 0 30px;
  border-top: 1px solid rgba(120, 113, 108, 0.18);
  font-size: 14px;
}

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

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

@media (max-width: 960px) {
  .nav-links,
  .header-search {
    display: none;
  }

  .menu-button {
    display: block;
  }

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

  .hero-poster {
    width: min(82vw, 320px);
    justify-self: start;
  }

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

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

  .side-panel {
    position: static;
  }
}

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

  .nav-bar {
    height: 64px;
  }

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

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

  .hero-inner {
    padding: 48px 0 72px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .section-more {
    text-align: center;
  }

  .section {
    padding: 52px 0;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body p {
    display: none;
  }

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

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

  .rank-action {
    grid-column: 2 / 4;
    text-align: center;
  }

  .player-caption,
  .detail-panel {
    padding: 20px;
  }
}
