:root {
  --cream-50: #fffaf5;
  --cream-100: #fef8f3;
  --cream-200: #fbf9f7;
  --frosting-50: #fef8f3;
  --frosting-100: #fdf0e6;
  --frosting-300: #f9b384;
  --frosting-500: #f06c25;
  --frosting-600: #d95a1b;
  --frosting-700: #b54916;
  --dawn-100: #ffedd5;
  --dawn-200: #fed7aa;
  --dawn-500: #f97316;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3e7dc;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(180, 73, 22, 0.12);
  --soft-shadow: 0 12px 36px rgba(17, 24, 39, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(249, 179, 132, 0.26), transparent 34rem),
    radial-gradient(circle at 85% 18%, rgba(254, 215, 170, 0.34), transparent 32rem),
    linear-gradient(180deg, var(--cream-50) 0%, #ffffff 42%, rgba(254, 248, 243, 0.6) 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.28));
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
  box-shadow: 0 10px 26px rgba(240, 108, 37, 0.28);
  font-size: 15px;
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(8deg) scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 21px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--frosting-500), var(--dawn-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--frosting-500), var(--dawn-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--frosting-600);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--frosting-50);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #374151;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--frosting-700);
  background: linear-gradient(135deg, var(--frosting-50), var(--dawn-100));
}

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

.section,
.hero-inner,
.footer-grid,
.footer-bottom,
.page-hero-inner,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 64px 0 54px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.35;
  pointer-events: none;
}

.hero::before {
  left: 8%;
  top: 18%;
  background: var(--frosting-300);
  animation: blob 8s ease-in-out infinite;
}

.hero::after {
  right: 8%;
  bottom: 12%;
  background: var(--dawn-200);
  animation: blob 10s ease-in-out infinite reverse;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(254, 248, 243, 0.92), rgba(255, 237, 213, 0.78), rgba(254, 215, 170, 0.7));
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 42px;
  padding: 58px;
  opacity: 0;
  transform: translateX(40px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(240, 108, 37, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  background: linear-gradient(90deg, var(--frosting-600), var(--dawn-500), var(--frosting-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title small {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: var(--ink);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.hero-copy {
  max-width: 620px;
  margin: 0 0 26px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--frosting-500), var(--dawn-500));
  box-shadow: 0 14px 30px rgba(240, 108, 37, 0.24);
}

.secondary-button {
  color: #374151;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.ghost-button {
  color: var(--frosting-600);
  background: #ffffff;
  border: 1px solid rgba(240, 108, 37, 0.22);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(240, 108, 37, 0.18);
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags a,
.tag-list span,
.detail-tags a {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--frosting-700);
  background: linear-gradient(135deg, #fff7ed, var(--dawn-100));
  font-size: 13px;
  font-weight: 750;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-poster {
  position: absolute;
  inset: 0 0 0 48px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.88), rgba(181, 73, 22, 0.58));
  box-shadow: 0 26px 72px rgba(17, 24, 39, 0.28);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.62));
}

.hero-info-card {
  position: absolute;
  left: 0;
  bottom: 28px;
  width: min(360px, 84%);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.52);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.28);
}

.hero-info-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hero-info-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.hero-controls {
  position: absolute;
  left: 58px;
  right: 58px;
  bottom: 26px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.hero-dots {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(181, 73, 22, 0.22);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--frosting-500);
}

.hero-arrows {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--frosting-700);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}

.home-search {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 12px;
  width: min(760px, calc(100% - 32px));
  margin: -26px auto 42px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.home-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
}

.section {
  padding: 54px 0;
}

.section.soft {
  width: 100%;
  max-width: none;
  padding: 70px 0;
  background: linear-gradient(90deg, rgba(254, 248, 243, 0.9), rgba(255, 237, 213, 0.76));
}

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

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

.title-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-line {
  width: 5px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--frosting-500), var(--dawn-500));
}

.section-heading h2,
.page-title,
.detail-title {
  margin: 0;
  color: var(--ink);
}

.section-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
}

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

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--frosting-600);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(253, 240, 230, 0.86);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.12);
}

.movie-card.featured .card-media {
  aspect-ratio: 4 / 3;
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #231f20, var(--frosting-700));
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.58));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.duration,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.64);
  font-size: 12px;
  font-weight: 750;
}

.rank-badge {
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(240, 108, 37, 0.34);
}

.play-chip {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: var(--frosting-500);
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--frosting-700);
  background: linear-gradient(135deg, var(--frosting-50), var(--dawn-100));
  font-size: 12px;
  font-weight: 800;
}

