:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-50: #fff7ed;
  --white-soft: rgba(255, 255, 255, 0.92);
  --shadow-sm: 0 8px 24px rgba(28, 25, 23, 0.08);
  --shadow-md: 0 16px 40px rgba(28, 25, 23, 0.12);
  --shadow-xl: 0 28px 80px rgba(28, 25, 23, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--stone-50), #ffffff 44%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.82), rgba(28, 25, 23, 0));
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-nav.is-scrolled,
.site-nav.nav-fixed-light {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.09);
}

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

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

.brand {
  color: #ffffff;
  font-size: 24px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.site-nav.is-scrolled .brand,
.site-nav.nav-fixed-light .brand {
  color: var(--stone-800);
  text-shadow: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--amber-500);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
  font-size: 14px;
  padding-left: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-menu > a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-menu > a:hover {
  color: var(--amber-400);
}

.site-nav.is-scrolled .nav-menu > a,
.site-nav.nav-fixed-light .nav-menu > a {
  color: var(--stone-700);
}

.site-nav.is-scrolled .nav-menu > a:hover,
.site-nav.nav-fixed-light .nav-menu > a:hover {
  color: var(--amber-600);
}

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

.nav-search input {
  width: 170px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.site-nav.is-scrolled .nav-search input,
.site-nav.nav-fixed-light .nav-search input {
  color: var(--stone-800);
  background: var(--stone-100);
}

.site-nav.is-scrolled .nav-search input::placeholder,
.site-nav.nav-fixed-light .nav-search input::placeholder {
  color: var(--stone-500);
}

.nav-search button,
.btn-primary,
.intro-search button,
.search-form button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber-500);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.25);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button {
  padding: 10px 16px;
}

.nav-search button:hover,
.btn-primary:hover,
.intro-search button:hover,
.search-form button:hover {
  background: var(--amber-600);
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.32);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  cursor: pointer;
}

.site-nav.is-scrolled .nav-toggle,
.site-nav.nav-fixed-light .nav-toggle {
  color: var(--stone-800);
  background: var(--stone-100);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #000000;
}

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

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

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

.hero-slide.is-active > img {
  transform: scale(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 78px;
  color: #ffffff;
}

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

.hero-tags span,
.pill-row span {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-tags span:first-child {
  background: var(--amber-500);
}

.hero h1 {
  max-width: 780px;
  margin: 22px 0 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.hero p {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
}

.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: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 40px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

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

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

.no-pad-top {
  padding-top: 20px;
}

.page-shell {
  padding-top: 116px;
}

.intro-panel,
.editor-panel,
.category-block,
.search-panel,
.filter-panel,
.page-hero {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.intro-panel {
  margin-top: 42px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  color: var(--amber-600);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-copy h2,
.page-hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.intro-copy p,
.page-hero p,
.section-heading p,
.category-block-head p {
  color: var(--stone-600);
  line-height: 1.75;
}

.intro-search,
.search-form {
  display: flex;
  gap: 12px;
}

.intro-search input,
.search-form input,
.filter-field input,
.filter-field select,
.search-filters select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--stone-800);
  background: var(--stone-50);
  outline: none;
}

.intro-search input:focus,
.search-form input:focus,
.filter-field input:focus,
.filter-field select:focus,
.search-filters select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.intro-search button,
.search-form button {
  padding: 0 24px;
  white-space: nowrap;
}

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

.section-heading h2,
.category-block-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.035em;
}

.section-heading p,
.category-block-head p {
  margin: 8px 0 0;
}

.section-more,
.category-block-head a {
  color: var(--amber-600);
  font-weight: 800;
  white-space: nowrap;
}

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

.category-tile {
  min-height: 190px;
  border-radius: 24px;
  padding: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--stone-900), var(--stone-700));
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #1e1b4b, #57534e);
}

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

.category-tile span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
}

.category-tile h3 {
  margin: 14px 0 18px;
  font-size: 18px;
  line-height: 1.55;
}

.tile-links {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

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

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

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

.movie-card,
.movie-row-card {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover,
.movie-row-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.movie-link {
  display: block;
  height: 100%;
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-900), var(--stone-700));
}

.movie-cover img,
.row-cover img,
.rank-item img,
.side-links img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .movie-cover img,
.movie-row-card:hover .row-cover img {
  transform: scale(1.1);
}

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.08));
  transition: opacity 0.28s ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

.play-badge,
.row-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  padding-left: 3px;
}

.movie-card:hover .play-badge,
.movie-row-card:hover .row-cover span {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
}

.movie-info {
  padding: 18px;
}

.type-badge,
.detail-tags span,
.meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-600);
  background: var(--amber-100);
}

.movie-info h3,
.movie-overlay-content h3,
.row-info h3 {
  margin: 10px 0 8px;
  color: var(--stone-800);
  font-size: 18px;
  line-height: 1.35;
}

.movie-info p,
.row-info p {
  margin: 0;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--stone-500);
  font-size: 13px;
}

.movie-card-large .movie-link {
  position: relative;
  min-height: 320px;
}

.movie-card-large .movie-cover {
  height: 100%;
  min-height: 320px;
}

.movie-card-large .movie-cover::after {
  opacity: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.05));
}

