:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fffbeb;
  --line: #f3d8ad;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fef3c7;
  --shadow: 0 24px 70px rgba(146, 64, 14, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.24), transparent 36rem),
    linear-gradient(180deg, #fffaf2 0%, var(--bg) 44%, #fff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 12px 38px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark,
.footer-brand span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.32);
}

.brand-copy strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.05;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  color: #4b5563;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.24);
}

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

.header-search {
  min-width: 270px;
}

.header-search input,
.mobile-search input,
.page-filter input,
.search-band input,
.inline-filter {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 13px;
  outline: none;
  transition: 0.2s ease;
}

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

.header-search button,
.mobile-search button,
.page-filter button,
.search-band button {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  cursor: pointer;
  background: var(--brand);
  border: 0;
  border-radius: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 0;
  border-radius: 12px;
  font-size: 1.4rem;
}

.mobile-panel {
  border-top: 1px solid rgba(217, 119, 6, 0.15);
}

.mobile-panel-inner {
  padding: 14px 0 18px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hero-section {
  position: relative;
  padding: 118px 0 58px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 20%, rgba(251, 146, 60, 0.28), transparent 24rem),
    radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.2), transparent 30rem);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
}

.hero-slider {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.08fr 0.72fr;
  gap: 26px;
  align-items: center;
  min-height: 600px;
  padding: 54px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.48)),
    var(--hero-poster) center / cover;
  filter: saturate(1.08);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero-tags,
.detail-meta,
.tag-row,
.detail-tags,
.hero-actions,
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span,
.detail-tags a,
.chip-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: var(--brand-dark);
  background: #fff7ed;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 15px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.34);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(217, 119, 6, 0.4);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  align-self: center;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.36);
}

.hero-poster span,
.poster-play,
.play-cover span {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.hero-poster span {
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
}

.hero-controls {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button {
  width: 38px;
  height: 38px;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-dot {
  width: 9px !important;
  height: 9px !important;
  padding: 0;
  background: rgba(255, 255, 255, 0.4) !important;
}

.hero-dot.active {
  width: 28px !important;
  border-radius: 999px !important;
  background: #fff !important;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.side-panel,
.search-band,
.content-card,
.category-card,
.category-overview-card,
.rank-panel,
.page-hero {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.side-panel {
  padding: 26px;
}

.side-panel h2,
.section-heading h2,
.page-hero h1,
.content-card h2,
.rank-panel h2 {
  margin: 0;
  color: #111827;
  letter-spacing: -0.03em;
}

.side-panel p,
.page-hero p,
.content-card p,
.category-card span,
.category-overview-main span,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.picks-panel {
  align-self: stretch;
}

.mini-pick-list {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}

.mini-pick {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #fff7ed;
  border-radius: 16px;
  transition: 0.2s ease;
}

.mini-pick:hover {
  transform: translateX(4px);
}

.mini-pick img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.mini-pick strong,
.mini-pick em {
  display: block;
}

.mini-pick strong {
  margin-bottom: 6px;
}

.mini-pick em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.search-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
  padding: 24px;
}

.search-band h2 {
  margin: 0;
}

.section-block {
  padding: 64px 0 0;
}

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

.section-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.section-heading > a,
.compact-heading > a {
  color: var(--brand-dark);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(146, 64, 14, 0.11);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 54px rgba(146, 64, 14, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.12;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fff7ed);
}

.poster-link img,
.hero-poster img,
.detail-poster-card img {
  transition: transform 0.35s ease;
}

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

.poster-play {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.24s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #b45309);
  border-radius: 12px;
}

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

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.movie-card h3 {
  min-height: 3.1em;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
}

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

.movie-card p {
  min-height: 4.7em;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.tag-row span {
  min-height: 26px;
  padding: 0 9px;
  font-size: 0.72rem;
}

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

.category-card,
.category-overview-main {
  display: block;
  padding: 24px;
  transition: 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
}

.category-card strong,
.category-overview-main strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 1.16rem;
}

.category-overview-card {
  overflow: hidden;
}

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 22px;
}

.category-sample-links a {
  padding: 8px 10px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.rank-list,
.ranking-table {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.rank-list li + li,
.ranking-table li + li {
  border-top: 1px solid rgba(217, 119, 6, 0.12);
}

.rank-list a,
.ranking-table a {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
}

.rank-list b,
.ranking-table b {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--brand);
  border-radius: 10px;
}

.rank-list em,
.ranking-table em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.page-main {
  padding-top: 104px;
}

.page-hero {
  padding: 42px;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.soft-hero,
.category-hero,
.ranking-hero {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 24rem),
    rgba(255, 255, 255, 0.92);
}

.page-filter {
  margin-top: 24px;
  max-width: 680px;
}

.inline-filter {
  max-width: 280px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 12px;
  font-weight: 900;
}

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

.detail-hero {
  position: relative;
  margin-top: -104px;
  padding: 148px 0 62px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72)),
    var(--detail-poster) center / cover;
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 70% 10%, rgba(245, 158, 11, 0.32), transparent 26rem);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster-card {
  overflow: hidden;
  aspect-ratio: 3 / 4.15;
  border: 8px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.36);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.06;
}

.detail-one-line {
  max-width: 820px;
  margin: 18px 0 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
  line-height: 1.8;
}

.detail-meta {
  margin-bottom: 16px;
}

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

.player-section {
  padding-top: 44px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #050505;
  border-radius: 26px;
  box-shadow: 0 24px 62px rgba(17, 24, 39, 0.26);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.45));
  border: 0;
}

.play-cover span {
  position: static;
  width: 74px;
  height: 74px;
  font-size: 1.4rem;
}

.player-shell.is-playing .play-cover {
  display: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding-top: 34px;
}

.content-card {
  padding: 28px;
}

.content-card p {
  margin-bottom: 0;
  font-size: 1rem;
}

.ranking-table {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(146, 64, 14, 0.1);
}

.ranking-table a {
  padding: 16px 20px;
}

.site-footer {
  margin-top: 74px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #111827, #1f2937 58%, #78350f);
}

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

.footer-brand {
  color: #fff;
  font-size: 1.2rem;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

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

.footer-links a {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.footer-links a:hover {
  background: rgba(245, 158, 11, 0.34);
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-card][hidden] {
  display: none;
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-layout,
  .split-block,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-side,
  .rank-panel {
    position: static;
  }

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

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

  .hero-section {
    padding-top: 96px;
  }

  .hero-slider,
  .hero-slide {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero-poster {
    max-width: 240px;
    margin: 0 auto;
  }

  .hero-controls {
    right: 22px;
    bottom: 22px;
  }

  .search-band,
  .footer-grid,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

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

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

  .inline-filter {
    max-width: none;
  }

  .detail-poster-card {
    max-width: 220px;
  }
}

@media (max-width: 520px) {
  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy small {
    display: none;
  }

  .hero-copy h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 2.1rem;
  }

  .hero-slider,
  .hero-slide {
    min-height: 660px;
  }

  .movie-grid,
  .movie-grid.small-grid,
  .feature-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .rank-list a,
  .ranking-table a {
    grid-template-columns: 34px 1fr;
  }

  .rank-list em,
  .ranking-table em {
    grid-column: 2;
  }

  .page-hero,
  .side-panel,
  .content-card {
    padding: 22px;
  }
}
