:root {
  --toffee-primary: #C87941;
  --toffee-secondary: #E5A76B;
  --toffee-light: #F5E6D3;
  --toffee-cream: #FFF8F0;
  --toffee-caramel: #B8784F;
  --toffee-brown: #8B5A3C;
  --toffee-dark: #6B4423;
  --cloud-white: #FFFFFF;
  --cloud-soft: #F9F9F9;
  --ink: #3F291B;
  --muted: #8A6A55;
  --shadow: 0 20px 60px rgba(107, 68, 35, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--toffee-dark);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at 12% 8%, rgba(229, 167, 107, 0.22), transparent 30rem),
    radial-gradient(circle at 90% 0%, rgba(200, 121, 65, 0.16), transparent 32rem),
    linear-gradient(135deg, var(--toffee-cream), #FFFFFF 48%, rgba(245, 230, 211, 0.65));
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(245, 230, 211, 0.72);
  background: rgba(255, 248, 240, 0.86);
  backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--toffee-dark);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
  box-shadow: 0 14px 30px rgba(200, 121, 65, 0.32);
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--toffee-brown);
  font-weight: 600;
  transition: 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
  box-shadow: 0 12px 24px rgba(200, 121, 65, 0.22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(245, 230, 211, 0.8);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--toffee-dark);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.toffee-card {
  border: 1px solid rgba(245, 230, 211, 0.82);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.toffee-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.25s ease;
}

.toffee-btn:hover {
  transform: translateY(-2px);
}

.toffee-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
  box-shadow: 0 16px 34px rgba(200, 121, 65, 0.32);
}

.toffee-btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.14);
}

.toffee-btn.outline {
  color: var(--toffee-primary);
  border-color: rgba(200, 121, 65, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--toffee-primary);
  background: rgba(229, 167, 107, 0.16);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-carousel {
  width: min(1320px, calc(100% - 32px));
  min-height: 620px;
  margin: 28px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 36px;
  box-shadow: var(--shadow);
  background: var(--toffee-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(40, 20, 10, 0.92), rgba(60, 30, 15, 0.58) 48%, rgba(40, 20, 10, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.38), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 38px;
  padding: 72px;
  color: #fff;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 20px 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-tags span,
.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
}

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

.hero-actions.small {
  margin-top: 18px;
}

.hero-poster {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
  transition: 0.3s ease;
}

.hero-poster:hover {
  transform: translateY(-8px) rotate(0deg);
}

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

.hero-poster span {
  display: block;
  padding: 16px;
  text-align: center;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 72px;
  bottom: 38px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
  background: #fff;
}

.hero-side {
  padding: 22px;
  align-self: stretch;
}

.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.side-title span,
.side-panel h2 {
  font-size: 20px;
  font-weight: 900;
}

.side-title a,
.text-link {
  color: var(--toffee-primary);
  font-weight: 800;
}

.mini-card {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  transition: 0.25s ease;
}

.mini-card:hover {
  background: rgba(245, 230, 211, 0.58);
}

.mini-card strong {
  color: var(--toffee-primary);
  font-size: 18px;
}

.mini-card img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
}

.mini-card b,
.mini-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.section-heading {
  margin: 0 0 24px;
}

.section-heading h2 {
  position: relative;
  display: inline-block;
  margin: 12px 0 10px;
  color: var(--toffee-dark);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--toffee-secondary), transparent);
}

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

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px;
  margin-bottom: 72px;
}

.intro-copy,
.quick-links {
  padding: 34px;
}

.intro-copy h2 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
}

.intro-copy p {
  margin: 0;
  color: var(--muted);
}

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

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  border-radius: 18px;
  color: var(--toffee-primary);
  background: rgba(245, 230, 211, 0.45);
  font-weight: 900;
  transition: 0.25s ease;
}

.quick-links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
  transform: translateY(-2px);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: 28px;
  color: #fff;
  background: var(--toffee-dark);
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: 0.35s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(40, 20, 10, 0.88), rgba(40, 20, 10, 0.08));
}

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.72;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.search-panel {
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(245, 230, 211, 0.82);
  box-shadow: 0 16px 34px rgba(107, 68, 35, 0.08);
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.movie-search {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(200, 121, 65, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.movie-search:focus {
  border-color: var(--toffee-primary);
  box-shadow: 0 0 0 4px rgba(200, 121, 65, 0.12);
}

.search-clear,
.filter-chip {
  border: 0;
  border-radius: 999px;
  color: var(--toffee-brown);
  background: rgba(245, 230, 211, 0.72);
  font-weight: 800;
}

.search-clear {
  padding: 0 20px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  padding: 9px 14px;
}

.filter-chip.active,
.filter-chip:hover,
.search-clear:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 230, 211, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 38px rgba(107, 68, 35, 0.1);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(107, 68, 35, 0.18);
}

.poster-link {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--toffee-light);
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(0deg, rgba(40, 20, 10, 0.62), transparent);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #E0A140, var(--toffee-primary));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.28;
}

.movie-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(200, 121, 65, 0.14);
  border-radius: 999px;
  color: var(--toffee-primary);
  background: rgba(245, 230, 211, 0.52);
  font-size: 12px;
  font-weight: 800;
}

