:root {
  --page-bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.14);
  --accent: #d97706;
  --accent-dark: #92400e;
  --accent-soft: #fef3c7;
  --orange: #ea580c;
  --shadow: 0 20px 50px rgba(120, 53, 15, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 247, 237, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.32);
}

.brand-text {
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--accent-dark), var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #78350f;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  transform: translateY(-1px);
}

.nav-search {
  width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.nav-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
}

.nav-search button,
.hero-search-card button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  font-weight: 800;
  padding: 8px 16px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  cursor: pointer;
}

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

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

.mobile-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background: #111827;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease, transform 0.75s ease;
  transform: scale(1.02);
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(120, 53, 15, 0.72), rgba(17, 24, 39, 0.52)), var(--hero-bg);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(251, 191, 36, 0.25), transparent 34%),
    radial-gradient(circle at 84% 28%, rgba(234, 88, 12, 0.25), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 360px;
  gap: 44px;
  align-items: center;
  padding: 86px 0 130px;
}

.hero-copy {
  color: #fff;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-copy .eyebrow,
.detail-info .eyebrow {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(253, 230, 138, 0.32);
}

.hero-copy h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  margin: 20px 0;
  letter-spacing: -0.08em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.hero-summary {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.85;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 22px;
}

.hero-meta,
.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-meta span,
.movie-meta-line span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-meta span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.movie-meta-line span {
  color: #92400e;
  background: #fffbeb;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid rgba(217, 119, 6, 0.14);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-actions,
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.ghost-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.28);
  padding: 13px 22px;
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.13);
  padding: 12px 20px;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-link:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  aspect-ratio: 3 / 4;
}

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

