:root {
  color-scheme: light;
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #8a817b;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --orange-100: #ffedd5;
  --white: #ffffff;
  --shadow-soft: 0 16px 40px rgba(41, 37, 36, 0.12);
  --shadow-strong: 0 24px 70px rgba(41, 37, 36, 0.22);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #fffbeb 0%, #fafaf9 45%, #fff7ed 100%);
  color: var(--stone-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.86);
  border-bottom: 1px solid rgba(214, 211, 209, 0.72);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.34);
}

.logo-text {
  font-size: 20px;
  letter-spacing: -0.02em;
}

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

.nav-link,
.mobile-link {
  color: var(--stone-700);
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--amber-700);
  background: rgba(245, 158, 11, 0.14);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.14);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.hero-section {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.28), transparent 32%), linear-gradient(135deg, var(--stone-950), #451a03 54%, var(--stone-950));
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: -28px;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.42);
  transform: scale(1.08);
  transition: background-image 0.45s ease;
}

.hero-shade,
.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18)), linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 58%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  min-height: 70vh;
  margin: 0 auto;
  padding: 76px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.hero-pill,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(245, 158, 11, 0.36);
  background: rgba(217, 119, 6, 0.18);
  color: #fde68a;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.hero-copy h1,
.detail-title-block h1,
.page-hero h1 {
  margin: 22px 0 18px;
  color: var(--white);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero-copy p,
.detail-title-block p,
.page-hero p {
  max-width: 740px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

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

.hero-meta span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.hero-meta span:first-child {
  color: var(--amber-400);
}

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

.hero-tags span,
.genre-stack span,
.tag-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.35);
}

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

.ghost-btn.light {
  color: var(--stone-800);
  border-color: rgba(120, 113, 108, 0.26);
  background: rgba(255, 255, 255, 0.72);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

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

.hero-poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-poster-card a {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  min-height: 44px;
  color: var(--white);
  border-radius: 14px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
}

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

.hero-thumb {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border 0.25s ease;
}

.hero-thumb.active,
.hero-thumb:hover {
  border-color: rgba(251, 191, 36, 0.75);
  background: rgba(217, 119, 6, 0.22);
  transform: translateY(-2px);
}

.hero-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.hero-thumb span {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 800;
}

.quick-search-wrap {
  margin-top: -52px;
  position: relative;
  z-index: 5;
  padding: 0 20px;
}

.quick-search-inner,
.search-panel,
.warm-card,
.info-card,
.player-card,
.side-info-card,
.poster-side-card,
.ranking-panel,
.category-card {
  border: 1px solid rgba(214, 211, 209, 0.72);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.quick-search-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px;
  border-radius: 28px;
}

.quick-search-inner h2,
.quick-search-inner p {
  margin: 0;
}

.quick-search-inner h2 {
  font-size: 26px;
  color: var(--stone-900);
}

.quick-search-inner p {
  margin-top: 6px;
  color: var(--stone-600);
}

.search-panel {
  margin: 22px 0 28px;
  padding: 16px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
}

.search-box span {
  color: var(--amber-600);
  font-weight: 900;
  font-size: 20px;
}

.search-box input,
.filter-row select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--stone-800);
}

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

.filter-row select {
  min-height: 48px;
  min-width: 136px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--stone-200);
  background: var(--stone-50);
}

.content-section,
.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 20px 0;
}

.content-section.no-top {
  padding-top: 28px;
}

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

.section-kicker {
  color: var(--amber-700);
  background: rgba(245, 158, 11, 0.14);
}

.section-head h2 {
  margin: 12px 0 0;
  color: var(--stone-900);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.section-more {
  min-width: fit-content;
  color: var(--amber-700);
  background: rgba(245, 158, 11, 0.14);
}

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

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

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(214, 211, 209, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(41, 37, 36, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.52);
  box-shadow: var(--shadow-soft);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-200), var(--amber-100));
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 2.8;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 54%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.rating-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.rating-badge {
  right: 10px;
  background: var(--amber-500);
}

.rank-badge {
  left: 10px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.rank-badge.wide {
  min-width: 36px;
}

.genre-stack {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
}

.genre-stack span {
  padding: 4px 8px;
  color: var(--stone-800);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: 17px;
  line-height: 1.32;
}

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

.meta-line {
  gap: 8px 12px;
  color: var(--stone-500);
  font-size: 13px;
}

.movie-card-body p {
  min-height: 45px;
  margin: 10px 0 14px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.55;
}

.detail-link {
  color: var(--amber-700);
  font-weight: 900;
}

.detail-link:hover {
  color: var(--orange-700);
}

.warm-card {
  max-width: var(--max);
  margin-top: 72px;
  padding: 36px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.92), rgba(255, 237, 213, 0.92));
}

.category-showcase {
  display: grid;
  gap: 34px;
}

.category-strip-head,
.ranking-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.category-strip-head h3,
.ranking-panel-head h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: 22px;
}

.category-strip-head h3:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  margin-right: 10px;
  border-radius: 99px;
  vertical-align: -4px;
  background: var(--amber-600);
}

