
:root {
  --bg: #f8fafc;
  --bg-soft: #fff7ed;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --amber: #d97706;
  --amber-dark: #92400e;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

button,
input,
select {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100% - 32px, var(--max));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.35);
}

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

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  color: #4b5563;
  border-radius: 999px;
  font-weight: 650;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-dark);
  background: #fff7ed;
}

.nav-category {
  color: #9a3412;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 13px;
  background: #fff7ed;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: #92400e;
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--max));
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  height: 70vh;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(245, 158, 11, 0.25), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.62) 46%, rgba(2, 6, 23, 0.15));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  padding: 6px 13px;
  color: #fde68a;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(253, 230, 138, 0.42);
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.32);
  backdrop-filter: blur(8px);
}

.hero-title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 700px;
  margin: 20px 0 0;
  color: #e5e7eb;
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin-top: 24px;
  color: #ffffff;
}

.hero-meta span,
.detail-meta span,
.movie-meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

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

.primary-btn,
.ghost-btn,
.intro-actions a,
.filter-reset,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #ffffff;
  background: var(--amber);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.36);
}

.primary-btn:hover,
.filter-reset:hover {
  transform: translateY(-2px);
  background: var(--amber-dark);
}

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

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.66);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 30px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.48);
}

.hero-dot.is-active {
  background: #f59e0b;
}

.content-section,
.page-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

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

.intro-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: -38px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 4;
}

.intro-copy h2,
.section-heading h2,
.side-panel h2,
.detail-article h1,
.page-hero h1 {
  margin: 0;
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.intro-copy h2,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.intro-copy p,
.section-heading p,
.page-hero p,
.category-overview-card p,
.detail-article p,
.side-info-card dd,
.footer-inner p {
  color: var(--muted);
  line-height: 1.78;
}

.intro-copy p {
  margin: 10px 0 0;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.intro-actions a,
.section-more {
  color: #92400e;
  background: #fff7ed;
}

.intro-actions a:hover,
.section-more:hover {
  color: #ffffff;
  background: var(--amber);
  transform: translateY(-2px);
}

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

.section-heading h2,
.side-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.section-heading p {
  margin: 8px 0 0;
}

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

.category-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.18), transparent 34%),
    #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.category-card span {
  width: fit-content;
  padding: 4px 10px;
  color: var(--amber-dark);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 99px;
  background: var(--amber-soft);
}

.category-card strong {
  font-size: 1.34rem;
}

.category-card em {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.search-box {
  flex: 1 1 320px;
  display: grid;
  gap: 6px;
  color: #374151;
  font-weight: 800;
}

.search-box input,
.select-group select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  outline: none;
}

.search-box input:focus,
.select-group select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.select-group {
  display: flex;
  flex: 1 1 360px;
  gap: 10px;
}

.filter-reset {
  min-height: 44px;
  color: #ffffff;
  border: 0;
  background: var(--amber);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.07);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 99px;
}

.play-chip {
  right: 10px;
  bottom: 10px;
  background: rgba(217, 119, 6, 0.95);
}

.rank-badge {
  top: 10px;
  left: 10px;
  background: rgba(220, 38, 38, 0.92);
}

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

.movie-meta-line {
  gap: 6px;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 0.74rem;
}

.movie-meta-line span {
  min-height: 24px;
  background: #f3f4f6;
}

.movie-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card h3 a:hover {
  color: var(--amber);
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: #92400e;
  font-size: 0.74rem;
  font-weight: 750;
  border-radius: 99px;
  background: #fff7ed;
}

.movie-card.is-compact {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 138px;
}

.movie-card.is-compact .poster-wrap {
  aspect-ratio: auto;
  min-height: 138px;
}

.movie-card.is-compact .movie-card-body {
  min-width: 0;
}

.movie-card.is-compact p {
  min-height: 0;
  -webkit-line-clamp: 2;
}

.movie-card.is-compact .tag-row {
  display: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.8fr);
  gap: 26px;
  align-items: start;
}

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

.side-panel,
.side-info-card,
.detail-article,
.category-overview-card {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.side-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mini-list a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-list a:hover {
  background: #fff7ed;
  transform: translateX(3px);
}

.mini-list span {
  font-weight: 800;
}

.mini-list em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.page-shell {
  padding: 34px 0 60px;
}

.page-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
  margin-bottom: 34px;
  padding: 36px;
  color: #ffffff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(253, 230, 138, 0.34), transparent 34%),
    linear-gradient(135deg, #111827, #78350f 52%, #dc2626);
  box-shadow: var(--shadow);
}

.page-hero h1,
.page-hero p {
  color: #ffffff;
}

.page-hero p:not(.hero-eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: #f3f4f6;
  font-size: 1.08rem;
}

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

.category-overview-card {
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.category-overview-title span {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 10px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
}

.category-overview-title strong {
  font-size: 1.5rem;
}

.category-preview-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.page-list-section {
  width: 100%;
  padding-top: 0;
}

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

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

.breadcrumb a {
  color: #92400e;
  font-weight: 800;
}

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

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.62));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: #ffffff;
  font-size: 2rem;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.94);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.detail-article {
  margin-top: 24px;
  padding: 30px;
}

.detail-article h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.lead-text {
  margin: 18px 0 0;
  font-size: 1.16rem;
}

.detail-meta {
  margin-top: 20px;
}

.detail-meta span {
  color: #92400e;
  font-weight: 800;
  background: #fff7ed;
}

.detail-tags {
  margin: 18px 0 26px;
}

.detail-article h2,
.side-info-card h2 {
  margin: 26px 0 10px;
  font-size: 1.28rem;
}

.detail-article p {
  margin: 0;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  background: linear-gradient(135deg, #fef3c7, #e5e7eb);
  box-shadow: var(--shadow);
}

.side-info-card {
  padding: 22px;
}

.side-info-card h2 {
  margin-top: 0;
}

.side-info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-info-card div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.side-info-card dt {
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 900;
}

.side-info-card dd {
  margin: 0;
}

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

.empty-result {
  margin: 30px 0 0;
  padding: 26px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #f59e0b;
  border-radius: 20px;
  background: #fff7ed;
}

.site-footer {
  margin-top: 30px;
  padding: 42px 0 24px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.2rem;
}

.footer-inner p {
  max-width: 620px;
  margin: 10px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 520px;
}

.footer-links a {
  padding: 8px 11px;
  color: #e5e7eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

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

.copyright {
  width: min(100% - 32px, var(--max));
  margin: 28px auto 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    height: 72vh;
  }

  .hero-control {
    display: none;
  }

  .intro-panel,
  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .side-panel,
  .detail-side {
    position: static;
  }

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

  .category-grid,
  .category-preview-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 22px, var(--max));
    height: 64px;
  }

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

  .hero-carousel {
    min-height: 560px;
    height: 78vh;
  }

  .hero-content,
  .content-section,
  .page-shell,
  .footer-inner,
  .copyright {
    width: min(100% - 24px, var(--max));
  }

  .hero-title {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .hero-summary {
    font-size: 1rem;
  }

  .intro-panel,
  .page-hero,
  .detail-article,
  .side-info-card,
  .category-overview-card {
    padding: 20px;
    border-radius: 20px;
  }

  .select-group {
    flex-direction: column;
  }

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

  .related-grid,
  .category-grid,
  .category-preview-row {
    grid-template-columns: 1fr;
  }

  .movie-card.is-compact {
    grid-template-columns: 88px minmax(0, 1fr);
  }

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

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