:root {
  --bg: #fffbeb;
  --bg-soft: #fff7ed;
  --panel: #ffffff;
  --ink: #431407;
  --muted: #92400e;
  --line: #fde68a;
  --brand: #d97706;
  --brand-dark: #b45309;
  --accent: #ea580c;
  --shadow: 0 24px 70px rgba(67, 20, 7, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 45%, #fffbeb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 247, 237, 0.94));
  border-bottom: 1px solid rgba(253, 230, 138, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.35);
}

.brand-copy strong {
  display: block;
  font-size: 20px;
  line-height: 1;
  background: linear-gradient(90deg, #92400e, #c2410c);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-copy em {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}

.desktop-nav,
.mobile-nav {
  align-items: center;
  gap: 4px;
}

.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  border-radius: 13px;
  color: var(--ink);
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: #fef3c7;
  color: #7c2d12;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fef3c7;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #120804;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  right: 24px;
  bottom: 70px;
  max-width: 780px;
  color: #fff;
}

.hero-content .pill,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.95);
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #fef3c7;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.35);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.42);
}

.btn.ghost {
  color: #fef3c7;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.56);
  transform: translateY(-2px);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

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

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

.hero-dots button.active {
  width: 34px;
  background: #f59e0b;
}

.main-space {
  padding: 64px 0;
}

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

.section-head span,
.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h2,
.tool-panel h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p,
.tool-panel p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(146, 64, 14, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #431407;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.88);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.card-body strong {
  font-size: 17px;
  line-height: 1.35;
}

.card-body em {
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-style: normal;
}

.meta-line,
.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 12px;
}

.meta-line span,
.tag-line span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fef3c7;
}

.ribbon-section {
  margin: 74px 0;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(90deg, #fef3c7, #ffedd5);
  box-shadow: var(--shadow);
}

.horizontal-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
}

.horizontal-row .movie-card {
  min-width: 270px;
  scroll-snap-align: start;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 116px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 16px;
}

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

.rank-card strong {
  margin-bottom: 7px;
  font-size: 18px;
}

.rank-card em {
  color: var(--muted);
  line-height: 1.55;
  font-style: normal;
}

.rank-card b {
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.rank-no {
  position: absolute;
  right: 14px;
  top: 12px;
  color: rgba(217, 119, 6, 0.16);
  font-size: 34px;
  font-weight: 950;
}

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

.category-tile {
  min-height: 170px;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 42%), linear-gradient(135deg, #b45309, #ea580c);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-tile span,
.category-tile em {
  display: block;
  color: #fffbeb;
  line-height: 1.65;
  font-style: normal;
}

.tool-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
  margin: 0 0 34px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(146, 64, 14, 0.08);
}

.search-wrap input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.search-wrap input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.filter-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: #92400e;
  background: #fef3c7;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  color: #fff;
  background: var(--brand);
}

.page-title {
  padding: 54px 0 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.8fr);
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-wrap video {
  width: 100%;
  height: 100%;
}

.play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(217, 119, 6, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-wrap.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.86);
}

.player-meta,
.detail-card,
.side-card {
  padding: 26px;
}

.player-meta h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}

.info-chips span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 800;
}

.detail-card {
  margin-top: 26px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 20px;
  color: #78350f;
  line-height: 2;
}

.side-poster {
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 22px;
}

.side-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.related-list .rank-card {
  grid-template-columns: 72px 1fr;
  min-height: 96px;
  box-shadow: none;
  border: 1px solid #fde68a;
}

.related-list .rank-card img {
  width: 72px;
  height: 72px;
}

.no-result {
  display: none;
  padding: 30px;
  border-radius: 22px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.no-result.show {
  display: block;
}

.site-footer {
  margin-top: 60px;
  color: #fffbeb;
  background: linear-gradient(180deg, #78350f, #431407);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.footer-grid p {
  max-width: 420px;
  color: #fde68a;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #fde68a;
}

.footer-links a:hover {
  color: #fff;
}

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

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

  .menu-toggle {
    display: block;
  }

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

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

  .tool-panel,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero {
    height: 560px;
  }

  .hero-content {
    left: 18px;
    bottom: 56px;
  }

  .hero-control {
    display: none;
  }

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

  .ribbon-section {
    padding: 22px;
  }

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

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