.rank-section,
.page-main .container,
.detail-layout {
  margin-bottom: 72px;
}

.page-main {
  padding-top: 36px;
}

.page-hero {
  padding: clamp(28px, 5vw, 54px);
}

.page-hero h1 {
  margin: 16px 0 12px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  align-items: center;
}

.category-overview-card h2 {
  margin: 12px 0 8px;
  font-size: 28px;
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

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

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}

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

.rank-lead-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border-radius: 30px;
  color: #fff;
  background: var(--toffee-dark);
  box-shadow: var(--shadow);
}

.rank-lead-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
  transition: 0.35s ease;
}

.rank-lead-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(40, 20, 10, 0.9), rgba(40, 20, 10, 0.08));
}

.rank-lead-card:hover img {
  transform: scale(1.06);
}

.rank-lead-card span,
.rank-lead-card h2,
.rank-lead-card p {
  position: relative;
  z-index: 2;
}

.rank-lead-card span {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.rank-lead-card h2 {
  margin: 14px 0 8px;
  font-size: 28px;
}

.rank-lead-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.rank-list {
  padding: 18px;
}

.rank-list-row {
  display: grid;
  grid-template-columns: 56px 70px minmax(0, 1fr) 52px;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  transition: 0.2s ease;
}

.rank-list-row:hover {
  background: rgba(245, 230, 211, 0.55);
}

.rank-list-row > b,
.rank-list-row > i {
  color: var(--toffee-primary);
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.rank-list-row img {
  width: 70px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-list-row strong,
.rank-list-row em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list-row strong {
  color: var(--ink);
  font-size: 18px;
}

.rank-list-row em {
  color: var(--muted);
  font-style: normal;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--toffee-dark);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38, 18, 8, 0.94), rgba(38, 18, 8, 0.58), rgba(38, 18, 8, 0.2)),
    linear-gradient(0deg, rgba(38, 18, 8, 0.78), transparent 70%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 70px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.06;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: -78px;
  position: relative;
  z-index: 3;
}

.detail-content {
  display: grid;
  gap: 24px;
}

.player-section,
.text-section,
.side-panel {
  padding: 26px;
}

.player-section h2,
.text-section h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 26px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
}

.play-cover img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.play-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.74));
}

.play-orb {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--toffee-primary);
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.35);
  transition: 0.25s ease;
}

.play-cover:hover .play-orb {
  transform: scale(1.08);
}

.play-cover[hidden] {
  display: none;
}

.text-section p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  white-space: pre-line;
}

.related-section {
  padding-top: 10px;
}

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

.detail-aside {
  align-self: start;
  position: sticky;
  top: 100px;
}

.side-panel h2 {
  margin: 0 0 12px;
  color: var(--ink);
}

.site-footer {
  margin-top: 84px;
  padding: 48px 0 28px;
  color: var(--muted);
  border-top: 1px solid rgba(245, 230, 211, 0.8);
  background: rgba(255, 255, 255, 0.64);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  max-width: 480px;
  margin: 12px 0 0;
}

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

.footer-links a {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(245, 230, 211, 0.56);
  color: var(--toffee-brown);
  font-weight: 800;
}

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

.search-empty {
  grid-column: 1 / -1;
  padding: 30px;
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1180px) {
  .hero-carousel,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-side,
  .detail-aside {
    position: static;
  }

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

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

  .nav-toggle {
    display: block;
  }

  body.nav-open .mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-carousel {
    min-height: auto;
  }

  .hero-stage {
    min-height: 720px;
  }

  .hero-content,
  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding: 42px 24px;
  }

  .hero-poster,
  .detail-poster {
    width: min(280px, 80vw);
  }

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

  .intro-grid,
  .category-overview-grid,
  .rank-leads {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-layout {
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .footer-inner,
  .copyright,
  .hero-carousel {
    width: min(100% - 22px, 1180px);
  }

  .site-logo {
    font-size: 20px;
  }

  .hero-stage {
    min-height: 650px;
    border-radius: 26px;
  }

  .hero-content {
    min-height: 650px;
  }

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

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

  .quick-links,
  .search-box,
  .rank-list-row {
    grid-template-columns: 1fr;
  }

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

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

  .movie-card h3 {
    font-size: 16px;
  }

  .page-hero,
  .player-section,
  .text-section,
  .side-panel,
  .intro-copy,
  .quick-links {
    padding: 22px;
    border-radius: 22px;
  }

  .detail-hero {
    min-height: auto;
  }

  .footer-inner {
    flex-direction: column;
  }
}
