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

* {
  box-sizing: border-box;
}

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

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

img {
  display: block;
  width: 100%;
  background: #1f2937;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #facc15 0%, #fb923c 48%, #f59e0b 100%);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.26);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  gap: 24px;
  color: #ffffff;
  font-weight: 700;
}

.desktop-nav a {
  opacity: 0.96;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.desktop-nav a:hover {
  transform: translateY(-2px);
  opacity: 1;
}

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

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

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

.mobile-nav a {
  display: block;
  color: #ffffff;
  padding: 12px 0;
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

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

main {
  min-height: 70vh;
}

.hero-wrap {
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 0 20px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

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

.hero-copy {
  position: absolute;
  left: clamp(24px, 7vw, 86px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 660px;
  color: #ffffff;
}

.hero-label,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  color: #111827;
  background: var(--gold);
  font-weight: 800;
  font-size: 14px;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 30px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  color: #f3f4f6;
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  padding: 13px 28px;
  color: #111827;
  background: var(--gold);
  box-shadow: 0 12px 24px rgba(250, 204, 21, 0.3);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.ghost-button {
  padding: 12px 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.intro-strip {
  max-width: 1240px;
  margin: 22px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.intro-strip a {
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.intro-strip strong,
.intro-strip span {
  display: block;
}

.intro-strip strong {
  font-size: 20px;
  margin-bottom: 6px;
}

.intro-strip span {
  color: var(--muted);
  line-height: 1.5;
}

.page-hero {
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 70px 40px;
  border-radius: 28px;
  color: #ffffff;
  background: radial-gradient(circle at 18% 0%, rgba(250, 204, 21, 0.44), transparent 38%), linear-gradient(135deg, #111827 0%, #1f2937 58%, #f59e0b 130%);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #f3f4f6;
  line-height: 1.8;
  font-size: 18px;
}

.category-hero .hero-actions {
  margin-top: 24px;
}

.search-panel {
  max-width: 1240px;
  margin: 30px auto 0;
  padding: 0 20px;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.search-box input,
.search-box select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--ink);
  background: #f9fafb;
  font-size: 16px;
  outline: none;
}

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

.content-section {
  max-width: 1240px;
  margin: 48px auto 0;
  padding: 0 20px;
}

.warm-section {
  padding-top: 36px;
  padding-bottom: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.75;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
}

.section-title-row .section-heading {
  text-align: left;
  margin-bottom: 20px;
}

.section-title-row .section-heading p {
  margin: 0;
}

.scroll-buttons {
  display: flex;
  gap: 10px;
}

.scroll-buttons button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
  cursor: pointer;
  font-size: 30px;
}

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

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

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

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

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

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #111827;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 46px;
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
  transition: color 0.25s ease;
}

.card-title:hover,
.rank-title:hover,
.category-card h2 a:hover {
  color: var(--gold-dark);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.horizontal-list {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 20px 10px;
  scrollbar-width: none;
}

.horizontal-list::-webkit-scrollbar {
  display: none;
}

.mini-card {
  flex: 0 0 250px;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.09);
}

.mini-card img {
  height: 150px;
  object-fit: cover;
}

.mini-card span,
.mini-card small {
  display: block;
  padding: 0 14px;
}

.mini-card span {
  margin-top: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-card small {
  padding-bottom: 14px;
  margin-top: 6px;
  color: var(--muted);
}

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827 0%, #374151 58%, #f59e0b 150%);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
  transition: transform 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile strong,
.category-tile span {
  display: block;
}

.category-tile strong {
  font-size: 23px;
  margin-bottom: 10px;
}

.category-tile span {
  color: #e5e7eb;
  line-height: 1.65;
}

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

.category-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 16px;
}

.category-cover img {
  height: 92px;
  object-fit: cover;
}

.category-card h2 {
  margin: 4px 0 10px;
}

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

.text-link {
  margin-top: 6px;
  color: var(--gold-dark);
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.rank-index {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111827;
  background: #f3f4f6;
  font-size: 20px;
  font-weight: 900;
}

.top-rank .rank-index {
  background: var(--gold);
}

.rank-poster img {
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-title {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 900;
}

.rank-row p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.center-actions {
  justify-content: center;
  margin-top: 24px;
}

.detail-shell {
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 0 20px 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--gold-dark);
}

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

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

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

.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000000;
}

.player-cover img {
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111827;
  background: var(--gold);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  font-size: 30px;
  transform: translate(-50%, -50%);
}

.player.is-playing .player-cover {
  display: none;
}

.detail-content {
  padding: 30px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

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

.detail-content h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.lead-text {
  margin: 0 0 20px;
  color: #374151;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.65;
}

.big-tags span {
  font-size: 13px;
}

.detail-content h2,
.related-panel h2 {
  margin: 26px 0 12px;
  font-size: 25px;
}

.detail-content p {
  color: #374151;
  line-height: 1.95;
  font-size: 17px;
}

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

.related-panel h2 {
  margin-top: 0;
}

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

.related-list .mini-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  box-shadow: none;
  border: 1px solid var(--line);
}

.related-list .mini-card img {
  grid-row: 1 / span 2;
  height: 92px;
}

.related-list .mini-card span,
.related-list .mini-card small {
  padding: 0 8px 0 0;
}

.related-list .mini-card span {
  margin-top: 0;
}

.related-list .mini-card small {
  padding-bottom: 0;
}

.site-footer {
  margin-top: 70px;
  color: #ffffff;
  background: linear-gradient(180deg, #111827 0%, #030712 100%);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 14px;
}

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

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

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
  text-align: center;
  font-size: 14px;
}

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

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

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

  .related-panel {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .brand {
    font-size: 21px;
  }

  .hero-carousel {
    height: 520px;
    border-radius: 22px;
  }

  .hero-copy {
    left: 24px;
    right: 24px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-strip,
  .category-overview,
  .search-box,
  .category-card,
  .rank-row {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 48px 24px;
    border-radius: 22px;
  }

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

  .rank-row {
    align-items: start;
  }

  .rank-poster img {
    height: 180px;
  }

  .detail-content {
    padding: 22px;
  }
}

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

  .hero-wrap,
  .content-section,
  .search-panel,
  .detail-shell,
  .page-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-carousel {
    height: 500px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }
}
