:root {
  --stone-50: #faf9f7;
  --stone-100: #f5f3f0;
  --stone-200: #e5e1da;
  --stone-300: #d1cac0;
  --stone-400: #b8aea0;
  --stone-500: #9c8d7b;
  --stone-600: #87786a;
  --stone-700: #6f6259;
  --stone-800: #5c534c;
  --stone-900: #4c4740;
  --earth-50: #faf8f5;
  --earth-100: #f2ede4;
  --earth-200: #e8dcc8;
  --earth-300: #dbc5a3;
  --earth-500: #b88d55;
  --earth-600: #a47549;
  --earth-700: #8a5f3e;
  --earth-900: #5a4029;
  --canyon-50: #fdf6f3;
  --canyon-100: #fae8df;
  --canyon-600: #c44e2c;
  --canyon-700: #a33f25;
  --canyon-900: #6e3021;
  --moss-50: #f6f7f4;
  --moss-600: #61704a;
  --moss-900: #363e2d;
  --white: #ffffff;
  --shadow-soft: 0 16px 40px rgba(76, 71, 64, 0.13);
  --shadow-card: 0 10px 26px rgba(76, 71, 64, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--stone-900);
  background: var(--stone-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.95);
  border-bottom: 1px solid rgba(229, 225, 218, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--stone-900);
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--earth-600), var(--canyon-600));
  color: var(--white);
  font-size: 15px;
  box-shadow: 0 10px 25px rgba(164, 117, 73, 0.25);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--stone-700);
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
  white-space: nowrap;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 6px 18px rgba(76, 71, 64, 0.06);
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  color: var(--stone-900);
  background: transparent;
}

.header-search input {
  width: 170px;
  padding: 8px 8px 8px 12px;
}

.header-search button,
.mobile-search button,
.big-search button,
.filter-bar button {
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  background: var(--earth-600);
  color: var(--white);
  font-weight: 800;
  padding: 9px 14px;
  transition: 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.filter-bar button:hover {
  background: var(--earth-700);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--stone-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--stone-800);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--stone-200);
  padding: 16px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 12px;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: 12px;
}

.mobile-search input {
  flex: 1;
  padding: 10px;
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-weight: 700;
}

.hero {
  position: relative;
  height: clamp(560px, 72vh, 760px);
  overflow: hidden;
  background: linear-gradient(135deg, var(--earth-900), var(--stone-800), var(--canyon-900));
}

.hero::after,
.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.03);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 24, 20, 0.88) 0%, rgba(76, 71, 64, 0.58) 44%, rgba(76, 71, 64, 0.20) 100%), linear-gradient(0deg, rgba(30, 24, 20, 0.85), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  padding-top: 34px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--earth-300);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 900;
}

.hero h1,
.hero h2 {
  margin: 0 0 22px;
  color: var(--white);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero h1 span,
.hero h2 span {
  display: block;
  color: var(--earth-300);
}

.hero-copy p {
  width: min(680px, 100%);
  margin: 0 0 24px;
  color: var(--stone-200);
  font-size: 20px;
}

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

.hero-tags span,
.tag-row span,
.tag-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.tag-row span {
  background: var(--earth-100);
  color: var(--earth-700);
}

.tag-links a {
  background: var(--stone-100);
  color: var(--stone-700);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn.primary {
  background: var(--earth-600);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(164, 117, 73, 0.28);
}

.btn.primary:hover {
  transform: translateY(-2px);
  background: var(--earth-700);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn.ghost.dark {
  color: var(--earth-700);
  border-color: var(--earth-200);
  background: var(--earth-50);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

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

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 10px;
  max-width: 580px;
}

.hero-thumb {
  position: relative;
  min-height: 88px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--stone-900);
  box-shadow: var(--shadow-card);
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: 0.3s ease;
}

.hero-thumb span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-thumb:hover img {
  opacity: 1;
  transform: scale(1.06);
}

.section {
  padding: 72px 0;
}

.light-section {
  background: var(--stone-50);
}

.white-section {
  background: var(--white);
}

.split-section {
  background: linear-gradient(135deg, var(--earth-50), var(--moss-50));
}

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

.section-head h2,
.page-hero h1,
.detail-heading h1,
.detail-article h2,
.detail-side h2,
.search-panel h2 {
  margin: 0 0 8px;
  color: var(--stone-900);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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

.section-head p,
.search-panel p,
.page-hero p,
.detail-heading p,
.detail-article p {
  margin: 0;
  color: var(--stone-600);
}

.section-kicker {
  color: var(--earth-600);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--earth-700);
  font-weight: 900;
}

.text-link:hover {
  color: var(--canyon-700);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(76, 71, 64, 0.07);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: var(--earth-200);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--stone-200);
}

.movie-card.compact .poster-link {
  aspect-ratio: 3 / 4;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30, 24, 20, 0.54), transparent 56%);
  opacity: 0;
  transition: 0.2s ease;
}

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

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--earth-700);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.2s ease;
}

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

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--stone-100);
}

.movie-card h2 {
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: 20px;
  line-height: 1.25;
}

.movie-card.compact h2 {
  font-size: 17px;
}

.movie-card h2 a:hover {
  color: var(--earth-700);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--stone-600);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.compact p {
  -webkit-line-clamp: 2;
  font-size: 14px;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--stone-900);
  box-shadow: var(--shadow-card);
}

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

.category-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(36, 28, 21, 0.88), rgba(36, 28, 21, 0.12));
}

.category-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: var(--white);
}

.category-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-copy em,
.category-copy small {
  display: block;
  color: var(--stone-200);
  font-style: normal;
}

