
:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-soft: #0f121a;
  --panel: rgba(18, 22, 34, 0.86);
  --panel-strong: #171b28;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f9fafb;
  --muted: #a1a7b5;
  --muted-2: #6f7787;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dark: #b45309;
  --red: #ef4444;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 34rem),
    radial-gradient(circle at 85% 5%, rgba(239, 68, 68, 0.08), transparent 26rem),
    linear-gradient(180deg, #06070b 0%, #10131d 46%, #07080d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 18, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.footer-logo span {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.35);
  font-size: 15px;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

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

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

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

.nav-link,
.mobile-link {
  color: var(--muted);
  border-radius: 12px;
  transition: 0.25s ease;
}

.nav-link {
  padding: 10px 16px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: white;
  background: rgba(245, 158, 11, 0.18);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
  border-radius: 3px;
}

.mobile-nav {
  display: none;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.hero {
  width: min(var(--max), calc(100% - 32px));
  min-height: 680px;
  margin: 28px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.18), transparent 22rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.92), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  height: 100%;
  padding: clamp(32px, 7vw, 86px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.detail-copy h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-one-line {
  margin: 0;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 26px 0 16px;
}

.hero-meta span,
.detail-meta span,
.hero-meta strong,
.detail-meta strong {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  font-size: 14px;
}

.hero-meta strong,
.detail-meta strong {
  color: var(--amber-light);
}

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

.tag-row span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-size: 12px;
}

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

.primary-btn,
.ghost-btn,
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 15px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-btn,
.home-search button {
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.24);
}

.primary-btn:hover,
.home-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(245, 158, 11, 0.34);
}

.ghost-btn {
  border: 1px solid var(--line-strong);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.ghost-btn:hover {
  border-color: rgba(245, 158, 11, 0.55);
  color: var(--amber-light);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 34px;
  line-height: 0;
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

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

.hero-panel,
.content-card,
.category-overview-card,
.filter-panel,
.player-shell,
.category-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  border-radius: 34px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-panel h2 {
  margin: 18px 0 12px;
  font-size: 30px;
}

.hero-panel p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.75;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  transition: 0.25s ease;
}

.compact-card:hover {
  background: rgba(245, 158, 11, 0.12);
  transform: translateX(4px);
}

.compact-card img {
  width: 72px;
  height: 94px;
  border-radius: 13px;
  object-fit: cover;
}

.compact-card strong,
.compact-card small {
  display: block;
}

.compact-card strong {
  line-height: 1.35;
}

.compact-card small {
  margin-top: 6px;
  color: var(--muted);
}

.quick-search,
.section-block,
.page-main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.quick-search {
  margin-bottom: 70px;
}

.section-block {
  margin-bottom: 76px;
}

.section-block.flat {
  margin-top: 28px;
}

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

.section-heading.centered {
  display: grid;
  place-items: center;
  text-align: center;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(27px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--amber-light);
  font-weight: 800;
}

.home-search {
  max-width: 820px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 15px;
  background: rgba(10, 12, 18, 0.92);
  color: var(--text);
}

.home-search input {
  min-height: 52px;
  padding: 0 18px;
}

.horizontal-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 22px;
  scrollbar-width: thin;
}

.horizontal-rail .movie-card {
  width: 244px;
  min-width: 244px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 22, 34, 0.72);
  transition: 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

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

.cover-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.cover-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.72));
}

.type-badge,
.score-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  left: 10px;
  color: #111827;
  background: var(--amber-light);
}

.score-badge {
  right: 10px;
  color: white;
  background: rgba(0, 0, 0, 0.58);
}

.play-dot {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #111827;
  background: rgba(251, 191, 36, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: 0.25s ease;
}

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

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

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

.card-meta,
.card-line,
.rank-body p {
  color: var(--muted);
}

.card-meta {
  margin: 8px 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-line {
  margin: 0 0 12px;
  min-height: 48px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card,
.category-overview-card {
  border-radius: var(--radius);
}

.category-card {
  min-height: 172px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.16);
}

.category-card:hover,
.category-overview-card:hover {
  border-color: rgba(245, 158, 11, 0.38);
}

.category-card span,
.category-overview-head span {
  color: var(--amber-light);
  font-size: 13px;
  font-weight: 800;
}

.category-card strong,
.category-overview-head strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
}

.category-card p,
.category-overview-head p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.page-hero {
  position: relative;
  padding: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 75% 10%, rgba(245, 158, 11, 0.22), transparent 20rem),
    linear-gradient(135deg, rgba(25, 29, 44, 0.95), rgba(9, 12, 19, 0.95));
  box-shadow: var(--shadow);
}

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

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

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

.category-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.category-overview-card {
  padding: 22px;
}

.category-overview-head {
  display: block;
  margin-bottom: 18px;
}

.filter-panel {
  margin-top: 26px;
  padding: 16px;
  border-radius: var(--radius);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
}

.filter-grid span {
  color: var(--muted);
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 13px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 86px minmax(0, 1fr) 110px;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
}

.rank-index {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  font-weight: 900;
}

.rank-cover img {
  width: 86px;
  height: 112px;
  border-radius: 15px;
  object-fit: cover;
}

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

.rank-body h3 a:hover {
  color: var(--amber-light);
}

.rank-body p {
  margin: 7px 0;
}

.rank-line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-score {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.rank-score strong {
  color: var(--amber-light);
}

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

.detail-main {
  width: 100%;
  padding-top: 0;
}

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

.detail-intro {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 46px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster img {
  width: 290px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.detail-copy {
  max-width: 820px;
}

.player-section,
.detail-content,
.related-section {
  width: min(var(--max), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.player-section {
  margin-top: -28px;
  position: relative;
  z-index: 5;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #111827;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.player-cover span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.36);
  font-size: 34px;
}

.player-cover.hidden {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.content-card {
  border-radius: var(--radius);
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.9;
}

.detail-info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-info-card div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-info-card dt {
  color: var(--muted);
}

.detail-info-card dd {
  margin: 0;
}

.detail-info-card a {
  color: var(--amber-light);
}

.related-section {
  margin-top: 56px;
}

.hidden-by-filter {
  display: none !important;
}


.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 12, 0.78);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 34px;
  align-items: start;
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-logo strong {
  font-size: 20px;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: 0.25s ease;
}

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

.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero,
  .hero-slider {
    min-height: 620px;
  }

  .hero-content {
    padding: 32px 24px;
  }

  .hero-arrow {
    display: none;
  }

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

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .filter-grid,
  .detail-content,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster img {
    width: min(260px, 70vw);
  }

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

  .rank-score {
    grid-column: 3;
    justify-items: start;
  }

  .rank-cover img {
    width: 68px;
    height: 90px;
  }

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

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    width: 100%;
    margin-top: 0;
    min-height: 590px;
  }

  .hero-slider {
    min-height: 590px;
    border-radius: 0 0 28px 28px;
  }

  .hero h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero p,
  .page-hero p,
  .detail-one-line {
    font-size: 15px;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

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

  .card-body {
    padding: 12px;
  }

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

  .detail-intro {
    padding-top: 28px;
  }
}
