* {
  box-sizing: border-box;
}

:root {
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --orange: #f97316;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --bg: #fff7ed;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.14);
  --soft-shadow: 0 10px 32px rgba(146, 64, 14, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.26);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #374151;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--amber);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #374151;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 650;
  color: #374151;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fff7ed 45%, #fde68a);
}

.hero-slide {
  display: none;
  min-height: 620px;
  background-image: linear-gradient(90deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 247, 237, 0.85) 42%, rgba(255, 247, 237, 0.4) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  display: block;
}

.hero-inner {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 54px;
  padding: 72px 0;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy .hero-subtitle {
  margin-top: -8px;
  color: #b45309;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 26px;
  color: #4b5563;
  font-size: 19px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 14px;
  color: #92400e;
  background: rgba(254, 243, 199, 0.84);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

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

.hero-tags {
  margin-bottom: 26px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.22);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.24);
}

.ghost-btn {
  color: #b45309;
  background: #ffffff;
  border: 2px solid #f59e0b;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(146, 64, 14, 0.18);
}

.hero-search,
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-search {
  max-width: 560px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.24);
  outline: none;
  background: #ffffff;
  color: var(--ink);
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 0 14px;
  background: transparent;
}

.hero-search button {
  border: none;
  border-radius: 999px;
  padding: 11px 20px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  font-weight: 800;
  cursor: pointer;
}

.hero-poster,
.detail-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}

.hero-poster::after,
.detail-poster::after,
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 40%, rgba(17, 24, 39, 0.52) 100%);
  pointer-events: none;
}

.hero-poster img,
.detail-poster img,
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: rgba(146, 64, 14, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.feature-strip {
  background: #ffffff;
  border-bottom: 1px solid #ffedd5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 0;
}

.feature-grid div {
  text-align: center;
  padding: 18px;
  border-radius: 22px;
  background: #fff7ed;
}

.feature-grid strong {
  display: block;
  color: #92400e;
  font-size: 18px;
  margin-bottom: 4px;
}

.feature-grid span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 78px 0;
}

.alt-section {
  background: linear-gradient(180deg, #fffbeb, #ffffff);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-head.left-head {
  margin-left: 0;
  text-align: left;
}

.section-head > span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--amber);
  font-weight: 900;
}

.section-head h2,
.panel-title h2,
.content-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

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

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

.movie-card {
  position: relative;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 25% 20%, #fde68a, transparent 34%), linear-gradient(135deg, #f59e0b, #ea580c);
}

.poster-empty {
  display: grid;
  place-items: center;
}

.type-badge,
.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 850;
  font-size: 13px;
}

.type-badge {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  background: rgba(217, 119, 6, 0.92);
}

.score-badge {
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  background: rgba(17, 24, 39, 0.78);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 10px 20px rgba(146, 64, 14, 0.22);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #92400e;
  font-size: 13px;
  font-weight: 750;
}

.tag-row {
  gap: 7px;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
  color: #9a3412;
  background: #fff7ed;
}

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

.category-card,
.category-overview-card {
  position: relative;
  display: block;
  min-height: 180px;
  padding: 24px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 46px rgba(146, 64, 14, 0.16);
}

.category-card span,
.category-overview-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 21px;
  font-weight: 900;
}

.category-card p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
}

.category-overview-card {
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.15), rgba(17, 24, 39, 0.82)), var(--cover-image);
  background-size: cover;
  background-position: center;
}

.category-overview-card span,
.category-overview-card h2,
.category-overview-card p {
  color: #ffffff;
}

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

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, #78350f, #451a03);
  color: #fffbeb;
  box-shadow: var(--shadow);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title h2 {
  color: #ffffff;
  font-size: 28px;
}

.panel-title a {
  color: #fde68a;
  font-weight: 800;
  font-size: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
}

.ranking-row span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  font-weight: 900;
}

.ranking-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-row em {
  color: #fbbf24;
  font-style: normal;
  font-weight: 900;
}

.sub-hero {
  padding: 78px 0 70px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #ffffff;
}

.sub-hero h1 {
  max-width: 860px;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.sub-hero .eyebrow {
  color: #78350f;
  background: rgba(255, 251, 235, 0.9);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

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

.filter-bar {
  margin-top: 26px;
  max-width: 880px;
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.12);
}

.multi-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
}

.empty-state {
  display: none;
  padding: 42px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(245, 158, 11, 0.38);
  border-radius: 24px;
  background: #fff7ed;
}

.detail-hero {
  position: relative;
  padding: 48px 0 72px;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.62)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.detail-copy h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.lead-text {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.detail-tags span,
.large-tags span {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.large-tags {
  margin-bottom: 28px;
}

.player-section {
  background: #111827;
  color: #ffffff;
}

.player-section .section-head h2,
.player-section .section-head p {
  color: #ffffff;
}

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

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-action {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: none;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.28), rgba(17, 24, 39, 0.64));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-action span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 46px rgba(217, 119, 6, 0.42);
  font-size: 34px;
}

.player-action strong {
  font-size: 20px;
  letter-spacing: 0.05em;
}

.player-wrap.playing .player-action {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-card {
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.compact-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.compact-thumb {
  border-radius: 14px;
}

.compact-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 850;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  color: #fffbeb;
  background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 52px 0;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fde68a;
  font-size: 20px;
}

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

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

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

.site-footer a {
  color: #fef3c7;
}

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

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: #fde68a;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
}

@media (max-width: 1024px) {
  .hero-inner,
  .detail-grid,
  .split-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 360px;
    margin: 0 auto;
  }

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

  .ranking-panel {
    position: static;
  }
}

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

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

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

  .brand {
    font-size: 20px;
  }

  .hero-inner,
  .hero-slide {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0 72px;
    gap: 30px;
  }

  .hero-search,
  .hero-actions,
  .detail-actions,
  .filter-bar,
  .multi-filter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-search {
    border-radius: 24px;
  }

  .hero-search input {
    min-height: 44px;
  }

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

  .section {
    padding: 54px 0;
  }

  .sub-hero {
    padding: 56px 0;
  }

  .detail-grid {
    gap: 28px;
  }

  .player-action span {
    width: 66px;
    height: 66px;
    font-size: 26px;
  }
}
