:root {
  --color-yellow: #facc15;
  --color-orange: #f97316;
  --color-dark: #111827;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-light: #f8fafc;
  --color-border: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.10);
  --radius-large: 28px;
  --radius-card: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 30%, #ffffff 100%);
  line-height: 1.65;
}

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

img {
  display: block;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #facc15, #f97316);
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #facc15 0%, #fb923c 48%, #f59e0b 100%);
  box-shadow: 0 10px 30px rgba(180, 83, 9, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #b45309;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 -6px 12px rgba(250, 204, 21, 0.35);
}

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

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

.desktop-nav a,
.mobile-nav a {
  color: #ffffff;
  font-weight: 700;
  padding: 10px 15px;
  border-radius: 999px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.page-top {
  padding: 30px 0 12px;
}

.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero-stage {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 54px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-content {
  width: min(650px, 100%);
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b45309;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fde68a;
  margin-bottom: 18px;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5.4vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p {
  display: -webkit-box;
  margin: 0 0 28px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 1.04rem;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

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

.btn.primary {
  color: #111827;
  background: linear-gradient(90deg, #facc15, #fb923c);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.btn.line {
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.65);
  background: rgba(17, 24, 39, 0.18);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.46);
  cursor: pointer;
  font-size: 2rem;
  transition: background-color 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(17, 24, 39, 0.72);
}

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

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

.hero-dots {
  position: absolute;
  left: 54px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  width: 48px;
  background: #facc15;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-side-card {
  flex: 1;
  padding: 30px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.hero-side-label {
  color: #ea580c;
  font-weight: 800;
}

.hero-side-card h2 {
  margin: 16px 0 12px;
  color: #111827;
  font-size: 2rem;
  line-height: 1.1;
}

.hero-side-card p {
  margin: 0 0 22px;
  color: var(--color-muted);
}

.hero-search,
.search-panel {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.hero-search input,
.search-panel input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 16px;
  color: var(--color-text);
  background: transparent;
}

.hero-search a {
  white-space: nowrap;
  color: #ffffff;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #facc15, #f97316);
}

.hero-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-thumb {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  box-shadow: var(--shadow-card);
}

.hero-thumb img {
  height: 100%;
  transition: transform 0.35s ease;
}

.hero-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.hero-thumb span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  color: #ffffff;
  font-weight: 800;
}

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

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

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

.section-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
  color: #111827;
}

.section-more {
  color: #b45309;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fef3c7;
}

.category-strip-section {
  padding: 16px 0 26px;
}

.category-strip,
.filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-strip a,
.filter-links a {
  color: #92400e;
  font-weight: 800;
  padding: 11px 17px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.category-strip a:hover,
.filter-links a:hover {
  transform: translateY(-2px);
  background: #fef3c7;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
}

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

.poster-link img {
  height: 100%;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #111827;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.94);
}

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

.movie-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d97706;
  font-size: 0.85rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0;
  color: #111827;
  font-size: 1.12rem;
  line-height: 1.28;
}

.card-desc {
  display: -webkit-box;
  min-height: 58px;
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 0.94rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc.compact {
  min-height: 42px;
}

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

.tag-row span,
.detail-tags span {
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fef3c7;
}

.rank-section {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.62), rgba(255, 255, 255, 0));
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #111827;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, #facc15, #fb923c);
}

.rank-poster {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
}

.rank-poster img {
  height: 100%;
}

.rank-content h3 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 1.05rem;
}

.rank-content p {
  display: -webkit-box;
  margin: 0 0 8px;
  color: var(--color-muted);
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #d97706;
  font-size: 0.84rem;
  font-weight: 800;
}

.sub-hero {
  padding: 74px 0 58px;
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.48), transparent 34%),
    linear-gradient(135deg, #111827 0%, #7c2d12 44%, #f59e0b 100%);
}

.sub-hero h1 {
  margin: 10px 0 12px;
  max-width: 850px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.05;
}

.sub-hero p {
  max-width: 780px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.04rem;
}

.sub-hero .section-kicker {
  color: #fde68a;
}

.search-panel {
  max-width: 680px;
}

.search-panel.wide {
  max-width: 900px;
}

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

.category-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-large);
  color: #ffffff;
  background: linear-gradient(135deg, #facc15, #f97316);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.72));
}

.category-card-link {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 230px;
  padding: 30px;
}

.category-card-link span {
  color: #fde68a;
  font-weight: 900;
}

.category-card-link h2 {
  margin: 14px 0 10px;
  font-size: 2.1rem;
}

.category-card-link p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.category-featured {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 30px 30px;
}

.category-featured a {
  color: #111827;
  font-weight: 800;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.detail-hero {
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  min-height: 560px;
  padding: 58px 0;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
}

.detail-category {
  display: inline-flex;
  color: #111827;
  font-weight: 900;
  padding: 8px 14px;
  border-radius: 999px;
  background: #facc15;
}

.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.05;
}

.detail-one-line {
  max-width: 860px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.14rem;
}

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

.detail-meta span {
  color: #ffffff;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
}

.detail-actions {
  margin-top: 24px;
}

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

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.video-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 900;
}

.play-overlay.hidden {
  display: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  padding-left: 5px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #facc15, #fb923c);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.38);
}

.detail-block,
.side-card {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-block h2,
.side-card h2 {
  margin: 0 0 12px;
  color: #111827;
}

.detail-block p {
  margin: 0;
  color: #374151;
  font-size: 1.02rem;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: #d97706;
  font-weight: 900;
}

.side-card dd {
  margin: 0;
  color: #374151;
}

.side-links {
  display: grid;
  gap: 10px;
}

.side-links a {
  display: block;
  color: #92400e;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fef3c7;
}

.site-footer {
  margin-top: 34px;
  color: #d1d5db;
  background: #111827;
}

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

.footer-brand {
  color: #facc15;
  font-size: 1.5rem;
  font-weight: 900;
}

.footer-grid p {
  max-width: 520px;
  color: #9ca3af;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #facc15;
}

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

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: #facc15;
}

.footer-bottom {
  padding: 20px 16px;
  color: #9ca3af;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.movie-card.hidden,
.rank-item.hidden {
  display: none;
}

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

  .hero-stage {
    min-height: 520px;
  }

  .detail-poster {
    width: min(280px, 80vw);
  }

  .home-rank,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

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

  .menu-button {
    display: block;
  }

  .hero-wrap {
    gap: 16px;
  }

  .hero-stage {
    min-height: 520px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 34px 22px 70px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    left: 22px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 44px 64px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .sub-hero {
    padding: 52px 0 42px;
  }

  .detail-info h1 {
    font-size: 2.5rem;
  }

  .detail-layout-section {
    padding-top: 24px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1200px);
  }

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

  .hero-content h1 {
    font-size: 2.45rem;
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .hero-search,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search a {
    text-align: center;
  }

  .detail-hero-inner {
    gap: 22px;
    min-height: auto;
  }
}
