:root {
  --amber: #d97706;
  --orange: #ea580c;
  --amber-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f1e1c5;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-size: 15px;
  font-weight: 700;
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: var(--amber);
  transition: right 0.25s ease;
}

.nav-link:hover {
  color: var(--amber);
}

.nav-link:hover::after {
  right: 0;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: #fff7ed;
  color: var(--amber);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

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

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

.mobile-nav a {
  padding: 11px 14px;
  border-radius: 12px;
  color: #374151;
  background: #fff;
}

.hero-section {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 48%, #ffedd5 100%);
}

.hero-inner {
  position: relative;
  max-width: 1240px;
  min-height: 560px;
  margin: 0 auto;
  padding: 58px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  align-items: center;
  gap: 54px;
}

.hero-blob {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.32;
  mix-blend-mode: multiply;
  animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-one {
  top: 60px;
  left: 8%;
  background: #fbbf24;
}

.hero-blob-two {
  top: 150px;
  right: 8%;
  background: #fb923c;
  animation-delay: 1.8s;
}

.hero-blob-three {
  bottom: -80px;
  left: 46%;
  background: #fde68a;
  animation-delay: 3.2s;
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(22px, -28px) scale(1.05);
  }
  66% {
    transform: translate(-18px, 18px) scale(0.95);
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.06em;
  color: #1f2937;
}

.hero-copy h1 span {
  background: linear-gradient(90deg, var(--amber), var(--orange), #b45309);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 720px;
  margin: 24px 0 0;
  color: #5f6673;
  font-size: 20px;
}

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

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

.primary-btn {
  padding: 0 28px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.28);
}

.ghost-btn {
  padding: 0 24px;
  color: var(--amber);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(217, 119, 6, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 34px rgba(180, 83, 9, 0.18);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-links a,
.tag-row span,
.filter-chip {
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  background: rgba(255, 255, 255, 0.7);
  color: #92400e;
  font-weight: 800;
}

.hero-links a {
  padding: 7px 13px;
}

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

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.88));
}

.hero-slide-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: #fff;
}

.hero-slide-copy span {
  display: inline-block;
  margin-bottom: 8px;
  color: #fed7aa;
  font-weight: 900;
}

.hero-slide-copy h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.hero-slide-copy p {
  margin: 10px 0 16px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-slide-copy a {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 22px;
  top: 22px;
  display: flex;
  gap: 8px;
}

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

.hero-dots button.active {
  width: 28px;
  background: #fff;
}

.section,
.detail-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 68px 22px;
}

.muted-section {
  max-width: none;
  padding-left: max(22px, calc((100vw - 1240px) / 2 + 22px));
  padding-right: max(22px, calc((100vw - 1240px) / 2 + 22px));
  background: linear-gradient(135deg, #f9fafb, #fff7ed);
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1,
.article-body h2,
.footer-column h2 {
  margin: 0;
  color: #1f2937;
  line-height: 1.15;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head a,
.text-btn {
  color: var(--amber);
  font-weight: 900;
}

.compact-head {
  margin-bottom: 18px;
}

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

.dense-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 40px rgba(120, 53, 15, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f3f4f6;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .poster-shade {
  background: rgba(0, 0, 0, 0.38);
}

.year-badge,
.play-badge {
  position: absolute;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  background: rgba(217, 119, 6, 0.94);
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--orange);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 14px;
}

.card-body h2 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--amber);
}

.card-meta,
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 9px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card .card-desc {
  display: none;
}

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

.tag-row span {
  padding: 3px 8px;
  font-size: 12px;
}

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

.category-card {
  min-height: 150px;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(217, 119, 6, 0.14);
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  color: #4b5563;
  font-weight: 700;
}

.two-column-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.column-panel,
.rank-panel,
.category-overview-card,
.detail-card {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.column-panel,
.rank-panel,
.category-overview-card {
  padding: 26px;
}

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

.rank-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 15px;
  background: #f9fafb;
  transition: background 0.25s ease, transform 0.25s ease;
}

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

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

.rank-item img {
  width: 52px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
}

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  color: #1f2937;
  line-height: 1.35;
}

.rank-copy em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px;
}

.mini-card {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
  font-size: 13px;
}

.mini-card img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  border-radius: 13px;
  background: #f3f4f6;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.mini-card span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-panel {
  margin-bottom: 28px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 20px;
  padding: 14px 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.14);
}

.search-box span {
  color: var(--amber);
  font-size: 22px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #1f2937;
  background: transparent;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  cursor: pointer;
}

.filter-chip.active {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.empty-state {
  display: none;
  margin: 20px 0 0;
  padding: 18px;
  border-radius: 16px;
  color: #92400e;
  background: #fff7ed;
  font-weight: 800;
}

.empty-state.show {
  display: block;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #fef3c7 48%, #fff);
}

.page-hero > div {
  max-width: 1240px;
  margin: 0 auto;
  padding: 76px 22px;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.05em;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  color: #5f6673;
  font-size: 19px;
}

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

.breadcrumb a {
  color: var(--amber);
  font-weight: 800;
}

.overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.overview-copy h2 {
  font-size: 30px;
}

.overview-copy p {
  color: var(--muted);
}

.detail-shell {
  padding-bottom: 24px;
}

.detail-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.55));
  cursor: pointer;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 34px;
  box-shadow: 0 22px 44px rgba(234, 88, 12, 0.34);
}

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

.detail-content {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  padding: 28px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: #f3f4f6;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.detail-copy h1 {
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -0.05em;
}

.detail-one-line {
  color: #4b5563;
  font-size: 20px;
  font-weight: 700;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 800;
  font-size: 14px;
}

.detail-meta a {
  color: var(--orange);
}

.article-body {
  padding: 0 28px 34px;
}

.article-body h2 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 26px;
}

.article-body p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.site-footer {
  margin-top: 32px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border-top: 1px solid rgba(217, 119, 6, 0.2);
}

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

.footer-brand p {
  color: var(--muted);
}

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

.footer-links a {
  color: #6b7280;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px 34px;
  border-top: 1px solid rgba(217, 119, 6, 0.18);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-inner,
  .two-column-section,
  .category-overview-card,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 28px;
    padding-top: 42px;
  }

  .hero-carousel {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 19px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero-section,
  .hero-inner {
    min-height: auto;
  }

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

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

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

  .section,
  .detail-shell {
    padding: 46px 16px;
  }

  .page-hero > div {
    padding: 52px 16px;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-desc,
  .tag-row {
    display: none;
  }

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

  .detail-content,
  .article-body {
    padding: 20px;
  }

  .detail-poster {
    display: none;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