.category-strip-head > a {
  color: var(--amber-700);
  font-weight: 900;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-panel {
  border-radius: 28px;
  padding: 24px;
}

.ranking-panel-head span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 13px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(245, 245, 244, 0.7);
  transition: background 0.25s ease, transform 0.25s ease;
}

.rank-item:hover {
  background: rgba(254, 243, 199, 0.88);
  transform: translateX(2px);
}

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

.rank-info {
  min-width: 0;
}

.rank-num {
  color: var(--amber-700);
  font-weight: 900;
  font-size: 13px;
}

.rank-info h3 {
  margin: 2px 0 4px;
  color: var(--stone-900);
  font-size: 15px;
  line-height: 1.32;
}

.rank-info p {
  margin: 0 0 6px;
  color: var(--stone-600);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer {
  margin-top: 90px;
  padding: 42px 20px;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, var(--stone-950), #451a03);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 32px;
}

.footer-logo {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 22px;
}

.footer-inner p {
  max-width: 620px;
  margin: 0;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  background: rgba(245, 158, 11, 0.22);
  color: var(--white);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 64px;
  background: linear-gradient(135deg, var(--stone-950), #78350f);
  box-shadow: var(--shadow-soft);
}

.page-hero.small-hero,
.page-hero.category-hero,
.page-hero.rankings-hero,
.page-hero.search-hero {
  min-height: 280px;
}

.category-grid-wrap {
  margin-top: 34px;
}

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

.category-card {
  overflow: hidden;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.category-cover {
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

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

.category-cover span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.38), transparent);
}

.category-card > div {
  padding: 24px;
}

.category-card h2 {
  margin: 0 0 10px;
  color: var(--stone-900);
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--stone-600);
}

.category-links {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.category-links a {
  color: var(--stone-700);
  font-weight: 700;
}

.category-links a:hover {
  color: var(--amber-700);
}

.empty-state {
  display: none;
  margin-top: 26px;
  padding: 36px;
  text-align: center;
  color: var(--stone-500);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--stone-200);
}

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

.sticky-panel {
  position: sticky;
  top: 94px;
}

.detail-page {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.2), rgba(255, 255, 255, 0.5));
}

.detail-hero {
  max-width: none;
  border-radius: 0;
  min-height: 430px;
  padding: 0;
}

.detail-bg {
  filter: blur(22px) brightness(0.38);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  min-height: 430px;
  margin: 0 auto;
  padding: 54px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

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

.detail-title-block h1 {
  max-width: 920px;
  margin-top: 0;
}

.detail-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

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

.player-card,
.info-card,
.side-info-card,
.poster-side-card {
  border-radius: 26px;
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: #000000;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: brightness(0.72);
}

.play-orb {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  font-size: 30px;
  text-indent: 4px;
}

.player-cover strong {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  z-index: 2;
  font-size: clamp(22px, 3vw, 34px);
  text-align: left;
}

.info-card {
  padding: 28px;
}

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

.info-card p {
  margin: 0;
  color: var(--stone-700);
  font-size: 17px;
}

.detail-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 18px;
}

.poster-side-card {
  overflow: hidden;
}

.poster-side-card img {
  width: 100%;
  aspect-ratio: 2 / 2.8;
  object-fit: cover;
}

.poster-side-card div {
  padding: 18px;
}

.poster-side-card p {
  margin: 0;
  color: var(--stone-500);
}

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

.side-info-card dl {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.side-info-card dt {
  color: var(--stone-500);
}

.side-info-card dd {
  margin: 0;
  color: var(--stone-800);
  font-weight: 800;
}

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

.tag-chip {
  padding: 8px 12px;
  color: var(--amber-700);
  background: rgba(245, 158, 11, 0.14);
}

.tag-chip:hover {
  color: var(--white);
  background: var(--amber-600);
}

@media (max-width: 1100px) {
  .featured-grid,
  .compact-grid,
  .editor-grid,
  .library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .detail-sidebar,
  .sticky-panel {
    position: static;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 28px;
    padding-top: 54px;
  }

  .hero-poster-card {
    display: none;
  }

  .hero-thumbs {
    grid-template-columns: repeat(5, minmax(70px, 1fr));
    overflow-x: auto;
  }

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

  .filter-row {
    flex-direction: column;
  }

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

  .category-cover {
    min-height: 220px;
  }

  .page-hero {
    padding: 42px 24px;
    border-radius: 26px;
  }

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

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }

  .logo-text {
    font-size: 18px;
  }

  .hero-section,
  .hero-inner {
    min-height: 620px;
  }

  .hero-copy h1,
  .detail-title-block h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .detail-title-block p,
  .page-hero p {
    font-size: 16px;
  }

  .content-section,
  .page-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .quick-search-wrap {
    padding: 0 14px;
  }

  .quick-search-inner,
  .warm-card,
  .info-card {
    padding: 20px;
    border-radius: 22px;
  }

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

  .featured-grid,
  .compact-grid,
  .editor-grid,
  .latest-grid,
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card-body h3 {
    font-size: 15px;
  }

  .movie-card-body p {
    display: none;
  }

  .detail-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .detail-hero-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .player-cover strong {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .play-orb {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
}