.category-copy small {
  margin-top: 10px;
  color: var(--earth-300);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-card:hover img {
  opacity: 1;
  transform: scale(1.08);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
}

.ranking-panel,
.search-panel {
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.compact-head {
  margin-bottom: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 72px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
  background: var(--stone-50);
  transition: 0.2s ease;
}

.rank-item:hover {
  background: var(--earth-100);
  transform: translateX(4px);
}

.rank-number {
  color: var(--earth-600);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 72px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  color: var(--stone-900);
  font-size: 16px;
  line-height: 1.3;
}

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

.big-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  margin-top: 22px;
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  background: var(--white);
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
}

.big-search button {
  padding-inline: 20px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.quick-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--earth-100);
  color: var(--earth-700);
  font-weight: 800;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  background: linear-gradient(135deg, var(--earth-50), var(--stone-100));
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
  max-width: 760px;
  font-size: 18px;
}

.category-hero,
.ranking-hero,
.search-hero {
  background: radial-gradient(circle at 12% 12%, rgba(184, 141, 85, 0.24), transparent 34%), linear-gradient(135deg, var(--earth-50), var(--moss-50));
}

.breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--stone-500);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--earth-700);
}

.filter-bar {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--stone-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(76, 71, 64, 0.06);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  flex: 1;
  color: var(--stone-600);
  font-weight: 800;
  font-size: 13px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--stone-50);
}

.filter-bar button {
  min-height: 44px;
  background: var(--stone-800);
}

.stacked-previews {
  display: grid;
  gap: 42px;
}

.category-preview {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--stone-200);
}

.category-preview:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

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

.top-rank-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--stone-900);
  box-shadow: var(--shadow-soft);
}

.top-rank-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: 0.35s ease;
}

.top-rank-copy {
  position: absolute;
  inset: auto 22px 22px;
  color: var(--white);
}

.top-rank-copy em,
.top-rank-copy strong,
.top-rank-copy small {
  display: block;
}

.top-rank-copy em {
  color: var(--earth-300);
  font-style: normal;
  font-weight: 900;
}

.top-rank-copy strong {
  margin: 8px 0;
  font-size: 28px;
  line-height: 1.1;
}

.top-rank-copy small {
  color: var(--stone-200);
}

.top-rank-card:hover img {
  opacity: 1;
  transform: scale(1.06);
}

.ranking-table {
  display: grid;
  gap: 12px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 76px 100px minmax(0, 1fr) 70px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--stone-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(76, 71, 64, 0.06);
}

.ranking-no,
.score {
  color: var(--earth-600);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.ranking-poster img {
  width: 100px;
  height: 78px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-copy h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.ranking-copy p {
  margin: 0 0 8px;
  color: var(--stone-600);
}

.detail-hero {
  padding: 72px 0;
  background: radial-gradient(circle at top right, rgba(196, 78, 44, 0.20), transparent 32%), linear-gradient(135deg, var(--earth-50), var(--stone-100));
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-heading h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.detail-heading p {
  max-width: 760px;
  font-size: 18px;
}

.player-section {
  padding-top: 42px;
  background: var(--stone-900);
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(0,0,0,0.12), rgba(0,0,0,0.62));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding-left: 6px;
  background: var(--earth-600);
  color: var(--white);
  font-size: 38px;
  box-shadow: 0 22px 50px rgba(164, 117, 73, 0.42);
  transition: 0.2s ease;
}

.play-overlay:hover span {
  transform: scale(1.08);
  background: var(--earth-700);
}

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

.detail-content-section {
  padding-top: 62px;
}

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

.detail-article,
.detail-side {
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-article {
  padding: 34px;
}

.detail-article h2 {
  margin-top: 0;
  font-size: 28px;
}

.detail-article p {
  margin-bottom: 26px;
  font-size: 17px;
  color: var(--stone-700);
}

.detail-side {
  padding: 26px;
  align-self: start;
}

.detail-side h2 {
  font-size: 24px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px 14px;
  margin: 18px 0 0;
}

.detail-side dt {
  color: var(--stone-500);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  color: var(--stone-800);
}

#searchSummary {
  margin-bottom: 24px;
  color: var(--stone-600);
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  border: 1px dashed var(--stone-300);
  border-radius: var(--radius-xl);
  background: var(--white);
  color: var(--stone-600);
  text-align: center;
}

.site-footer {
  background: var(--stone-900);
  color: var(--stone-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 36px;
  padding: 52px 0;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.footer-main p {
  max-width: 520px;
  color: var(--stone-300);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  text-align: center;
  color: var(--stone-400);
}

.footer-bottom p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

  .header-search {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

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

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

  .hero-thumbs {
    display: none;
  }
}

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

  .hero {
    height: 660px;
  }

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

  .section {
    padding: 54px 0;
  }

  .section-head {
    display: grid;
  }

  .movie-grid.three-col,
  .movie-grid.four-col,
  .category-grid,
  .top-rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    display: grid;
  }

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

  .detail-poster {
    max-width: 320px;
  }

  .ranking-row {
    grid-template-columns: 58px 78px minmax(0, 1fr);
  }

  .ranking-poster img {
    width: 78px;
    height: 66px;
  }

  .score {
    display: none;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero {
    height: 620px;
  }

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

  .hero-controls {
    bottom: 18px;
  }

  .hero-actions,
  .big-search {
    display: grid;
  }

  .movie-grid.three-col,
  .movie-grid.four-col,
  .category-grid,
  .top-rank-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 38px 62px 1fr;
  }

  .rank-item img {
    width: 62px;
    height: 52px;
  }

  .detail-article,
  .detail-side,
  .ranking-panel,
  .search-panel {
    padding: 20px;
  }

  .play-overlay span {
    width: 70px;
    height: 70px;
    font-size: 30px;
  }
}
