:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --bg-soft: #1c1917;
  --card: rgba(28, 25, 23, 0.82);
  --card-strong: #292524;
  --line: rgba(245, 158, 11, 0.18);
  --text: #fafaf9;
  --muted: #a8a29e;
  --muted-2: #78716c;
  --amber: #f59e0b;
  --amber-2: #fbbf24;
  --red: #b91c1c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  font-family: 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 top left, rgba(180, 83, 9, 0.28), transparent 34rem),
    radial-gradient(circle at top right, rgba(127, 29, 29, 0.22), transparent 32rem),
    var(--bg);
  color: var(--text);
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #292524, #0c0a09);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.header-inner {
  width: min(1220px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #d97706, #991b1b);
  box-shadow: 0 14px 32px rgba(217, 119, 6, 0.28);
  color: #fffbeb;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.logo-title {
  display: block;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0.02em;
  color: #fffbeb;
}

.logo-subtitle {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: rgba(253, 230, 138, 0.8);
}

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

.main-nav a {
  padding: 10px 13px;
  border-radius: 12px;
  color: #fffbeb;
  font-size: 15px;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(146, 64, 14, 0.55);
  color: #fef3c7;
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  width: min(280px, 24vw);
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 16px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 999px;
  outline: none;
  color: #fffbeb;
  background: rgba(41, 37, 36, 0.82);
}

.header-search button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #b91c1c);
  color: #fff7ed;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  background: rgba(41, 37, 36, 0.9);
  color: #fef3c7;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.96);
}

.mobile-nav a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  color: #fffbeb;
}

.mobile-nav a:hover {
  background: rgba(146, 64, 14, 0.45);
}

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

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

.hero {
  position: relative;
  min-height: 620px;
  margin: 22px auto 48px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 32px;
  background: #0c0a09;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 28px;
  padding: 70px min(6vw, 74px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 0.9s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.72) 48%, rgba(12, 10, 9, 0.52)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.24), transparent 20rem),
    linear-gradient(180deg, transparent, rgba(12, 10, 9, 0.9));
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(245, 158, 11, 0.36);
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(120, 53, 15, 0.32);
  font-weight: 780;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 950;
  color: #fff7ed;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.hero-text {
  max-width: 660px;
  margin: 0 0 24px;
  color: #d6d3d1;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.8;
}

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

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 999px;
  background: rgba(41, 37, 36, 0.82);
  color: #fef3c7;
  font-size: 13px;
  font-weight: 650;
}

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

.button-primary,
.button-ghost,
.button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  min-height: 48px;
  padding: 0 24px;
  color: #fff7ed;
  background: linear-gradient(135deg, #f59e0b, #b91c1c);
  box-shadow: 0 18px 40px rgba(185, 28, 28, 0.28);
}

.button-ghost {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  color: #fef3c7;
  background: rgba(41, 37, 36, 0.72);
}

.button-small {
  min-height: 38px;
  padding: 0 16px;
  color: #0c0a09;
  background: #fbbf24;
}

.button-primary:hover,
.button-ghost:hover,
.button-small:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  width: min(360px, 100%);
  justify-self: end;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.24);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.58);
  transform: rotate(1.5deg);
}

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

.hero-poster-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 20px;
  background: rgba(12, 10, 9, 0.76);
  backdrop-filter: blur(16px);
}

.hero-controls {
  position: absolute;
  left: min(6vw, 74px);
  right: min(6vw, 74px);
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrows,
.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(41, 37, 36, 0.9);
  color: #fef3c7;
}

.hero-dot {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(214, 211, 209, 0.36);
}

.hero-dot.is-active {
  background: #f59e0b;
}

.section {
  margin: 54px 0;
}

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

.section-kicker {
  color: var(--amber);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2,
.page-title h1 {
  margin: 6px 0 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  font-weight: 920;
  letter-spacing: -0.035em;
}

.section-lead,
.page-title p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  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: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.card-poster {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.card-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #0c0a09;
  background: #fbbf24;
  font-size: 12px;
  font-weight: 850;
}

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

.card-title {
  margin: 0 0 8px;
  color: #fff7ed;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 830;
}

.card-title a:hover {
  color: #fbbf24;
}

.card-summary {
  min-height: 44px;
  margin: 9px 0 12px;
  color: #a8a29e;
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted-2);
  font-size: 12px;
}

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

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 12rem),
    rgba(28, 25, 23, 0.88);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

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

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

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

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 78px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 20px;
  background: rgba(28, 25, 23, 0.82);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #0c0a09;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  font-weight: 950;
}

.rank-item img {
  width: 78px;
  height: 112px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fff7ed;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.page-title {
  margin: 42px 0 28px;
  padding: 28px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 22rem),
    rgba(28, 25, 23, 0.74);
}

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

.breadcrumbs a {
  color: #fbbf24;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 22px;
  background: rgba(28, 25, 23, 0.76);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 14px;
  outline: none;
  padding: 0 14px;
  background: #1c1917;
  color: #fffbeb;
}

.filter-status {
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-poster {
  position: sticky;
  top: 104px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 28px;
  background: rgba(28, 25, 23, 0.86);
  box-shadow: var(--shadow);
}

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

.detail-content {
  display: grid;
  gap: 20px;
}

.detail-card {
  padding: 24px;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 28px;
  background: rgba(28, 25, 23, 0.8);
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-card h2 {
  margin: 0 0 12px;
  color: #fef3c7;
  font-size: 24px;
  font-weight: 860;
}

.detail-card p {
  margin: 0;
  color: #d6d3d1;
  line-height: 1.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.58));
  color: #fff7ed;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-ring {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #b91c1c);
  box-shadow: 0 18px 46px rgba(185, 28, 28, 0.4);
  font-size: 30px;
  transform: translateZ(0);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.7);
  color: #fef3c7;
  font-size: 13px;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(245, 158, 11, 0.14);
  background: rgba(12, 10, 9, 0.86);
}

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

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

.footer-links a:hover {
  color: #fbbf24;
}

[hidden] {
  display: none !important;
}

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

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

  .header-search {
    display: none;
  }
}

@media (max-width: 880px) {
  .header-inner {
    min-height: 68px;
  }

  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    min-height: 760px;
    border-radius: 24px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 42px 24px 92px;
  }

  .hero-poster {
    width: min(260px, 72vw);
    justify-self: start;
    transform: none;
  }

  .hero-controls {
    left: 24px;
    right: 24px;
  }

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

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

  .detail-poster {
    position: static;
    max-width: 360px;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 580px) {
  .page-main,
  .header-inner,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 22px, 1220px);
  }

  .logo-title {
    font-size: 17px;
  }

  .logo-subtitle {
    display: none;
  }

  .hero {
    min-height: 700px;
    margin-top: 12px;
  }

  .hero h1,
  .hero h2 {
    font-size: 38px;
  }

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

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

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

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

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

  .rank-item img {
    width: 68px;
    height: 98px;
  }
}
