: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;
  --shadow-soft: 0 18px 50px rgba(139, 90, 60, 0.14);
  --shadow-card: 0 12px 30px rgba(139, 90, 60, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(229, 167, 107, 0.26), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(200, 121, 65, 0.15), transparent 30%),
    linear-gradient(135deg, var(--toffee-cream), #ffffff 46%, rgba(245, 230, 211, 0.46));
  color: var(--toffee-dark);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(245, 230, 211, 0.68);
  background: rgba(255, 248, 240, 0.88);
  box-shadow: 0 12px 40px rgba(139, 90, 60, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
  box-shadow: 0 10px 22px rgba(200, 121, 65, 0.28);
}

.brand-mark.large {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 28px;
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--toffee-primary), var(--toffee-caramel), var(--toffee-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--toffee-dark);
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
  box-shadow: 0 8px 18px rgba(200, 121, 65, 0.22);
}

.nav-link.compact {
  color: rgba(107, 68, 35, 0.78);
  background: rgba(255, 255, 255, 0.42);
}

.nav-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(229, 167, 107, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-search input,
.mobile-search input,
.hero-search input {
  width: 210px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 12px;
  color: var(--toffee-dark);
}

.nav-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
  padding: 8px 14px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
}

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

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hero-section {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 42px auto 72px;
  overflow: hidden;
}

.hero-soft-bg {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(245, 230, 211, 0.65), rgba(255, 255, 255, 0.3));
  filter: blur(0.1px);
}

.hero-heading {
  position: relative;
  text-align: center;
  max-width: 920px;
  margin: 0 auto 28px;
  padding: 28px 16px 10px;
}

.hero-logo-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.hero-heading h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--toffee-primary), var(--toffee-secondary), var(--toffee-caramel));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-heading p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: rgba(107, 68, 35, 0.78);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-search {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 8px;
}

.hero-search input {
  width: 100%;
  flex: 1;
}

.hero-search button {
  padding: 10px 24px;
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(107, 68, 35, 0.28);
  background: var(--toffee-dark);
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(29, 17, 8, 0.86), rgba(29, 17, 8, 0.36) 55%, rgba(29, 17, 8, 0.12)),
    linear-gradient(0deg, rgba(29, 17, 8, 0.72), transparent 50%);
}

.hero-content {
  position: absolute;
  left: clamp(22px, 6vw, 72px);
  bottom: clamp(28px, 6vw, 70px);
  width: min(650px, calc(100% - 44px));
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--toffee-secondary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-content h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.75;
}

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

.tag,
.genre-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.card-body .tag,
.detail-copy .tag,
.genre-links a {
  color: var(--toffee-brown);
  background: rgba(245, 230, 211, 0.78);
}

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

.toffee-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

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

.toffee-btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: 0.25s ease;
}

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

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

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

.section-head.compact-head {
  align-items: center;
}

.section-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--toffee-dark);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
}

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

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--toffee-primary);
  font-weight: 800;
}

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

.category-card,
.category-overview-card,
.story-card,
.ranking-panel,
.closing-card,
.filter-bar,
.movie-card,
.movie-list-card,
.full-rank-list,
.search-state {
  border: 1px solid rgba(245, 230, 211, 0.72);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.category-card {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: 0.28s ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover,
.movie-list-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.category-icon {
  font-size: 34px;
}

.category-card strong,
.category-overview-card h2 {
  font-size: 20px;
  color: var(--toffee-dark);
}

.category-card span:not(.category-icon),
.category-overview-card p,
.footer-brand p,
.footer-col p {
  color: rgba(107, 68, 35, 0.72);
  line-height: 1.75;
}

.category-card em {
  margin-top: auto;
  color: var(--toffee-primary);
  font-style: normal;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  transition: 0.28s ease;
}

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

.poster-wrap {
  aspect-ratio: 16 / 10;
}

.poster-wrap img,
.list-poster img,
.detail-poster img,
.full-rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-wrap img,
.movie-list-card:hover .list-poster img {
  transform: scale(1.08);
}

.type-pill,
.duration-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.64);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(200, 121, 65, 0.86);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.card-body,
.list-body {
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--toffee-dark);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--toffee-primary);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: rgba(107, 68, 35, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(107, 68, 35, 0.32);
}

.card-body p,
.list-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: rgba(107, 68, 35, 0.72);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
  gap: 26px;
  align-items: start;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.movie-list-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  transition: 0.28s ease;
}

.list-poster {
  min-height: 150px;
}

.ranking-panel {
  padding: 24px;
  position: sticky;
  top: 96px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 46px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 248, 240, 0.72);
  transition: 0.22s ease;
}

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

.rank-no,
.full-rank-no {
  color: var(--toffee-primary);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-genre {
  color: rgba(107, 68, 35, 0.62);
  font-size: 12px;
}

.rank-score,
.full-rank-score {
  color: var(--toffee-primary);
  font-weight: 900;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-card);
}

.tag-cloud a {
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--toffee-brown);
  background: rgba(245, 230, 211, 0.68);
  font-weight: 800;
  transition: 0.22s ease;
}

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

.closing-card {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto 72px;
  padding: 44px;
  text-align: center;
  background: linear-gradient(135deg, rgba(229, 167, 107, 0.2), rgba(255, 255, 255, 0.82));
}

.closing-card h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 40px);
}

.closing-card p {
  max-width: 680px;
  margin: 0 auto 24px;
  color: rgba(107, 68, 35, 0.72);
  line-height: 1.8;
}

