* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --rose-400: #fb7185;
  --slate-900: #0f172a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(120, 53, 15, 0.08);
  --shadow-md: 0 16px 36px rgba(120, 53, 15, 0.13);
  --shadow-lg: 0 28px 65px rgba(120, 53, 15, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--orange-50), var(--amber-50) 45%, #fff7d6);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.1);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #fff;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 12px 22px rgba(217, 119, 6, 0.28);
  transition: transform 0.25s ease;
}

.brand-icon::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.18);
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
}

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

.brand-text strong {
  font-size: clamp(20px, 2.2vw, 27px);
  letter-spacing: -0.04em;
  color: var(--amber-700);
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text small {
  margin-top: 5px;
  color: var(--gray-500);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: var(--gray-700);
  transition: all 0.25s ease;
}

.nav-link {
  padding: 10px 15px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--amber-700);
  background: var(--amber-100);
  font-weight: 700;
}

.header-search {
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.26);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--amber-100);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--amber-800);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

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

.mobile-link {
  display: block;
  padding: 12px 16px;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #f97316 50%, #fb7185);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.28), transparent 14%), radial-gradient(circle at 70% 65%, rgba(255,255,255,0.18), transparent 18%);
  pointer-events: none;
}

.hero-track {
  position: relative;
  min-height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: center;
  gap: 44px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-bg {
  position: absolute;
  inset: 0 calc((100vw - min(1180px, calc(100vw - 32px))) / -2);
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.34;
  filter: saturate(1.15);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(120, 53, 15, 0.45), transparent 42%, rgba(120, 53, 15, 0.2));
}

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

.hero-kicker,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero-content h1 {
  max-width: 760px;
  margin: 22px 0 20px;
  color: #fff;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-shadow: 0 12px 28px rgba(67, 20, 7, 0.4);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(18px, 2.3vw, 25px);
  line-height: 1.65;
  text-shadow: 0 8px 20px rgba(67, 20, 7, 0.3);
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--amber-800);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.inline-actions {
  justify-content: center;
}

.primary-btn,
.ghost-btn,
.quick-search button,
.filter-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 18px 30px rgba(154, 52, 18, 0.26);
}

.primary-btn:hover,
.quick-search button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.primary-btn.full {
  width: 100%;
}

.hero-poster {
  align-self: center;
  justify-self: end;
  width: min(100%, 360px);
  aspect-ratio: 3 / 4;
  border: 8px solid rgba(255, 255, 255, 0.28);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 35px 90px rgba(67, 20, 7, 0.42);
  transform: rotate(3deg);
}

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

.hero-poster span,
.poster-play {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(217, 119, 6, 0.9);
  border-radius: 999px;
}

.hero-poster span {
  inset: auto auto 22px 22px;
  width: 58px;
  height: 58px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.28);
}

.hero-controls {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

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

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

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

.search-band {
  margin-top: -38px;
  position: relative;
  z-index: 5;
}

.quick-search,
.filter-card {
  border-radius: 26px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.quick-search label,
.filter-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--amber-800);
  font-weight: 800;
}

.quick-search div {
  display: flex;
  gap: 12px;
}

.quick-search input,
.filter-card input,
.filter-card select {
  width: 100%;
  border: 1px solid var(--amber-200);
  border-radius: 16px;
  outline: none;
  padding: 14px 16px;
  background: var(--amber-50);
  color: var(--gray-800);
}

.quick-search input:focus,
.filter-card input:focus,
.filter-card select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.quick-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  white-space: nowrap;
}

.block-section {
  padding: 62px 0;
}

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

.section-head h2,
.rank-head h2,
.content-card h2,
.side-card h2,
.category-overview-head h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.category-overview-head p {
  margin: 8px 0 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.section-more,
.rank-head a,
.category-overview-head a {
  color: var(--amber-700);
  font-weight: 800;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-link:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), transparent 42%, rgba(0,0,0,0.72));
}

.poster-year,
.poster-region {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  top: 12px;
  right: 12px;
  color: var(--amber-800);
  background: rgba(255, 255, 255, 0.92);
}

