:root {
  --page-bg: #f7fbff;
  --soft-bg: #eef6ff;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --white: #ffffff;
  --dark: #0f172a;
  --amber: #f59e0b;
  --orange: #f97316;
  --blue: #1d4ed8;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, #edf6ff 52%, #f8fbff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: #111827;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.35);
  font-size: 14px;
}

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

.nav-link {
  color: #475569;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #92400e;
  background: #fff7ed;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px;
}

.nav-search input,
.mobile-search input {
  width: 180px;
  border: 0;
  background: transparent;
  outline: none;
  padding: 8px 10px;
  color: #0f172a;
}

.nav-search button,
.mobile-search button,
.filter-panel button,
.quick-search-panel button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  font-weight: 750;
  padding: 9px 16px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.28);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 0 22px 18px;
  border-top: 1px solid #f1f5f9;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 8px;
}

.mobile-search input {
  flex: 1;
  width: auto;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(15, 23, 42, 0.64) 48%, rgba(15, 23, 42, 0.08) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

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

.hero-badges span {
  display: inline-flex;
  padding: 7px 16px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  background: var(--amber);
}

.hero-badges strong {
  color: #fcd34d;
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0 14px;
  color: white;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.65;
}

.hero-meta {
  color: #cbd5e1;
  margin-bottom: 22px;
}

.hero-tags {
  margin-bottom: 30px;
}

.hero-tags span {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.primary-btn,
.ghost-btn,
.section-more a,
.category-overview-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.35);
}

.primary-btn:hover,
.section-more a:hover,
.category-overview-head a:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.42);
}

.primary-btn.small {
  padding: 10px 18px;
  font-size: 14px;
}

.ghost-btn {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

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

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

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
}

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

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

.quick-search-panel {
  max-width: 1180px;
  margin: -52px auto 54px;
  position: relative;
  z-index: 5;
  padding: 28px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  align-items: center;
  gap: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.quick-search-panel span,
.inner-hero span,
.category-overview-head span,
.detail-title-row span {
  color: #d97706;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-search-panel h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 34px);
}

.quick-search-panel form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.quick-search-panel input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  padding: 10px 14px;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.space-stack {
  display: grid;
  gap: 72px;
  padding-bottom: 80px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

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

.section-heading span {
  padding: 5px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 14px;
  font-weight: 800;
}

.heading-bar {
  width: 6px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber), var(--orange));
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72) 100%);
}

.play-badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.82);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 3px;
  color: white;
  background: rgba(245, 158, 11, 0.92);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-type {
  position: absolute;
  z-index: 2;
  right: 14px;
  top: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-meta,
.rank-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.movie-card h3,
.rank-item h3 {
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover {
  color: #d97706;
}

.movie-card p,
.rank-item p {
  margin: 0 0 13px;
  color: #64748b;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.compact .card-body {
  padding: 14px;
}

.movie-card.compact h3 {
  font-size: 17px;
}

.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 5px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 750;
}

.highlight-box,
.rank-section,
.detail-card,
.side-box,
.category-overview-card,
.filter-panel,
.spotlight-rank {
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.highlight-box {
  padding: 34px;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 50%, #ffffff 100%);
}

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

.category-card {
  min-height: 210px;
  border-radius: 26px;
  padding: 22px;
  color: white;
  background: linear-gradient(135deg, #0f172a, #1d4ed8 58%, #f59e0b);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card strong {
  font-size: 24px;
}

.category-card p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.category-card div {
  display: grid;
  gap: 5px;
  color: #fde68a;
  font-size: 13px;
}

.rank-section {
  padding: 34px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border: 1px solid #eef2f7;
  border-radius: 22px;
  background: #ffffff;
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

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

.rank-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.section-more {
  margin-top: 28px;
  text-align: center;
}

.section-more a,
.category-overview-head a {
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.inner-hero {
  padding: 72px 0;
  color: white;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.35), transparent 35%), linear-gradient(135deg, #0f172a, #1e3a8a 62%, #111827);
}

.inner-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.inner-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
  margin-top: 20px;
}

.crumbs a:hover {
  color: #fbbf24;
}

.listing-page {
  padding-top: 54px;
  padding-bottom: 76px;
}

.category-overview-list {
  display: grid;
  gap: 26px;
  padding-top: 50px;
  padding-bottom: 76px;
}

.category-overview-card {
  padding: 28px;
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.category-overview-head h2 {
  margin: 6px 0;
  font-size: 30px;
}

.category-overview-head p {
  margin: 0;
  color: #64748b;
}

.small-card-list {
  display: grid;
  gap: 12px;
}

.small-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  border-radius: 18px;
  padding: 9px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.small-card:hover {
  background: #fff7ed;
  transform: translateX(3px);
}

.small-card img {
  width: 110px;
  height: 70px;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

.small-card strong {
  display: block;
  margin-bottom: 5px;
  line-height: 1.35;
}

.small-card em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.spotlight-rank {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
}

.filter-panel {
  margin: 42px 0 32px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 190px 160px auto;
  gap: 12px;
}

.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  padding: 12px 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.searchable-grid {
  padding-bottom: 78px;
}

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

.breadcrumb-bar {
  padding: 16px 0;
  background: linear-gradient(90deg, #0f172a, #1e3a8a);
}

.breadcrumb-bar .crumbs {
  margin-top: 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 52px;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  object-fit: cover;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.78));
  display: grid;
  place-items: center;
  gap: 14px;
  cursor: pointer;
}

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

.player-button {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 34px;
  box-shadow: 0 22px 38px rgba(245, 158, 11, 0.35);
}

.player-overlay strong {
  font-size: 24px;
}

.detail-card {
  padding: 30px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.detail-title-row h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.detail-facts span {
  border-radius: 16px;
  padding: 13px 15px;
  color: #334155;
  background: #f8fafc;
  font-weight: 750;
}

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

.detail-card section {
  margin-top: 26px;
}

.detail-card h2,
.side-box h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: #334155;
  line-height: 1.9;
  font-size: 17px;
}

.detail-side {
  min-width: 0;
}

.side-box {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.related-section {
  padding-bottom: 78px;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  padding: 44px 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.footer-logo {
  color: white;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
  max-width: 520px;
  line-height: 1.7;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.footer-links a:hover {
  color: #fbbf24;
  background: rgba(255, 255, 255, 0.12);
}

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

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

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

  .side-box {
    position: static;
  }
}

@media (max-width: 860px) {
  .hero {
    height: 620px;
  }

  .hero-content {
    padding: 0 22px 40px;
    justify-content: flex-end;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-panel {
    margin: -34px 16px 42px;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .quick-search-panel form,
  .mobile-search {
    border-radius: 22px;
    flex-direction: column;
  }

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

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .page-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-logo {
    font-size: 19px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .hero {
    height: 590px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 17px;
  }

  .movie-grid.three,
  .movie-grid.four,
  .category-grid,
  .rank-grid,
  .spotlight-rank {
    grid-template-columns: 1fr;
  }

  .highlight-box,
  .rank-section,
  .detail-card,
  .category-overview-card,
  .spotlight-rank {
    padding: 22px;
    border-radius: 24px;
  }

  .detail-title-row,
  .category-overview-head {
    flex-direction: column;
  }

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

  .small-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .small-card img {
    width: 96px;
    height: 64px;
  }
}
