:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --red-50: #fef2f2;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-900: #7f1d1d;
  --ink: #2f1609;
  --muted: #855f40;
  --line: rgba(153, 27, 27, 0.16);
  --panel: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 70px rgba(127, 29, 29, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.28), transparent 34rem),
    linear-gradient(180deg, #fffaf0 0%, #fff7ed 44%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid rgba(217, 119, 6, 0.32);
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(254, 242, 242, 0.94), rgba(255, 247, 237, 0.96));
  box-shadow: 0 14px 34px rgba(127, 29, 29, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-700), var(--amber-600));
  box-shadow: 0 12px 28px rgba(185, 28, 28, 0.26);
}

.brand-copy,
.footer-logo span:last-child {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong,
.footer-logo strong {
  color: var(--red-800);
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-copy small,
.footer-logo small {
  margin-top: 5px;
  color: var(--amber-600);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--red-800);
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  padding: 10px 0;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  background: var(--amber-600);
  transition: transform 0.2s ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.12);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--red-800);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  color: var(--red-800);
  font-weight: 700;
  border-radius: 12px;
}

.mobile-nav a:hover {
  background: var(--amber-100);
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  padding: 56px 0 34px;
  background:
    linear-gradient(120deg, rgba(127, 29, 29, 0.95), rgba(153, 27, 27, 0.72) 44%, rgba(217, 119, 6, 0.32)),
    radial-gradient(circle at 82% 18%, rgba(254, 215, 170, 0.55), transparent 26rem);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  content: "";
  background: linear-gradient(180deg, transparent, #fff7ed 82%);
}

.hero-glow {
  position: absolute;
  inset: 6% 58% auto auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.28);
  filter: blur(28px);
}

.hero-inner,
.section-wrap,
.home-search-wrap,
.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-slide {
  display: none;
  grid-template-columns: 1.02fr 0.86fr;
  align-items: center;
  gap: 42px;
  min-height: 540px;
}

.hero-slide.is-active {
  display: grid;
  animation: heroFade 0.48s ease both;
}

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

.hero-copy {
  color: #fff7ed;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  color: #fff7ed;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid rgba(254, 215, 170, 0.44);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.3);
}

.hero h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 18px 0 12px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

.hero p,
.page-hero p,
.detail-intro p {
  max-width: 720px;
  color: rgba(255, 247, 237, 0.88);
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags,
.detail-meta,
.movie-meta-line,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--red-800);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: var(--amber-100);
}

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

.primary-button,
.ghost-button,
.search-box button,
.text-button,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 900;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-box button {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--red-700), var(--amber-600));
  box-shadow: 0 16px 30px rgba(185, 28, 28, 0.24);
}

.ghost-button {
  color: #fff7ed;
  border: 1px solid rgba(255, 247, 237, 0.48);
  background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.search-box button:hover,
.text-button:hover,
.more-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(127, 29, 29, 0.18);
}

.hero-poster {
  position: relative;
  display: block;
  padding: 16px;
  border: 1px solid rgba(255, 237, 213, 0.4);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
}

.hero-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-500);
}

.home-search-wrap {
  position: relative;
  z-index: 2;
  margin-top: -38px;
}

.search-panel,
.filter-bar,
.story-panel,
.ranking-box,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.search-panel {
  padding: 24px;
}

.section-wrap {
  padding: 58px 0 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading span {
  color: var(--amber-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.section-heading h2,
.section-heading h1 {
  margin: 8px 0 10px;
  color: var(--red-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.search-box {
  display: flex;
  gap: 12px;
}

.search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--red-900);
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.9);
}

.search-results {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.search-results.is-open {
  display: grid;
}

.search-result-item {
  padding: 14px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.78);
}

.search-result-item strong {
  display: block;
  color: var(--red-900);
}

.search-result-item small {
  color: var(--muted);
}

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

.category-tile {
  min-height: 158px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 247, 237, 0.98), rgba(254, 226, 226, 0.8)),
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.12), transparent 12rem);
  box-shadow: 0 16px 34px rgba(127, 29, 29, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(127, 29, 29, 0.16);
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  color: var(--red-800);
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(127, 29, 29, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red-900), var(--amber-600));
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.78);
  backdrop-filter: blur(8px);
}

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

