:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-strong: #fff1dd;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f1d7b5;
  --brand: #d97706;
  --brand-dark: #b45309;
  --accent: #f97316;
  --shadow: 0 20px 45px rgba(180, 83, 9, 0.15);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(251, 191, 36, 0.2), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.15), transparent 28%),
    linear-gradient(180deg, #fffaf0 0%, #fff7ed 42%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

img {
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.92);
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 26px rgba(146, 64, 14, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
}

.brand-text {
  font-size: 1.22rem;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  color: #4b5563;
  font-size: 0.96rem;
  font-weight: 650;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
}

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

.header-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #ffffff;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  color: #374151;
  background: transparent;
}

.header-search button {
  height: 38px;
  margin-right: 3px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: #ffedd5;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #92400e;
  border-radius: 2px;
}

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

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

.mobile-link {
  padding: 10px 12px;
}

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

.hero {
  position: relative;
  min-height: 560px;
  margin: 28px auto 56px;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.72fr);
  gap: 30px;
  align-items: center;
  padding: 58px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-content {
  max-width: 690px;
  position: relative;
  z-index: 2;
}

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 16px;
  color: #ffedd5;
  background: rgba(251, 146, 60, 0.18);
  border: 1px solid rgba(253, 186, 116, 0.28);
  border-radius: 999px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 15px 40px rgba(0, 0, 0, 0.32);
}

.hero p {
  margin: 0 0 26px;
  max-width: 620px;
  color: #ffedd5;
  font-size: 1.08rem;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.32);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn-soft {
  color: #92400e;
  background: #ffedd5;
}

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

.hero-poster {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(320px, 100%);
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: #fbbf24;
}

.hero-search {
  position: absolute;
  right: 34px;
  bottom: 28px;
  z-index: 3;
  width: min(460px, calc(100% - 68px));
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  padding: 0 12px;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  padding: 8px 16px;
  font-weight: 800;
}

.content-section,
.page-hero,
.detail-shell,
.player-shell {
  margin: 46px 0;
}

.page-hero {
  padding: 38px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 237, 213, 0.9), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 38%);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 12px;
  color: #7c2d12;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #6b7280;
  font-size: 1.05rem;
}

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

.section-heading h2 {
  margin: 0;
  color: #7c2d12;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-more {
  display: inline-flex;
  flex-shrink: 0;
  color: #b45309;
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(146, 64, 14, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(146, 64, 14, 0.15);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fde68a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.card-body {
  padding: 15px;
}

.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #92400e;
  font-size: 0.86rem;
  font-weight: 750;
}

.card-meta span,
.detail-meta span,
.rank-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffedd5;
}

.card-body h3 {
  margin: 10px 0 8px;
  color: #1f2937;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 850;
}

.card-body p {
  min-height: 48px;
  margin: 0;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.55;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.card-tags span,
.detail-tags span {
  padding: 4px 8px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.category-card {
  padding: 22px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #fff3e0);
  box-shadow: 0 16px 34px rgba(146, 64, 14, 0.1);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  color: #7c2d12;
  font-size: 1.35rem;
  font-weight: 850;
}

.category-card p {
  margin: 0 0 18px;
  color: #6b7280;
}

.filter-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.08);
}

.filter-search-wrap {
  flex: 1;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  outline: 0;
  color: #374151;
  background: #ffffff;
  padding: 0 16px;
}

.filter-selects {
  display: flex;
  gap: 10px;
  min-width: 360px;
}

.no-results {
  grid-column: 1 / -1;
  margin: 18px 0;
  padding: 26px;
  text-align: center;
  color: #92400e;
  background: #ffedd5;
  border-radius: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(146, 64, 14, 0.08);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-radius: 16px;
  font-weight: 900;
}

.rank-thumb img {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.rank-content h2,
.rank-content h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 1.14rem;
  font-weight: 850;
}

.rank-content p {
  margin: 0;
  color: #6b7280;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  color: #9a3412;
  font-size: 0.94rem;
  font-weight: 700;
}

.breadcrumb a {
  color: #b45309;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

.player-stage {
  position: relative;
  background: #000000;
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

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

.play-button {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  font-size: 2rem;
  cursor: pointer;
}

.player-caption {
  padding: 20px 24px 24px;
  color: #fff7ed;
}

.player-caption h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.12;
}

.player-caption p {
  margin: 0;
  color: #fed7aa;
}

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

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-content {
  padding: 28px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(146, 64, 14, 0.09);
}

.detail-content h2 {
  margin: 0 0 12px;
  color: #7c2d12;
  font-size: 1.45rem;
  font-weight: 850;
}

.detail-content p {
  margin: 0 0 20px;
  color: #4b5563;
}

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

.compact-card .card-body p {
  display: none;
}

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

.site-footer {
  margin-top: 70px;
  padding: 46px 0 24px;
  color: #fed7aa;
  background: linear-gradient(135deg, #1f2937, #7c2d12);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 34px;
}

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

.footer-inner p {
  max-width: 520px;
  margin: 12px 0 0;
  color: #fed7aa;
}

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

.footer-links a {
  padding: 8px 12px;
  color: #ffedd5;
  border: 1px solid rgba(254, 215, 170, 0.24);
  border-radius: 999px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 20px;
  color: #fdba74;
  border-top: 1px solid rgba(254, 215, 170, 0.2);
  text-align: center;
  font-size: 0.92rem;
}

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 44px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

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

  main {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    min-height: 640px;
    margin-top: 16px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 30px 24px 120px;
  }

  .hero h1,
  .hero h2 {
    font-size: 2.35rem;
  }

  .hero-dots {
    left: 24px;
    bottom: 84px;
  }

  .hero-search {
    left: 16px;
    right: 16px;
    bottom: 20px;
    width: auto;
  }

  .section-heading,
  .filter-panel,
  .footer-inner {
    display: block;
  }

  .section-more {
    margin-top: 10px;
  }

  .filter-selects {
    display: grid;
    min-width: 0;
    margin-top: 10px;
  }

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

  .rank-item {
    grid-template-columns: 46px 72px minmax(0, 1fr);
  }

  .rank-item .btn-soft {
    grid-column: 1 / -1;
  }

  .rank-thumb img {
    width: 72px;
  }

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

  .detail-poster {
    max-width: 320px;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .page-hero,
  .detail-content {
    padding: 24px;
  }
}
