
:root {
  --ancient-950: #050505;
  --ancient-900: #0d0d0d;
  --ancient-850: #15110c;
  --ancient-800: #1f1a14;
  --ancient-700: #3c3327;
  --ancient-500: #786957;
  --ancient-400: #a99c89;
  --ancient-300: #d1c5b2;
  --ancient-200: #eee4cf;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ancient-200);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem),
    linear-gradient(180deg, #090806 0%, var(--ancient-950) 42%, #020202 100%);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(120, 105, 87, 0.28);
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--amber-400);
  white-space: nowrap;
}

.site-logo-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #1f1300;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
}

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

.site-nav a,
.mobile-panel a {
  color: var(--ancient-300);
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--amber-400);
}

.site-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-search input,
.mobile-panel input,
.filter-panel input,
.filter-panel select {
  min-height: 42px;
  border: 1px solid rgba(120, 105, 87, 0.55);
  border-radius: 12px;
  color: var(--ancient-100, #fff6e6);
  background: rgba(13, 13, 13, 0.72);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input {
  width: 260px;
  padding: 0 14px;
}

.mobile-panel input,
.filter-panel input,
.filter-panel select {
  padding: 0 14px;
}

.site-search input:focus,
.mobile-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.site-search button,
.mobile-panel button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  color: #1a1202;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--ancient-200);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(120, 105, 87, 0.22);
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  padding: 16px 0;
}

.mobile-panel form {
  display: grid;
  gap: 10px;
}

.hero {
  position: relative;
  height: min(760px, 72vh);
  min-height: 540px;
  overflow: hidden;
  background: var(--ancient-900);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.72) 38%, rgba(5, 5, 5, 0.25) 70%),
    linear-gradient(0deg, var(--ancient-950) 0%, transparent 42%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 76px;
  width: min(650px, calc(100% - 48px));
  display: grid;
  gap: 18px;
  animation: fadeRise 0.8s ease both;
}

.hero-kicker {
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 999px;
  color: var(--amber-300);
  background: rgba(245, 158, 11, 0.12);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
}

.hero-content h1 {
  font-size: clamp(42px, 7vw, 78px);
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

.hero-content p {
  margin: 0;
  color: var(--ancient-200);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 58ch;
}

.hero-tags,
.detail-tags,
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.chip-cloud a {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--amber-300);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.26);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 4px;
}

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

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #1d1300;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.28);
}

.button-ghost {
  color: var(--ancient-200);
  border: 1px solid rgba(238, 228, 207, 0.24);
  background: rgba(15, 12, 8, 0.56);
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 42px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(209, 197, 178, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 36px;
  background: var(--amber-500);
}

.content-section,
.page-shell,
.detail-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

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

.section-heading {
  margin: 0 0 26px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  color: var(--amber-400);
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--ancient-400);
}

.section-heading-centered {
  text-align: center;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-more {
  color: var(--amber-400);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  height: 100%;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(120, 105, 87, 0.25);
  border-radius: var(--radius);
  background: rgba(13, 13, 13, 0.74);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ancient-800), var(--ancient-950));
}

.movie-card-large .movie-poster-wrap {
  aspect-ratio: 16 / 9;
}

.movie-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

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

.movie-poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.12) 60%);
}

.movie-year,
.movie-score {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 9px;
  padding: 5px 8px;
  color: var(--amber-300);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
}

.movie-year {
  right: 12px;
}

.movie-score {
  left: 12px;
}

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.movie-card-body strong {
  color: var(--white);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card-link:hover .movie-card-body strong {
  color: var(--amber-400);
}

.movie-card-body span {
  color: var(--ancient-300);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body em {
  color: var(--ancient-400);
  font-style: normal;
  font-size: 13px;
}

.feature-panel {
  margin-top: 68px;
  padding: 34px;
  border: 1px solid rgba(120, 105, 87, 0.25);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(31, 26, 20, 0.72), rgba(13, 13, 13, 0.72));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.bronze-panel {
  background: linear-gradient(135deg, rgba(92, 52, 12, 0.22), rgba(15, 12, 8, 0.8));
}

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

.catalog-grid-wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-tile,
.catalog-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 18px;
  border: 1px solid rgba(120, 105, 87, 0.32);
  border-radius: 18px;
  background: rgba(5, 5, 5, 0.32);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-tile:hover,
.catalog-link:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.1);
}

.category-tile span,
.catalog-link span {
  color: var(--amber-400);
  font-weight: 800;
}

.category-tile em,
.catalog-link em {
  color: var(--ancient-400);
  font-style: normal;
  font-size: 13px;
}

.chip-cloud a:hover {
  background: rgba(245, 158, 11, 0.24);
}