.movie-meta-line {
  color: var(--amber-600);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span + span::before {
  content: "·";
  margin-right: 8px;
  color: rgba(133, 95, 64, 0.56);
}

.movie-card h2 {
  margin: 10px 0 8px;
  color: var(--red-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 68px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tag-row span {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 11px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-box {
  position: sticky;
  top: 104px;
  padding: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.78);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-700), var(--amber-600));
}

.rank-thumb img {
  width: 78px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.rank-item h2 {
  margin: 0 0 6px;
  color: var(--red-900);
  font-size: 16px;
}

.rank-item p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.more-link,
.text-button {
  margin-top: 18px;
  color: var(--red-800);
  border: 1px solid rgba(217, 119, 6, 0.28);
  background: #fff7ed;
}

.page-hero {
  margin-top: 34px;
  padding: 64px;
  color: #fff7ed;
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(127, 29, 29, 0.96), rgba(185, 28, 28, 0.8), rgba(217, 119, 6, 0.48)),
    radial-gradient(circle at top right, rgba(254, 215, 170, 0.35), transparent 28rem);
  box-shadow: var(--shadow);
}

.slim-hero,
.category-hero,
.rank-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
}

.filter-wrap {
  padding-top: 32px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
}

.empty-state {
  display: none;
  margin-top: 18px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(217, 119, 6, 0.36);
  border-radius: 22px;
  background: rgba(255, 247, 237, 0.76);
}

.empty-state.is-visible {
  display: block;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 18px;
  padding: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.category-cover-row img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.category-overview-card h1 {
  margin: 0 0 10px;
  color: var(--red-900);
}

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

.full-rank .rank-item {
  grid-template-columns: 58px 96px minmax(0, 1fr);
}

.full-rank .rank-thumb img {
  width: 96px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-top: 34px;
  padding: 34px;
  color: #fff7ed;
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(127, 29, 29, 0.96), rgba(153, 27, 27, 0.74), rgba(217, 119, 6, 0.4)),
    radial-gradient(circle at bottom right, rgba(254, 215, 170, 0.3), transparent 26rem);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

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

.detail-meta {
  margin: 18px 0;
}

.large-tags span {
  font-size: 12px;
}

.player-section {
  padding-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 32px;
  background: #000000;
  box-shadow: 0 28px 84px rgba(127, 29, 29, 0.22);
}

.movie-player {
  display: block;
  width: 100%;
  min-height: min(64vw, 650px);
  background: #000000;
  cursor: pointer;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.48));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-700), var(--amber-600));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.play-button span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 26px solid #ffffff;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.story-panel {
  padding: 28px;
}

.story-panel p {
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.accent-panel {
  background: linear-gradient(145deg, rgba(255, 247, 237, 0.98), rgba(254, 226, 226, 0.82));
}

.site-footer {
  margin-top: 70px;
  color: #fff7ed;
  background: linear-gradient(90deg, var(--red-900), #78350f, var(--red-900));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 220px 220px;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand p {
  max-width: 560px;
  color: rgba(255, 237, 213, 0.78);
  line-height: 1.8;
}

.footer-logo .brand-mark {
  width: 40px;
  height: 40px;
}

.footer-logo strong {
  color: #fff7ed;
}

.footer-links {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-links h2 {
  margin: 0 0 8px;
  color: var(--amber-200);
  font-size: 18px;
}

.footer-links a {
  color: rgba(255, 237, 213, 0.78);
}

.footer-bottom {
  padding: 18px 16px;
  color: rgba(255, 237, 213, 0.74);
  text-align: center;
  border-top: 1px solid rgba(254, 215, 170, 0.16);
}

.is-filter-hidden {
  display: none;
}

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

  .menu-toggle {
    display: block;
  }

  .hero-slide,
  .split-section,
  .detail-hero,
  .detail-content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-box {
    position: static;
  }

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

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

@media (max-width: 720px) {
  .header-inner {
    height: 70px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero h1,
  .page-hero h1,
  .detail-intro h1 {
    font-size: 34px;
  }

  .hero p,
  .page-hero p,
  .detail-intro p {
    font-size: 16px;
  }

  .page-hero,
  .detail-hero {
    padding: 28px;
    border-radius: 26px;
  }

  .movie-grid,
  .compact-grid,
  .related-grid,
  .archive-grid,
  .category-grid,
  .category-overview-grid,
  .search-results {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .category-overview-card,
  .rank-item,
  .full-rank .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-number {
    width: 44px;
    height: 44px;
  }

  .rank-thumb img,
  .full-rank .rank-thumb img {
    width: 100%;
    max-width: 160px;
  }

  .search-box {
    flex-direction: column;
  }

  .movie-player {
    min-height: 260px;
  }
}
