:root {
  color-scheme: dark;
  --bg: #11100e;
  --bg-soft: #1c1917;
  --panel: rgba(41, 37, 36, 0.78);
  --panel-strong: #292524;
  --line: rgba(120, 113, 108, 0.28);
  --text: #f5f5f4;
  --muted: #a8a29e;
  --soft: #d6d3d1;
  --accent: #d97706;
  --accent-bright: #f59e0b;
  --accent-soft: rgba(217, 119, 6, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.16), transparent 32rem),
    radial-gradient(circle at 92% 12%, rgba(120, 53, 15, 0.18), transparent 26rem),
    linear-gradient(180deg, #0c0a09 0%, #1c1917 48%, #0c0a09 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(28, 25, 23, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-bright), #92400e);
  color: #1c1917;
  box-shadow: 0 14px 38px rgba(217, 119, 6, 0.32);
}

.brand-text {
  white-space: nowrap;
  font-size: 1.15rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.nav-link {
  color: var(--soft);
  font-size: 0.94rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link-soft {
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(68, 64, 60, 0.65);
  color: var(--text);
}

.site-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 290px;
}

.site-search-form input,
.filter-input,
.search-page-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.65);
  color: var(--text);
  outline: none;
  padding: 11px 16px;
}

.site-search-form input:focus,
.filter-input:focus,
.search-page-input:focus {
  border-color: rgba(245, 158, 11, 0.68);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.site-search-form button,
.primary-button,
.secondary-button,
.hero-dot,
.filter-chip,
.section-action,
.player-button {
  border: 0;
  cursor: pointer;
}

.site-search-form button,
.primary-button,
.player-button {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #1c1917;
  font-weight: 800;
  padding: 11px 18px;
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.28);
}

.secondary-button,
.section-action {
  border-radius: 999px;
  background: rgba(68, 64, 60, 0.82);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 11px 18px;
}

.main-shell,
.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  border-bottom: 1px solid var(--line);
}

.hero-stage {
  position: relative;
  min-height: 650px;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.72) 46%, rgba(12, 10, 9, 0.34)),
    linear-gradient(180deg, rgba(12, 10, 9, 0.2), rgba(12, 10, 9, 0.9)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.58fr);
  gap: 48px;
  align-items: center;
  padding: 52px 0;
}

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

.hero-kicker,
.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 24px 0 16px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero-copy p {
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 0 0 24px;
}

.hero-meta,
.movie-meta,
.detail-meta,
.rank-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta span,
.movie-meta span,
.detail-meta span,
.rank-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(68, 64, 60, 0.58);
  border: 1px solid rgba(120, 113, 108, 0.22);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.24);
  box-shadow: var(--shadow);
  background: var(--panel-strong);
  transform: rotate(1deg);
}

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

.hero-poster-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 18px;
  padding: 14px;
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.hero-dot {
  width: 42px;
  height: 6px;
  border-radius: 999px;
  background: rgba(214, 211, 209, 0.28);
  padding: 0;
}

.hero-dot.is-active {
  background: var(--accent-bright);
}

.content-section {
  padding: 56px 0;
}

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

.section-heading h2,
.page-heading h1,
.detail-title h1 {
  margin: 12px 0 10px;
  font-size: clamp(1.9rem, 3.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading p,
.page-heading p,
.detail-title p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
  max-width: 760px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(41, 37, 36, 0.68);
  border: 1px solid rgba(120, 113, 108, 0.20);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.22);
  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.46);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #292524;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4.25;
  object-fit: cover;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: brightness(0.9);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #1c1917;
  background: var(--accent-bright);
  font-size: 0.76rem;
  font-weight: 900;
}

