:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --ink: #2f1b0b;
  --muted: #7c4a16;
  --soft: #fef3c7;
  --line: rgba(146, 64, 14, 0.16);
  --amber: #d97706;
  --orange: #ea580c;
  --rose: #e11d48;
  --shadow: 0 24px 70px rgba(124, 45, 18, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #fffaf3 46%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--amber), var(--orange), var(--rose));
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.35);
}

.logo-text {
  font-size: 1.24rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 1.3rem;
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  color: #fff;
  background: #1f1308;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(251, 191, 36, 0.42), transparent 26rem),
    radial-gradient(circle at 78% 15%, rgba(225, 29, 72, 0.36), transparent 27rem),
    linear-gradient(135deg, rgba(59, 23, 8, 0.88), rgba(124, 45, 18, 0.78));
  z-index: 1;
}

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

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.25) contrast(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 650px;
  margin: 0 auto;
  padding: 5.4rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 3rem;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.35rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-title {
  margin: 1rem 0 0.9rem;
  max-width: 820px;
  font-size: clamp(2.45rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
  font-weight: 950;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.hero-desc {
  max-width: 720px;
  color: #ffedd5;
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.12rem;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.34);
}

.btn-secondary {
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(124, 45, 18, 0.22);
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-card-body {
  padding: 1.2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #fde68a;
  font-weight: 800;
}

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

.hero-dot {
  width: 2.35rem;
  height: 0.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
  background: #fbbf24;
}

.quick-cats {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: -2.6rem auto 0;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.quick-cat {
  min-height: 6.5rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-cat:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(180, 83, 9, 0.22);
}

.quick-cat strong {
  display: block;
  font-size: 1.05rem;
}

.quick-cat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 4rem 0;
}

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

.section-title {
  margin: 0.65rem 0 0;
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 760px;
  color: var(--muted);
}

.section-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--orange);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.55rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(124, 45, 18, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 22px 58px rgba(124, 45, 18, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fed7aa);
}

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

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

.year-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(124, 45, 18, 0.82);
  font-size: 0.8rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.card-body {
  padding: 0.95rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
}

.card-body h3 {
  margin: 0.34rem 0 0.2rem;
  font-size: 1.05rem;
  line-height: 1.28;
}

.card-body h3 a:hover {
  color: var(--orange);
}

.genre-line,
.card-desc {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.category-tile {
  min-height: 12rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 1.7rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 237, 213, 0.72)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), transparent 14rem);
  box-shadow: 0 16px 44px rgba(124, 45, 18, 0.11);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 62px rgba(124, 45, 18, 0.18);
}

.category-tile h2,
.category-tile h3 {
  margin: 0;
  font-size: 1.45rem;
}

.category-tile p {
  color: var(--muted);
}

.filter-panel {
  margin: 1.5rem 0 1.6rem;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
}

.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 0.95rem;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 0.82rem 1rem;
  font: inherit;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

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

.rank-panel {
  position: sticky;
  top: 6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.55rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.rank-item {
  display: grid;
  grid-template-columns: 2.6rem 4.2rem minmax(0, 1fr);
  gap: 0.78rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #ffedd5;
  transform: translateX(4px);
}

.rank-num {
  color: var(--orange);
  font-size: 1.3rem;
  font-weight: 950;
}

.rank-item img {
  width: 4.2rem;
  aspect-ratio: 3 / 4;
  border-radius: 0.75rem;
  object-fit: cover;
}

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

.rank-info em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.page-hero {
  padding: 4.5rem 0 2.2rem;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 26rem),
    linear-gradient(135deg, #fff7ed, #ffffff);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.detail-hero {
  padding: 3.5rem 0;
  color: #fff;
  background: linear-gradient(135deg, #431407, #7c2d12 55%, #9f1239);
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

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

.detail-title {
  margin: 0.8rem 0 0.7rem;
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.detail-desc {
  max-width: 850px;
  color: #ffedd5;
  font-size: 1.05rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.2rem 0;
}

.detail-meta span {
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.player-section {
  padding: 3rem 0 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.7rem;
  background: #130c08;
  box-shadow: 0 24px 80px rgba(67, 20, 7, 0.25);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.play-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.play-icon {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 44px rgba(234, 88, 12, 0.38);
  font-size: 2rem;
}

.detail-content {
  padding: 3rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.5rem;
  align-items: start;
}

.article-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 1.55rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 44px rgba(124, 45, 18, 0.1);
}

.article-panel {
  padding: 1.5rem;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.article-panel p {
  color: #4b2d13;
}

.side-panel {
  padding: 0.9rem;
}

.related-list {
  display: grid;
  gap: 0.7rem;
}

.related-link {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 1rem;
  transition: background 0.2s ease;
}

.related-link:hover {
  background: #ffedd5;
}

.related-link img {
  width: 4rem;
  aspect-ratio: 3 / 4;
  border-radius: 0.7rem;
  object-fit: cover;
}

.related-link strong,
.related-link span {
  display: block;
}

.related-link span {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  margin-top: 3rem;
  color: #ffedd5;
  background: linear-gradient(135deg, #431407, #7c2d12);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.4rem 1.25rem;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.footer-links a {
  padding: 0.4rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem 1.4rem;
  color: #fed7aa;
}

[data-card].is-hidden {
  display: none;
}

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

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

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

  .rank-panel {
    position: static;
  }
}

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

  .menu-button {
    display: grid;
    place-items: center;
  }

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

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

  .hero-card {
    max-width: 380px;
  }

  .quick-cats,
  .category-list {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 580px) {
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .quick-cats,
  .category-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-content {
    padding-top: 4rem;
  }

  .card-body {
    padding: 0.75rem;
  }

  .card-desc,
  .tag-row {
    display: none;
  }
}
