:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --yellow-400: #facc15;
  --red-500: #ef4444;
  --rose-100: #ffe4e6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 10px 24px rgba(17, 24, 39, 0.12);
  --shadow-lg: 0 24px 60px rgba(17, 24, 39, 0.18);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 32%, #fffaf0 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500), var(--yellow-400));
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.28);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-text {
  font-size: 24px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link,
.nav-drop-button {
  color: var(--white);
  border: 0;
  background: transparent;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-drop:hover .nav-drop-button {
  color: var(--amber-100);
  transform: translateY(-1px);
}

.nav-drop {
  position: relative;
}

.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: -24px;
  width: 190px;
  padding: 10px;
  border-radius: 14px;
  background: var(--white);
  color: var(--gray-700);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.nav-drop:hover .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
}

.nav-drop-menu a:hover {
  color: var(--amber-700);
  background: var(--amber-50);
}

.nav-search {
  position: relative;
  width: min(310px, 24vw);
}

.nav-search input,
.mobile-search input,
.hero-search input,
.page-filter-input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-900);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.18);
}

.nav-search input {
  padding: 10px 44px 10px 18px;
}

.nav-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-50);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  padding: 0 20px 18px;
  background: rgba(146, 64, 14, 0.96);
}

.mobile-search {
  display: flex;
  gap: 10px;
  padding-top: 16px;
}

.mobile-search input {
  padding: 11px 16px;
}

.mobile-search button,
.hero-search button,
.btn-primary {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.mobile-search button {
  padding: 0 18px;
}

.mobile-nav,
.mobile-subnav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-nav a {
  padding: 10px 0;
  color: var(--amber-50);
}

.mobile-subnav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-left: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--amber-600) 0%, var(--orange-500) 48%, var(--yellow-400) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.26), transparent 34%), radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.18), transparent 26%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.28;
  background: var(--white);
}

.hero-glow-left {
  left: -110px;
  top: -120px;
}

.hero-glow-right {
  right: -120px;
  bottom: -140px;
}

.hero-inner {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  padding: 78px 0 96px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.88fr);
  gap: 48px;
  align-items: center;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--amber-50);
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 20px 54px rgba(120, 53, 15, 0.32);
}

.hero p {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2.1vw, 24px);
  color: #fff7d6;
}

.hero-tags,
.tag-row,
.ranking-meta,
.movie-meta-line,
.movie-score-line,
.hero-link-row,
.filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 24px 0 0;
}

.hero-tags span,
.tag-row span,
.ranking-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
}

.btn-primary {
  background: var(--white);
  color: var(--amber-700);
}

.btn-ghost {
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(120, 53, 15, 0.38);
  transform: rotate(1.2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(120, 53, 15, 0.24));
}

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

.hero-play,
.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  z-index: 2;
}

.hero-controls {
  display: flex;
  gap: 10px;
  position: absolute;
  left: 0;
  bottom: 48px;
}

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

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

.hero-search {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -34px;
  display: flex;
  gap: 12px;
  max-width: 860px;
  padding: 12px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.hero-search input {
  padding: 14px 20px;
  box-shadow: none;
}

.hero-search button {
  padding: 0 30px;
  white-space: nowrap;
}

.content-section,
.page-main,
.detail-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 72px 0 0;
}

.featured-section {
  padding-top: 86px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--gray-500);
}

.section-more {
  color: var(--orange-600);
  font-weight: 800;
}

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--amber-100), var(--rose-100));
}

.poster-frame img,
.category-cover-stack img,
.ranking-item img,
.rank-row img,
.mini-card img,
.detail-info-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--amber-100), var(--rose-100));
}

.movie-card-link:hover .poster-frame img,
.category-card-large:hover img,
.rank-row:hover img,
.mini-card:hover img {
  transform: scale(1.08);
}

.poster-frame img,
.category-card-large img,
.rank-row img,
.mini-card img {
  transition: transform 0.35s ease;
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.48));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card-link:hover .poster-frame::after {
  opacity: 1;
}

.poster-badge,
.poster-duration {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  left: 12px;
  background: var(--amber-500);
}

.poster-duration {
  right: 12px;
  background: rgba(0, 0, 0, 0.64);
}

.poster-play {
  width: 56px;
  height: 56px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card-link:hover .poster-play {
  opacity: 1;
}

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

.movie-card-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 17px;
  line-height: 1.42;
}

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