.rank-preview {
  padding-bottom: 24px;
}

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

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

.rank-card a {
  display: grid;
  grid-template-columns: 64px 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(120, 105, 87, 0.25);
  border-radius: 18px;
  background: rgba(13, 13, 13, 0.68);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-card a:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.5);
}

.rank-num {
  color: var(--amber-400);
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.rank-card img {
  width: 76px;
  height: 102px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--ancient-800);
}

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

.rank-info strong {
  color: var(--white);
  font-size: 18px;
}

.rank-info span {
  color: var(--ancient-300);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-info em,
.rank-heat {
  color: var(--ancient-400);
  font-style: normal;
}

.rank-heat {
  color: var(--amber-300);
  font-size: 20px;
  font-weight: 900;
}

.page-shell {
  padding: 34px 0 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid rgba(120, 105, 87, 0.25);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.22), transparent 28rem),
    linear-gradient(135deg, rgba(31, 26, 20, 0.88), rgba(5, 5, 5, 0.88));
  box-shadow: var(--shadow);
}

.compact-hero {
  padding: 54px;
}

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

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--ancient-300);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--ancient-400);
  margin-top: 24px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(150px, 210px));
  gap: 12px;
  margin-bottom: 24px;
}

.filter-empty {
  color: var(--ancient-300);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 16px;
  border-radius: 14px;
}

.detail-shell {
  padding: 26px 0 0;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
  margin-top: 26px;
  align-items: stretch;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22)),
    radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 26rem);
}

.player-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #1d1300;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.34);
  font-size: 30px;
}

.player-overlay strong {
  max-width: min(600px, calc(100% - 40px));
  color: var(--white);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(22px, 3vw, 36px);
  text-align: center;
}

.detail-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.detail-side img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--ancient-800);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.detail-rating {
  border-radius: 18px;
  padding: 18px;
  color: var(--amber-300);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  margin-top: 42px;
}

.detail-copy,
.detail-meta {
  border: 1px solid rgba(120, 105, 87, 0.25);
  border-radius: 24px;
  background: rgba(13, 13, 13, 0.68);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.detail-copy {
  padding: 34px;
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.lead-text {
  color: var(--ancient-200);
  font-size: 19px;
  margin: 18px 0;
}

.detail-copy h2,
.detail-meta h2 {
  color: var(--amber-400);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 26px;
  margin: 30px 0 12px;
}

.detail-copy p {
  color: var(--ancient-300);
  font-size: 17px;
}

.detail-meta {
  padding: 26px;
  height: max-content;
}

.detail-meta h2 {
  margin-top: 0;
}

.detail-meta ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.detail-meta li {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(120, 105, 87, 0.22);
}

.detail-meta span {
  color: var(--ancient-400);
  font-size: 13px;
}

.detail-meta strong {
  color: var(--ancient-200);
}

.related-section {
  padding-bottom: 42px;
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid rgba(120, 105, 87, 0.25);
  background: rgba(5, 5, 5, 0.76);
}

.site-footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.site-footer p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--ancient-400);
}

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

.footer-links a {
  color: var(--ancient-300);
}

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

.site-copy {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--ancient-500);
  border-top: 1px solid rgba(120, 105, 87, 0.16);
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .site-search input {
    width: 210px;
  }

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

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

@media (max-width: 980px) {
  .site-nav,
  .site-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: 560px;
    height: 68vh;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.55) 78%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.68), rgba(5, 5, 5, 0.22));
  }

  .hero-content {
    bottom: 78px;
  }

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

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

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

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

  .player-layout,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .detail-side {
    display: none;
  }

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

@media (max-width: 680px) {
  .site-header-inner {
    width: min(100% - 24px, 1280px);
    height: 64px;
  }

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

  .site-logo-icon {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: 540px;
  }

  .hero-content {
    left: 18px;
    width: calc(100% - 36px);
  }

  .hero-dots {
    right: 18px;
    bottom: 30px;
  }

  .content-section,
  .page-shell,
  .detail-shell,
  .site-footer-inner,
  .site-copy {
    width: min(100% - 24px, 1280px);
  }

  .compact-hero,
  .feature-panel,
  .detail-copy,
  .detail-meta {
    padding: 24px;
  }

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

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

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

  .category-grid,
  .catalog-grid,
  .catalog-grid-wide,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-card a {
    grid-template-columns: 48px 64px minmax(0, 1fr);
  }

  .rank-card img {
    width: 64px;
    height: 86px;
  }

  .rank-heat {
    display: none;
  }

  .player-layout {
    gap: 16px;
  }

  .play-icon {
    width: 64px;
    height: 64px;
  }
}
