:root {
  color-scheme: light;
  --page-bg: #fff7ed;
  --paper: #ffffff;
  --paper-soft: #fffbeb;
  --ink: #451a03;
  --muted: #92400e;
  --line: #fed7aa;
  --brand: #d97706;
  --brand-deep: #92400e;
  --accent: #f59e0b;
  --shadow: 0 24px 70px rgba(146, 64, 14, 0.16);
  --soft-shadow: 0 14px 34px rgba(146, 64, 14, 0.12);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--page-bg) 48%, #ffedd5 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 237, 213, 0.95), rgba(255, 251, 235, 0.95));
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(146, 64, 14, 0.08);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.03em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-deep);
  transition: color 0.2s ease;
}

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

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.filter-panel input,
.search-panel input {
  border: 1px solid #fdba74;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  outline: 0;
}

.top-search input {
  width: 190px;
  padding: 9px 14px;
}

.top-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  cursor: pointer;
}

.top-search button {
  padding: 9px 14px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff7ed;
}

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

.mobile-panel-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px 0;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand-deep);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #451a03;
}

.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-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(251, 191, 36, 0.35), transparent 30%),
    linear-gradient(90deg, rgba(69, 26, 3, 0.92) 0%, rgba(146, 64, 14, 0.62) 48%, rgba(69, 26, 3, 0.22) 100%);
}

.hero-content {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 56px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-desc {
  margin: 22px 0 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  padding: 7px 12px;
  color: #451a03;
  background: rgba(254, 243, 199, 0.92);
}

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

.primary-btn,
.ghost-btn,
.section-action,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.primary-btn {
  padding: 13px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 15px 30px rgba(180, 83, 9, 0.28);
}

.ghost-btn {
  padding: 12px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  position: relative;
  width: min(360px, 100%);
  justify-self: end;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

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

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

.hero-dot.active {
  background: #fbbf24;
}

.category-band {
  margin-top: -48px;
  position: relative;
  z-index: 8;
}

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

.category-tile {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  background: var(--paper);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 2;
  color: #ffffff;
}

.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile strong {
  font-size: 18px;
}

.category-tile em {
  margin-top: 5px;
  color: #ffedd5;
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.content-section {
  padding: 54px 0 0;
}

.soft-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-action,
.text-link {
  color: var(--brand);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(253, 186, 116, 0.74);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fed7aa;
}

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

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

.score-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
}

.score-pill {
  right: 10px;
  bottom: 10px;
  min-width: 42px;
  height: 28px;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.88);
}

.rank-badge {
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #b45309);
}

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.movie-meta {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-one-line {
  margin: 9px 0 0;
  color: #78350f;
  font-size: 13px;
  line-height: 1.6;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--brand-deep);
  background: #ffedd5;
}

.large-tags span {
  padding: 8px 12px;
}

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

.page-main {
  padding: 30px 0 66px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.page-hero {
  overflow: hidden;
  border-radius: 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at 70% 0%, rgba(251, 191, 36, 0.45), transparent 34%),
    linear-gradient(135deg, #78350f, #b45309 52%, #f59e0b);
  box-shadow: var(--shadow);
}

.small-hero {
  padding: 46px;
}

.small-hero p:last-child {
  max-width: 740px;
  margin: 16px 0 0;
  color: #ffedd5;
  line-height: 1.8;
}

.filter-panel,
.search-panel {
  margin: 28px 0 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
}

.filter-panel input {
  width: 100%;
  padding: 14px 18px;
}

.search-panel {
  display: flex;
  gap: 12px;
}

.search-panel input {
  flex: 1;
  padding: 14px 18px;
}

.search-panel button {
  padding: 0 24px;
}

.search-status {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 800;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.overview-copy h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.overview-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.overview-movies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.player-card,
.detail-copy,
.side-card,
.prev-next {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.player-card {
  overflow: hidden;
  background: #000000;
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.play-circle {
  width: 74px;
  height: 74px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #451a03;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  font-size: 30px;
  text-indent: 4px;
}

.player-layer strong {
  max-width: min(720px, calc(100% - 32px));
  font-size: clamp(20px, 3vw, 34px);
  text-align: center;
}

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

.detail-copy h1 {
  color: var(--ink);
}

.detail-copy h2 {
  margin: 30px 0 10px;
  font-size: 24px;
}

.detail-copy p {
  color: #78350f;
  line-height: 1.9;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--brand-deep);
  background: #ffedd5;
  font-weight: 800;
  font-size: 13px;
}

.side-card {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.side-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.side-card h2 {
  margin: 16px 0 8px;
}

.side-card p {
  color: var(--muted);
  line-height: 1.7;
}

.full-btn {
  width: 100%;
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 16px 18px;
}

.prev-next a {
  color: var(--brand);
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fffbeb, #fed7aa);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding: 42px 0;
}

.footer-brand {
  font-size: 22px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.site-footer p,
.site-footer a,
.copyright {
  color: var(--muted);
  line-height: 1.8;
}

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

.copyright {
  padding: 18px 0 26px;
  border-top: 1px solid rgba(146, 64, 14, 0.14);
  font-size: 14px;
}

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

  .rank-list,
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .side-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero,
  .hero-content {
    min-height: 680px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px 0 86px;
  }

  .hero-poster {
    justify-self: start;
    width: 220px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .rank-list,
  .overview-movies,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .soft-panel,
  .small-hero {
    padding: 26px;
  }
}

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

  .header-inner {
    height: 62px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions,
  .search-panel,
  .prev-next {
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .rank-list,
  .overview-movies,
  .footer-grid,
  .mobile-panel-inner {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    display: grid;
    grid-template-columns: 120px 1fr;
  }

  .movie-card-compact .poster-link img {
    height: 100%;
    aspect-ratio: auto;
  }
}
