:root {
  color-scheme: dark;
  --bg: #17130f;
  --bg-soft: #241b15;
  --panel: rgba(41, 32, 25, 0.84);
  --panel-strong: rgba(28, 23, 20, 0.96);
  --line: rgba(217, 119, 6, 0.36);
  --line-soft: rgba(217, 119, 6, 0.16);
  --text: #fff7ed;
  --muted: rgba(255, 237, 213, 0.72);
  --dim: rgba(255, 237, 213, 0.54);
  --amber: #d97706;
  --amber-light: #fbbf24;
  --amber-deep: #78350f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.22), transparent 34rem),
    linear-gradient(180deg, #1c1917 0%, #292524 44%, #1c1917 100%);
}

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

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

button,
input {
  font: inherit;
}

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.98), rgba(41, 37, 36, 0.98), rgba(120, 53, 15, 0.98));
  border-bottom: 2px solid rgba(217, 119, 6, 0.58);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  height: 4rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #1c1917;
  background: linear-gradient(135deg, var(--amber-light), #f97316);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

.brand-text {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #fffbeb;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: #ffedd5;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  color: #ffedd5;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.4rem;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 0.35rem 1rem 1rem;
  border-top: 1px solid rgba(217, 119, 6, 0.42);
  background: rgba(28, 25, 23, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  color: #ffedd5;
}

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

.hero-carousel,
.page-hero,
.detail-hero {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.hero-carousel {
  position: relative;
}

.hero-slides {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 1.75rem;
  border: 1px solid var(--line);
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  min-height: 520px;
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.5fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 5rem);
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 80% 20%, hsl(var(--hero-hue) 75% 45% / 0.56), transparent 28rem),
    linear-gradient(135deg, #111827, #292524 52%, #78350f);
}

.hero-slide.is-active {
  display: grid;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.22), transparent 42%, rgba(0, 0, 0, 0.15));
}

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

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.88);
  color: #fff7ed;
  font-weight: 800;
  font-size: 0.86rem;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  color: #fffbeb;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 58rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.hero-meta span,
.detail-meta span,
.tag-row span,
.mini-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  background: rgba(28, 25, 23, 0.52);
  color: #fde68a;
  font-size: 0.86rem;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.primary-btn,
.ghost-btn,
.section-link,
.pagination a,
.rank-action,
.search-hints button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn,
.section-link,
.pagination a,
.rank-action,
.search-hints button {
  color: white;
  background: var(--amber);
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.24);
}

.primary-btn:hover,
.section-link:hover,
.pagination a:hover,
.search-hints button:hover {
  transform: translateY(-2px);
  background: #b45309;
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.32);
}

.ghost-btn {
  border: 1px solid rgba(255, 237, 213, 0.35);
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.08);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.hero-poster {
  display: block;
  max-width: 360px;
  justify-self: center;
  width: 100%;
}

.poster-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background:
    linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.25) 52%, rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at 30% 20%, hsl(var(--poster-hue) 85% 68% / 0.78), transparent 14rem),
    linear-gradient(135deg, hsl(var(--poster-hue) 70% 28%), #111827 74%);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
}

.poster-art-small {
  width: 5rem;
  min-width: 5rem;
  border-radius: 0.9rem;
}

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 34%);
  opacity: 0.64;
}

.poster-title {
  position: relative;
  z-index: 1;
  display: block;
  font-weight: 950;
  font-size: clamp(1.2rem, 2.5vw, 2.05rem);
  line-height: 1.12;
  color: #ffffff;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
}

.poster-meta {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.65rem;
  color: #fde68a;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 1.85rem;
}

.hero-next {
  right: 1.85rem;
}

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

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 2rem;
  background: var(--amber-light);
}

.content-section,
.category-board,
.search-shell,
.sitemap-block,
.detail-layout,
.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem 0;
}

.content-section:last-child,
.category-board,
.search-shell,
.sitemap-block,
.detail-layout:last-child {
  padding-bottom: 4rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  color: #fffbeb;
}

.section-heading p {
  max-width: 58rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--line-soft);
  background: rgba(41, 37, 36, 0.78);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(41, 37, 36, 0.96);
}

.movie-poster {
  display: block;
}

.movie-card .poster-art {
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: none;
}

.movie-card-body {
  padding: 1rem;
}

.movie-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #fbbf24;
  font-size: 0.84rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0.55rem 0 0.45rem;
  color: #fffbeb;
  font-size: 1.08rem;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 3.2rem;
  margin: 0;
  color: var(--dim);
  line-height: 1.6;
  font-size: 0.92rem;
}

.tag-row,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.two-column-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.feature-list {
  display: grid;
  gap: 0.85rem;
}

.feature-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line-soft);
  background: rgba(41, 37, 36, 0.76);
  transition: transform 0.2s ease, background 0.2s ease;
}

.feature-row:hover {
  transform: translateY(-3px);
  background: rgba(68, 64, 60, 0.82);
}

.feature-rank {
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: #92400e;
  color: #fff7ed;
  font-weight: 900;
  font-size: 0.82rem;
}

.feature-row h3 {
  margin: 0 0 0.35rem;
  color: #fffbeb;
}

.feature-row p {
  margin: 0;
  color: var(--dim);
  line-height: 1.6;
}

.compact-hero,
.detail-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(217, 119, 6, 0.28), transparent 25rem),
    linear-gradient(135deg, rgba(28, 25, 23, 0.96), rgba(68, 64, 60, 0.82));
  box-shadow: var(--shadow);
}

