:root {
  --bg: #fffaf0;
  --bg-soft: #f8f2e7;
  --text: #18130b;
  --muted: #6f6250;
  --line: rgba(79, 56, 28, 0.14);
  --brand: #b86f13;
  --brand-dark: #7c3f08;
  --brand-soft: #ffe2a6;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(91, 54, 12, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.container.narrow {
  width: min(880px, calc(100% - 32px));
}

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

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f6b444, #b86f13);
  color: white;
  box-shadow: 0 12px 24px rgba(184, 111, 19, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: #4e4335;
  font-size: 15px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: white;
  font-size: 20px;
}

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

.mobile-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
}

.mobile-panel a:hover {
  background: var(--bg-soft);
  color: var(--brand-dark);
}

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

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #1b1208;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.15);
  transform: scale(1.05);
  opacity: 0.45;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(255, 185, 73, 0.26), transparent 32%),
    linear-gradient(90deg, rgba(21, 13, 5, 0.94), rgba(40, 22, 7, 0.76) 42%, rgba(22, 14, 8, 0.42)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(10, 8, 5, 0.86));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  align-items: center;
  gap: 56px;
  padding: 90px 0 110px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.075em;
}

.hero h1 {
  color: #fff9ed;
}

.hero h2 {
  margin: 20px 0 12px;
  color: #ffd38a;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.15;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 250, 240, 0.84);
  font-size: 19px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 226, 166, 0.18);
  color: #ffe2a6;
  font-size: 13px;
  font-weight: 800;
}

.tag-row span {
  background: #fff2d2;
  color: var(--brand-dark);
}

.tag-row.large span {
  min-height: 34px;
  padding: 6px 13px;
}

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

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

.primary-button {
  background: linear-gradient(135deg, #f7b84d, #b86f13);
  color: white;
  box-shadow: 0 16px 30px rgba(184, 111, 19, 0.33);
}

.ghost-button {
  border: 1px solid rgba(255, 226, 166, 0.42);
  background: rgba(255, 255, 255, 0.1);
  color: #fff4dd;
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.44);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-dark);
  font-size: 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: 0.2s ease;
}

.hero-dot.active {
  width: 42px;
  background: #ffd38a;
}

.block-pad {
  padding: 78px 0;
}

.soft-bg {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 216, 140, 0.35), transparent 26%),
    var(--bg-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-heading h2,
.content-main h2,
.content-side h2,
.category-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

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

.section-heading > a {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-weight: 900;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(105, 62, 13, 0.08);
}

.filter-search input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: white;
  color: var(--text);
  font-size: 16px;
}

.filter-search input:focus {
  border-color: rgba(184, 111, 19, 0.6);
  box-shadow: 0 0 0 4px rgba(184, 111, 19, 0.1);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: #f2e6d1;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--brand);
  color: white;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 12px 36px rgba(95, 58, 16, 0.09);
  transition: 0.25s ease;
}

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

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

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), transparent);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd177, #b86f13);
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

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

.movie-card h2 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.movie-card h2 a:hover,
.rank-content h2 a:hover,
.inline-links a:hover {
  color: var(--brand-dark);
}

.movie-meta,
.movie-desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.movie-desc {
  min-height: 48px;
}

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

.category-tile,
.category-panel {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 12px 36px rgba(95, 58, 16, 0.08);
  transition: 0.25s ease;
}

.category-tile:hover,
.category-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-thumbs,
.category-banner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 20px;
}

.category-thumbs img,
.category-banner img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.category-tile h2,
.category-panel h2 {
  margin-top: 4px;
  font-size: 25px;
}

.category-tile p,
.category-panel p {
  margin: 0;
  color: var(--muted);
}

.category-panels {
  display: grid;
  gap: 24px;
}

.category-panel {
  grid-template-columns: 280px 1fr;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0;
}

.inline-links a {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 195, 83, 0.35), transparent 28%),
    linear-gradient(135deg, #fff3d3, #f8ede0);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 250, 240, 0.75);
  font-size: 14px;
  font-weight: 800;
}

.page-hero .crumbs {
  color: var(--muted);
  margin-top: 18px;
  margin-bottom: 0;
}

.crumbs a:hover {
  color: var(--brand);
}

.rank-block {
  background: #1b1208;
  color: #fff9ed;
}

.rank-block .section-heading p,
.rank-block .eyebrow {
  color: #ffd38a;
}

.rank-block .section-heading > a {
  color: #fff1c9;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 92px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(95, 58, 16, 0.08);
}

.rank-block .rank-row {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 226, 166, 0.22);
}

.row-rank {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffd177;
  color: #6d3500;
  font-weight: 900;
}

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

.rank-content h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.rank-content p {
  margin: 0 0 6px;
  color: var(--muted);
}

.rank-block .rank-content p {
  color: rgba(255, 250, 240, 0.7);
}

.small-button {
  min-height: 38px;
  padding: 0 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 14px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: #1b1208;
  color: white;
}

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

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

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 10, 5, 0.96), rgba(33, 20, 9, 0.74)), linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
}

.detail-grid {
  position: relative;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 52px;
  align-items: center;
  padding: 82px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 38px 88px rgba(0, 0, 0, 0.38);
}

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

.detail-info .lead {
  max-width: 760px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 13px;
  border: 1px solid rgba(255, 226, 166, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffe2a6;
  font-weight: 800;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 30px 80px rgba(67, 38, 8, 0.2);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.72));
  color: white;
  cursor: pointer;
}

.play-layer span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7b84d, #b86f13);
  font-size: 30px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.play-layer strong {
  max-width: 86%;
  font-size: 22px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
}

.content-main,
.content-side {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 12px 36px rgba(95, 58, 16, 0.08);
}

.content-main {
  padding: 34px;
}

.content-main p {
  margin: 0 0 24px;
  color: #3d3328;
  font-size: 18px;
}

.content-side {
  align-self: start;
  padding: 26px;
}

.content-side dl {
  margin: 0 0 18px;
}

.content-side dt {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.content-side dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.site-footer {
  padding: 52px 0 24px;
  background: #18110a;
  color: rgba(255, 250, 240, 0.72);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: white;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 18px;
}

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

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 250, 240, 0.52);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .hero-content {
    grid-template-columns: 1fr 330px;
  }

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

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 72px 0 104px;
  }

  .hero-poster {
    max-width: 300px;
    transform: none;
  }

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

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

  .category-tile,
  .category-panel,
  .detail-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-thumbs,
  .category-banner {
    max-height: 260px;
  }

  .detail-grid {
    gap: 28px;
    padding: 54px 0;
  }

  .detail-poster {
    max-width: 300px;
  }

  .rank-row {
    grid-template-columns: 44px 78px 1fr;
  }

  .rank-row .small-button {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .rank-cover img {
    width: 78px;
    height: 104px;
  }
}

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

  .brand,
  .footer-brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .page-hero {
    padding: 68px 0 54px;
  }

  .block-pad {
    padding: 54px 0;
  }

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

  .movie-card h2 {
    font-size: 21px;
  }

  .rank-row {
    grid-template-columns: 1fr;
  }

  .row-rank {
    position: absolute;
    margin: 10px;
  }

  .rank-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .rank-row .small-button {
    grid-column: auto;
  }

  .content-main,
  .content-side {
    padding: 22px;
  }
}
