:root {
  --bg-soft: #fff7ed;
  --bg-warm: #fffbeb;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --line: rgba(251, 146, 60, 0.24);
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 20px 60px rgba(124, 45, 18, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fef3c7 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(124, 45, 18, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark,
.footer-brand span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.28);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong,
.footer-brand strong {
  font-size: 24px;
  line-height: 1;
  color: var(--orange-dark);
  letter-spacing: 0.02em;
}

.brand-text em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link,
.mobile-link {
  border-radius: 14px;
  padding: 10px 16px;
  color: #374151;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.26);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(251, 146, 60, 0.16);
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #7c2d12;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 18px;
  flex-direction: column;
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-slides,
.hero-slide,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg img,
.detail-backdrop img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}

.hero-bg::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.52), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.74) 46%, rgba(17, 24, 39, 0.26) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 40px));
  padding-top: 118px;
  margin-left: max(20px, calc((100vw - 1240px) / 2 + 20px));
}

.eyebrow {
  margin: 0 0 14px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

.hero-summary,
.detail-one-line {
  margin: 24px 0 0;
  max-width: 650px;
  color: #ffedd5;
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.75;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.text-button,
.clear-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 12px 22px;
  font-weight: 900;
  transition: 0.25s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.34);
}

.primary-button:hover,
.text-button:hover,
.clear-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 38px rgba(249, 115, 22, 0.32);
}

.ghost-button {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  color: var(--orange-dark);
  background: #fff;
}

.hero-poster {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1240px) / 2 + 24px));
  bottom: 88px;
  width: min(300px, 25vw);
  aspect-ratio: 2 / 3;
  border: 6px solid rgba(255, 255, 255, 0.34);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img,
.movie-cover img,
.detail-poster img,
.category-card img,
.category-overview-cover img,
.mini-card img {
  height: 100%;
  object-fit: cover;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 76px;
  z-index: 5;
  width: min(620px, calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.hero-search input,
.filter-panel input {
  flex: 1;
  width: 100%;
  border: 2px solid transparent;
  outline: 0;
  color: #1f2937;
  background: #fff;
  border-radius: 999px;
  padding: 13px 18px;
  transition: 0.2s ease;
}

.hero-search input:focus,
.filter-panel input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.hero-search button {
  border: 0;
  color: #fff;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.section-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 0;
}

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head span {
  display: block;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2,
.content-card h2,
.content-side h2 {
  margin: 4px 0 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.12;
}

.section-head a,
.text-button {
  color: var(--orange-dark);
  font-weight: 900;
}

.category-grid,
.movie-grid,
.overview-grid {
  display: grid;
  gap: 18px;
}

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

.category-card,
.category-overview-card,
.content-card,
.content-side,
.filter-panel,
.ranking-box,
.cta-panel,
.player-box,
.pager-row {
  background: var(--card);
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.category-card {
  position: relative;
  min-height: 184px;
  border-radius: 24px;
  overflow: hidden;
  transform: translateZ(0);
}

.category-card::after,
.category-overview-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.1));
}

.category-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}

.category-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

.category-card em,
.category-overview-card p {
  display: block;
  color: #ffedd5;
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
}

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

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

.movie-card {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.11);
  overflow: hidden;
  transition: 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(124, 45, 18, 0.18);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #fed7aa;
}

.movie-cover img {
  transition: transform 0.6s ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.08);
}

.movie-year,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 18px rgba(124, 45, 18, 0.22);
}

.movie-year {
  right: 10px;
  padding: 5px 9px;
}

.rank-badge {
  left: 10px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.cover-shade {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  color: #fff;
  min-height: 58%;
  display: flex;
  align-items: end;
  padding: 48px 12px 12px;
  font-size: 12px;
  line-height: 1.55;
  opacity: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.9), transparent);
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-shade {
  opacity: 1;
}

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--orange-dark);
}

