: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-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(120, 53, 15, 0.12);
  --shadow-strong: 0 22px 48px rgba(120, 53, 15, 0.22);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--amber-50), #ffffff 360px);
  min-height: 100vh;
}

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;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  border-bottom: 1px solid rgba(251, 191, 36, 0.18);
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-800);
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.brand-name {
  font-size: 24px;
  letter-spacing: -0.03em;
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 700;
  padding: 22px 0;
  position: relative;
  transition: color 0.22s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  height: 3px;
  border-radius: 999px;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  transition: transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-700);
}

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

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--amber-800);
}

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.68);
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--amber-700);
  background: white;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: white;
  background: var(--amber-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.52fr);
  align-items: center;
  gap: 44px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 20px 92px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.15);
}

.hero-carousel::before,
.hero-carousel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(45px);
  opacity: 0.5;
}

.hero-carousel::before {
  width: 240px;
  height: 240px;
  top: 70px;
  left: 8%;
  background: #fbbf24;
}

.hero-carousel::after {
  width: 320px;
  height: 320px;
  right: 5%;
  bottom: 30px;
  background: #fb923c;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero-content h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.35);
}

.secondary-btn {
  color: var(--amber-800);
  background: white;
  box-shadow: 0 16px 30px rgba(120, 53, 15, 0.18);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 36px rgba(120, 53, 15, 0.25);
}

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  padding: 10px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

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

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-100));
}

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

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

.hero-dot.active {
  width: 34px;
  background: white;
}

.search-strip {
  margin-top: -40px;
  position: relative;
  z-index: 6;
  padding: 0 20px;
}

.search-strip-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.search-strip strong {
  display: block;
  color: var(--amber-800);
  font-size: 22px;
}

.search-strip p {
  margin: 6px 0 0;
  color: var(--gray-600);
}

.inline-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-search input,
.search-page-form input,
.search-page-form select,
.card-filter {
  min-height: 46px;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  padding: 0 18px;
  outline: 0;
  background: white;
  color: var(--gray-800);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

.inline-search button,
.search-page-form button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: white;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
  font-weight: 900;
  cursor: pointer;
}

.page-section,
.ranking-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 20px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--gray-800);
  letter-spacing: -0.04em;
}

.section-title.light h2,
.section-title.light .section-more {
  color: white;
}

.section-more {
  color: var(--amber-700);
  font-weight: 900;
}

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

.movie-card,
.compact-card,
.category-panel,
.category-card-large,
.content-card,
.detail-info,
.player-card,
.rank-panel,
.wide-panel {
  background: white;
  border: 1px solid rgba(251, 191, 36, 0.15);
  box-shadow: var(--shadow);
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-100));
}

.movie-poster img,
.compact-thumb img,
.category-card-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.34s ease;
}

.movie-card:hover .movie-poster img,
.compact-card:hover .compact-thumb img,
.category-card-large:hover img {
  transform: scale(1.06);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #ef4444, var(--orange-500));
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.28);
}

.movie-body {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 800;
}

.movie-body h3,
.compact-card h3,
.category-panel h3 {
  margin: 0;
  line-height: 1.35;
}

.movie-body h3 {
  font-size: 17px;
}

.movie-body h3 a:hover,
.compact-card h3 a:hover {
  color: var(--amber-700);
}

.movie-body p {
  min-height: 44px;
  margin: 10px 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
}

.tag-row span {
  padding: 6px 9px;
  color: var(--gray-700);
  background: var(--gray-100);
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
}

.wide-panel,
.rank-panel {
  border-radius: 28px;
  padding: 26px;
}

.horizontal-list,
.ranking-list {
  display: grid;
  gap: 18px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  padding: 12px;
}

.movie-card-horizontal .movie-poster {
  border-radius: 18px;
}

.movie-card-horizontal .movie-body {
  padding: 4px 8px 4px 0;
}

.movie-card-horizontal .movie-body p {
  min-height: 0;
}

.rank-panel {
  position: sticky;
  top: 88px;
  height: fit-content;
  background: linear-gradient(180deg, white, var(--amber-50));
}

.rank-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.rank-panel-head span {
  font-size: 34px;
}

.rank-panel-head h2 {
  margin: 0;
  color: var(--gray-800);
}

.compact-list {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  padding: 10px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-strong);
}

.compact-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-100));
}

.compact-card h3 {
  font-size: 15px;
}

.compact-card p {
  margin: 6px 0 0;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.45;
}

.full-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 44px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
  font-weight: 900;
}

.category-strip {
  padding: 62px 20px;
  background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
}

