@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap");

:root {
  --bg: #0a0e13;
  --panel: rgba(79, 72, 59, 0.38);
  --panel-soft: rgba(79, 72, 59, 0.22);
  --line: rgba(114, 102, 80, 0.5);
  --text: #edeae3;
  --muted: #b9b1a1;
  --muted-dark: #8f8677;
  --amber: #f59e0b;
  --amber-deep: #b45309;
  --amber-soft: rgba(217, 119, 6, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(217, 119, 6, 0.16), transparent 32rem),
    radial-gradient(circle at 82% 0%, rgba(95, 85, 70, 0.42), transparent 30rem),
    linear-gradient(180deg, #0a0e13 0%, #15100d 52%, #0a0e13 100%);
  color: var(--text);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  z-index: -1;
}

img,
video {
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3,
h4 {
  font-family: "Noto Serif SC", Georgia, serif;
  margin: 0;
}

p {
  margin: 0;
}

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

.text-gradient,
.brand strong,
.footer-logo {
  background: linear-gradient(90deg, #fbbf24, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(114, 102, 80, 0.35);
  background: rgba(10, 14, 19, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #92400e);
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.32);
}

.brand-text {
  display: grid;
  gap: 2px;
}

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

.brand em {
  color: var(--muted-dark);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber);
}

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

.header-search input,
.search-panel input,
.search-panel select {
  border: 1px solid rgba(114, 102, 80, 0.55);
  background: rgba(79, 72, 59, 0.32);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

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

.header-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.header-search button,
.btn-primary,
.btn-secondary,
.btn-ghost {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-search button,
.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.28);
}

.btn-secondary {
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: rgba(217, 119, 6, 0.16);
  color: #fcd48a;
}

.btn-ghost {
  border: 1px solid rgba(237, 234, 227, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
}

.header-search button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(114, 102, 80, 0.55);
  background: rgba(79, 72, 59, 0.4);
  color: var(--text);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(114, 102, 80, 0.35);
  padding: 16px;
  background: rgba(10, 14, 19, 0.96);
}

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

.mobile-panel nav,
.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.mobile-cats {
  margin-top: 16px;
  color: var(--muted-dark);
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border-bottom: 1px solid rgba(114, 102, 80, 0.3);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(1.08) contrast(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 19, 0.98) 0%, rgba(10, 14, 19, 0.82) 42%, rgba(10, 14, 19, 0.48) 100%),
    linear-gradient(0deg, rgba(10, 14, 19, 0.94), rgba(10, 14, 19, 0.08));
}

.hero-content {
  position: relative;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 56px;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 96px;
}

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

.eyebrow {
  display: inline-flex;
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: rgba(217, 119, 6, 0.14);
  color: #fcd48a;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  margin-bottom: 20px;
}

.hero-copy h1 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}

.hero-copy h2 {
  font-size: clamp(28px, 4vw, 48px);
  color: #fff4d7;
  margin-bottom: 18px;
}

.hero-copy p {
  color: #d5cebf;
  font-size: 18px;
  line-height: 1.8;
  max-width: 720px;
}

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

.hero-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.38);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  border-radius: 14px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  color: #fff2ce;
  font-weight: 700;
  text-align: center;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hero-dot {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(114, 102, 80, 0.45);
  background: rgba(79, 72, 59, 0.42);
  color: var(--muted);
  border-radius: 16px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
}

.hero-dot.active {
  border-color: rgba(245, 158, 11, 0.72);
  color: #f8dfa9;
  background: rgba(217, 119, 6, 0.18);
}

.hero-dot img {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-dot span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  line-height: 1.45;
}

.page-hero {
  padding: 60px 0 34px;
  background: linear-gradient(180deg, rgba(79, 72, 59, 0.22), transparent);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted-dark);
  font-size: 14px;
  margin-bottom: 22px;
}

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

.page-title {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.page-title h1 {
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.page-title p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.section {
  padding: 46px 0;
}

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

.section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-head p {
  color: var(--muted-dark);
  margin-top: 8px;
}

.section-head a {
  color: #fcd48a;
  font-weight: 700;
}

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

.movie-card,
.category-card,
.player-card,
.detail-card,
.search-panel,
.rank-panel {
  border: 1px solid rgba(95, 85, 70, 0.55);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(79, 72, 59, 0.42), rgba(79, 72, 59, 0.18));
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
}

.movie-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(0, 0, 0, 0.28));
  overflow: hidden;
}

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

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffdfa2;
  font-weight: 800;
  font-size: 12px;
}

.movie-card-body {
  padding: 16px;
  display: grid;
  gap: 11px;
  flex: 1;
}

.meta-row,
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted-dark);
  font-size: 12px;
}

.movie-card h3 {
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  color: #f6d38d;
  background: rgba(217, 119, 6, 0.13);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.card-bottom a {
  color: #fcd48a;
  font-weight: 700;
}

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

.category-card {
  padding: 24px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

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

.category-card span {
  margin-top: 20px;
  color: #fcd48a;
  font-weight: 800;
}

.rank-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
}

.rank-panel {
  padding: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(217, 119, 6, 0.14);
  transform: translateX(4px);
}

.rank-num {
  color: #fbbf24;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 800;
}

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

.rank-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rank-text strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-text em {
  color: var(--muted-dark);
  font-size: 13px;
  font-style: normal;
}

.search-panel {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
}

.no-results {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 44px;
}

.no-results.show {
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 28px;
  align-items: start;
}

.player-card {
  padding: 16px;
}

.video-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
}

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

.play-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 22px 60px rgba(217, 119, 6, 0.36);
  font-size: 34px;
  padding-left: 6px;
}

.detail-card {
  padding: 26px;
}

.detail-card h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.detail-card p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 18px;
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
}

.detail-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(114, 102, 80, 0.25);
  padding-bottom: 10px;
}

.detail-cover {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(95, 85, 70, 0.55);
  background: rgba(79, 72, 59, 0.2);
}

.detail-cover img {
  width: 100%;
  display: block;
}

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

.movie-card.compact .movie-card-body {
  gap: 8px;
}

.movie-card.compact p,
.movie-card.compact .card-bottom {
  display: none;
}

.site-footer {
  border-top: 1px solid rgba(114, 102, 80, 0.35);
  margin-top: 48px;
  padding: 42px 0;
  background: rgba(10, 14, 19, 0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
  color: var(--muted-dark);
  line-height: 1.8;
}

.site-footer h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-content,
  .detail-layout,
  .rank-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 240px;
    margin: 0 auto;
  }

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

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

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

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

  .brand em {
    display: none;
  }

  .hero-carousel,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 36px;
    gap: 26px;
  }

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

  .hero-dots {
    display: none;
  }

  .section-head {
    display: grid;
  }

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

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

  .movie-card h3 {
    font-size: 16px;
  }

  .category-card {
    min-height: 160px;
    padding: 18px;
  }

  .rank-item {
    grid-template-columns: 40px 52px 1fr;
  }
}
