:root {
  --bg: #fff8ec;
  --paper: #ffffff;
  --ink: #3f2a13;
  --muted: #8a6334;
  --line: rgba(146, 99, 31, 0.18);
  --accent: #d97706;
  --accent-dark: #92400e;
  --accent-soft: #fef3c7;
  --shadow: 0 24px 70px rgba(120, 53, 15, 0.16);
  --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", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.38), transparent 32rem),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 48%, #fff7e6 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--accent-dark);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 12px 25px rgba(217, 119, 6, 0.32);
}

.brand-name {
  font-size: 18px;
}

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

.desktop-nav a,
.mobile-panel a,
.footer-links a {
  font-size: 15px;
  font-weight: 700;
  color: #7c4a12;
  transition: color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-panel input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

.header-search input {
  width: 210px;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(217, 119, 6, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.header-search button,
.mobile-panel button,
.primary-btn,
.ghost-btn,
.section-more {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

.header-search button,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.27);
}

.ghost-btn,
.section-more {
  color: #92400e;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 119, 6, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--accent-dark);
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
  display: grid;
  gap: 14px;
}

.mobile-panel form {
  display: flex;
  gap: 10px;
}

.hero-shell {
  position: relative;
  max-width: 1280px;
  min-height: 620px;
  margin: 28px auto 0;
  border-radius: 36px;
  overflow: hidden;
  background: #2b1608;
  box-shadow: var(--shadow);
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.14);
  transform: scale(1.06);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(69, 26, 3, 0.94), rgba(120, 53, 15, 0.72), rgba(15, 23, 42, 0.42)),
    radial-gradient(circle at 78% 25%, rgba(251, 191, 36, 0.34), transparent 22rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 58px;
  padding: 68px;
}

.hero-copy {
  color: #fff;
  max-width: 710px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fcd34d;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 5.8vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 650px;
  color: #ffedd5;
  font-size: 19px;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.tag-row span {
  background: #fff7ed;
  color: #9a3412;
  border-color: rgba(217, 119, 6, 0.18);
}

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

.hero-poster {
  position: relative;
  min-height: 470px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 68px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-controls button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 22px;
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  padding: 0 !important;
  opacity: 0.5;
}

.hero-dot.is-active {
  width: 28px !important;
  opacity: 1;
  background: #fbbf24;
}

.content-section,
.category-strip,
.category-overview-grid,
.detail-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px 0;
}

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

.section-heading h2,
.story-card h2 {
  margin: 6px 0 8px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #5f3108;
}

.section-heading p,
.story-card p,
.page-hero p,
.category-overview-card p,
.rank-text p,
.movie-card p {
  color: var(--muted);
}

.compact-heading {
  align-items: center;
}

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

.category-tile {
  position: relative;
  height: 160px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
  box-shadow: 0 16px 40px rgba(120, 53, 15, 0.16);
}

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

.category-tile::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(69, 26, 3, 0.88), rgba(69, 26, 3, 0.18));
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-weight: 900;
  font-size: 18px;
}

.category-tile small {
  margin-top: 5px;
  color: #ffedd5;
}

.category-tile:hover img,
.category-overview-card:hover img,
.movie-card:hover img,
.rank-item:hover img {
  transform: scale(1.08);
}

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

.movie-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.11);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(120, 53, 15, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #fef3c7;
}

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

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(146, 64, 14, 0.88);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
}

.card-meta a:hover,
.movie-card h3 a:hover,
.rank-text h3 a:hover {
  color: var(--accent);
}

.movie-card h3,
.rank-text h3 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.3;
  color: #4a2507;
}

.movie-card p {
  margin: 0 0 12px;
  min-height: 52px;
  font-size: 14px;
}

.movie-card.compact p {
  min-height: auto;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(217, 119, 6, 0.14);
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.1);
}

.rank-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #fef3c7;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.page-hero {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 70px 60px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(251, 191, 36, 0.36), transparent 22rem),
    linear-gradient(135deg, #7c2d12, #451a03);
  box-shadow: var(--shadow);
}

.slim-hero {
  min-height: 260px;
}

.category-hero,
.rank-hero {
  min-height: 310px;
}

.page-hero p {
  max-width: 760px;
  color: #ffedd5;
  font-size: 18px;
}

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

.category-overview-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 28px;
  padding: 34px;
  color: #fff;
  box-shadow: 0 18px 48px rgba(120, 53, 15, 0.14);
}

.category-overview-card div {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.category-overview-card span,
.category-overview-card strong {
  color: #fcd34d;
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 8px 0;
  font-size: 34px;
}

.category-overview-card p {
  color: #ffedd5;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar input {
  min-width: min(420px, 100%);
}

.search-wide input {
  flex: 1;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 32px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #2b1608;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.12);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(69, 26, 3, 0.78), rgba(69, 26, 3, 0.36));
}

.detail-layout {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 560px;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 52px;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

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

.crumbs {
  display: flex;
  gap: 10px;
  color: #fcd34d;
  font-weight: 800;
}

.detail-meta {
  color: #fcd34d;
  font-weight: 800;
}

.detail-one {
  max-width: 760px;
  color: #ffedd5;
  font-size: 18px;
}

.wide-tags {
  margin: 26px 0 30px;
}

.player-section {
  max-width: 1080px;
  margin: 54px auto 0;
  padding: 0 24px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.52));
  cursor: pointer;
}

.play-cover.is-hidden {
  display: none;
}

.play-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

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

.story-card {
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(217, 119, 6, 0.14);
  box-shadow: 0 18px 48px rgba(120, 53, 15, 0.1);
}

.site-footer {
  margin-top: 80px;
  padding: 38px 24px;
  color: #7c4a12;
  background: rgba(255, 251, 235, 0.84);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-poster {
    display: none;
  }

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

  .rank-list,
  .category-overview-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 16px;
  }

  .hero-shell {
    min-height: 560px;
    margin: 16px 12px 0;
    border-radius: 26px;
  }

  .hero-content {
    min-height: 560px;
    padding: 34px 24px 80px;
  }

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

  .hero-controls {
    left: 24px;
    bottom: 24px;
  }

  .content-section,
  .category-strip,
  .category-overview-grid,
  .detail-content {
    padding: 46px 14px 0;
  }

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

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

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    font-size: 13px;
  }

  .rank-item {
    grid-template-columns: 92px 1fr;
  }

  .rank-text p {
    display: none;
  }

  .page-hero {
    margin: 16px 12px 0;
    padding: 42px 24px;
    border-radius: 26px;
  }

  .category-overview-card {
    min-height: 230px;
    padding: 24px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 46px 18px;
  }

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

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

  .play-icon {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .mobile-panel form,
  .filter-bar {
    flex-direction: column;
  }
}