.card-play {
  position: absolute;
  width: 46px;
  height: 46px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1c1917;
  background: rgba(245, 158, 11, 0.95);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

.movie-title {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 800;
  line-height: 1.4;
}

.movie-title:hover,
.card-category:hover,
.text-link:hover,
.footer-links a:hover {
  color: var(--accent-bright);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 3.9em;
  margin: 10px 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.card-category {
  color: var(--accent-bright);
  font-size: 0.86rem;
  font-weight: 800;
}

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

.category-card {
  min-height: 210px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(41, 37, 36, 0.82)),
    rgba(41, 37, 36, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 20px 62px rgba(0, 0, 0, 0.22);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.category-card p {
  color: var(--muted);
  line-height: 1.65;
}

.category-card ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(28, 25, 23, 0.62);
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(68, 64, 60, 0.75);
  border: 1px solid rgba(120, 113, 108, 0.28);
  color: var(--soft);
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--accent-soft);
  color: var(--accent-bright);
  border-color: rgba(245, 158, 11, 0.32);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 94px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(41, 37, 36, 0.72);
  border: 1px solid rgba(120, 113, 108, 0.20);
}

.rank-number {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--accent-bright);
  text-align: center;
}

.rank-poster img {
  width: 94px;
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
  border-radius: 16px;
}

.rank-title {
  font-size: 1.12rem;
  font-weight: 900;
}

.rank-desc {
  color: var(--muted);
  line-height: 1.58;
  margin: 8px 0 0;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.detail-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(12, 10, 9, 0.94), rgba(12, 10, 9, 0.78), rgba(12, 10, 9, 0.9)),
    var(--detail-bg);
  background-size: cover;
  background-position: center;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.04);
  opacity: 0.55;
}

.detail-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  background: var(--panel-strong);
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: var(--shadow);
}

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

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--accent-bright);
}

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

.tag-pill {
  color: var(--soft);
  background: rgba(68, 64, 60, 0.72);
  border: 1px solid rgba(120, 113, 108, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.84rem;
}

.player-section {
  padding: 48px 0 12px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  background: #000;
  box-shadow: var(--shadow);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text);
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.14), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  z-index: 2;
}

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

.play-cluster {
  display: grid;
  place-items: center;
  gap: 12px;
}

.play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1c1917;
  background: var(--accent-bright);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.35);
  font-size: 1.5rem;
}

.article-panel {
  margin: 28px 0;
  padding: 28px;
  border-radius: 26px;
  background: rgba(41, 37, 36, 0.72);
  border: 1px solid rgba(120, 113, 108, 0.20);
}

.article-panel h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.article-panel p {
  margin: 0 0 18px;
  color: var(--soft);
  line-height: 1.88;
}

.article-panel p:last-child {
  margin-bottom: 0;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 820px;
  margin: 0 0 30px;
}

.search-page-form button {
  border-radius: 999px;
  padding: 12px 22px;
  border: 0;
  background: var(--accent-bright);
  color: #1c1917;
  font-weight: 900;
}

.empty-state {
  padding: 32px;
  border-radius: 24px;
  background: rgba(41, 37, 36, 0.72);
  border: 1px solid rgba(120, 113, 108, 0.20);
  color: var(--muted);
}

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

.footer-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 34px 0;
  color: var(--muted);
}

.footer-shell p {
  max-width: 640px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

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

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

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

  .site-search-form {
    min-width: 220px;
  }
}

@media (max-width: 880px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .site-search-form {
    width: 100%;
  }

  .hero-content,
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-cover {
    max-width: 330px;
  }

  .hero-slider,
  .hero-stage,
  .hero-content {
    min-height: auto;
  }

  .hero-controls {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: max-content;
    margin: 0 auto 24px;
  }

  .section-heading,
  .page-heading,
  .footer-shell,
  .toolbar,
  .rank-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .section-heading {
    display: grid;
  }

  .rank-item {
    display: grid;
  }
}

@media (max-width: 640px) {
  .main-shell,
  .page-shell,
  .detail-shell,
  .hero-content,
  .nav-shell,
  .footer-shell {
    width: min(100% - 22px, 1240px);
  }

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

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

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

  .movie-meta {
    gap: 6px;
  }

  .hero-copy h1,
  .detail-title h1 {
    font-size: 2.45rem;
  }

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