:root {
  --page-bg: #fff7ed;
  --panel: #ffffff;
  --panel-soft: #fffbeb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.16);
  --brand: #d97706;
  --brand-deep: #c2410c;
  --brand-soft: #fef3c7;
  --shadow: 0 22px 55px rgba(120, 53, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(251, 191, 36, 0.24);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(120, 53, 15, 0.09);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
}

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

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

.site-nav a {
  color: #374151;
  font-weight: 700;
  font-size: 0.96rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.site-search {
  width: min(300px, 28vw);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 5px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  background: #fff;
}

.site-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 9px 12px;
  background: transparent;
  color: var(--ink);
}

.site-search button,
.menu-toggle,
.btn {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.site-search button {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(217, 119, 6, 0.16);
  background: #fff;
}

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

.mobile-panel-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  padding: 10px 2px;
  color: #374151;
  font-weight: 800;
}

main {
  overflow: hidden;
}

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

.hero {
  position: relative;
  min-height: 640px;
  color: #fff;
  background: #111827;
}

.hero-rail {
  position: relative;
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(245, 158, 11, 0.24), transparent 26rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.62) 52%, rgba(17, 24, 39, 0.12));
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), transparent);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 150px;
}

.kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.kicker span,
.tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #92400e;
  background: #fef3c7;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 670px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.8;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 16px 35px rgba(234, 88, 12, 0.28);
}

.btn-soft {
  color: #fef3c7;
  border: 1px solid rgba(254, 243, 199, 0.36);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(10px);
}

.btn-light {
  color: #92400e;
  background: #fff7ed;
}

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

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 58px;
  background: #fbbf24;
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.section {
  padding: 68px 0;
}

.section-soft {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

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

.section-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: var(--shadow);
}

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.32), transparent 12rem);
}

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

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

.poster-badge {
  position: absolute;
  z-index: 3;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 8px 16px rgba(146, 64, 14, 0.25);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
}

.movie-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

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

.card-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.tag {
  min-height: 24px;
  padding: 4px 9px;
  font-size: 0.75rem;
  color: #9a3412;
  background: #ffedd5;
}

.feature-band {
  border-radius: 34px;
  padding: clamp(26px, 5vw, 52px);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.34), transparent 24rem),
    linear-gradient(135deg, #fff7ed, #fef3c7);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.12);
}

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

.category-card {
  min-height: 154px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(120, 53, 15, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  color: #fff;
  font-size: 1.55rem;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 86px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
}

.rank-num {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 1000;
  font-size: 1.15rem;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.rank-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #fde68a, #fed7aa);
}

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

.rank-body h2,
.rank-body h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.rank-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  padding: 76px 0 42px;
  background:
    radial-gradient(circle at 75% 20%, rgba(251, 191, 36, 0.3), transparent 26rem),
    linear-gradient(135deg, #fff7ed, #fff);
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 830px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.toolbar {
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  display: flex;
  gap: 12px;
  align-items: center;
}

.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 14px;
  padding: 10px 13px;
  outline: 0;
  color: var(--ink);
  background: #fffaf0;
}

.detail-hero {
  padding: 58px 0;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 28rem),
    linear-gradient(135deg, #111827, #3b2415 54%, #7c2d12);
  color: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 330px) 1fr;
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(254, 243, 199, 0.25);
  border-radius: 30px;
  background: linear-gradient(135deg, #fde68a, #fed7aa);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-info p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.9;
  font-size: 1.08rem;
}

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

.watch-panel {
  padding: 60px 0;
  background: #111827;
  color: #fff;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

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

.player-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.24), transparent 18rem),
    rgba(0, 0, 0, 0.38);
  transition: opacity 0.22s ease;
}

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

.play-core {
  width: min(146px, 34vw);
  height: min(146px, 34vw);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 24px 48px rgba(234, 88, 12, 0.32);
  font-weight: 1000;
  font-size: 1.1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.content-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.08);
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 1.65rem;
}

.content-card p {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.95;
  font-size: 1.02rem;
}

.info-table {
  display: grid;
  gap: 12px;
}

.info-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(217, 119, 6, 0.12);
  color: var(--muted);
}

.info-row strong {
  color: var(--ink);
}

.site-footer {
  padding: 44px 0;
  color: #e5e7eb;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: #fbbf24;
}

.site-footer p,
.site-footer a {
  color: #d1d5db;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.empty-state {
  display: none;
  padding: 26px;
  border-radius: 22px;
  color: var(--muted);
  background: #fff;
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1080px) {
  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-nav,
  .site-search {
    display: none;
  }

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

  .mobile-panel .site-search {
    display: flex;
    width: 100%;
    margin: 0;
  }

  .hero,
  .hero-rail {
    min-height: 590px;
  }

  .hero-content {
    padding: 66px 0 130px;
  }

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

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

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

  .detail-cover {
    max-width: 310px;
  }

  .rank-item {
    grid-template-columns: 50px 68px 1fr;
    gap: 12px;
  }

  .rank-num {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .container,
  .header-inner,
  .mobile-panel-inner,
  .hero-content,
  .hero-controls {
    width: min(100% - 24px, 1180px);
  }

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

  .hero h1 {
    font-size: 2.55rem;
  }

  .section {
    padding: 48px 0;
  }

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

  .toolbar {
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-thumb {
    width: 96px;
  }
}
