:root {
  --color-ink: #1f2937;
  --color-muted: #6b7280;
  --color-soft: #fff7ed;
  --color-panel: #ffffff;
  --color-gold: #d97706;
  --color-gold-dark: #92400e;
  --color-orange: #ea580c;
  --color-border: rgba(146, 64, 14, 0.14);
  --shadow-soft: 0 18px 48px rgba(146, 64, 14, 0.14);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.88);
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ea580c 45%, #7c2d12);
  box-shadow: 0 12px 22px rgba(217, 119, 6, 0.26);
}

.brand-name {
  font-size: 1.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  color: #78350f;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: #ffedd5;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #78350f;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(253, 186, 116, 0.48), transparent 32%),
    radial-gradient(circle at 78% 12%, rgba(251, 191, 36, 0.28), transparent 30%),
    linear-gradient(135deg, #78350f 0%, #9a3412 48%, #451a03 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.04)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 80px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  align-items: center;
  gap: 48px;
  padding: 72px 0 82px;
}

.hero-copy {
  max-width: 700px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.7rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: #fde68a;
}

.hero-copy p {
  max-width: 620px;
  margin: 22px 0 0;
  color: #ffedd5;
  font-size: clamp(1rem, 2.1vw, 1.35rem);
}

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

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #78350f;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
}

.button-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stat {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: #fffbeb;
}

.hero-stat strong {
  color: #fde68a;
}

.hero-carousel {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  transform: translateX(30px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

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

.hero-poster {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  transform: scale(1.02);
}

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

.hero-slide-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.hero-slide-content h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.1;
}

.hero-slide-content p {
  margin: 0 0 16px;
  color: #fed7aa;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-tags span {
  padding: 6px 10px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
}

.carousel-controls {
  position: absolute;
  right: 0;
  bottom: -2px;
  display: flex;
  gap: 10px;
}

.carousel-controls button {
  width: 44px;
  height: 44px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.quick-search {
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

.quick-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.quick-search input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  color: #7c2d12;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  outline: none;
  background: #fff7ed;
}

.quick-search a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  padding: 0 20px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #d97706, #ea580c);
  font-weight: 900;
}

.main-section {
  padding: 72px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-heading > div {
  flex: 1;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--color-muted);
}

.section-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 18px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 1.35rem;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.13);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(234, 88, 12, 0.3);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.16);
}

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

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  color: #fff;
  border-radius: 999px;
  background: rgba(124, 45, 18, 0.82);
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #78350f;
  border-radius: 999px;
  background: #fef3c7;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #9a3412;
  font-size: 0.83rem;
  font-weight: 800;
}

.movie-meta span,
.movie-meta a {
  display: inline-flex;
  align-items: center;
}

.movie-title {
  margin: 9px 0 8px;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.32;
  font-weight: 900;
}

.movie-title a:hover,
.rank-info h3 a:hover,
.detail-title a:hover {
  color: #c2410c;
}

.movie-card-body p {
  min-height: 3.2em;
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

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

.tag-row span,
.detail-tags a {
  padding: 5px 9px;
  color: #9a3412;
  background: #ffedd5;
}

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

.category-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(253, 224, 71, 0.25), transparent 35%),
    linear-gradient(135deg, #92400e, #c2410c 54%, #431407);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 48px rgba(146, 64, 14, 0.26);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.category-card p {
  margin: 0;
  color: #ffedd5;
}

.category-card span {
  margin-top: 18px;
  font-weight: 900;
  color: #fde68a;
}

.feature-band {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-block: 1px solid rgba(217, 119, 6, 0.12);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 138px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(217, 119, 6, 0.13);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
  font-size: 1.15rem;
}

.rank-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: #7c2d12;
}

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

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  line-height: 1.28;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--color-muted);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.search-box,
.select-box {
  display: grid;
  gap: 6px;
  color: #9a3412;
  font-size: 0.85rem;
  font-weight: 900;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--color-ink);
  border: 1px solid #fed7aa;
  border-radius: 14px;
  outline: none;
  background: #fff;
}

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

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: #9a3412;
  border-radius: 20px;
  background: #ffedd5;
  font-weight: 900;
}

.empty-state.is-visible {
  display: block;
}

.breadcrumb-bar {
  color: #fff7ed;
  background: #1f2937;
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.92rem;
}

.breadcrumb-inner a:hover {
  color: #fbbf24;
}

.detail-main {
  padding: 38px 0 76px;
}

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

.player-card,
.detail-side-card,
.detail-text-card {
  border: 1px solid rgba(217, 119, 6, 0.13);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.player-card {
  overflow: hidden;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  border: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.78));
}

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

.player-cover-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  place-items: center;
  font-weight: 900;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: #78350f;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
  font-size: 1.8rem;
}

.detail-head {
  padding: 24px;
}

.detail-head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-head p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

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

.fact {
  padding: 12px;
  border-radius: 14px;
  background: #fff7ed;
}

.fact b {
  display: block;
  color: #9a3412;
  font-size: 0.78rem;
}

.fact span {
  color: #111827;
  font-weight: 900;
}

.detail-text-card {
  margin-top: 22px;
  padding: 24px;
}

.detail-text-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.detail-text-card p {
  margin: 0 0 18px;
  color: #4b5563;
}

.detail-side-card {
  padding: 18px;
}

.detail-side-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: #7c2d12;
}

.detail-side-card h2 {
  margin: 18px 0 12px;
  font-size: 1.2rem;
}

.side-link-list {
  display: grid;
  gap: 12px;
}

.side-link {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
  transition: transform 0.2s ease, background 0.2s ease;
}

.side-link:hover {
  transform: translateX(4px);
  background: #ffedd5;
}

.side-link img {
  width: 70px;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
}

.side-link strong {
  display: block;
  line-height: 1.28;
}

.side-link span {
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 800;
}

.site-footer {
  color: #fed7aa;
  background: #1f2937;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0;
}

.footer-brand {
  color: #fef3c7;
  font-size: 1.05rem;
}

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

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

.footer-inner p {
  margin: 0;
}

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .detail-side-card {
    order: -1;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .mobile-menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 18px;
    background: rgba(255, 251, 235, 0.98);
    box-shadow: var(--shadow-card);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

  .hero-inner {
    min-height: auto;
    padding: 48px 0 70px;
    gap: 34px;
  }

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

  .hero-poster,
  .hero-poster img {
    min-height: 330px;
  }

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

  .quick-search a {
    min-height: 48px;
  }

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

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

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

  .movie-card-body p {
    min-height: auto;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-number {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .rank-info p {
    display: none;
  }

  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .brand-name {
    font-size: 1rem;
  }

  .movie-grid,
  .movie-grid.is-dense {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

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