.mini-chip.pale {
  color: #6b7280;
  background: #f9fafb;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.45;
}

.card-body h3 a:hover,
.compact-card h3 a:hover {
  color: var(--frosting-600);
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #5f6673;
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(253, 240, 230, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -35px;
  bottom: -35px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 108, 37, 0.2), rgba(249, 115, 22, 0.24));
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  color: #5f6673;
  line-height: 1.65;
}

.category-card span {
  position: relative;
  z-index: 2;
  color: var(--frosting-600);
  font-weight: 850;
}

.page-hero {
  padding: 82px 0 36px;
  background: linear-gradient(135deg, rgba(254, 248, 243, 0.9), rgba(255, 237, 213, 0.7));
}

.page-hero-inner {
  display: grid;
  gap: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--frosting-600);
  font-weight: 800;
}

.page-title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-desc {
  max-width: 820px;
  margin: 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(120px, 0.5fr)) auto;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(253, 240, 230, 0.94);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #f3e7dc;
  border-radius: 16px;
  background: #ffffff;
}

.search-box span {
  color: var(--frosting-500);
  font-size: 22px;
}

.search-box input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.filter-panel select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #f3e7dc;
  border-radius: 16px;
  background: #ffffff;
}

.empty-state {
  display: none;
  padding: 30px;
  border: 1px dashed rgba(240, 108, 37, 0.26);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(253, 240, 230, 0.86);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.1);
}

.compact-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: linear-gradient(135deg, #231f20, var(--frosting-700));
}

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

.compact-rank {
  position: absolute;
  left: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
  font-weight: 900;
}

.compact-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.45;
}

.compact-card p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: #5f6673;
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 42px 0 66px;
}

.detail-main,
.detail-side,
.content-card {
  border: 1px solid rgba(253, 240, 230, 0.86);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.detail-main {
  overflow: hidden;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050608;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #050608;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(240, 108, 37, 0.2), rgba(0, 0, 0, 0.62)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

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

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: var(--frosting-500);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
  font-size: 34px;
  transition: transform 0.2s ease;
}

.play-overlay:hover span {
  transform: scale(1.06);
}

.detail-content {
  padding: 28px;
}

.detail-title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #4b5563;
  background: #f9fafb;
  font-size: 13px;
  font-weight: 760;
}

.detail-content h2,
.content-card h2,
.detail-side h2 {
  margin: 28px 0 12px;
  font-size: 23px;
}

.detail-content p,
.content-card p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.9;
  font-size: 16px;
}

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

.detail-side {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 18px;
}

.side-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  background: linear-gradient(135deg, #231f20, var(--frosting-700));
}

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

.side-info {
  margin-top: 18px;
}

.side-info p {
  margin: 0 0 10px;
  color: #4b5563;
  line-height: 1.7;
}

.side-info strong {
  color: var(--ink);
}

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

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

.site-footer {
  border-top: 1px solid rgba(253, 240, 230, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(254, 248, 243, 0.95));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding: 54px 0 32px;
}

.footer-brand p,
.footer-grid a {
  color: #5f6673;
  line-height: 1.7;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.footer-grid a {
  display: block;
  margin: 0 0 9px;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--frosting-600);
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(253, 240, 230, 0.92);
  color: var(--muted);
  font-size: 14px;
}

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

@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(28px, -32px) scale(1.08);
  }
  66% {
    transform: translate(-20px, 18px) scale(0.94);
  }
}

@media (max-width: 1080px) {
  .movie-grid,
  .category-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-visual {
    min-height: 330px;
  }

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

  .detail-side {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-slider {
    min-height: 720px;
    border-radius: 28px;
  }

  .hero-slide {
    padding: 30px;
  }

  .hero-poster {
    inset: 0;
  }

  .hero-info-card {
    width: calc(100% - 28px);
    left: 14px;
    bottom: 14px;
  }

  .hero-controls {
    left: 30px;
    right: 30px;
  }

  .home-search {
    flex-direction: column;
  }

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

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .search-box {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 560px) {
  .nav-shell {
    height: 64px;
  }

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

  .brand-text small {
    font-size: 10px;
  }

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

  .hero-slider {
    min-height: 690px;
  }

  .hero-slide {
    padding: 22px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-copy,
  .page-desc {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-visual {
    min-height: 280px;
  }

  .movie-grid,
  .movie-grid.featured-grid,
  .category-cards,
  .related-grid,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .compact-card {
    grid-template-columns: 118px 1fr;
  }

  .detail-content {
    padding: 20px;
  }
}
