:root {
  --mist-950: #050a0f;
  --mist-900: #0b1118;
  --mist-850: #101821;
  --mist-800: #16202b;
  --mist-750: #1d2a36;
  --mist-700: #253443;
  --mist-500: #778698;
  --mist-400: #aab6c4;
  --mist-200: #d8e0ea;
  --white: #ffffff;
  --swamp-700: #116143;
  --swamp-600: #168052;
  --swamp-500: #18a968;
  --swamp-400: #39d487;
  --swamp-300: #76f0ae;
  --gold: #facc15;
  --danger: #fb7185;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --soft-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1180px;
}

* {
  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;
  background: radial-gradient(circle at 15% 0%, rgba(24, 169, 104, 0.18), transparent 34%), var(--mist-900);
  color: var(--mist-200);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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: 100;
  background: rgba(11, 17, 24, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--swamp-400), var(--swamp-700));
  box-shadow: 0 12px 28px rgba(24, 169, 104, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  color: var(--mist-500);
  font-size: 12px;
  margin-top: 2px;
}

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

.nav-link {
  color: var(--mist-400);
  font-size: 15px;
  transition: color 0.2s ease;
  border: 0;
  background: transparent;
  padding: 8px 0;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
}

.nav-dropdown {
  position: relative;
}

.nav-drop-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(22, 32, 43, 0.96);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-panel a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--mist-300);
  font-size: 14px;
}

.nav-drop-panel a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 32, 43, 0.88);
  color: var(--white);
  outline: none;
  border-radius: 12px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 240px;
  padding: 10px 12px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(57, 212, 135, 0.7);
  box-shadow: 0 0 0 4px rgba(24, 169, 104, 0.14);
}

.header-search button,
.mobile-search button,
.filter-panel button,
.primary-btn,
.ghost-btn,
.section-more {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.header-search button,
.mobile-search button,
.filter-panel button,
.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--swamp-500), var(--swamp-700));
  box-shadow: 0 12px 28px rgba(24, 169, 104, 0.2);
}

.header-search button {
  padding: 10px 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.filter-panel button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-link {
  display: block;
  padding: 12px 0;
  color: var(--mist-300);
}

.mobile-link.is-active {
  color: var(--swamp-300);
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding-top: 10px;
}

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

.mobile-search button {
  padding: 10px 14px;
}

.home-hero {
  position: relative;
  height: min(78vh, 640px);
  min-height: 520px;
  overflow: hidden;
  background: var(--mist-950);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 10, 15, 0.94) 0%, rgba(5, 10, 15, 0.68) 42%, rgba(5, 10, 15, 0.12) 100%), linear-gradient(0deg, var(--mist-900), transparent 44%);
}

.hero-content {
  position: absolute;
  left: max(20px, calc((100vw - var(--max-width)) / 2 + 20px));
  bottom: 92px;
  width: min(620px, calc(100vw - 40px));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--swamp-300);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h2,
.intro-band h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: var(--white);
  letter-spacing: -0.04em;
}

.hero-content h2 {
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.95;
}

.hero-content p:not(.eyebrow) {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.8;
  color: var(--mist-200);
  max-width: 560px;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 700;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(11, 17, 24, 0.6);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 30px;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(11, 17, 24, 0.9);
  transform: translateY(-1px);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--swamp-400);
}

.section-inner {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.intro-band {
  padding: 42px 0;
  background: linear-gradient(180deg, rgba(11, 17, 24, 0.88), rgba(11, 17, 24, 0));
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}

.intro-band h1 {
  font-size: clamp(30px, 4.5vw, 54px);
}

.intro-band p:not(.eyebrow) {
  line-height: 1.9;
  color: var(--mist-400);
  font-size: 16px;
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.quick-cats a,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--mist-200);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-cats a:hover {
  color: var(--white);
  border-color: rgba(57, 212, 135, 0.45);
  background: rgba(24, 169, 104, 0.18);
}

.section-block {
  padding: 54px 0;
}

.soft-block {
  background: rgba(22, 32, 43, 0.28);
}

.ranking-block {
  background: linear-gradient(180deg, rgba(11, 17, 24, 0.1), rgba(22, 32, 43, 0.58));
}

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

.section-title-row.innerless {
  width: 100%;
}

.section-title-row h2 {
  color: var(--white);
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--swamp-300);
  background: rgba(24, 169, 104, 0.1);
  border: 1px solid rgba(57, 212, 135, 0.25);
}

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

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

.listing-grid {
  padding-bottom: 64px;
}

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

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--mist-800), var(--mist-700));
  box-shadow: var(--soft-shadow);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.06);
  filter: brightness(0.82);
}

.play-hover {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(24, 169, 104, 0.92);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: scale(0.88);
  transition: 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: scale(1);
}

.year-badge,
.type-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  padding: 4px 8px;
  border-radius: 9px;
  font-size: 12px;
  color: var(--white);
  background: rgba(11, 17, 24, 0.78);
  backdrop-filter: blur(10px);
}

.year-badge {
  left: 10px;
}

.type-badge {
  right: 10px;
}

.rank-badge {
  left: 10px;
  top: 46px;
  background: linear-gradient(135deg, var(--gold), #f97316);
  color: #1f1400;
  font-weight: 800;
}

.card-body {
  padding: 12px 2px 0;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h3,
.wide-card:hover strong,
.rank-row:hover strong {
  color: var(--swamp-300);
}

.card-body p {
  margin: 0 0 10px;
  color: var(--mist-500);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--mist-500);
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  min-height: 24px;
  padding: 0 8px;
  color: var(--swamp-300);
  font-size: 12px;
  background: rgba(24, 169, 104, 0.1);
}

.compact-card .poster-wrap {
  border-radius: var(--radius-md);
}

.compact-card .card-body h3 {
  font-size: 14px;
}

.compact-card .card-body p,
.compact-card .tag-row {
  display: none;
}

.horizontal-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.horizontal-strip::-webkit-scrollbar {
  display: none;
}

.wide-card {
  position: relative;
  flex: 0 0 320px;
  min-height: 200px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mist-800);
  box-shadow: var(--soft-shadow);
}

