:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.16);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--amber-50), var(--white) 38%, var(--orange-50));
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-500), #f97316);
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.32);
}

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

.brand-text strong {
  color: var(--gray-800);
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

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

.nav-link {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-panel input,
.hero-search input,
.toolbar input,
.toolbar select {
  border: 1px solid rgba(245, 158, 11, 0.45);
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  color: var(--gray-800);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.hero-search input:focus,
.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search input {
  width: 240px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
}

.header-search button,
.mobile-panel button,
.hero-search button {
  border: 0;
  color: var(--white);
  background: var(--amber-500);
  border-radius: 999px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button {
  height: 40px;
  padding: 0 16px;
}

.header-search button:hover,
.mobile-panel button:hover,
.hero-search button:hover {
  background: var(--amber-600);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--gray-700);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--amber-100);
  background: var(--white);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
}

.mobile-panel button {
  padding: 0 16px;
}

.mobile-panel a {
  padding: 10px 0;
  color: var(--gray-700);
  font-weight: 700;
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.hero-stage {
  position: relative;
  height: 610px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--gray-900);
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 46%);
}

.hero-content {
  position: absolute;
  left: clamp(28px, 5vw, 72px);
  bottom: 112px;
  width: min(640px, calc(100% - 56px));
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--amber-500);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 20px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), #f97316);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.3);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.btn-ghost-light {
  color: var(--amber-700);
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(255, 255, 255, 0.84);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.36);
  font-size: 34px;
  line-height: 1;
  z-index: 5;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-thumbs {
  position: absolute;
  left: clamp(20px, 4vw, 54px);
  right: clamp(20px, 4vw, 54px);
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  z-index: 6;
}

.hero-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
}

.hero-dot.is-active {
  border-color: var(--amber-300);
  background: rgba(245, 158, 11, 0.24);
}

.hero-dot img {
  width: 42px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
}

.hero-dot span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 800;
}

.hero-search-card {
  align-self: stretch;
  padding: 28px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.hero-search-card h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero-search-card p {
  margin: 0 0 22px;
  color: var(--gray-600);
  line-height: 1.8;
}

.hero-search {
  display: grid;
  gap: 12px;
}

.hero-search input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 16px;
}

.hero-search button {
  height: 50px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.quick-links a {
  padding: 12px 8px;
  border-radius: 14px;
  color: var(--amber-700);
  background: var(--amber-100);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.content-section,
.category-block,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 64px auto 0;
}

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

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

.section-title p {
  margin: 8px 0 0;
  max-width: 640px;
  color: var(--gray-600);
  line-height: 1.7;
}

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

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

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

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

.movie-card > a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  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 > a:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.poster-wrap {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-200), var(--amber-100));
}

.movie-card-large .poster-wrap {
  height: 350px;
}

.movie-card-mini .poster-wrap {
  height: 220px;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 52%);
  transition: opacity 0.25s ease;
}

.movie-card > a:hover .poster-wrap::after {
  opacity: 1;
}

.play-chip,
.type-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.play-chip {
  left: 14px;
  bottom: 14px;
  padding: 7px 12px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.94);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card > a:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.type-chip {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 0;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

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

.card-body p {
  margin: 10px 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
}

.card-body .tag-row {
  margin-top: auto;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--gray-900);
  box-shadow: var(--shadow-md);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
  opacity: 0.68;
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.6;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  border-color: var(--amber-300);
  transform: translateX(4px);
}

.rank-row strong {
  color: var(--amber-600);
  font-size: 20px;
}

.rank-row img {
  width: 52px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-row span {
  overflow: hidden;
  color: var(--gray-800);
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.section-more {
  margin-top: 28px;
  text-align: center;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.36), transparent 28%),
    linear-gradient(135deg, var(--gray-900), var(--gray-950));
  box-shadow: var(--shadow-lg);
}

