:root {
  --page-bg: #fffaf0;
  --paper: rgba(255, 255, 255, 0.86);
  --paper-strong: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(245, 158, 11, 0.22);
  --amber: #d97706;
  --amber-strong: #b45309;
  --orange: #ea580c;
  --dark: #111827;
  --shadow: 0 20px 45px rgba(146, 64, 14, 0.12);
  --soft-shadow: 0 10px 28px rgba(146, 64, 14, 0.10);
}

* {
  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(253, 230, 138, 0.45), transparent 34rem),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.30), transparent 30rem),
    linear-gradient(135deg, #ffffff 0%, #fffbeb 45%, #fff7ed 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.94));
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--amber-strong);
  white-space: nowrap;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.25);
}

.brand-text {
  font-size: 1.32rem;
  background: linear-gradient(90deg, #b45309, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--amber-strong);
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--amber-strong);
  background: rgba(245, 158, 11, 0.12);
}

.site-main {
  position: relative;
  z-index: 2;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  color: #ffffff;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-slide.is-active .hero-bg {
  animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.01);
  }
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.90) 0%, rgba(17, 24, 39, 0.60) 42%, rgba(17, 24, 39, 0.16) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.90) 0%, rgba(17, 24, 39, 0.20) 55%, rgba(17, 24, 39, 0.60) 100%);
}

.hero-content {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 88vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 420px;
  align-items: center;
  gap: 48px;
  padding: 112px 0 78px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(252, 211, 77, 0.45);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.35);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-copy p {
  margin: 0;
  max-width: 700px;
  color: rgba(255, 251, 235, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.85;
}

.hero-meta,
.info-row,
.card-meta,
.inline-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta {
  margin: 20px 0 26px;
}

.pill,
.tag,
.rank-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill {
  color: #fffbeb;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(252, 211, 77, 0.36);
}

.tag {
  color: #92400e;
  background: #fef3c7;
}

.rank-tag {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.88);
}

.hero-actions,
.section-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.26);
}

.btn-ghost {
  color: #fff7ed;
  border: 1px solid rgba(255, 237, 213, 0.42);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.btn-soft {
  color: #92400e;
  background: #fef3c7;
}

.hero-panel {
  overflow: hidden;
  border: 1px solid rgba(252, 211, 77, 0.28);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent 50%);
}

.hero-panel-body {
  padding: 22px;
}

.hero-panel-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 900;
}

.hero-panel-body p {
  margin: 0;
  color: rgba(255, 251, 235, 0.78);
  line-height: 1.7;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

.section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0;
}

.section.compact {
  padding: 34px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--amber);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(1.72rem, 3vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: var(--shadow);
}

.movie-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111827;
}

.movie-thumb.tall {
  aspect-ratio: 4 / 5;
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.70), transparent 54%);
  opacity: 0.88;
}

.play-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  font-size: 0.82rem;
  font-weight: 850;
}

.card-score {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  color: #78350f;
  background: rgba(254, 243, 199, 0.96);
  font-size: 0.82rem;
  font-weight: 900;
}

.movie-body {
  padding: 16px;
}

.movie-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-body p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.card-meta {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 650;
}

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

.category-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.22), transparent 8rem),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 1.2rem;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.72;
}

.search-panel,
.filter-panel,
.side-panel,
.detail-card,
.article-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.search-panel {
  padding: 22px;
}

.filter-panel {
  padding: 20px;
  margin-bottom: 24px;
}

.form-row input,
.form-row select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 16px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

.form-row input {
  flex: 1 1 260px;
}

.form-row select {
  flex: 0 1 170px;
}

.form-row input:focus,
.form-row select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.side-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.side-panel h2,
.side-panel h3 {
  margin: 0 0 16px;
  color: #111827;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 251, 235, 0.82);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #ffffff;
  transform: translateX(4px);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
}

.rank-cover {
  width: 84px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 50px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 18%, rgba(251, 191, 36, 0.42), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(255, 247, 237, 0.74));
}

.page-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #92400e;
  font-size: 0.9rem;
  font-weight: 700;
}

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

.page-hero h1 {
  margin: 0;
  max-width: 900px;
  color: #111827;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.page-hero p {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.82;
  font-size: 1.05rem;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  display: block;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.64), rgba(15, 23, 42, 0.12));
  cursor: pointer;
}

.play-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-cover-inner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 237, 213, 0.38);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.94);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  font-weight: 900;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #d97706;
  background: #ffffff;
}

.detail-card {
  overflow: hidden;
}

.detail-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111827;
}

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

.detail-info {
  padding: 20px;
}

.detail-info h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.detail-info dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 9px 12px;
  margin: 0 0 16px;
  color: #374151;
  line-height: 1.55;
}

.detail-info dt {
  color: #92400e;
  font-weight: 800;
}

.detail-info dd {
  margin: 0;
}

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

.article-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 1.45rem;
}

.article-card p {
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.9;
}

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

.footer {
  margin-top: 40px;
  padding: 42px 0;
  color: #fffbeb;
  background: linear-gradient(135deg, #78350f, #9a3412 54%, #111827);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.footer h2,
.footer h3,
.footer p {
  margin-top: 0;
}

.footer p,
.footer a {
  color: rgba(255, 251, 235, 0.78);
}

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

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

.empty-state {
  display: none;
  padding: 26px;
  border-radius: 22px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
}

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

  .hero-panel,
  .side-panel {
    position: relative;
    top: auto;
  }

  .hero-panel {
    max-width: 520px;
  }

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

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

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 251, 235, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    border-radius: 14px;
  }

  .hero-content {
    padding: 96px 0 86px;
    gap: 26px;
  }

  .hero-slider,
  .hero-content {
    min-height: 86vh;
  }

  .hero-panel {
    display: none;
  }

  .section {
    padding: 42px 0;
  }

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

  .movie-grid,
  .movie-grid.small-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .rank-item {
    grid-template-columns: 30px 76px minmax(0, 1fr);
  }

  .rank-cover {
    width: 76px;
    height: 54px;
  }
}

@media (max-width: 520px) {
  .nav-wrap,
  .section,
  .page-hero-inner,
  .footer-inner,
  .hero-content {
    width: min(100% - 24px, 1280px);
  }

  .brand-text {
    font-size: 1.1rem;
  }

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

  .form-row input,
  .form-row select,
  .form-row .btn {
    width: 100%;
    flex-basis: 100%;
  }

  .detail-info dl {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}