.category-strip .section-title,
.category-pills {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-pills a {
  padding: 12px 18px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-weight: 900;
  transition: background 0.22s ease, transform 0.22s ease;
}

.category-pills a:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

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

.category-panel {
  border-radius: 28px;
  padding: 22px;
}

.category-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.category-panel-head h3 {
  font-size: 24px;
  color: var(--gray-800);
}

.category-panel-head p {
  margin: 8px 0 0;
  color: var(--gray-500);
  line-height: 1.6;
}

.category-panel-head a {
  flex: 0 0 auto;
  color: var(--amber-700);
  font-weight: 900;
}

.page-hero {
  min-height: 330px;
  display: grid;
  align-items: center;
  padding: 70px 20px;
  color: white;
  background: radial-gradient(circle at 15% 10%, rgba(253, 230, 138, 0.44), transparent 30%), linear-gradient(135deg, var(--amber-800), var(--orange-600));
}

.page-hero > div {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.05em;
}

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

.small-hero,
.category-hero,
.rank-hero,
.search-hero {
  min-height: 290px;
}

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

.category-card-large {
  overflow: hidden;
  border-radius: 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card-large:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.category-card-large a {
  position: relative;
  display: block;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-100));
}

.category-card-large a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(120, 53, 15, 0.8), rgba(120, 53, 15, 0.08));
}

.category-card-large span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.category-card-large p {
  margin: 0;
  min-height: 86px;
  padding: 16px;
  color: var(--gray-600);
  line-height: 1.65;
}

.filter-bar {
  max-width: 1240px;
  margin: -32px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.filter-bar label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.filter-bar span {
  color: var(--amber-700);
  font-weight: 900;
}

.filter-bar input {
  width: 100%;
}

.filter-bar > a {
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--amber-700);
  background: white;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.ranking-layout {
  display: grid;
  gap: 34px;
}

.ranking-block {
  padding: 26px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.search-page-form {
  flex-wrap: wrap;
  max-width: 920px;
  margin-top: 28px;
}

.search-page-form input {
  min-width: min(420px, 100%);
  flex: 1;
}

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

.search-result-head h2 {
  margin: 0;
  font-size: 32px;
}

.search-result-head p {
  margin: 0;
  color: var(--gray-500);
}

.detail-page {
  background: var(--gray-50);
}

.detail-top {
  padding: 32px 20px 0;
}

.breadcrumb {
  max-width: 1240px;
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-700);
  font-weight: 800;
}

.detail-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-info,
.content-card {
  border-radius: 28px;
  overflow: hidden;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: white;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ring {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
  font-size: 28px;
}

.player-cover strong {
  max-width: 70%;
  font-size: 24px;
  text-align: center;
}

.detail-info {
  padding: 26px;
  position: sticky;
  top: 90px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-badges a,
.detail-badges span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 900;
}

.detail-badges span {
  color: #1d4ed8;
  background: #dbeafe;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 22px;
  color: var(--gray-600);
  line-height: 1.75;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.info-list div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.info-list dt {
  color: var(--gray-500);
  font-size: 13px;
}

.info-list dd {
  margin: 0;
  color: var(--gray-800);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-tags a {
  padding: 8px 12px;
  color: var(--gray-700);
  background: var(--gray-100);
}

.detail-play-btn {
  width: 100%;
}

.detail-content {
  padding-top: 34px;
  padding-bottom: 34px;
}

.content-card {
  padding: 30px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card h2:not(:first-child) {
  margin-top: 30px;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
  font-size: 16px;
}

.site-footer {
  color: var(--amber-50);
  background: linear-gradient(135deg, var(--amber-900), #7c2d12);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-inner h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 18px;
}

.footer-brand p,
.footer-inner a,
.footer-bottom {
  color: rgba(255, 251, 235, 0.78);
}

.footer-brand p {
  max-width: 360px;
  line-height: 1.7;
}

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

.footer-inner a:hover {
  color: white;
}

.footer-logo {
  color: white;
  font-size: 22px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 251, 235, 0.14);
  padding: 20px;
  text-align: center;
}

.is-hidden-card {
  display: none !important;
}

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

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

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

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

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

  .menu-toggle {
    display: flex;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 54px;
  }

  .hero-poster {
    justify-self: start;
    width: min(260px, 72vw);
  }

  .search-strip-inner,
  .section-title,
  .filter-bar,
  .search-result-head {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-search,
  .search-page-form {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .inline-search input,
  .inline-search button,
  .search-page-form input,
  .search-page-form select,
  .search-page-form button {
    width: 100%;
  }

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

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

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

  .page-section,
  .ranking-layout {
    padding: 48px 16px;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 20px;
  }

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

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

  .hero-content p,
  .page-hero p {
    font-size: 16px;
  }

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

  .movie-body {
    padding: 12px;
  }

  .movie-body p {
    display: none;
  }

  .player-cover strong {
    font-size: 18px;
  }
}
