:root {
  --amber: #f59e0b;
  --orange: #f97316;
  --rose: #f43f5e;
  --ink: #111827;
  --muted: #6b7280;
  --line: #fde68a;
  --soft: #fff7ed;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(146, 64, 14, 0.16);
}

* {
  box-sizing: border-box;
}

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

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

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--amber), var(--orange), var(--rose));
  box-shadow: 0 12px 28px rgba(194, 65, 12, 0.22);
}

.nav-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand {
  font-size: clamp(19px, 3vw, 26px);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #ffffff;
  font-weight: 700;
}

.nav-links a,
.mobile-menu a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
  color: #fffbeb;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 24px;
}

.mobile-menu {
  display: none;
  padding: 12px 24px 20px;
  background: rgba(194, 65, 12, 0.96);
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: #ffffff;
  font-weight: 700;
}

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

.hero-shell {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  background: #111827;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.35), transparent 28%), radial-gradient(circle at 84% 10%, rgba(244, 63, 94, 0.35), transparent 26%);
  z-index: 1;
  pointer-events: none;
}

.hero-slider {
  position: relative;
  min-height: 68vh;
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 380px);
  align-items: center;
  gap: 42px;
  padding: 76px max(24px, calc((100vw - 1280px) / 2 + 24px)) 112px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.35), rgba(17, 24, 39, 0.78)), var(--hero-cover);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 3;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
}

.hero-copy h1,
.page-title-block h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
}

.tag-row span,
.detail-meta span {
  background: #fff7ed;
  color: #9a3412;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.search-form button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-form button,
.hero-search button {
  background: linear-gradient(90deg, var(--amber), var(--orange));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.3);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.search-form button:hover,
.hero-search button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster,
.detail-cover,
.poster-link {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
  box-shadow: var(--shadow);
}

.hero-poster {
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  transform: rotate(2deg);
}

.hero-poster img,
.poster-link img,
.detail-cover img {
  position: relative;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.poster-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.95), rgba(244, 63, 94, 0.95));
}

.is-hidden-image {
  opacity: 0;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 74px;
  z-index: 10;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 48px));
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 18px 44px rgba(0, 0, 0, 0.26);
}

.hero-search input,
.search-form input,
.filter-bar input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: #ffffff;
  color: var(--ink);
  font-size: 15px;
}

.page-main {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 70px;
}

.inner-page {
  min-height: 70vh;
}

.quick-links,
.category-grid,
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 42px;
}

.quick-links a,
.category-card,
.category-overview-card,
.sitemap-group,
.detail-content article,
.rank-table {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  border: 1px solid rgba(253, 230, 138, 0.8);
}

.quick-links a {
  padding: 20px;
  display: grid;
  gap: 6px;
}

.quick-links strong,
.category-card span,
.category-overview-card h2 {
  font-size: 20px;
  font-weight: 900;
}

.quick-links span,
.category-card p,
.category-overview-card p,
.section-heading p,
.page-title-block p,
.footer-inner p,
.card-body p,
.detail-one-line,
.detail-content p {
  color: var(--muted);
  line-height: 1.75;
}

.content-section {
  margin-top: 52px;
}

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

.section-heading h2,
.detail-content h2,
.sitemap-group h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid rgba(253, 230, 138, 0.75);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(146, 64, 14, 0.24);
}

.poster-link {
  display: block;
  height: 290px;
  box-shadow: none;
  border-radius: 0;
}

.play-pill,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.play-pill {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
}

.card-body {
  padding: 18px;
}

.meta-line {
  display: flex;
  gap: 10px;
  color: #b45309;
  font-weight: 800;
  font-size: 13px;
}

.card-body h3 {
  margin: 8px 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
}

.card-body p {
  min-height: 74px;
  margin: 0 0 14px;
}

.tag-row {
  gap: 8px;
}

.tag-row span {
  min-height: 26px;
  padding: 4px 10px;
  font-size: 12px;
}

