:root {
  --ancient-50: #f9f7f4;
  --ancient-100: #f0ebe3;
  --ancient-200: #dfd2bd;
  --ancient-300: #d4c3a4;
  --ancient-400: #c4aa7e;
  --ancient-500: #a98252;
  --ancient-600: #9a7245;
  --ancient-700: #8b6a40;
  --ancient-800: #725739;
  --ancient-900: #5f4930;
  --earth-50: #f7f4ef;
  --earth-100: #ece4d8;
  --earth-300: #c4ad8c;
  --earth-500: #866746;
  --earth-600: #70563b;
  --earth-700: #5b4631;
  --earth-800: #443323;
  --earth-900: #302419;
  --sage-50: #eef3ed;
  --sage-100: #dce7d8;
  --sage-600: #6d835f;
  --sage-700: #566b4c;
  --white: #ffffff;
  --shadow-md: 0 12px 30px rgba(48, 36, 25, 0.1);
  --shadow-xl: 0 22px 55px rgba(48, 36, 25, 0.18);
  --radius-xl: 18px;
  --radius-2xl: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--earth-900);
  background: linear-gradient(180deg, var(--ancient-50), #ffffff 35%, var(--ancient-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 247, 244, 0.94);
  border-bottom: 1px solid var(--ancient-200);
  box-shadow: 0 8px 26px rgba(48, 36, 25, 0.08);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: fit-content;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ancient-600);
  border-radius: 13px;
  box-shadow: 0 14px 28px rgba(154, 114, 69, 0.32);
  transition: background 0.25s ease, transform 0.25s ease;
}

.logo-link:hover .logo-mark {
  background: var(--ancient-700);
  transform: translateY(-1px);
}

.logo-text strong {
  display: block;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 20px;
  line-height: 1.05;
  color: var(--ancient-900);
}

.logo-text span {
  display: block;
  margin-top: 2px;
  color: var(--ancient-700);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
  color: var(--ancient-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--ancient-600);
  transition: width 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--ancient-900);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.header-search {
  position: relative;
  width: min(300px, 28vw);
}

.header-search input,
.page-search input {
  width: 100%;
  border: 1px solid var(--ancient-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--earth-900);
  outline: none;
  padding: 11px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.page-search input:focus {
  border-color: var(--ancient-500);
  box-shadow: 0 0 0 4px rgba(169, 130, 82, 0.13);
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 70;
  display: none;
  max-height: 390px;
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--ancient-200);
  border-radius: 18px;
  box-shadow: var(--shadow-xl);
}

.search-results.is-open {
  display: block;
}

.search-result-link {
  display: block;
  padding: 13px 15px;
  border-bottom: 1px solid var(--ancient-100);
}

.search-result-link:last-child {
  border-bottom: 0;
}

.search-result-link strong {
  display: block;
  color: var(--earth-900);
  font-size: 14px;
}

.search-result-link span {
  display: block;
  margin-top: 3px;
  color: var(--earth-600);
  font-size: 12px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--ancient-800);
  background: var(--ancient-100);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--ancient-200);
  padding: 12px 20px 18px;
}

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

.mobile-nav a {
  padding: 11px 12px;
  border-radius: 12px;
}

.mobile-nav a:hover {
  background: var(--ancient-100);
}

.site-main {
  min-height: 64vh;
}

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

.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-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-slide.is-active .hero-image {
  animation: heroDrift 9s ease-out forwards;
}

@keyframes heroDrift {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.02);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 44%);
}

.hero-inner {
  position: absolute;
  inset: 0;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: var(--white);
  padding-top: 36px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ancient-300);
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.03;
  letter-spacing: -1px;
}

.hero-description {
  width: min(620px, 100%);
  margin: 18px 0 0;
  color: var(--ancient-100);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.hero-tags span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(154, 114, 69, 0.82);
  color: var(--white);
  font-size: 13px;
  padding: 7px 13px;
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.btn-primary,
.btn-ghost,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.btn-primary {
  padding: 0 24px;
  color: var(--white);
  background: var(--ancient-600);
  box-shadow: 0 16px 32px rgba(154, 114, 69, 0.32);
}

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

.btn-ghost {
  padding: 0 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.btn-light {
  padding: 0 18px;
  color: var(--ancient-800);
  background: var(--ancient-100);
}

.btn-light:hover {
  color: var(--white);
  background: var(--ancient-700);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.06);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

.section {
  padding: 70px 0;
}

.section.alt {
  background: var(--sage-50);
}

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

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

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ancient-700);
  font-weight: 800;
  margin-bottom: 7px;
}

.section-title {
  margin: 0;
  color: var(--earth-900);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.14;
}

.section-desc {
  max-width: 820px;
  margin: 12px 0 0;
  color: var(--earth-600);
}

.page-hero {
  padding: 64px 0 42px;
  background: radial-gradient(circle at top left, rgba(196, 170, 126, 0.36), transparent 34%), linear-gradient(135deg, var(--ancient-50), #ffffff);
  border-bottom: 1px solid var(--ancient-200);
}

.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  width: min(820px, 100%);
  margin: 15px 0 0;
  color: var(--earth-600);
  font-size: 18px;
}

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

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

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  align-items: center;
  gap: 18px;
  margin: 26px 0 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-button {
  border-radius: 999px;
  color: var(--earth-700);
  background: var(--white);
  border: 1px solid var(--ancient-200);
  padding: 9px 15px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--white);
  background: var(--ancient-700);
  border-color: var(--ancient-700);
}

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

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

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

