:root {
  --bg: #fffaf3;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fef3c7;
  --line: #fde68a;
  --brand: #d97706;
  --brand-dark: #92400e;
  --accent: #f97316;
  --shadow: 0 24px 70px rgba(146, 64, 14, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.24), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #fffaf3 42%, #ffffff 100%);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(253, 230, 138, 0.82);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

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

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

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

.main-nav a {
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #4b5563;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--brand-dark);
  background: #ffedd5;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--brand-dark);
}

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

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 34px;
  background: #451a03;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.08fr 0.62fr;
  align-items: center;
  gap: 32px;
  padding: 78px 76px 104px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(253, 186, 116, 0.34), transparent 28rem),
    linear-gradient(90deg, rgba(67, 20, 7, 0.94), rgba(154, 52, 18, 0.56), rgba(67, 20, 7, 0.35));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-content .eyebrow {
  color: #fed7aa;
  background: rgba(255, 237, 213, 0.16);
  border: 1px solid rgba(255, 237, 213, 0.26);
}

.hero-content h1 {
  margin: 20px 0 18px;
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 650px;
  color: rgba(255, 247, 237, 0.9);
  font-size: 1.08rem;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(255, 247, 237, 0.18);
  color: #ffedd5;
  border: 1px solid rgba(255, 237, 213, 0.24);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 19px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.ghost-btn {
  color: #ffedd5;
  border: 1px solid rgba(255, 237, 213, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster {
  justify-self: end;
  width: min(320px, 100%);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(145deg, #fed7aa, #f59e0b);
  border: 8px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

.hero-dots {
  position: absolute;
  left: 70px;
  right: 70px;
  bottom: 28px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.hero-dot {
  min-height: 56px;
  border: 1px solid rgba(255, 237, 213, 0.2);
  border-radius: 18px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  cursor: pointer;
  font-weight: 800;
}

.hero-dot.is-active {
  color: #7c2d12;
  background: #ffedd5;
}

.search-band,
.section-wrap,
.category-overview,
.ranking-list,
.detail-page,
.inner-page {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.search-band {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid #fde68a;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 44px rgba(146, 64, 14, 0.08);
}

.search-band h2,
.section-head h2,
.category-overview h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
}

.search-band p,
.section-head p,
.page-hero p {
  color: var(--muted);
  line-height: 1.8;
}

.search-box input {
  width: 100%;
  height: 54px;
  border: 2px solid #fed7aa;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  background: #ffffff;
}

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

.section-wrap,
.category-overview {
  margin-top: 64px;
}

.wide-section {
  width: 100%;
}

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

.section-head h2,
.page-hero h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  color: #7c2d12;
}

.section-head > a {
  color: var(--brand-dark);
  font-weight: 900;
  background: #ffedd5;
  padding: 10px 16px;
  border-radius: 999px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.9);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 18px 48px rgba(146, 64, 14, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(146, 64, 14, 0.16);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #fef3c7, #fdba74);
  overflow: hidden;
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(255, 247, 237, 0.92);
  font-size: 0.78rem;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.card-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
}

.movie-card h3 {
  margin: 13px 0 8px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.movie-card p {
  min-height: 58px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.92rem;
}

.card-link {
  margin-top: 14px;
  width: 100%;
  min-height: 42px;
  color: #9a3412;
  background: #ffedd5;
}

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

.category-tile {
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid #fde68a;
  box-shadow: 0 18px 46px rgba(146, 64, 14, 0.09);
}

.category-main {
  display: grid;
  gap: 8px;
}

.category-main span {
  color: var(--brand-dark);
  font-size: 1.4rem;
  font-weight: 900;
}

.category-main strong {
  color: var(--muted);
  line-height: 1.7;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.mini-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.86rem;
  font-weight: 800;
}

.rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #fde68a;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
}

.rank-item a {
  font-weight: 900;
}

.rank-item > span:last-child {
  color: var(--muted);
  font-size: 0.85rem;
}

.page-hero {
  margin-top: 32px;
  padding: 48px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border: 1px solid #fde68a;
  box-shadow: var(--shadow);
}

.compact-hero {
  display: grid;
  gap: 14px;
}

.inline-search {
  max-width: 520px;
  margin-top: 10px;
}

.category-overview {
  padding-bottom: 18px;
}

.ranking-list {
  margin-top: 34px;
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid #fde68a;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(146, 64, 14, 0.08);
}

.ranking-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, #fef3c7, #fdba74);
}

.ranking-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #ffffff;
  background: #ea580c;
  font-weight: 900;
}

.ranking-card h2 {
  margin: 12px 0;
  color: #7c2d12;
}

.ranking-card p {
  color: var(--muted);
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb a {
  color: var(--brand-dark);
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  padding: 34px;
  border-radius: 34px;
  border: 1px solid #fde68a;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  box-shadow: var(--shadow);
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(145deg, #fef3c7, #fdba74);
  box-shadow: 0 24px 60px rgba(146, 64, 14, 0.18);
}

.detail-info {
  align-self: center;
}

.detail-info h1 {
  margin-top: 16px;
  color: #7c2d12;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-line {
  color: #4b5563;
  font-size: 1.12rem;
  line-height: 1.85;
}

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

.player-section,
.detail-content,
.prev-next,
.related-section {
  margin-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 28px 76px rgba(17, 24, 39, 0.28);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(234, 88, 12, 0.18), rgba(0, 0, 0, 0.52));
  cursor: pointer;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 20px 42px rgba(234, 88, 12, 0.4);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 24px;
  border-left: 24px solid #ffffff;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

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

.detail-content article {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid #fde68a;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(146, 64, 14, 0.08);
}

.detail-content h2 {
  margin-top: 0;
  color: #7c2d12;
}

.detail-content p {
  color: #4b5563;
  line-height: 1.95;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.prev-next a {
  padding: 18px;
  border-radius: 20px;
  color: var(--brand-dark);
  background: #ffedd5;
  font-weight: 900;
}

.site-footer {
  margin-top: 72px;
  padding: 48px 0 28px;
  color: #7c2d12;
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.3), rgba(254, 215, 170, 0.72));
  border-top: 1px solid #fed7aa;
}

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

.footer-logo {
  font-size: 1.45rem;
  font-weight: 900;
}

.site-footer p {
  color: #92400e;
  line-height: 1.8;
}

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

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(146, 64, 14, 0.18);
  color: #92400e;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-carousel {
    min-height: 680px;
  }

  .hero-slide,
  .detail-hero,
  .detail-content,
  .search-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    padding: 54px 28px 120px;
  }

  .hero-poster {
    justify-self: start;
    width: 210px;
  }

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

  .category-grid,
  .rank-list,
  .prev-next {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .hero-dots {
    left: 24px;
    right: 24px;
    grid-template-columns: 1fr;
  }

  .hero-dot:not(.is-active) {
    display: none;
  }

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

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

  .ranking-card {
    grid-template-columns: 96px 1fr;
  }
}