.page-hero > div {
  width: min(780px, 100%);
  padding: clamp(44px, 7vw, 82px);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

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

.category-block {
  padding: 24px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.category-heading h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.category-heading p {
  margin: 0;
  color: var(--gray-600);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.toolbar input,
.toolbar select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
}

.toolbar input {
  min-width: min(360px, 100%);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 72px 96px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber-300);
  box-shadow: var(--shadow-md);
}

.rank-card strong {
  color: var(--amber-600);
  font-size: 28px;
}

.rank-card img {
  width: 96px;
  height: 126px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-card p {
  margin: 0 0 10px;
  color: var(--gray-600);
  line-height: 1.6;
}

.rank-card small {
  color: var(--gray-500);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gray-600);
  font-size: 14px;
}

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

.player-section {
  border-radius: var(--radius-xl);
  background: var(--gray-950);
  box-shadow: var(--shadow-lg);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.24));
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), #f97316);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.42);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: 28px;
}

.detail-main,
.info-card,
.side-card,
.text-panel {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.detail-main {
  padding: 24px;
}

.detail-head {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.detail-head > img {
  width: 190px;
  height: 250px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.detail-head h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-head p {
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 800;
  font-size: 13px;
}

.detail-tags span {
  background: var(--amber-100);
}

.text-panel {
  margin-top: 24px;
  padding: 22px;
}

.text-panel h2,
.info-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 24px;
}

.text-panel p,
.side-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.info-card,
.side-card {
  padding: 22px;
}

.info-card dl {
  margin: 0;
}

.info-card dt {
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.info-card dd {
  margin: 4px 0 0;
  color: var(--gray-900);
  font-weight: 800;
}

.info-card dd a {
  color: var(--amber-700);
}

.side-card .btn {
  margin-top: 18px;
}

.related-section {
  width: 100%;
}

.wide-card a {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.wide-card img {
  width: 126px;
  height: 166px;
  object-fit: cover;
  border-radius: 14px;
}

.wide-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.wide-card p {
  margin: 0 0 12px;
  color: var(--gray-600);
  line-height: 1.7;
}

.wide-card small {
  color: var(--gray-500);
}

.site-footer {
  margin-top: 80px;
  color: var(--gray-300);
  background: linear-gradient(180deg, var(--gray-900), var(--gray-950));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: flex;
  justify-content: space-between;
  gap: 34px;
}

.brand-footer .brand-text strong {
  color: var(--white);
}

.footer-brand p {
  max-width: 520px;
  color: var(--gray-500);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 16px 24px;
}

.footer-links a {
  color: var(--gray-400);
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--amber-500);
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--gray-500);
  text-align: center;
}

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

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-search-card {
    order: -1;
  }

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

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-stage {
    height: 560px;
  }

  .hero-content {
    bottom: 34px;
  }

  .hero-thumbs {
    display: none;
  }

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

  .category-heading,
  .section-title,
  .footer-inner {
    align-items: start;
    flex-direction: column;
  }

  .rank-card {
    grid-template-columns: 52px 78px minmax(0, 1fr);
  }

  .rank-card img {
    width: 78px;
    height: 104px;
  }

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

  .detail-head > img {
    width: 170px;
    height: 230px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .hero,
  .content-section,
  .category-block,
  .detail-shell,
  .page-hero,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand-text small {
    display: none;
  }

  .hero-stage {
    height: 500px;
    border-radius: 22px;
  }

  .hero-content {
    left: 22px;
    right: 22px;
    width: auto;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-links,
  .movie-grid,
  .movie-grid-large,
  .movie-grid-preview,
  .category-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .movie-card-large .poster-wrap,
  .movie-card-mini .poster-wrap {
    height: 360px;
  }

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

  .rank-row em {
    display: none;
  }

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

  .rank-card strong {
    position: absolute;
    margin: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(245, 158, 11, 0.92);
  }

  .rank-card img {
    width: 100%;
    height: 320px;
  }

  .page-hero > div {
    padding: 38px 24px;
  }
}