.movie-overlay-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 24px;
  color: #ffffff;
}

.movie-overlay-content h3,
.movie-overlay-content p {
  color: #ffffff;
}

.movie-overlay-content small {
  color: rgba(255, 255, 255, 0.78);
}

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

.movie-row-link {
  display: flex;
  gap: 18px;
  padding: 16px;
}

.row-cover {
  position: relative;
  flex: 0 0 210px;
  height: 126px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--stone-900);
}

.row-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.meta-line span {
  color: var(--stone-600);
  background: var(--stone-100);
}

.rank-preview,
.editor-panel {
  padding: 40px;
}

.rank-preview {
  margin-top: 76px;
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
  border-radius: 30px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.rank-item img {
  width: 74px;
  height: 48px;
  border-radius: 12px;
  background: var(--stone-900);
}

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

.rank-meta {
  color: var(--stone-500);
  font-size: 13px;
  white-space: nowrap;
}

.editor-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.page-hero {
  padding: 42px;
  margin-bottom: 34px;
  background: linear-gradient(135deg, #ffffff, var(--amber-50));
}

.small-hero h1 {
  max-width: 800px;
}

.small-hero p {
  max-width: 760px;
  margin: 0;
}

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

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

.category-block {
  padding: 30px;
  margin-bottom: 34px;
}

.filter-panel,
.search-panel {
  padding: 24px;
  margin-bottom: 30px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px 220px;
  gap: 18px;
}

.filter-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 800;
}

.search-panel {
  display: grid;
  gap: 18px;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.search-filters select {
  width: auto;
  min-width: 170px;
}

.search-filters button,
.js-search-reset {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--stone-700);
  background: var(--stone-100);
  cursor: pointer;
  font-weight: 800;
}

.empty-state {
  display: none;
  text-align: center;
  color: var(--stone-500);
  padding: 56px 0;
  font-weight: 700;
}

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

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

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow-xl);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.2));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 5px;
  background: rgba(245, 158, 11, 0.94);
  box-shadow: 0 20px 52px rgba(245, 158, 11, 0.35);
  font-size: 30px;
}

.player-overlay span:last-child {
  font-weight: 900;
  font-size: 18px;
}

.player-message {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-weight: 700;
}

.detail-card,
.review-card,
.side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.detail-card,
.review-card {
  padding: 30px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.detail-tags span {
  color: var(--stone-700);
  background: var(--stone-100);
}

.detail-tags span:first-child {
  color: var(--amber-600);
  background: var(--amber-100);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0;
  margin: 18px 0;
  border-top: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
}

.detail-meta-grid div {
  display: grid;
  gap: 4px;
}

.detail-meta-grid small {
  color: var(--stone-500);
}

.detail-card h2,
.review-card h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-card p,
.review-card p {
  margin: 0;
  color: var(--stone-700);
  line-height: 1.9;
  white-space: pre-line;
}

.review-card {
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

.detail-side {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 100px;
  padding: 22px;
}

.side-links {
  display: grid;
  gap: 14px;
}

.side-links a {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  font-weight: 800;
}

.side-links img {
  width: 88px;
  height: 58px;
  border-radius: 12px;
  background: var(--stone-900);
}

.side-links span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-section {
  padding-top: 62px;
}

.site-footer {
  margin-top: 90px;
  color: var(--stone-300, #d6d3d1);
  background: linear-gradient(180deg, var(--stone-900), #0c0a09);
}

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

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

.footer-brand p {
  max-width: 420px;
  color: #a8a29e;
  line-height: 1.8;
}

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

.footer-links h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links a {
  color: #a8a29e;
  transition: color 0.2s ease;
}

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

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

  .detail-layout,
  .editor-grid,
  .intro-panel {
    grid-template-columns: 1fr;
  }

  .detail-side .side-card {
    position: static;
  }

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

@media (max-width: 820px) {
  .nav-inner {
    height: 66px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu > a {
    color: var(--stone-800);
  }

  .nav-search {
    display: grid;
  }

  .nav-search input {
    width: 100%;
    color: var(--stone-800);
    background: var(--stone-100);
  }

  .nav-search input::placeholder {
    color: var(--stone-500);
  }

  .hero {
    min-height: 620px;
    height: 82vh;
  }

  .hero-content {
    padding-bottom: 92px;
  }

  .hero-actions {
    width: 100%;
  }

  .btn-primary,
  .btn-ghost {
    flex: 1 1 160px;
  }

  .hero-dots {
    right: auto;
    left: 16px;
    bottom: 34px;
  }

  .section-heading,
  .category-block-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .rank-meta {
    grid-column: 3;
  }

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

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

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

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

  .content-section,
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .page-shell {
    padding-top: 94px;
  }

  .intro-panel,
  .editor-panel,
  .rank-preview,
  .category-block,
  .page-hero,
  .search-panel,
  .filter-panel,
  .detail-card,
  .review-card {
    padding: 22px;
    border-radius: 22px;
  }

  .intro-search,
  .search-form {
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .movie-grid-large,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .movie-row-link {
    flex-direction: column;
  }

  .row-cover {
    width: 100%;
    flex: auto;
    height: auto;
    aspect-ratio: 16 / 9;
  }

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

  .side-links a {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}
