:root {
  --gold: #facc15;
  --gold-dark: #eab308;
  --orange: #fb923c;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #e5e7eb;
  --shadow: 0 22px 45px rgba(17, 24, 39, 0.12);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 42%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

button,
a,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--gold) 0%, var(--orange) 48%, var(--gold-dark) 100%);
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.22);
}

.site-header-inner {
  max-width: 1220px;
  margin: 0 auto;
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.brand-text {
  font-size: 25px;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff7cc;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

.mobile-nav.open {
  display: grid;
  gap: 12px;
}

.page-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 20px 76px;
}

.hero-shell {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.7s ease;
}

.hero-slide.active .hero-bg {
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 560px;
  max-width: 720px;
  padding: 82px 64px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker,
.card-badge,
.rank-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--gold);
  color: #111827;
  font-weight: 800;
  font-size: 13px;
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0 0 30px;
  max-width: 680px;
  color: #e5e7eb;
  font-size: clamp(17px, 2.5vw, 22px);
  line-height: 1.75;
}

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

.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #111827;
  background: var(--gold);
  box-shadow: 0 16px 32px rgba(250, 204, 21, 0.28);
}

.btn-primary:hover,
.btn-soft:hover {
  transform: translateY(-2px) scale(1.02);
  background: #fbbf24;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn-soft {
  color: #111827;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.1);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: var(--gold);
}

.section-block {
  margin-top: 62px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.section-head p,
.page-title p,
.detail-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.search-panel {
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(12px);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: #ffffff;
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.16);
}

.filter-row {
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #4b5563;
  background: #f3f4f6;
  cursor: pointer;
  font-weight: 750;
}

.filter-chip.active,
.filter-chip:hover {
  color: #111827;
  background: var(--gold);
}

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

.category-tile {
  min-height: 156px;
  padding: 24px;
  border-radius: 22px;
  color: #111827;
  text-decoration: none;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 45px rgba(217, 119, 6, 0.18);
}

.category-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: #6b4f19;
  line-height: 1.65;
  font-size: 14px;
}

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

.movie-card {
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(17, 24, 39, 0.14);
}

.movie-card[hidden] {
  display: none;
}

.movie-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover img,
.horizontal-card:hover img,
.related-card:hover img {
  transform: scale(1.08);
}

.card-badge,
.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
}

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: rgba(250, 204, 21, 0.95);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

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

.movie-card-body h2,
.horizontal-card h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
  color: #111827;
}

.movie-card-body p,
.horizontal-card p {
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.65;
  font-size: 14px;
}

.movie-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
}

.carousel-lane {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 2px 22px;
  scroll-snap-type: x proximity;
}

.horizontal-card {
  flex: 0 0 330px;
  color: inherit;
  text-decoration: none;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  scroll-snap-align: start;
}

.horizontal-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.horizontal-poster span {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--gold);
  color: #111827;
  font-size: 12px;
  font-weight: 850;
}

.horizontal-card > div:last-child {
  padding: 18px;
}

.horizontal-card div:last-child div {
  color: #6b7280;
  font-size: 13px;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 54px 116px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
  transition: transform 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
}

.ranking-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: var(--gold);
  font-weight: 950;
}

.ranking-item img {
  width: 116px;
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-item h2,
.ranking-item h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
}

.ranking-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ranking-heat {
  color: #b45309;
  font-weight: 900;
  white-space: nowrap;
}

.breadcrumb {
  margin-bottom: 22px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #b45309;
  text-decoration: none;
  font-weight: 800;
}

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

.detail-card,
.related-panel,
.info-panel {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.09);
  overflow: hidden;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
  cursor: pointer;
}

.player-overlay[hidden] {
  display: none;
}

.player-play {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-size: 36px;
}

.player-overlay span:last-child {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 900;
}

.detail-content {
  padding: 28px;
}

.detail-title h1 {
  margin-bottom: 12px;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 13px;
  color: #374151;
  background: #f3f4f6;
  font-size: 14px;
  font-weight: 750;
}

.detail-body h2,
.info-panel h2,
.related-panel h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.detail-body p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.detail-one-line {
  font-weight: 850;
  color: #111827 !important;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.related-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.related-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: #f9fafb;
}

.related-card img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.5s ease;
}

.related-card strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  line-height: 1.4;
}

.related-card em {
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
}

.info-panel {
  margin-top: 30px;
  padding: 28px;
}

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

.info-grid div {
  padding: 18px;
  border-radius: 18px;
  background: #f9fafb;
}

.info-grid strong {
  display: block;
  color: #111827;
  margin-bottom: 6px;
}

.info-grid span {
  color: #6b7280;
}

.site-footer {
  color: #e5e7eb;
  background: linear-gradient(180deg, #111827 0%, #000000 100%);
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 44px 20px 28px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.footer-brand span {
  color: var(--gold);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 18px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: #9ca3af;
  line-height: 1.75;
  text-decoration: none;
}

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

.site-footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: #9ca3af;
}

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

  .mobile-toggle {
    display: block;
  }

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

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

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

  .related-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .site-header-inner {
    height: 62px;
    padding: 0 14px;
  }

  .brand-text {
    font-size: 20px;
  }

  .page-main {
    padding: 22px 14px 58px;
  }

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

  .hero-content {
    padding: 74px 24px 82px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35));
  }

  .hero-control {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .hero-control.prev {
    left: 20px;
  }

  .hero-control.next {
    right: 20px;
  }

  .hero-dots {
    bottom: 34px;
  }

  .section-head,
  .search-row {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .ranking-item {
    grid-template-columns: 42px 92px 1fr;
  }

  .ranking-heat {
    grid-column: 3;
  }

  .ranking-item img {
    width: 92px;
    height: 66px;
  }

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

@media (max-width: 520px) {
  .category-grid,
  .movie-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    flex-basis: 86vw;
  }

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

  .ranking-num,
  .ranking-item img,
  .ranking-heat {
    grid-column: auto;
  }

  .ranking-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