.page-hero {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 42px auto 56px;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--toffee-dark), var(--toffee-primary));
  box-shadow: var(--shadow-soft);
}

.page-hero.small-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: clamp(34px, 7vw, 72px);
  color: #ffffff;
}

.page-hero.category-hero {
  min-height: 430px;
  display: flex;
  align-items: end;
  padding: clamp(28px, 5vw, 62px);
  color: #ffffff;
}

.page-hero.category-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(29, 17, 8, 0.86), rgba(29, 17, 8, 0.34));
}

.page-hero > div:last-child,
.page-hero.small-hero > div {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

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

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.category-overview-card {
  overflow: hidden;
  transition: 0.28s ease;
}

.category-main-link {
  display: block;
  padding: 24px;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 0 24px 24px;
}

.category-samples a {
  overflow: hidden;
  color: var(--toffee-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-bar label {
  display: grid;
  min-width: 230px;
  gap: 8px;
  color: var(--toffee-brown);
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(229, 167, 107, 0.38);
  border-radius: 999px;
  outline: 0;
  background: #ffffff;
  padding: 12px 15px;
  color: var(--toffee-dark);
}

.detail-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 34px auto 36px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(107, 68, 35, 0.72);
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--toffee-primary);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.detail-poster {
  overflow: hidden;
  border-radius: 34px;
  background: var(--toffee-light);
  box-shadow: var(--shadow-soft);
}

.detail-poster img {
  min-height: 520px;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(245, 230, 211, 0.72);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  padding: clamp(24px, 5vw, 46px);
  box-shadow: var(--shadow-card);
}

.detail-copy h1 {
  margin: 0 0 16px;
  color: var(--toffee-dark);
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 900;
}

.detail-one-line {
  margin: 0 0 24px;
  color: rgba(107, 68, 35, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  border-radius: 18px;
  background: rgba(245, 230, 211, 0.58);
  padding: 12px;
  color: var(--toffee-brown);
}

.detail-meta-grid strong {
  color: var(--toffee-primary);
  font-size: 12px;
}

.player-section {
  margin-top: 36px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #130c07;
  box-shadow: 0 30px 80px rgba(29, 17, 8, 0.35);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000000;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.76));
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  transform: translate(-50%, -50%);
  font-size: 34px;
}

.story-card {
  padding: clamp(24px, 5vw, 44px);
}

.story-card h2 {
  margin: 0 0 12px;
  color: var(--toffee-dark);
  font-size: 26px;
}

.story-card p {
  margin: 0 0 24px;
  color: rgba(107, 68, 35, 0.76);
  font-size: 17px;
  line-height: 1.95;
}

.full-rank-list {
  display: grid;
  overflow: hidden;
}

.full-rank-row {
  display: grid;
  grid-template-columns: 72px 84px minmax(0, 1.2fr) minmax(180px, 0.9fr) 70px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(245, 230, 211, 0.7);
  transition: 0.22s ease;
}

.full-rank-poster {
  width: 84px;
  height: 58px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--toffee-light);
}

.full-rank-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.full-rank-info strong,
.full-rank-info em,
.full-rank-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-rank-info strong {
  font-size: 17px;
}

.full-rank-info em,
.full-rank-meta {
  color: rgba(107, 68, 35, 0.66);
  font-style: normal;
  font-size: 13px;
}

.search-state {
  margin-bottom: 18px;
  padding: 18px 22px;
  color: var(--toffee-brown);
  font-weight: 800;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(245, 230, 211, 0.72);
  background: linear-gradient(135deg, rgba(245, 230, 211, 0.72), rgba(255, 255, 255, 0.9));
}

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

.footer-brand p {
  margin: 18px 0 0;
}

.footer-col h2 {
  margin: 0 0 14px;
  color: var(--toffee-dark);
  font-size: 18px;
}

.footer-col ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: rgba(107, 68, 35, 0.75);
  font-weight: 700;
}

.footer-col a:hover {
  color: var(--toffee-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(229, 167, 107, 0.26);
  padding: 16px;
  text-align: center;
  color: rgba(107, 68, 35, 0.72);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
  box-shadow: var(--shadow-card);
}

.back-top.is-visible {
  display: inline-flex;
}

[data-movie-card].is-hidden {
  display: none;
}

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

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

  .split-section,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    min-height: 64px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-section,
  .content-section,
  .page-hero,
  .detail-shell {
    width: min(100% - 24px, 1240px);
  }

  .hero-logo-line {
    flex-direction: column;
  }

  .hero-carousel {
    min-height: 520px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(29, 17, 8, 0.88), rgba(29, 17, 8, 0.35));
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 52px;
    width: auto;
  }

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

  .movie-list-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

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

  .full-rank-row {
    grid-template-columns: 52px 70px minmax(0, 1fr) 48px;
  }

  .full-rank-meta {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 17px;
  }

  .hero-heading {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-search,
  .mobile-search {
    border-radius: 22px;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search input,
  .mobile-search input {
    width: 100%;
  }

  .hero-carousel {
    min-height: 560px;
    border-radius: 26px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .toffee-btn {
    width: 100%;
  }

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

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .movie-list-card {
    grid-template-columns: 1fr;
  }

  .list-poster {
    aspect-ratio: 16 / 10;
  }

  .detail-poster img {
    min-height: 360px;
  }

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

  .player-shell {
    border-radius: 22px;
  }

  .big-play {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

  .full-rank-row {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .full-rank-poster {
    display: none;
  }
}