.movie-meta,
.movie-line {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.movie-line {
  min-height: 36px;
}

.tag-row {
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  color: #9a3412;
  background: #fff7ed;
  padding: 4px 8px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.ranking-box {
  border-radius: 26px;
  padding: 22px;
}

.sticky-box {
  position: sticky;
  top: 92px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.84);
  transition: 0.25s ease;
}

.mini-card:hover {
  background: #fff;
  transform: translateX(3px);
}

.mini-card img {
  height: 88px;
  border-radius: 14px;
}

.mini-card span {
  display: grid;
  gap: 5px;
}

.mini-card b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, var(--orange));
  font-size: 12px;
}

.mini-card strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
}

.mini-card em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
}

.cta-panel {
  margin-top: 72px;
  margin-bottom: 72px;
  border-radius: 34px;
  padding: 54px 24px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, var(--orange), var(--amber));
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
}

.cta-panel p {
  width: min(720px, 100%);
  margin: 16px auto 26px;
  color: #fff7ed;
  line-height: 1.75;
}

.cta-panel .primary-button {
  color: var(--orange-dark);
  background: #fff;
}

.page-hero {
  padding: 86px 20px 70px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, var(--orange), var(--amber));
}

.page-hero p {
  max-width: 780px;
  margin: 20px auto 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
  color: #ffedd5;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  border-radius: 28px;
  padding: 18px;
}

.category-overview-cover {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 22px;
}

.category-overview-card h2 {
  margin: 4px 0 10px;
  font-size: 26px;
}

.category-overview-card p {
  color: var(--text-muted);
  font-size: 15px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.inline-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  background: #ffedd5;
}

.filter-panel {
  display: grid;
  gap: 14px;
  border-radius: 26px;
  padding: 20px;
  margin-bottom: 24px;
}

.filter-panel label {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.filter-panel input {
  border-color: #fed7aa;
}

.search-panel {
  gap: 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.chip-row strong {
  color: #9a3412;
  margin-right: 4px;
}

.chip-row button,
.clear-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

.chip-row button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.clear-button {
  justify-self: start;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.empty-state {
  display: none;
  padding: 52px 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 900;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.66;
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 70px;
}

.detail-inner .breadcrumb {
  justify-content: flex-start;
  margin-bottom: 34px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 30px;
  border: 6px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.player-section {
  padding-top: 42px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

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

.player-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(249, 115, 22, 0.36), transparent 24%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.42));
}

.player-box.is-playing .player-poster {
  display: none;
}

.play-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: #fff;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 24px 50px rgba(249, 115, 22, 0.38);
}

.player-poster strong {
  font-size: clamp(20px, 3vw, 32px);
}

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

.content-card,
.content-side {
  border-radius: 26px;
  padding: 28px;
}

.content-card p {
  margin: 14px 0 24px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.content-side dl,
.content-side div {
  margin: 0;
}

.content-side dl {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.content-side div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #fed7aa;
}

.content-side dt {
  color: #9a3412;
  font-weight: 900;
}

.content-side dd {
  margin: 0;
  color: #374151;
}

.pager-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-radius: 24px;
  padding: 18px;
}

.pager-row a {
  color: var(--orange-dark);
  font-weight: 900;
}

.site-footer {
  margin-top: 80px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 58%, #111827);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-brand strong {
  color: #fbbf24;
}

.site-footer p {
  max-width: 460px;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: 18px;
}

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

.footer-links a {
  color: #d1d5db;
  font-size: 14px;
}

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #9ca3af;
  border-top: 1px solid rgba(156, 163, 175, 0.22);
  font-size: 14px;
}

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

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

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

  .sticky-box {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 86px;
  }

  .hero-poster {
    display: none;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search button {
    min-height: 48px;
  }

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

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

  .category-overview-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom,
  .pager-row {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding-inline: 14px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .brand-text em {
    display: none;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-summary,
  .detail-one-line,
  .page-hero p {
    font-size: 16px;
  }

  .section-wrap {
    width: min(100% - 20px, 1240px);
    padding-top: 48px;
  }

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

  .movie-info {
    padding: 11px;
  }

  .movie-line,
  .tag-row {
    display: none;
  }

  .mini-card {
    grid-template-columns: 58px 1fr;
  }

  .mini-card img {
    height: 76px;
  }

  .content-card,
  .content-side,
  .ranking-box,
  .filter-panel {
    padding: 18px;
  }
}