.movie-card.is-hidden {
  display: none;
}

.card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(223, 210, 189, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-link:hover {
  transform: translateY(-5px);
  border-color: var(--ancient-400);
  box-shadow: var(--shadow-xl);
}

.card-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--earth-800);
}

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

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

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.05));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.card-link:hover .card-shade {
  opacity: 1;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(154, 114, 69, 0.9);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.28s ease, transform 0.28s ease;
  backdrop-filter: blur(8px);
}

.card-link:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--earth-500);
  font-size: 12px;
}

.card-title {
  margin: 0;
  color: var(--earth-900);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 20px;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.card-link:hover .card-title {
  color: var(--ancient-700);
}

.card-desc {
  margin: 9px 0 0;
  color: var(--earth-600);
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.card-tags span {
  border-radius: 8px;
  color: var(--ancient-700);
  background: var(--ancient-100);
  font-size: 12px;
  padding: 3px 8px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 26px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--white), var(--ancient-50));
  border: 1px solid var(--ancient-200);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(154, 114, 69, 0.11);
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0;
  color: var(--earth-900);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 28px;
}

.category-card p {
  position: relative;
  margin: 12px 0 0;
  color: var(--earth-600);
}

.category-card span {
  position: relative;
  display: inline-flex;
  margin-top: 22px;
  color: var(--ancient-700);
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  overflow: hidden;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--ancient-200);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--ancient-600);
  border-radius: 999px;
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--earth-800);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.rank-item:hover .rank-thumb img {
  transform: scale(1.08);
}

.rank-title {
  margin: 0;
  color: var(--earth-900);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-desc {
  margin: 6px 0 0;
  color: var(--earth-600);
  font-size: 13px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.86fr);
  gap: 32px;
  padding: 42px 0 70px;
}

.player-card,
.detail-card,
.related-panel {
  background: var(--white);
  border: 1px solid rgba(223, 210, 189, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.player-card {
  overflow: hidden;
}

.movie-player {
  position: relative;
  overflow: hidden;
  background: #000;
}

.movie-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: var(--white);
  background: rgba(154, 114, 69, 0.92);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  transition: transform 0.22s ease, background 0.22s ease;
}

.player-button:hover {
  background: var(--ancient-700);
  transform: scale(1.06);
}

.player-error {
  display: none;
  padding: 15px 18px;
  color: #f2d1d1;
  background: #3b0f0f;
}

.player-error.is-open {
  display: block;
}

.player-meta {
  padding: 22px;
}

.player-meta h1 {
  margin: 0;
  color: var(--earth-900);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.player-meta p {
  margin: 12px 0 0;
  color: var(--earth-600);
}

.detail-card {
  padding: 28px;
  margin-top: 26px;
}

.detail-card h2 {
  margin: 0 0 12px;
  padding-bottom: 12px;
  color: var(--earth-900);
  border-bottom: 2px solid var(--ancient-200);
  font-size: 22px;
}

.detail-card p {
  color: var(--earth-700);
}

.detail-card p + h2 {
  margin-top: 28px;
}

.side-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--earth-800);
  box-shadow: var(--shadow-xl);
}

.side-poster img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.info-panel {
  margin-top: 22px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--ancient-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.info-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--ancient-100);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row span {
  display: block;
  color: var(--earth-500);
  font-size: 13px;
}

.info-row strong,
.info-row a {
  color: var(--earth-900);
  font-weight: 800;
}

.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

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

.related-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.related-list {
  display: grid;
  gap: 13px;
}

.related-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-link:hover {
  background: var(--ancient-50);
}

.related-link img {
  width: 112px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
  background: var(--earth-800);
}

.related-link strong {
  display: block;
  color: var(--earth-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-link span {
  display: block;
  margin-top: 4px;
  color: var(--earth-600);
  font-size: 13px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-footer {
  color: var(--earth-100);
  background: var(--earth-900);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand .logo-mark {
  box-shadow: none;
}

.footer-brand strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 20px;
}

.footer-inner p,
.footer-inner a,
.footer-inner li {
  color: var(--earth-300);
  font-size: 14px;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 14px;
  color: var(--ancient-300);
  font-size: 16px;
}

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

.footer-inner a:hover {
  color: var(--ancient-300);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--earth-800);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: var(--ancient-600);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(48, 36, 25, 0.24);
  transition: transform 0.22s ease, background 0.22s ease;
}

.back-top:hover {
  background: var(--ancient-700);
  transform: translateY(-3px);
}

.empty-message {
  display: none;
  padding: 24px;
  color: var(--earth-600);
  background: var(--ancient-50);
  border: 1px solid var(--ancient-200);
  border-radius: 18px;
}

.empty-message.is-open {
  display: block;
}

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

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

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

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

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

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

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-control {
    display: none;
  }

  .hero-inner {
    align-items: end;
    padding-bottom: 86px;
  }

  .section-head,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .filter-row {
    justify-content: flex-start;
  }

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

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

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

@media (max-width: 560px) {
  .nav-shell {
    width: min(100% - 24px, 1240px);
  }

  .logo-text span {
    display: none;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost,
  .btn-light {
    width: 100%;
  }

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

  .rank-item {
    grid-template-columns: 42px 96px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .rank-number {
    width: 34px;
    height: 34px;
  }

  .detail-card,
  .info-panel,
  .related-panel {
    padding: 20px;
  }
}
