:root {
  color-scheme: light;
  --bg: #fffaf1;
  --panel: #ffffff;
  --panel-soft: #fff3df;
  --text: #24150a;
  --muted: #7a6652;
  --line: rgba(120, 68, 21, 0.14);
  --amber: #d97706;
  --orange: #ea580c;
  --dark: #281004;
  --dark-2: #3b1907;
  --shadow: 0 18px 45px rgba(72, 36, 8, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #78350f, #92400e 45%, #c2410c);
  box-shadow: 0 12px 34px rgba(92, 36, 3, 0.28);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
}

.brand,
.mobile-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand {
  flex: 0 0 auto;
  font-size: 21px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(10deg) scale(1.04);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.nav-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #78350f, #431407);
}

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

.mobile-inner {
  padding: 18px 0 22px;
}

.mobile-brand {
  margin-bottom: 14px;
  font-size: 20px;
}

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-link {
  border-radius: 16px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-link.is-active {
  background: rgba(255, 255, 255, 0.2);
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #ffffff;
  background: #1c0c03;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.36), transparent 32%),
    linear-gradient(90deg, rgba(25, 9, 2, 0.94), rgba(56, 22, 4, 0.74) 48%, rgba(20, 8, 2, 0.42)),
    linear-gradient(0deg, rgba(28, 12, 3, 0.76), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 660px;
  max-width: 760px;
  padding: 80px 0;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  text-wrap: balance;
}

.hero-content h2 + p,
.hero-content h1 + h2 + p {
  margin-top: 0;
}

.hero-content p {
  max-width: 660px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-meta {
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 800;
}

.hero-meta span,
.detail-meta span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #7c2d12;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(251, 191, 36, 0.25);
}

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

.ghost-btn.dark {
  color: #7c2d12;
  border-color: rgba(217, 119, 6, 0.28);
  background: #fff7ed;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-dots {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 660px;
  padding-top: 580px;
}

.hero-dot {
  width: 46px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

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

.section {
  padding: 72px 0;
}

.section-warm {
  background:
    radial-gradient(circle at 8% 20%, rgba(251, 191, 36, 0.16), transparent 26%),
    linear-gradient(180deg, #fff7ed, #fffaf1);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.page-hero h1,
.player-section h2,
.prose-card h2 {
  margin: 0;
  color: #2b1607;
  font-weight: 950;
  line-height: 1.15;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-head p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: #c2410c;
  font-weight: 900;
}

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

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

.category-card,
.overview-card,
.movie-card,
.prose-card,
.ranking-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 24px;
  color: #ffffff;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(20, 8, 2, 0.28), rgba(20, 8, 2, 0.86));
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  display: block;
  margin-top: 78px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.category-card:hover img {
  transform: scale(1.08);
}

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

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(72, 36, 8, 0.2);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #451a03, #f59e0b);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.score-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 950;
}

.score-badge {
  top: 12px;
  left: 12px;
  min-width: 48px;
  height: 30px;
  border-radius: 999px;
  background: rgba(194, 65, 12, 0.92);
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.movie-body {
  padding: 16px;
}

.movie-meta {
  margin-bottom: 10px;
}

.movie-meta span {
  color: #9a3412;
  background: #ffedd5;
}

.movie-body h2 {
  min-height: 52px;
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 950;
}

.movie-body h2 a:hover,
.ranking-body h2 a:hover,
.overview-card h2 a:hover {
  color: #ea580c;
}

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

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

.tag-row span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #78350f;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 70px 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  padding: 10px;
  box-shadow: var(--shadow);
}

.rank-no {
  color: #c2410c;
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

.rank-item img {
  width: 70px;
  height: 94px;
  border-radius: 16px;
  object-fit: cover;
}

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

.rank-copy strong {
  font-weight: 950;
}

.rank-copy em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #431407, #7c2d12 50%, #c2410c);
}

.page-hero {
  padding: 90px 0 76px;
}

.compact-hero {
  padding: 70px 0 58px;
}

.page-hero::before {
  position: absolute;
  inset: -30% -10% auto auto;
  width: 520px;
  height: 520px;
  content: "";
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.22);
  filter: blur(4px);
}

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

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.category-chip {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

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

.overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px;
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

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

.overview-card h2 {
  margin: 10px 0 8px;
  font-size: 26px;
  font-weight: 950;
}

.overview-card p {
  color: var(--muted);
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 16px;
  box-shadow: var(--shadow);
}

.filter-toolbar label {
  display: grid;
  gap: 6px;
  color: #7c2d12;
  font-weight: 900;
}

.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 16px;
  outline: 0;
  background: #fffaf1;
  padding: 12px 13px;
}

.empty-state {
  margin: 18px 0 0;
  border-radius: 18px;
  color: #7c2d12;
  background: #ffedd5;
  padding: 18px;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-hero {
  min-height: 650px;
}

.detail-bg,
.detail-bg::after {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px);
  transform: scale(1.08);
  opacity: 0.55;
}

.detail-bg::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(29, 13, 4, 0.96), rgba(29, 13, 4, 0.72)),
    linear-gradient(0deg, rgba(29, 13, 4, 0.86), transparent 60%);
}

.detail-top {
  position: relative;
  z-index: 1;
  padding: 64px 0;
}

.detail-card {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: center;
}

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

.detail-info h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 950;
}

.detail-info p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.large-tags {
  margin: 20px 0 26px;
}

.large-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
}

.player-section h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 3.4vw, 40px);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #120702;
  box-shadow: 0 28px 72px rgba(43, 22, 7, 0.3);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(20, 8, 2, 0.08), rgba(20, 8, 2, 0.72));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-ring {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: #7c2d12;
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(251, 191, 36, 0.28);
}

.player-cover strong {
  max-width: min(680px, 88%);
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.2;
}

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

.prose-card {
  padding: 28px;
}

.prose-card h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.prose-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.ranking-list {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 14px;
}

.ranking-cover {
  position: relative;
  display: block;
}

.ranking-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  min-width: 42px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #c2410c;
  font-weight: 950;
}

.ranking-cover img {
  width: 150px;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  object-fit: cover;
}

.ranking-body h2 {
  margin: 8px 0 8px;
  font-size: 26px;
  font-weight: 950;
}

.ranking-body p {
  margin: 0 0 16px;
  color: var(--muted);
}

.site-footer {
  color: #d6c5b7;
  background: linear-gradient(180deg, #1c0c03, #090402);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-brand {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #fbbf24;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  color: #a3907f;
}

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

  .menu-toggle {
    display: block;
  }

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

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

  .detail-card {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-content {
    padding: 70px 0;
  }

  .hero-dots {
    padding-top: 510px;
  }

  .section {
    padding: 52px 0;
  }

  .split-head,
  .detail-card {
    display: block;
  }

  .category-grid,
  .movie-grid,
  .rank-grid,
  .overview-grid,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .overview-card,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .overview-cover {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .detail-poster {
    max-width: 260px;
    margin-bottom: 24px;
  }

  .detail-top {
    padding: 44px 0;
  }

  .ranking-cover img {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .detail-actions {
    display: grid;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .movie-grid {
    gap: 16px;
  }
}