.compact-hero {
  padding: clamp(2rem, 5vw, 4rem);
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.detail-poster .poster-art {
  max-height: 460px;
}

.detail-copy h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.detail-meta {
  margin-bottom: 0.8rem;
}

.player-section {
  padding-top: 2rem;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1.35rem;
  border: 1px solid rgba(251, 191, 36, 0.32);
  background:
    radial-gradient(circle at 50% 50%, rgba(217, 119, 6, 0.26), transparent 24rem),
    linear-gradient(135deg, #050505, #1c1917);
  box-shadow: var(--shadow);
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #050505;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 9rem;
  justify-content: center;
  padding: 1rem 1.4rem;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(217, 119, 6, 0.96);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.42);
  font-weight: 950;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.player-start.is-hidden {
  display: none;
}

.play-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #92400e;
  background: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
}

.detail-main,
.detail-aside {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.article-card,
.side-card,
.search-panel,
.category-panel {
  border: 1px solid var(--line-soft);
  border-radius: 1.25rem;
  padding: 1.35rem;
  background: rgba(41, 37, 36, 0.8);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.article-card h2,
.side-card h2,
.category-panel h2,
.sitemap-block h2 {
  margin: 0 0 0.9rem;
  color: #fbbf24;
  font-size: 1.35rem;
}

.article-card p,
.side-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.info-list {
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.info-list div {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.6rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 237, 213, 0.08);
}

.info-list dt {
  color: #fbbf24;
  font-weight: 900;
}

.info-list dd {
  margin: 0;
  color: var(--muted);
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.rank-list a {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  background: rgba(41, 37, 36, 0.75);
}

.rank-list a:hover {
  background: rgba(68, 64, 60, 0.84);
}

.rank-number {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: #92400e;
  color: white;
  font-weight: 950;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  color: #fffbeb;
  font-size: 1.05rem;
}

.rank-info em {
  margin-top: 0.25rem;
  color: var(--dim);
  font-style: normal;
  line-height: 1.4;
}

.rank-action {
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}

.full-btn {
  width: 100%;
  margin-top: 1rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.pagination span {
  color: #ffedd5;
  font-weight: 900;
}

.category-board {
  display: grid;
  gap: 1rem;
}

.category-chips,
.sitemap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.category-chips a,
.sitemap-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(28, 25, 23, 0.72);
}

.category-chips a:hover,
.sitemap-links a:hover {
  border-color: rgba(251, 191, 36, 0.62);
  color: white;
}

.category-chips span {
  color: #fbbf24;
  font-weight: 900;
}

.featured-panel {
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(120, 53, 15, 0.28);
}

.search-shell {
  display: grid;
  gap: 1rem;
}

.search-panel label {
  display: block;
  margin-bottom: 0.6rem;
  color: #fbbf24;
  font-weight: 900;
}

.search-panel input {
  width: 100%;
  min-height: 3.3rem;
  padding: 0 1rem;
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 1rem;
  outline: none;
  color: #fffbeb;
  background: rgba(28, 25, 23, 0.86);
}

.search-panel input:focus {
  border-color: var(--amber-light);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12);
}

.search-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.search-results {
  display: grid;
  gap: 0.8rem;
}

.search-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  background: rgba(41, 37, 36, 0.78);
}

.search-item h2 {
  margin: 0 0 0.35rem;
  color: #fffbeb;
  font-size: 1.15rem;
}

.search-item p {
  margin: 0;
  color: var(--dim);
  line-height: 1.6;
}

.search-badge {
  min-width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: #92400e;
  color: #fff7ed;
  font-weight: 900;
}

.sitemap-block {
  display: grid;
  gap: 1.2rem;
}

.movie-sitemap-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 3;
  column-gap: 2rem;
}

.movie-sitemap-list li {
  break-inside: avoid;
  margin-bottom: 0.6rem;
}

.movie-sitemap-list a {
  color: #ffedd5;
}

.movie-sitemap-list span {
  display: block;
  color: var(--dim);
  font-size: 0.85rem;
}

.empty-state {
  margin: 0;
  padding: 2rem;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  color: var(--muted);
  background: rgba(41, 37, 36, 0.78);
}

.site-footer {
  margin-top: 3rem;
  border-top: 2px solid rgba(217, 119, 6, 0.5);
  background: linear-gradient(180deg, #1c1917, #0c0a09);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  color: #ffedd5;
}

.footer-inner p {
  max-width: 36rem;
  color: var(--dim);
  line-height: 1.8;
}

.footer-inner h2 {
  margin: 0 0 1rem;
  color: #fbbf24;
  font-size: 1.05rem;
}

.footer-inner a:not(.footer-logo) {
  display: block;
  margin: 0.5rem 0;
  color: var(--muted);
}

.footer-inner a:hover {
  color: #ffffff;
}

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

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

  .menu-toggle {
    display: block;
  }

  .hero-slide,
  .detail-hero,
  .detail-layout,
  .rank-layout,
  .two-column-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-slides,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 2.25rem 1.25rem 4.5rem;
  }

  .hero-poster {
    max-width: 260px;
  }

  .hero-arrow {
    display: none;
  }

  .detail-layout {
    gap: 1rem;
  }

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

  .movie-sitemap-list {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 3.75rem;
  }

  .hero-carousel,
  .page-hero,
  .detail-hero {
    margin-top: 1rem;
  }

  .content-section,
  .category-board,
  .search-shell,
  .sitemap-block,
  .detail-layout,
  .player-section {
    padding-top: 2rem;
  }

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

  .movie-card-body {
    padding: 0.8rem;
  }

  .movie-card p {
    min-height: auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-list a,
  .search-item {
    grid-template-columns: 1fr;
  }

  .rank-action {
    justify-self: start;
  }

  .movie-sitemap-list {
    columns: 1;
  }

  .player-start {
    min-width: 7.5rem;
    padding: 0.8rem 1rem;
  }
}