.hero-poster span,
.detail-cover span,
.poster-play {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(217, 119, 6, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.hero-poster span,
.detail-cover span {
  width: 72px;
  height: 72px;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
}

.hero-search-card {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 6;
  width: min(var(--max-width), calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.hero-search-card form {
  flex: 1;
  color: #fff;
}

.hero-search-card label {
  display: block;
  margin: 0 0 8px;
  font-weight: 900;
}

.hero-search-card form div {
  display: flex;
  gap: 10px;
}

.hero-search-card input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-shortcuts a {
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  right: calc((100% - min(var(--max-width), calc(100% - 32px))) / 2);
  bottom: 150px;
  z-index: 8;
  display: flex;
  gap: 8px;
}

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

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

.section-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.intro-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.intro-panel h1,
.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.intro-panel p,
.page-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.intro-actions .secondary-button {
  color: var(--accent-dark);
  border-color: rgba(217, 119, 6, 0.2);
  background: #fff7ed;
}

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

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.section-heading > a,
.text-link {
  color: var(--accent-dark);
  font-weight: 900;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(120, 53, 15, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.32);
  box-shadow: 0 26px 64px rgba(120, 53, 15, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fef3c7;
}

.poster-link img,
.rank-cover img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.34s ease;
}

.movie-card:hover .poster-link img,
.rank-row:hover .rank-cover img,
.detail-cover:hover img {
  transform: scale(1.05);
}

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

.poster-play {
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.rank-badge {
  position: absolute;
  z-index: 3;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  font-weight: 900;
}

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

.movie-card h2 {
  margin: 12px 0 8px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-content h2 a:hover {
  color: var(--accent-dark);
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  border-radius: 26px;
  padding: 24px;
  color: #fff;
  background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.82)), var(--tile-bg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.category-tile span {
  font-size: 1.55rem;
  font-weight: 900;
}

.category-tile strong {
  max-width: 340px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.movie-rail .movie-card {
  scroll-snap-align: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 92px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-cover {
  display: block;
  width: 92px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #fef3c7;
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  font-weight: 900;
  font-size: 1.1rem;
}

.rank-content h2 {
  margin: 8px 0 6px;
  font-size: 1.25rem;
}

.rank-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ghost-link {
  padding: 10px 16px;
  color: var(--accent-dark);
  background: #fff7ed;
  border: 1px solid rgba(217, 119, 6, 0.18);
}

.page-hero {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 38px auto 0;
  border-radius: var(--radius-xl);
  padding: 64px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.32), transparent 30%),
    linear-gradient(135deg, #78350f, #d97706 48%, #ea580c);
  box-shadow: var(--shadow);
}

.page-hero .eyebrow {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.84);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(120, 53, 15, 0.08);
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-collage img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.category-overview-card h2 {
  margin: 12px 0 10px;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.filter-panel {
  padding-top: 34px;
}

.filter-bar {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(120, 53, 15, 0.08);
}

.filter-bar input {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 18px;
  outline: 0;
  padding: 14px 16px;
  color: var(--text);
  background: #fffbeb;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  color: #92400e;
  background: #fff7ed;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--orange));
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed rgba(217, 119, 6, 0.26);
  border-radius: 20px;
}

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

.detail-page {
  background: linear-gradient(180deg, #111827 0, #fff7ed 580px, #ffffff 100%);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(120, 53, 15, 0.75)), var(--detail-bg);
  background-size: cover;
  background-position: center;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 26% 16%, rgba(251, 191, 36, 0.22), transparent 34%);
}

.detail-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 78px 0;
}

.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: #fde68a;
}

.detail-info h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.86;
  font-size: 1.12rem;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.detail-meta-grid span {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-meta-grid strong {
  color: #fde68a;
  font-size: 0.78rem;
}

.watch-section {
  padding-top: 56px;
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.64));
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
}

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

.player-play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

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

.content-card {
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(120, 53, 15, 0.08);
}

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

.content-card p {
  color: #374151;
  line-height: 1.95;
  margin: 0;
}

.detail-nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
}

.detail-nav-links a {
  padding: 18px;
  border-radius: 20px;
  background: #fff7ed;
  border: 1px solid rgba(217, 119, 6, 0.18);
  color: #92400e;
  font-weight: 900;
}

.site-footer {
  margin-top: 64px;
  color: #fff7ed;
  background: linear-gradient(135deg, #431407, #78350f 48%, #92400e);
}

.footer-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-brand {
  font-size: 1.4rem;
  color: #fff;
}

.site-footer p {
  color: rgba(255, 247, 237, 0.72);
  line-height: 1.8;
}

.site-footer h2 {
  color: #fde68a;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.footer-links a {
  color: rgba(255, 247, 237, 0.78);
}

.footer-links a:hover {
  color: #fde68a;
}

.footer-bottom {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 247, 237, 0.72);
}

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

  .hero-content {
    grid-template-columns: 1fr 280px;
  }

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

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .brand-text {
    font-size: 1.08rem;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
    gap: 24px;
    padding-top: 56px;
  }

  .hero-poster {
    display: none;
  }

  .hero-search-card {
    display: grid;
    bottom: 22px;
  }

  .hero-shortcuts {
    justify-content: flex-start;
  }

  .hero-dots {
    right: 16px;
    bottom: 190px;
  }

  .intro-panel,
  .section-heading {
    display: grid;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .detail-content-grid,
  .detail-nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rank-row .ghost-link {
    grid-column: 3;
    justify-self: start;
  }

  .rank-cover {
    width: 76px;
  }

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

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

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

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

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

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero-copy h1 {
    font-size: 3.1rem;
  }

  .hero-search-card form div {
    display: grid;
  }

  .section-shell {
    padding: 44px 0;
  }

  .intro-panel {
    padding: 22px;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .detail-content-grid,
  .detail-nav-links {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-number {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .rank-content,
  .rank-row .ghost-link {
    grid-column: 2;
  }

  .detail-shell {
    grid-template-columns: 1fr;
    padding: 44px 0;
  }

  .detail-cover {
    width: min(260px, 74vw);
  }

  .detail-info h1 {
    font-size: 2.7rem;
  }

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

  .player {
    border-radius: 18px;
  }

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