.wide-card img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  filter: brightness(0.78);
  transition: transform 0.35s ease;
}

.wide-card:hover img {
  transform: scale(1.06);
}

.wide-card span,
.wide-card strong,
.wide-card small {
  position: absolute;
  left: 18px;
  right: 18px;
}

.wide-card span {
  top: 14px;
  width: max-content;
  padding: 4px 8px;
  border-radius: 9px;
  color: var(--white);
  background: rgba(11, 17, 24, 0.8);
  font-size: 12px;
}

.wide-card strong {
  bottom: 48px;
  color: var(--white);
  font-size: 18px;
  transition: color 0.2s ease;
}

.wide-card small {
  bottom: 20px;
  color: var(--mist-300);
  line-height: 1.4;
}

.scroll-actions {
  display: flex;
  gap: 8px;
}

.scroll-actions button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--mist-750);
  cursor: pointer;
  font-size: 24px;
}

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

.rank-list {
  padding-bottom: 64px;
}

.rank-row a {
  display: grid;
  grid-template-columns: 42px 110px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(22, 32, 43, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover a {
  background: rgba(29, 42, 54, 0.82);
  transform: translateY(-2px);
}

.rank-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--swamp-500), var(--swamp-700));
}

.rank-row img {
  width: 110px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--mist-800);
}

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

.rank-copy strong {
  display: block;
  color: var(--white);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.rank-copy em {
  display: block;
  margin-top: 6px;
  color: var(--mist-500);
  font-style: normal;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-heat {
  color: var(--gold);
  font-size: 13px;
  white-space: nowrap;
}

.page-shell {
  padding-bottom: 34px;
}

.page-hero {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 34px auto 30px;
  padding: 54px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 12% 18%, rgba(57, 212, 135, 0.24), transparent 32%), linear-gradient(135deg, rgba(22, 32, 43, 0.95), rgba(11, 17, 24, 0.86));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.small-hero {
  margin-bottom: 24px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  line-height: 1.85;
  color: var(--mist-300);
  margin: 18px 0 0;
}

.category-overview-list {
  display: grid;
  gap: 24px;
  padding-bottom: 64px;
}

.category-overview-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(22, 32, 43, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.category-overview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.category-overview-head h2 {
  color: var(--white);
  margin: 0 0 8px;
}

.category-overview-head p {
  margin: 0;
  color: var(--mist-500);
  line-height: 1.7;
}

.filter-wrap {
  margin-bottom: 26px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(22, 32, 43, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  padding: 0 12px;
}

.filter-panel button {
  min-height: 44px;
  padding: 0 16px;
}

.empty-state {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: var(--radius-md);
  color: var(--mist-300);
  background: rgba(255, 255, 255, 0.06);
}

.detail-main {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 28px auto 64px;
}

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

.breadcrumbs a:hover {
  color: var(--swamp-300);
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 12% 20%, rgba(57, 212, 135, 0.16), transparent 32%), rgba(22, 32, 43, 0.58);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mist-800);
  box-shadow: var(--soft-shadow);
}

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

.detail-copy h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
}

.detail-one-line {
  color: var(--mist-300);
  line-height: 1.9;
  font-size: 18px;
  max-width: 780px;
}

.detail-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.player-section,
.detail-section {
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(22, 32, 43, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.player-section h2,
.detail-section h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 26px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  z-index: 1;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--swamp-400), var(--swamp-700));
  box-shadow: 0 18px 42px rgba(24, 169, 104, 0.36);
  font-size: 34px;
  padding-left: 4px;
}

.player-cover strong {
  font-size: 22px;
}

.detail-section p {
  color: var(--mist-300);
  line-height: 1.95;
  margin: 0;
  font-size: 16px;
}

.related-section .movie-grid {
  margin-top: 20px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 10, 15, 0.72);
}

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

.footer-inner strong {
  color: var(--white);
  font-size: 18px;
}

.footer-inner p {
  margin: 10px 0 0;
  color: var(--mist-500);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-links a {
  color: var(--mist-400);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--swamp-300);
}

@media (max-width: 1024px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

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

  .intro-grid,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .quick-cats,
  .footer-links {
    justify-content: flex-start;
  }

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

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

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

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

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

  .brand-title {
    font-size: 18px;
  }

  .home-hero {
    height: 560px;
    min-height: 560px;
  }

  .hero-content {
    bottom: 72px;
  }

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

  .hero-content p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-arrow {
    display: none;
  }

  .section-inner,
  .page-hero,
  .detail-main {
    width: min(100% - 28px, var(--max-width));
  }

  .page-hero {
    padding: 34px 22px;
  }

  .section-title-row,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .wide-card {
    flex-basis: 270px;
  }

  .rank-row a {
    grid-template-columns: 34px 88px minmax(0, 1fr);
  }

  .rank-row img {
    width: 88px;
    height: 60px;
  }

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

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

  .detail-hero,
  .player-section,
  .detail-section {
    padding: 20px;
  }

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

  .player-cover strong {
    font-size: 16px;
  }

  .big-play {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

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

  .card-meta,
  .tag-row {
    display: none;
  }
}