.poster-region {
  left: 12px;
  bottom: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.poster-play {
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: all 0.25s ease;
}

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

.movie-body {
  padding: 16px;
}

.movie-body h3 {
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.movie-link:hover h3 {
  color: var(--amber-700);
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.6;
}

.movie-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-desc {
  min-height: 44px;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-desc.compact {
  min-height: auto;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  background: var(--amber-100);
  color: var(--amber-800);
  font-size: 12px;
  padding: 5px 9px;
}

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

.category-panel {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--amber-100);
  box-shadow: var(--shadow-md);
}

.category-panel img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-panel:hover img {
  transform: scale(1.08);
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(67, 20, 7, 0.04), rgba(67, 20, 7, 0.82));
}

.category-info {
  position: absolute;
  inset: auto 18px 18px;
  color: #fff;
}

.category-info strong {
  display: block;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.category-info small {
  display: block;
  margin-top: 8px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.category-samples a {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.content-card,
.side-card,
.category-overview-card,
.filter-card,
.player-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.rank-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 38px 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--amber-100);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-no,
.rank-card-no {
  color: var(--amber-700);
  font-weight: 900;
  font-size: 18px;
}

.rank-item img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy strong,
.rank-copy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy small {
  margin-top: 4px;
  color: var(--gray-500);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-700), var(--orange-600) 55%, var(--rose-400));
}

.page-hero {
  padding: 86px 0;
  text-align: center;
}

.small-hero {
  padding: 64px 0;
}

.page-hero h1 {
  margin: 20px 0 12px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.06em;
}

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

.category-overview-list {
  display: grid;
  gap: 30px;
}

.category-overview-card {
  padding: 26px;
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--amber-800);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-weight: 800;
}

.pagination a.active,
.pagination a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

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

.rank-card a {
  display: grid;
  grid-template-columns: 48px 92px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-card a:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.rank-card img {
  width: 92px;
  height: 122px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-card-body strong,
.rank-card-body small,
.rank-card-body em {
  display: block;
}

.rank-card-body strong {
  color: var(--gray-800);
  font-size: 20px;
}

.rank-card-body small {
  margin: 7px 0;
  color: var(--amber-700);
  font-style: normal;
  font-weight: 700;
}

.rank-card-body em {
  color: var(--gray-600);
  font-style: normal;
  line-height: 1.7;
}

.filter-card {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.empty-result {
  border-radius: 22px;
  padding: 32px;
  color: var(--amber-800);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.detail-hero {
  min-height: 450px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.86;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(67, 20, 7, 0.68));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 42px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

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

.detail-copy {
  max-width: 820px;
  margin-top: 60px;
}

.detail-copy h1 {
  margin: 20px 0 18px;
  color: #fff;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 30px rgba(67, 20, 7, 0.42);
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.93);
  font-size: 20px;
  line-height: 1.75;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
  padding: 42px 0 70px;
}

.detail-main {
  display: grid;
  gap: 26px;
}

.player-card {
  padding: 14px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: var(--slate-900);
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--slate-900);
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.36);
  font-size: 34px;
}

.play-overlay strong {
  font-size: 20px;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
}

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

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

.content-card p {
  margin: 14px 0 24px;
  color: var(--gray-700);
  line-height: 2;
  font-size: 17px;
}

.content-card .section-head {
  margin-bottom: 22px;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.detail-poster {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
}

.side-card dt {
  color: var(--amber-700);
  font-weight: 900;
}

.side-card dd {
  margin: -8px 0 4px;
  color: var(--gray-700);
  line-height: 1.65;
}

.site-footer {
  color: var(--amber-50);
  background: linear-gradient(135deg, var(--amber-900), var(--orange-600) 52%, var(--amber-900));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(253, 230, 138, 0.28);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 22px;
}

.footer-brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.18);
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 251, 235, 0.82);
  line-height: 1.8;
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-line {
  font-weight: 800;
}

.copyright {
  padding-top: 24px;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 45;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--amber-600);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.25s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

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

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

  .two-column,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }

  .detail-side {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-track {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0 90px;
    align-content: center;
  }

  .hero-poster {
    justify-self: center;
    width: min(260px, 75vw);
    transform: rotate(0deg);
  }

  .quick-search div,
  .section-head,
  .category-overview-head {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .featured-grid,
  .listing-grid,
  .compact-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 560px) {
  .container,
  .header-inner,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-track {
    min-height: 760px;
  }

  .hero-content h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .movie-grid,
  .featured-grid,
  .listing-grid,
  .compact-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-card a {
    grid-template-columns: 40px 74px minmax(0, 1fr);
  }

  .rank-card img {
    width: 74px;
    height: 98px;
  }

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

  .content-card,
  .side-card,
  .category-overview-card,
  .filter-card,
  .quick-search {
    padding: 20px;
    border-radius: 22px;
  }
}
