* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-900: #7f1d1d;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-700: #44403c;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
  --shadow-soft: 0 10px 25px rgba(120, 53, 15, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, var(--amber-50) 0%, var(--stone-100) 100%);
  color: var(--stone-900);
  -webkit-font-smoothing: antialiased;
}

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.95);
  border-bottom: 1px solid var(--amber-200);
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(12px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--amber-900);
  letter-spacing: -0.02em;
}

.brand-text {
  font-size: 26px;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--red-700));
  box-shadow: 0 10px 20px rgba(185, 28, 28, 0.22);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.nav-link {
  color: var(--amber-900);
  font-weight: 600;
  padding: 10px 6px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-700);
  background: rgba(253, 230, 138, 0.55);
}

.header-search,
.mobile-search,
.filter-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.filter-box input,
.filter-box select {
  border: 2px solid var(--amber-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--stone-900);
  outline: none;
  padding: 10px 16px;
  min-width: 0;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-box input:focus,
.filter-box select:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.header-search button,
.mobile-search button,
.filter-box button,
.primary-btn {
  border: 0;
  border-radius: 999px;
  background: var(--amber-600);
  color: var(--white);
  font-weight: 700;
  padding: 11px 20px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.filter-box button:hover,
.primary-btn:hover {
  background: var(--amber-700);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--amber-100);
  color: var(--amber-900);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-search {
  margin-bottom: 16px;
}

.mobile-search input {
  flex: 1;
}

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

.mobile-link {
  padding: 12px 14px;
  color: var(--amber-900);
  font-weight: 700;
  border-radius: 14px;
  background: rgba(253, 230, 138, 0.45);
}

.mobile-link.is-active,
.mobile-link:hover {
  background: var(--amber-200);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #111;
}

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

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

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.46) 44%, rgba(0, 0, 0, 0.14) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
  padding: 0 0 72px;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--amber-100);
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero h1,
.page-hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.hero-desc,
.page-hero p {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--amber-100);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.ghost-btn {
  border-radius: 999px;
  padding: 11px 20px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.36);
  font-size: 42px;
  line-height: 40px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.58);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--amber-300);
}

.intro-strip {
  max-width: 1180px;
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  padding: 22px 28px;
  border: 1px solid rgba(253, 230, 138, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(14px);
}

.intro-strip strong {
  display: block;
  color: var(--red-900);
  font-size: 22px;
}

.intro-strip span {
  color: var(--stone-700);
  line-height: 1.7;
}

.strip-link,
.section-more {
  color: var(--amber-700);
  font-weight: 800;
  white-space: nowrap;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  min-height: 330px;
  padding: 86px 24px;
  color: var(--white);
  background: radial-gradient(circle at 20% 10%, rgba(252, 211, 77, 0.42), transparent 28%), linear-gradient(135deg, var(--red-900), var(--amber-800));
}

.page-hero > div {
  max-width: 1180px;
  margin: 0 auto;
}

.small-hero h1,
.category-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
}

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px 0;
}

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

.section-head h2 {
  margin: 0 0 8px;
  color: var(--amber-900);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.section-head p {
  max-width: 680px;
  margin: 0;
  color: var(--stone-700);
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(120, 53, 15, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--amber-100);
}

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

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

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

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

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card h3 {
  margin: 0 0 10px;
  color: var(--red-900);
  font-size: 19px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card h3 a:hover {
  color: var(--red-700);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

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

.movie-card p {
  margin: 0 0 14px;
  color: var(--stone-700);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

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

.category-tile {
  display: block;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.tile-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
}

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

.category-tile h3 {
  margin: 0 0 8px;
  color: var(--amber-900);
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  color: var(--stone-700);
  line-height: 1.7;
}

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

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

.rank-item a {
  display: grid;
  grid-template-columns: auto 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.rank-no {
  color: var(--amber-700);
  font-weight: 900;
  font-size: 24px;
}

.rank-item img {
  width: 92px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

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

.rank-info strong {
  margin-bottom: 6px;
  color: var(--red-900);
  font-size: 18px;
}

.rank-info em {
  color: var(--stone-700);
  font-style: normal;
  line-height: 1.6;
}

.rank-score {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--red-700);
  font-weight: 900;
}

.breadcrumb {
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--stone-700);
  font-weight: 600;
}

.breadcrumb a {
  color: var(--amber-700);
}

.detail-layout {
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
}

.detail-primary,
.detail-side > div,
.detail-copy {
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #050505;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.play-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.45));
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.9);
  font-size: 34px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

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

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: var(--white);
  font-weight: 700;
}

.detail-copy {
  margin-top: 22px;
  padding: 28px;
}

.detail-copy h1 {
  margin: 0 0 16px;
  color: var(--red-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
}

.detail-copy h2,
.side-rank h2 {
  margin: 28px 0 12px;
  color: var(--amber-900);
  font-size: 24px;
}

.detail-copy p {
  margin: 0;
  color: var(--stone-700);
  line-height: 1.9;
  font-size: 17px;
}

.detail-copy .one-line {
  margin: 0 0 12px;
  color: var(--red-800);
  font-weight: 700;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-900);
  padding: 7px 12px;
  font-weight: 800;
}

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

.poster-panel,
.side-rank {
  padding: 18px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
}

.block-btn {
  display: block;
  text-align: center;
}

.side-rank ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-rank li + li {
  border-top: 1px solid var(--stone-200);
}

.side-rank a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  color: var(--red-900);
  font-weight: 700;
}

.side-rank span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 13px;
}

.search-panel {
  padding-bottom: 70px;
}

.filter-box {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-box input {
  flex: 1;
  min-width: 240px;
}

.filter-box select {
  min-width: 160px;
  border-radius: 14px;
}

.search-status {
  margin-bottom: 18px;
  color: var(--stone-700);
  font-weight: 700;
}

.site-footer {
  margin-top: 84px;
  color: var(--red-50);
  background: var(--red-900);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 14px;
}

.footer-about p,
.site-footer a,
.footer-bottom {
  color: #fecaca;
}

.footer-about p {
  max-width: 600px;
  margin: 0;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 9px;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid rgba(254, 202, 202, 0.2);
  text-align: center;
}

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

  .header-inner {
    justify-content: space-between;
  }

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

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

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

  .brand-text {
    font-size: 21px;
  }

  .hero {
    min-height: 560px;
    height: 76vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-bottom: 78px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-arrow {
    top: auto;
    bottom: 24px;
    width: 42px;
    height: 42px;
    font-size: 34px;
  }

  .hero-prev {
    left: 16px;
  }

  .hero-next {
    right: 16px;
  }

  .intro-strip,
  .section-head,
  .filter-box {
    align-items: stretch;
    flex-direction: column;
  }

  .intro-strip {
    margin: 18px 16px 0;
  }

  .content-section {
    padding: 46px 16px 0;
  }

  .page-hero {
    padding: 58px 16px;
  }

  .movie-grid,
  .rank-list,
  .category-grid,
  .category-grid.wide,
  .footer-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .rank-item a {
    grid-template-columns: auto 74px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .detail-layout,
  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-copy {
    padding: 22px;
  }

  .filter-box input,
  .filter-box select {
    width: 100%;
    min-width: 0;
  }

  .footer-grid {
    padding: 38px 16px;
  }
}
