:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --white-soft: rgba(255, 255, 255, 0.92);
  --shadow-card: 0 14px 35px rgba(28, 25, 23, 0.12);
  --shadow-strong: 0 24px 60px rgba(28, 25, 23, 0.32);
  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;
  color: var(--stone-800);
  background: linear-gradient(180deg, #fffaf0 0%, var(--stone-100) 34%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 25, 23, 0.92);
  border-bottom: 1px solid rgba(251, 191, 36, 0.22);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--stone-900);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: white;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 64px;
  color: white;
  background: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), transparent 24%), linear-gradient(135deg, var(--amber-700), var(--amber-500) 48%, #7c2d12);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M36 18c3.314 0 6 2.686 6 6s-2.686 6-6 6-6-2.686-6-6 2.686-6 6-6' stroke='%23fff' stroke-opacity='.5' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 36px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  margin-bottom: 22px;
  color: white;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: var(--amber-700);
  background: white;
  box-shadow: var(--shadow-strong);
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 560px;
  margin-top: 38px;
}

.hero-stat {
  padding: 18px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-stat strong {
  display: block;
  font-size: 26px;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: var(--stone-900);
  box-shadow: var(--shadow-strong);
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.05), rgba(12, 10, 9, 0.88));
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  padding: 34px;
}

.hero-slide-content h2 {
  margin: 10px 0 10px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
}

.hero-slide-content p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 620px;
  margin-bottom: 22px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slide-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.slide-meta span {
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--stone-900);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  transform: translateY(-50%);
}

.carousel-btn:hover {
  background: white;
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  z-index: 6;
  right: 30px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.carousel-dot.active {
  width: 30px;
  background: var(--amber-400);
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: rgba(231, 229, 228, 0.5);
}

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

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

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--stone-600);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  background: white;
  border: 1px solid rgba(214, 211, 209, 0.68);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(28, 25, 23, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--stone-300), var(--stone-100));
}

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

.movie-card:hover .poster img,
.related-card:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 26%, rgba(12, 10, 9, 0.86));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-text {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: -webkit-box;
  overflow: hidden;
  color: white;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-text {
  opacity: 1;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--stone-800);
  font-size: 16px;
  line-height: 1.4;
}

.movie-card h3 a:hover {
  color: var(--amber-700);
}

.movie-meta-line {
  color: var(--stone-500);
  font-size: 13px;
  line-height: 1.6;
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 9px 0 0;
  color: var(--stone-600);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  color: white;
  background: var(--amber-600);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(180, 83, 9, 0.32);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  color: white;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--stone-900), var(--amber-700));
  box-shadow: var(--shadow-card);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 150px;
  height: 150px;
  border: 28px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.category-card span {
  position: relative;
  z-index: 1;
  color: var(--amber-100);
  font-weight: 900;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
  background: white;
  border: 1px solid rgba(214, 211, 209, 0.72);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.07);
}

.search-panel input,
.search-panel select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  color: var(--stone-800);
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.page-hero {
  padding: 66px 0 44px;
  background: radial-gradient(circle at 16% 18%, rgba(251, 191, 36, 0.18), transparent 25%), var(--stone-900);
}

.page-title {
  max-width: 820px;
  color: white;
}

.page-title h1,
.page-title p {
  color: white;
}

.page-title p {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

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

.player-card {
  overflow: hidden;
  background: var(--stone-950);
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
}

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

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.1), rgba(12, 10, 9, 0.76));
  cursor: pointer;
  z-index: 3;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: var(--stone-900);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: var(--shadow-strong);
  font-size: 30px;
  transition: transform 0.2s ease;
}

.play-cover:hover .play-circle {
  transform: scale(1.08);
}

.detail-card,
.side-card {
  background: white;
  border: 1px solid rgba(214, 211, 209, 0.7);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.07);
}

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

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

.detail-card p {
  color: var(--stone-600);
  line-height: 1.95;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.detail-meta span,
.tag {
  color: var(--amber-700);
  background: var(--amber-100);
}

.detail-cover {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

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

.side-card {
  padding: 20px;
  margin-top: 20px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.related-card img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.25s ease;
}

.related-card strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.related-card span {
  color: var(--stone-500);
  font-size: 13px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 100px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: white;
  border: 1px solid rgba(214, 211, 209, 0.72);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(28, 25, 23, 0.06);
}

.ranking-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  background: var(--stone-900);
  border-radius: 14px;
  font-weight: 900;
}

.ranking-row:nth-child(-n + 3) .ranking-num {
  background: var(--amber-600);
}

.ranking-row img {
  width: 100px;
  height: 132px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-row h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-row p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.7;
}

.site-footer {
  padding: 38px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--stone-950);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid strong {
  color: white;
  font-size: 20px;
}

.footer-grid p {
  max-width: 620px;
  margin: 8px 0 0;
  line-height: 1.8;
}

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

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

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 720px) {
  .nav-shell {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(28, 25, 23, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    padding: 46px 0;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-carousel {
    min-height: 430px;
    border-radius: 22px;
  }

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

  .hero-stats,
  .movie-grid,
  .category-grid,
  .search-panel {
    grid-template-columns: 1fr 1fr;
  }

  .movie-grid {
    gap: 14px;
  }

  .section {
    padding: 48px 0;
  }

  .ranking-row {
    grid-template-columns: 42px 78px 1fr;
  }

  .ranking-row .btn {
    grid-column: 2 / -1;
  }

  .ranking-row img {
    width: 78px;
    height: 104px;
  }

  .footer-grid {
    display: block;
  }

  .footer-links {
    margin-top: 18px;
  }
}

@media (max-width: 460px) {
  .container,
  .nav-shell {
    width: min(100% - 24px, 1180px);
  }

  .hero-stats,
  .movie-grid,
  .category-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .footer-links {
    flex-direction: column;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }
}