.category-card,
.category-overview-card a {
  display: block;
  min-height: 150px;
  padding: 22px;
}

.category-card:hover,
.category-overview-card:hover,
.quick-links a:hover {
  transform: translateY(-4px);
}

.category-card,
.category-overview-card,
.quick-links a {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-title-block {
  position: relative;
  margin-bottom: 34px;
  padding: 34px;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.88));
  box-shadow: var(--shadow);
  border: 1px solid rgba(253, 230, 138, 0.8);
}

.page-title-block h1 {
  color: var(--ink);
}

.filter-bar,
.search-form {
  margin-top: 24px;
}

.search-form {
  display: flex;
  gap: 12px;
  max-width: 720px;
}

.category-list,
.rank-featured {
  margin-top: 24px;
}

.sample-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sample-title-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.rank-table {
  margin-top: 34px;
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 80px 140px 140px 70px;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid #ffedd5;
}

.rank-row:hover {
  background: #fff7ed;
}

.rank-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #ffffff;
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 42px;
}

.detail-cover {
  border-radius: 30px;
  aspect-ratio: 3 / 4;
}

.detail-info {
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  border: 1px solid rgba(253, 230, 138, 0.8);
}

.detail-one-line {
  margin: 18px 0 20px;
  font-size: 18px;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-tags {
  margin-bottom: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: #92400e;
  font-weight: 800;
}

.player-section {
  margin-bottom: 42px;
}

.video-stage {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 32px 80px rgba(17, 24, 39, 0.35);
  aspect-ratio: 16 / 9;
}

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

.video-play-button {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
  color: #ffffff;
  cursor: pointer;
}

.video-play-button span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.36);
  font-size: 34px;
}

.video-play-button strong {
  font-size: 20px;
}

.video-play-button.is-hidden {
  display: none;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 5;
  color: #ffffff;
  margin: 0;
  font-weight: 700;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.detail-content article {
  padding: 26px;
}

.detail-content p {
  font-size: 16px;
}

.related-grid .poster-link,
.compact-card .poster-link {
  height: 220px;
}

.sitemap-group {
  padding: 24px;
  margin-bottom: 24px;
}

.sitemap-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 18px;
}

.sitemap-links a {
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results .movie-grid {
  margin-top: 24px;
}

.empty-state {
  padding: 40px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.site-footer {
  background: #111827;
  color: #ffffff;
}

.footer-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
  justify-content: end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

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

  .detail-hero {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .rank-row {
    grid-template-columns: 54px minmax(0, 1fr) 70px 110px;
  }

  .rank-row span:nth-child(5),
  .rank-row strong {
    display: none;
  }
}

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

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding-top: 54px;
    padding-bottom: 150px;
  }

  .hero-poster {
    display: none;
  }

  .hero-search {
    border-radius: 26px;
    flex-direction: column;
  }

  .movie-grid,
  .quick-links,
  .category-grid,
  .category-overview-grid,
  .detail-content,
  .sitemap-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .footer-inner,
  .detail-hero {
    display: block;
  }

  .detail-cover {
    max-width: 280px;
    margin: 0 auto 24px;
  }

  .search-form {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page-main,
  .footer-inner {
    width: min(100% - 28px, 1280px);
  }

  .nav-inner {
    padding: 0 14px;
  }

  .hero-copy h1,
  .page-title-block h1,
  .detail-info h1 {
    font-size: 34px;
  }

  .hero-desc,
  .detail-one-line {
    font-size: 15px;
  }

  .movie-grid,
  .quick-links,
  .category-grid,
  .category-overview-grid,
  .detail-content,
  .sitemap-links {
    grid-template-columns: 1fr;
  }

  .poster-link {
    height: 260px;
  }

  .rank-row {
    grid-template-columns: 44px minmax(0, 1fr) 64px;
    padding: 14px;
  }

  .rank-row span:nth-child(4) {
    display: none;
  }

  .page-title-block,
  .detail-info {
    padding: 24px;
  }
}
