:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(245, 158, 11, 0.28);
  --brand: #d97706;
  --brand-dark: #c2410c;
  --brand-soft: rgba(251, 191, 36, 0.18);
  --shadow: 0 22px 60px rgba(146, 64, 14, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 46%, #fff7ed 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%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  box-shadow: 0 10px 30px rgba(180, 83, 9, 0.12);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1200px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.28);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(10deg) scale(1.05);
}

.brand-text,
.footer-brand span:last-child {
  font-size: 1.28rem;
  background: linear-gradient(90deg, #d97706, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

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

.desktop-nav a,
.mobile-nav a,
.site-footer a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--brand);
}

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

.nav-search input,
.mobile-search input,
.search-panel input,
.search-panel select {
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 230px;
}

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

.nav-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(90deg, #d97706, #f97316);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
}

.mobile-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  background: rgba(251, 191, 36, 0.18);
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #92400e;
}

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

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

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

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

.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-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 72vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 340px;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  border: 1px solid rgba(251, 191, 36, 0.46);
  border-radius: 999px;
  padding: 7px 13px;
  color: #92400e;
  background: rgba(254, 243, 199, 0.82);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.22);
}

.hero-copy h1 {
  margin: 0 0 14px;
  max-width: 820px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  font-weight: 850;
}

.hero-copy p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #92400e;
  background: rgba(254, 243, 199, 0.9);
  font-size: 0.82rem;
  font-weight: 800;
}

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

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

.primary-btn {
  min-height: 46px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(90deg, #d97706, #f97316);
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.34);
}

.ghost-btn {
  min-height: 46px;
  padding: 0 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 32px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  object-fit: cover;
}

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

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  font-size: 1.5rem;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.hero-dot.is-active {
  width: 30px;
  border-radius: 999px;
  background: #f59e0b;
}

.quick-panel,
.section-shell,
.page-hero,
.breadcrumb,
.detail-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.quick-panel {
  margin-top: -46px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding-top: 28px;
  padding-bottom: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-panel h2,
.section-heading h2,
.page-hero h1,
.detail-content h1,
.detail-content h2,
.side-box h2,
.site-footer h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #1f2937;
}

.quick-panel h2 {
  font-size: 1.8rem;
}

.quick-panel p,
.page-hero p,
.movie-card p,
.rank-card p,
.detail-content p,
.site-footer p,
.category-card p {
  color: var(--muted);
  line-height: 1.76;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.quick-links a,
.filter-strip a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.quick-links a:hover,
.filter-strip a:hover {
  background: #fef3c7;
  transform: translateY(-2px);
}

.section-shell {
  padding-top: 58px;
  padding-bottom: 58px;
}

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

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.section-heading a {
  color: var(--brand);
  font-weight: 900;
}

.section-heading.slim {
  align-items: center;
  margin-bottom: 18px;
}

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

.movie-card,
.rank-card,
.category-card,
.player-card,
.detail-content,
.side-box,
.search-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(146, 64, 14, 0.11);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 66px rgba(146, 64, 14, 0.18);
}

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #fde68a, #fed7aa);
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.meta-row span {
  border-radius: 999px;
  padding: 4px 8px;
  color: #92400e;
  background: #fef3c7;
  font-size: 0.76rem;
  font-weight: 850;
}

.movie-card h2,
.rank-card h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card p,
.rank-card p {
  display: -webkit-box;
  min-height: 3.3em;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.94rem;
}

.text-link {
  margin-top: 16px;
  color: var(--brand);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 32px;
  align-items: start;
}

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

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

.category-card {
  display: block;
  padding: 22px;
  min-height: 156px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 54px rgba(146, 64, 14, 0.16);
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  color: #92400e;
  font-size: 1.18rem;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  font-size: 0.95rem;
}

.ranking-panel {
  position: sticky;
  top: 92px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 44px 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.rank-number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #f97316);
  font-weight: 900;
}

.rank-poster img {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #fde68a, #fed7aa);
}

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

.page-main {
  min-height: 60vh;
}

.page-hero {
  padding-top: 60px;
  padding-bottom: 34px;
}

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

.small-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1.05;
}

.small-hero p {
  max-width: 840px;
  font-size: 1.08rem;
}

.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.search-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.68fr);
  align-items: end;
}

.search-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.search-panel input {
  width: 100%;
  border-radius: 20px;
  padding: 15px 18px;
}

.select-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.search-panel select {
  width: 100%;
  border-radius: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 28px;
  padding-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb a {
  color: #92400e;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  padding-bottom: 68px;
}

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

.player-card {
  overflow: hidden;
  padding: 10px;
  background: #111827;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.48));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-ring {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #f97316);
  box-shadow: 0 20px 48px rgba(217, 119, 6, 0.42);
  font-size: 2rem;
}

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.08;
}

.detail-content h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.detail-content p {
  margin: 0;
  font-size: 1.03rem;
}

.lead-text {
  font-size: 1.14rem !important;
  color: #4b5563 !important;
}

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

.detail-sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #fde68a, #fed7aa);
}

.side-box {
  padding: 20px;
}

.side-box h2 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

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

.movie-card.compact {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  box-shadow: none;
}

.movie-card.compact .poster-link img {
  height: 100%;
  min-height: 136px;
}

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

.movie-card.compact h2 {
  font-size: 1rem;
}

.movie-card.compact p,
.movie-card.compact .tag-row,
.movie-card.compact .text-link {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 22px;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 1fr;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 22px;
  text-align: center;
  color: var(--muted);
}

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

  .mobile-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

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

  .ranking-panel {
    position: static;
  }

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

@media (max-width: 680px) {
  .nav-shell {
    height: 62px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

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

  .mobile-nav,
  .quick-panel,
  .section-shell,
  .page-hero,
  .breadcrumb,
  .detail-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero,
  .hero-content {
    min-height: 74vh;
  }

  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 13vw, 3.6rem);
  }

  .hero-controls {
    bottom: 16px;
  }

  .quick-panel {
    margin-top: -24px;
    border-radius: 22px;
  }

  .movie-grid,
  .category-grid,
  .category-grid.large,
  .full-rank,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 38px 78px 1fr;
  }

  .select-row {
    grid-template-columns: 1fr;
  }

  .detail-content {
    padding: 22px;
  }
}