.movie-meta-line,
.movie-score-line {
  justify-content: space-between;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta-line span:last-child {
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-score-line {
  margin-top: 8px;
}

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

.category-tile {
  min-height: 150px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #fef3c7, #fff7ed);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #ffedd5, #fee2e2);
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: var(--gray-700);
}

.two-col-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
}

.rank-panel,
.mini-panel {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 10px;
  border-radius: 16px;
  background: var(--gray-50);
}

.rank-row:hover {
  background: var(--amber-50);
}

.rank-index {
  color: var(--orange-600);
  font-size: 22px;
  font-weight: 900;
}

.rank-row img {
  width: 72px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
}

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

.rank-tag {
  color: var(--gray-500);
  font-size: 13px;
}

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

.mini-card a {
  display: grid;
  gap: 8px;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

.mini-card span {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-weight: 700;
  font-size: 14px;
}

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

.page-hero {
  margin-top: 30px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(120deg, var(--amber-600), var(--orange-500), var(--yellow-400));
  box-shadow: var(--shadow-lg);
}

.compact-hero {
  padding: 54px;
}

.compact-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--amber-50);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
}

.compact-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--amber-50);
  font-size: 18px;
}

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

.category-card-large a {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  min-height: 230px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-cover-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.category-cover-stack img {
  min-height: 92px;
  border-radius: 14px;
}

.category-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.category-card-copy p {
  color: var(--gray-500);
}

.category-card-copy span {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange-600);
  font-weight: 800;
}

.filter-bar {
  position: sticky;
  top: 82px;
  z-index: 10;
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.page-filter-input {
  padding: 14px 18px;
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.filter-chip {
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
}

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

.hero-link-row {
  margin-top: 24px;
}

.hero-link-row a {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

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

.ranking-item a {
  display: grid;
  grid-template-columns: 64px 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ranking-number {
  color: var(--orange-600);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.ranking-item img {
  width: 150px;
  height: 96px;
  border-radius: 16px;
}

.ranking-item h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.ranking-item p {
  margin: 0 0 10px;
  color: var(--gray-500);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-meta span {
  color: var(--amber-700);
  background: var(--amber-50);
}

.ranking-item strong {
  color: var(--orange-600);
  font-size: 20px;
}

.detail-main {
  padding: 28px 0 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--orange-600);
}

.detail-hero-block {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
  gap: 26px;
  align-items: stretch;
}

.player-card,
.detail-info-card,
.detail-article,
.detail-side {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111827;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.48));
  cursor: pointer;
}

.play-layer span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  font-size: 34px;
}

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

.detail-info-card {
  display: grid;
  grid-template-rows: 280px auto;
}

.detail-info-card img {
  min-height: 280px;
}

.detail-info-card div {
  padding: 24px;
}

.detail-info-card h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.detail-info-card p {
  margin: 0 0 18px;
  color: var(--gray-500);
}

.tag-row span {
  color: var(--amber-700);
  background: var(--amber-50);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  margin-top: 26px;
}

.detail-article,
.detail-side {
  padding: 28px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

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

.detail-article p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.detail-side ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-side li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.detail-side span {
  color: var(--gray-500);
}

.detail-side strong {
  font-weight: 800;
}

.related-section {
  width: 100%;
}

.site-footer {
  margin-top: 80px;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-800), var(--orange-600), var(--amber-700));
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 16px;
  font-size: 20px;
}

.site-footer p,
.site-footer a {
  color: var(--amber-50);
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--amber-50);
  text-align: center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .detail-hero-block,
  .detail-content-grid,
  .two-col-section {
    grid-template-columns: 1fr;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero-inner {
    min-height: auto;
    padding: 46px 0 84px;
  }

  .hero-slide,
  .hero-slide.active {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 300px;
  }

  .hero-controls {
    bottom: 34px;
  }

  .hero-search {
    position: static;
    margin-top: 28px;
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search button {
    min-height: 44px;
  }

  .section-head,
  .ranking-item a {
    align-items: stretch;
  }

  .section-head,
  .ranking-item a,
  .category-card-large a {
    grid-template-columns: 1fr;
    display: grid;
  }

  .ranking-item a {
    grid-template-columns: 48px 108px minmax(0, 1fr);
  }

  .ranking-item strong {
    grid-column: 2 / -1;
  }

  .ranking-item img {
    width: 108px;
    height: 78px;
  }

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

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

  .compact-hero {
    padding: 34px 24px;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .content-section,
  .page-main,
  .detail-main,
  .hero-inner,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1280px);
  }

  .movie-grid,
  .category-grid,
  .category-large-grid,
  .category-movie-grid,
  .all-movie-grid,
  .mini-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

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

  .rank-tag {
    display: none;
  }

  .detail-info-card {
    grid-template-rows: 220px auto;
  }

  .detail-content-grid {
    gap: 18px;
  }

  .detail-article,
  .detail-side {
    padding: 22px;
  }
}
