:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-solid: #0f172a;
  --panel-soft: #111827;
  --line: rgba(34, 211, 238, 0.18);
  --line-strong: rgba(34, 211, 238, 0.36);
  --text: #ffffff;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --pink: #f472b6;
  --green: #4ade80;
  --yellow: #facc15;
  --shadow: 0 24px 80px rgba(8, 145, 178, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 5%, rgba(6, 182, 212, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.16), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand.compact .brand-icon {
  width: 34px;
  height: 34px;
}

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

.nav-link {
  position: relative;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  align-items: center;
  justify-content: center;
  color: #fff;
}

.nav-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
}

main {
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  background: #020617;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: saturate(1.15) brightness(0.62);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.38) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.04) 42%, rgba(2, 6, 23, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 720px;
  margin: 0 auto;
  padding: 96px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 760px;
  animation: fadeUp 0.9s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero-copy h1 {
  margin: 18px 0 20px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-summary {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
  max-width: 720px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.72);
  color: #cffafe;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.home-search button,
.search-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.22);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-button:hover,
.home-search button:hover,
.search-toolbar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(59, 130, 246, 0.32);
}

.ghost-button {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(34, 211, 238, 0.12);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 2 / 3;
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-6px);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), transparent 52%);
}

.hero-poster span {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.92);
  box-shadow: 0 14px 44px rgba(34, 211, 238, 0.35);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dot.active {
  width: 36px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.quick-search-panel,
.content-section,
.page-hero,
.detail-main,
.search-toolbar {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-search-panel {
  margin-top: -58px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.quick-search-panel h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.quick-search-panel p {
  margin: 0;
  color: var(--subtle);
}

.home-search,
.search-toolbar {
  display: flex;
  gap: 12px;
}

.home-search input,
.search-toolbar input,
.search-toolbar select {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.62);
  color: #fff;
  outline: 0;
  padding: 0 18px;
}

.home-search input:focus,
.search-toolbar input:focus,
.search-toolbar select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.content-section {
  padding-top: 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.section-heading > a,
.compact-heading > a {
  color: var(--cyan);
  font-weight: 800;
}

.compact-heading {
  align-items: center;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 16px 44px rgba(2, 6, 23, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(15, 23, 42, 0.94);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.22), transparent 55%),
    #0f172a;
}

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

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

.quality-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.card-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.9);
  box-shadow: 0 12px 36px rgba(34, 211, 238, 0.28);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-card p {
  margin: 0;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 71px;
}

.movie-card .tag-row {
  margin-top: 14px;
}

.movie-card .tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

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

.category-card,
.category-overview-card a {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  padding: 20px;
  box-shadow: 0 18px 52px rgba(2, 6, 23, 0.2);
}

.category-card img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(1.1);
  transform: scale(1.04);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.category-card::after,
.category-overview-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.24));
}

.category-card:hover img,
.category-overview-card:hover img {
  transform: scale(1.12);
  filter: brightness(0.6) saturate(1.18);
}

.category-card span,
.category-card p,
.category-overview-card h2,
.category-overview-card p {
  position: relative;
  z-index: 2;
}

.category-card span,
.category-overview-card h2 {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 8px;
}

.category-card p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.split-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 34px;
}

.section-block {
  min-width: 0;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.76);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-item:hover {
  transform: translateX(6px);
  border-color: rgba(34, 211, 238, 0.42);
}

.rank-num {
  font-size: 23px;
  font-weight: 900;
  color: var(--cyan);
  text-align: center;
}

.rank-item img {
  width: 68px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

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

.rank-info strong {
  display: block;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.page-main {
  padding-top: 52px;
}

.page-hero {
  padding-top: 74px;
  padding-bottom: 42px;
}

.simple-hero,
.category-hero {
  position: relative;
  border-radius: 28px;
  margin-top: 36px;
  padding: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 25%, rgba(34, 211, 238, 0.2), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.55));
  box-shadow: var(--shadow);
}

.simple-hero h1,
.category-hero h1 {
  margin: 14px 0 14px;
  font-size: clamp(36px, 4.5vw, 64px);
  letter-spacing: -0.04em;
}

.simple-hero p,
.category-hero p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
  font-size: 18px;
}

.inline-actions a {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.42);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.inline-actions a:hover {
  color: #fff;
  border-color: var(--cyan);
}

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

.search-toolbar {
  margin-top: 34px;
  padding-top: 22px;
  padding-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
}

.search-toolbar select {
  max-width: 220px;
}

.empty-state {
  display: none;
  margin: 50px auto;
  text-align: center;
  color: var(--subtle);
  font-size: 18px;
}

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

.detail-main {
  padding-top: 38px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--subtle);
  font-size: 14px;
  margin: 28px 0;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.18), transparent 24rem),
    rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.detail-poster {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #0f172a;
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.34);
}

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

.detail-info h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.lead-text {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
  max-width: 840px;
}

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

.info-list div {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
}

.info-list dt {
  color: var(--subtle);
  font-size: 12px;
  margin-bottom: 5px;
}

.info-list dd {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

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

.player-section,
.article-section,
.related-section {
  margin-top: 62px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 22rem),
    rgba(2, 6, 23, 0.22);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover span {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 48px rgba(34, 211, 238, 0.34);
  font-size: 32px;
}

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

.article-section {
  max-width: 980px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 17px;
}

.article-section h2 {
  color: #fff;
  font-size: 30px;
  margin: 38px 0 16px;
}

.article-section p {
  margin: 0 0 18px;
}

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

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.88);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 17px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--subtle);
  line-height: 1.75;
}

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

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

.footer-brand p {
  margin: 18px 0 0;
  max-width: 360px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  color: var(--subtle);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

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

  .nav-toggle {
    display: flex;
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 68px;
  }

  .hero-poster {
    width: min(260px, 70vw);
    justify-self: start;
  }

  .quick-search-panel {
    grid-template-columns: 1fr;
    margin-top: -40px;
  }

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

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

  .detail-poster {
    width: min(320px, 72vw);
  }

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

@media (max-width: 680px) {
  .nav-shell {
    padding: 0 16px;
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 780px;
  }

  .hero-content,
  .quick-search-panel,
  .content-section,
  .page-hero,
  .detail-main,
  .search-toolbar {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-summary {
    font-size: 16px;
    -webkit-line-clamp: 5;
  }

  .home-search,
  .search-toolbar {
    flex-direction: column;
  }

  .search-toolbar select {
    max-width: none;
  }

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

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

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

  .movie-card h2 {
    font-size: 15px;
    min-height: 41px;
  }

  .movie-card p {
    font-size: 13px;
    min-height: 66px;
  }

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

  .simple-hero,
  .category-hero {
    margin-top: 18px;
    padding: 36px 20px;
  }

  .detail-layout {
    padding: 18px;
    gap: 24px;
  }

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

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

  .rank-item img {
    width: 58px;
    height: 78px;
  }

  .footer-grid {
    padding: 42px 16px;
  }
}
