:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --secondary: #14b8a6;
  --cyan: #06b6d4;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --card: #ffffff;
  --dark: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 46%, #f9fafb 100%);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(229, 231, 235, 0.9);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--cyan));
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.28);
}

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

.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
  background: rgba(16, 185, 129, 0.1);
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.top-search input {
  width: 172px;
  border: 0;
  outline: 0;
  padding: 8px 6px 8px 12px;
  background: transparent;
}

.top-search button,
.hero-search button,
.btn.primary {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.26);
}

.top-search button {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #115e59 48%, #164e63);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(6, 182, 212, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 50px;
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.18);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--primary-dark);
  background: rgba(16, 185, 129, 0.1);
}

.section-kicker.cyan {
  color: #0891b2;
  background: rgba(6, 182, 212, 0.11);
}

.section-kicker.light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.hero h1,
.hero h2 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.card-meta,
.detail-meta,
.ranking-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 12px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

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

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.hero-poster {
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 36px;
  line-height: 1;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow.prev {
  left: 20px;
  transform: translateY(-50%);
}

.hero-arrow.next {
  right: 20px;
  transform: translateY(-50%);
}

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

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 72px 0;
}

.soft-bg {
  background: linear-gradient(135deg, #f9fafb, #eef2f7);
}

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

.section-head h2,
.panel-head h2,
.search-result-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-more,
.panel-head a {
  color: var(--primary-dark);
  font-weight: 900;
}

.quick-panel {
  padding: 26px 0;
  background: #ffffff;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.quick-grid a {
  padding: 22px;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #ecfdf5);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-grid a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.quick-grid strong,
.quick-grid span {
  display: block;
}

.quick-grid strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.quick-grid span {
  color: var(--muted);
  font-size: 14px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.32);
  box-shadow: var(--shadow);
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 180px;
}

.movie-card.large {
  display: grid;
  grid-template-columns: 160px 1fr;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.movie-card.horizontal .card-poster,
.movie-card.large .card-poster {
  aspect-ratio: auto;
  min-height: 100%;
}

.card-poster img,
.ranking-poster img,
.related-thumb img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.movie-card:hover .card-poster img,
.ranking-card:hover .ranking-poster img,
.related-item:hover .related-thumb img {
  transform: scale(1.06);
}

.poster-frame {
  position: relative;
  background:
    radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.32), transparent 26%),
    radial-gradient(circle at 72% 60%, rgba(16, 185, 129, 0.34), transparent 30%),
    linear-gradient(135deg, #064e3b, #115e59 48%, #164e63);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.36));
  pointer-events: none;
}

.poster-frame img.image-missing {
  opacity: 0;
}

.card-score {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.9);
  font-size: 13px;
  font-weight: 900;
}

.card-content {
  padding: 18px;
}

.card-meta {
  margin-bottom: 10px;
  color: var(--muted);
}

.card-meta span {
  padding: 3px 8px;
  background: #f3f4f6;
}

.movie-card.large .card-meta span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.15);
}

.card-content h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.card-content h3 a:hover {
  color: var(--primary-dark);
}

.card-content p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card.large .card-content p {
  color: rgba(255, 255, 255, 0.82);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(16, 185, 129, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.movie-card.large .tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.split-section {
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0f766e 55%, #0e7490);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.65fr);
  gap: 26px;
}

.feature-panel,
.rank-panel,
.aside-card,
.text-card {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.feature-panel {
  padding: 28px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.feature-panel h2,
.feature-panel p {
  margin: 0 0 18px;
}

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

.rank-panel {
  padding: 26px;
  color: var(--text);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.rank-number {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-size: 13px;
  font-weight: 900;
}

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

.rank-score {
  color: var(--primary-dark);
  font-weight: 900;
}

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

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

.category-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 16%, rgba(20, 184, 166, 0.2), transparent 28%),
    linear-gradient(135deg, #ffffff, #ecfdf5);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 23px;
}

.category-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.category-card small {
  color: #047857;
  font-weight: 700;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #064e3b, #0f766e 55%, #155e75);
}

.page-hero.compact {
  padding: 70px 0;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #d1fae5;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.detail-article .breadcrumb {
  color: var(--muted);
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
}

.filter-bar input,
.filter-bar select,
.hero-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: 0;
  padding: 0 15px;
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus,
.hero-search input:focus {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.ranking-list {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.ranking-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
}

.ranking-poster span {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 950;
}

.ranking-info h2 {
  margin: 10px 0;
  font-size: 25px;
}

.ranking-info p {
  margin: 0 0 18px;
  color: var(--muted);
}

.ranking-extra strong {
  color: var(--primary-dark);
  font-size: 22px;
}

.ranking-extra a {
  margin-left: auto;
  color: var(--primary-dark);
  font-weight: 900;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
  max-width: 720px;
  margin-top: 28px;
}

.hero-search button {
  border-radius: 15px;
  font-weight: 900;
}

.player-section {
  background: #000000;
}

.player-wrap {
  padding: 24px 0;
}

.video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 20px 46px rgba(16, 185, 129, 0.38);
  font-size: 36px;
  transform: translate(-50%, -50%);
}

.detail-content {
  padding-top: 48px;
}

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

.detail-article {
  padding: 30px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-article h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-meta {
  margin-bottom: 20px;
}

.detail-meta span,
.detail-meta strong {
  padding: 7px 11px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 900;
}

.detail-meta strong {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.lead {
  margin: 0 0 18px;
  color: #374151;
  font-size: 20px;
  font-weight: 700;
}

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

.text-card {
  padding: 24px;
  margin-top: 20px;
  border: 1px solid var(--line);
  box-shadow: none;
}

.text-card h2,
.aside-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.highlight-card {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border-color: rgba(16, 185, 129, 0.18);
}

.detail-aside {
  position: sticky;
  top: 90px;
}

.aside-card {
  padding: 22px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.25s ease;
}

.related-item:hover {
  background: #f9fafb;
}

.related-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
}

.related-item strong,
.related-item small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.related-item strong {
  margin-bottom: 5px;
  color: var(--text);
  -webkit-line-clamp: 1;
}

.related-item small {
  color: var(--muted);
  -webkit-line-clamp: 2;
}

.site-footer {
  padding-top: 50px;
  color: #d1d5db;
  background: #07111f;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 34px;
}

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

.footer-inner p {
  margin: 8px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #9ca3af;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1000px) {
  .hero-content,
  .split-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-nav {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 4px;
  }

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

  .nav-link {
    justify-content: center;
  }

  .top-search {
    margin-left: 0;
  }

  .top-search input {
    flex: 1;
    width: auto;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    gap: 0;
  }

  .hero-copy {
    padding: 0 18px;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

  .section-head,
  .panel-head,
  .footer-inner {
    display: block;
  }

  .movie-grid.two,
  .movie-grid.three,
  .movie-grid.four,
  .category-grid,
  .category-grid.wide,
  .quick-grid,
  .feature-list,
  .filter-bar,
  .hero-search {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal,
  .movie-card.large,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal .card-poster,
  .movie-card.large .card-poster {
    aspect-ratio: 16 / 10;
  }

  .page-hero.compact {
    padding: 48px 0;
  }

  .detail-article,
  .feature-panel,
  .rank-panel,
  .aside-card {
    padding: 20px;
  }

  .related-item {
    grid-template-columns: 96px 1fr;
  }

  .play-icon {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}
