:root {
  --bg: #f9fafb;
  --paper: #ffffff;
  --paper-soft: #fff7ed;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #d97706;
  --brand-dark: #b45309;
  --brand-soft: #fef3c7;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 40%, #f9fafb 100%);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(18px);
}

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

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

.brand-name {
  white-space: nowrap;
  font-size: 20px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(217, 119, 6, 0.25);
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 650;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--brand);
  background: #fff7ed;
}

.header-search,
.mobile-search,
.local-filter,
.search-band form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.local-filter input,
.search-band input {
  width: 230px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  transition: 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.local-filter input:focus,
.search-band input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.header-search button,
.mobile-search button,
.local-filter button,
.search-band button,
.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 750;
  cursor: pointer;
  transition: 0.22s ease;
  box-shadow: 0 12px 25px rgba(217, 119, 6, 0.20);
}

.header-search button:hover,
.mobile-search button:hover,
.local-filter button:hover,
.search-band button:hover,
.primary-button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: #f3f4f6;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.mobile-link {
  width: 100%;
  margin-bottom: 6px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: #111827;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.58) 44%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.13);
  color: #d97706;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.16);
}

.hero-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.ghost-button {
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  transition: 0.22s ease;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.20);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 36px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.22s ease;
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: 0.22s ease;
}

.hero-dot.is-active {
  width: 30px;
  background: #f59e0b;
}

.search-band {
  max-width: 1180px;
  margin: -54px auto 44px;
  position: relative;
  z-index: 10;
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.search-band h2 {
  margin: 10px 0 0;
  font-size: 28px;
}

.search-band input {
  width: min(48vw, 440px);
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.content-section {
  margin-bottom: 48px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.035em;
}

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

.section-head a,
.text-link {
  color: var(--brand);
  font-weight: 800;
}

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

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

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

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

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  transition: 0.25s ease;
}

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.poster-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  min-height: 48px;
  font-size: 17px;
  line-height: 1.4;
}

.card-body h3 a:hover {
  color: var(--brand);
}

.card-meta {
  color: var(--muted);
  font-size: 13px;
  gap: 8px;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #d1d5db;
}

.card-body p {
  min-height: 46px;
  margin: 10px 0 12px;
  color: #5b6472;
  font-size: 14px;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span,
.detail-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 650;
}

.amber-panel {
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.editor-panel {
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f5f3ff, #fdf2f8, #fff7ed);
}

.horizontal-panel {
  overflow: hidden;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 260px);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 22px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroll .movie-card {
  scroll-snap-align: start;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 12%, rgba(0, 0, 0, 0.78) 100%);
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  z-index: 2;
}

.category-tile strong {
  bottom: 46px;
  font-size: 22px;
}

.category-tile em {
  bottom: 20px;
  color: #fde68a;
  font-style: normal;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.ranking-card,
.side-card,
.detail-card,
.category-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-card,
.side-card {
  padding: 24px;
  position: sticky;
  top: 96px;
}

.small-head h2 {
  font-size: 24px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  background: #ffffff;
  transition: 0.22s ease;
}

.rank-item:hover {
  background: #f9fafb;
}

.rank-item img {
  width: 64px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  transition: 0.35s ease;
}

.rank-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fffbeb;
  color: var(--brand);
  font-weight: 850;
}

.rank-copy {
  min-width: 0;
}

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

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.sub-hero {
  padding: 72px 24px 54px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.20), transparent 30%),
    linear-gradient(135deg, #ffffff, #fff7ed);
}

.sub-hero h1 {
  margin: 16px auto 12px;
  max-width: 920px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 18px;
}

.local-filter {
  justify-content: center;
  margin-top: 18px;
}

.local-filter input {
  width: min(640px, 70vw);
}

.filter-count {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 750;
}

.category-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 36px;
}

.category-card {
  overflow: hidden;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 210px;
  overflow: hidden;
  background: #111827;
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 12px 0 8px;
  font-size: 26px;
}

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

.detail-shell {
  padding-top: 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-video,
.player-cover,
.player-cover img,
.player-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-video {
  z-index: 1;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  z-index: 3;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  object-fit: cover;
}

.player-cover-shade {
  background:
    radial-gradient(circle at center, rgba(217, 119, 6, 0.18), transparent 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.22));
}

.player-start-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 34px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

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

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.detail-card .detail-meta span {
  background: #fff7ed;
  color: #b45309;
}

.one-line {
  margin: 22px 0;
  padding: 18px;
  border-radius: 18px;
  background: #fffbeb;
  color: #374151;
  font-size: 18px;
  font-weight: 700;
}

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

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

.detail-card p {
  color: #4b5563;
  font-size: 16px;
}

.review-box {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 52px 24px 22px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
}

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

.site-footer h3 {
  color: #ffffff;
  margin: 0 0 12px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

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

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

.footer-bottom {
  max-width: 1280px;
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 14px;
}

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

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }

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

  .split-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .ranking-card,
  .side-card {
    position: static;
  }
}

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

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

  .hero-carousel {
    height: 66vh;
    min-height: 500px;
  }

  .hero-arrow {
    display: none;
  }

  .search-band {
    flex-direction: column;
    align-items: stretch;
    margin: -36px 18px 34px;
  }

  .search-band form,
  .local-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .search-band input,
  .local-filter input {
    width: 100%;
  }

  .grid-3,
  .grid-4,
  .grid-5,
  .category-grid,
  .category-list-grid,
  .footer-grid,
  .rank-list-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

  .hero-carousel {
    min-height: 560px;
  }

  .hero-content {
    padding: 0 18px;
    align-items: flex-end;
    padding-bottom: 84px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-meta span {
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .page-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .grid-3,
  .grid-4,
  .grid-5,
  .category-grid,
  .category-list-grid,
  .footer-grid,
  .rank-list-wide {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 18px;
  }

  .category-covers {
    height: 170px;
  }

  .detail-card {
    padding: 20px;
  }

  .player-start-icon {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
}
