:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-900: #064e3b;
  --teal-600: #0d9488;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.12), 0 4px 6px -4px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-900);
  background: var(--slate-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "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 {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 80rem);
  min-height: 4rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--slate-900);
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-600));
  box-shadow: 0 12px 25px rgba(5, 150, 105, 0.25);
}

.logo-text {
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-link {
  position: relative;
  color: var(--slate-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--emerald-600);
}

.nav-link.active::after,
.nav-link:hover::after {
  position: absolute;
  right: 0;
  bottom: -1.32rem;
  left: 0;
  height: 0.18rem;
  border-radius: 999px;
  background: var(--emerald-600);
  content: "";
}

.nav-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  width: min(22rem, 28vw);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.nav-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0.62rem 0.9rem;
  color: var(--slate-900);
  background: transparent;
}

.nav-search button {
  border: 0;
  padding: 0.62rem 1rem;
  color: var(--white);
  background: var(--emerald-600);
}

.mobile-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 0;
  border-radius: 0.8rem;
  background: var(--slate-100);
}

.mobile-toggle span {
  width: 1.25rem;
  height: 0.13rem;
  border-radius: 999px;
  background: var(--slate-800);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--slate-200);
  padding: 0.75rem 1.25rem 1rem;
  background: var(--white);
}

.mobile-panel a {
  display: block;
  padding: 0.75rem 0;
  color: var(--slate-700);
  font-weight: 650;
}

.mobile-panel.is-open {
  display: block;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

.hero-slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.1)), linear-gradient(0deg, rgba(15, 23, 42, 0.8), transparent 46%);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 70vh;
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 6rem 1.25rem 4.5rem;
  align-content: center;
}

.hero-copy {
  max-width: 45rem;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 0.36rem 0.8rem;
  color: var(--emerald-50);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  max-width: 55rem;
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 42rem;
  margin: 0 0 2rem;
  color: #e5e7eb;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.82rem 1.25rem;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-600));
  box-shadow: 0 16px 35px rgba(5, 150, 105, 0.28);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-cats a {
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  color: var(--emerald-50);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.hero-cats a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 2rem;
  left: 0;
  z-index: 3;
  display: flex;
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 0 1.25rem;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}

.hero-dot {
  width: 2rem;
  height: 0.32rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, width 0.2s ease;
}

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

.hero-arrows {
  display: flex;
  gap: 0.6rem;
  pointer-events: auto;
}

.hero-arrow {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
}

.page-hero {
  padding: 4.5rem 1.25rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-600));
}

.page-hero-inner {
  width: min(100%, 80rem);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.page-hero p {
  max-width: 50rem;
  margin: 0;
  color: var(--emerald-50);
  font-size: 1.08rem;
}

.section {
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.section.tight {
  padding-top: 2.5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 0.35rem 0 0;
  color: var(--slate-600);
}

.more-link {
  color: var(--emerald-600);
  font-weight: 750;
  white-space: nowrap;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

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

.featured-card,
.card-standard,
.category-tile,
.info-panel,
.ranking-item,
.detail-card {
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.featured-poster {
  position: relative;
  display: block;
  min-height: 28rem;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--slate-900);
}

.featured-poster img,
.card-poster img,
.ranking-cover img,
.related-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover img,
.card-standard:hover img,
.ranking-item:hover img,
.related-card:hover img {
  transform: scale(1.08);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.25), transparent);
}

.badge {
  display: inline-flex;
  border-radius: 0.45rem;
  padding: 0.25rem 0.5rem;
  color: var(--white);
  background: var(--emerald-600);
  font-size: 0.74rem;
  font-weight: 750;
}

.badge-on-image {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.floating-play,
.card-play {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(5, 150, 105, 0.92);
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.35);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.floating-play {
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
}

.card-play {
  top: 50%;
  left: 50%;
  width: 3.1rem;
  height: 3.1rem;
  transform: translate(-50%, -50%) scale(0.7);
}

.featured-card:hover .floating-play,
.card-standard:hover .card-play {
  opacity: 1;
}

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

.featured-card:hover .floating-play {
  transform: scale(1);
}

.featured-body {
  position: absolute;
  right: 1.25rem;
  bottom: 1.35rem;
  left: 1.25rem;
  color: var(--white);
}

.movie-meta-line {
  color: #d1d5db;
  font-size: 0.9rem;
}

.featured-body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.35rem 0;
  font-size: 1.3rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #d1d5db;
  font-size: 0.94rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-standard {
  overflow: hidden;
  background: var(--white);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-900);
}

.card-poster::after {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0);
  transition: background 0.22s ease;
  content: "";
}

.card-standard:hover .card-poster::after {
  background: rgba(15, 23, 42, 0.35);
}

.poster-year {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  border-radius: 0.45rem;
  padding: 0.18rem 0.5rem;
  color: var(--white);
  background: rgba(15, 23, 42, 0.76);
  font-size: 0.78rem;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 1rem;
}

.card-category {
  display: inline-flex;
  margin-bottom: 0.3rem;
  color: var(--emerald-600);
  font-size: 0.8rem;
  font-weight: 800;
}

.card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  min-height: 3.05rem;
  color: var(--slate-900);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body h3 a:hover {
  color: var(--emerald-600);
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.8rem;
  margin: 0.55rem 0 0;
  color: var(--slate-600);
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
  color: var(--slate-500);
  font-size: 0.82rem;
}

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

.category-tile {
  display: block;
  min-height: 11.5rem;
  padding: 1.25rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-600));
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile strong {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.22rem;
}

.category-tile span {
  display: block;
  color: var(--emerald-50);
  font-size: 0.92rem;
}

.ranking-list {
  display: grid;
  gap: 0.85rem;
}

.ranking-item {
  display: grid;
  grid-template-columns: 6rem 3.2rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  background: var(--white);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.ranking-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.8rem;
  background: var(--slate-900);
}

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

.ranking-item:nth-child(-n + 3) .rank-number {
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-600));
}

.ranking-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 1.05rem;
  font-weight: 800;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.ranking-title:hover {
  color: var(--emerald-600);
}

.ranking-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.2rem 0;
  color: var(--slate-600);
  font-size: 0.92rem;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--slate-500);
  font-size: 0.82rem;
}

.ranking-action {
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: var(--white);
  background: var(--emerald-600);
  font-weight: 750;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.filter-search {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--slate-50);
}

.filter-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0.75rem 1rem;
  background: transparent;
}

.filter-search button {
  border: 0;
  padding: 0.75rem 1.2rem;
  color: var(--white);
  background: var(--emerald-600);
}

.filter-selects {
  display: flex;
  gap: 0.7rem;
}

.filter-selects select {
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 0.75rem 2rem 0.75rem 1rem;
  color: var(--slate-700);
  background: var(--white);
}

.empty-state {
  display: none;
  border: 1px dashed var(--slate-200);
  border-radius: 1rem;
  padding: 2rem;
  color: var(--slate-500);
  text-align: center;
  background: var(--white);
}

.empty-state.is-visible {
  display: block;
}

.player-section {
  background: #000;
}

.player-shell {
  width: min(100%, 80rem);
  margin: 0 auto;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #000;
  transition: opacity 0.22s ease;
}

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

.player-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.25));
  content: "";
}

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

.player-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: clamp(4.5rem, 9vw, 6rem);
  height: clamp(4.5rem, 9vw, 6rem);
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-600));
  box-shadow: 0 20px 45px rgba(5, 150, 105, 0.36);
  font-size: 2.2rem;
  transform: translate(-50%, -50%);
}

.detail-main {
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.3rem;
  color: var(--slate-500);
  font-size: 0.9rem;
}

.breadcrumbs a:hover {
  color: var(--emerald-600);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(20rem, 1fr);
  gap: 1.5rem;
}

.detail-card {
  padding: 1.5rem;
  background: var(--white);
}

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.95rem;
}

.detail-kicker .badge {
  color: var(--emerald-700);
  background: var(--emerald-100);
}

.detail-card h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--slate-600);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag-list span {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 0.88rem;
}

.one-line {
  border-left: 4px solid var(--emerald-600);
  margin: 1rem 0 1.5rem;
  padding: 0.9rem 1rem;
  color: var(--slate-700);
  background: var(--emerald-50);
  font-style: italic;
}

.article-block {
  border-top: 1px solid var(--slate-200);
  margin-top: 1.35rem;
  padding-top: 1.35rem;
}

.article-block h2,
.related-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
}

.article-block p {
  margin: 0;
  color: var(--slate-700);
  white-space: pre-line;
}

.related-panel {
  position: sticky;
  top: 5.2rem;
}

.related-list {
  display: grid;
  gap: 0.9rem;
}

.related-card {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  border-radius: 0.9rem;
  padding: 0.55rem;
  background: var(--slate-50);
  transition: background 0.22s ease;
}

.related-card:hover {
  background: var(--emerald-50);
}

.related-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--slate-900);
}

.related-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 0.92rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-info em {
  display: block;
  margin-top: 0.3rem;
  color: var(--slate-500);
  font-size: 0.8rem;
  font-style: normal;
}

.site-footer {
  color: #cbd5e1;
  background: var(--slate-900);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(12rem, 1fr));
  gap: 2rem;
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.footer-logo {
  color: var(--white);
}

.footer-brand p {
  max-width: 30rem;
  margin: 1rem 0 0;
  color: var(--slate-400);
}

.footer-links h2 {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 1.05rem;
}

.footer-links a {
  display: block;
  margin: 0.45rem 0;
  color: var(--slate-400);
}

.footer-links a:hover {
  color: var(--emerald-50);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 1rem 1.25rem;
  color: var(--slate-400);
  text-align: center;
}

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

  .mobile-toggle {
    display: flex;
  }

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

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

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

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

  .related-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content {
    padding-top: 5rem;
  }

  .hero-controls {
    align-items: flex-end;
  }

  .hero-arrows {
    display: none;
  }

  .section-head {
    display: block;
  }

  .more-link {
    display: inline-block;
    margin-top: 0.6rem;
  }

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

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

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

  .ranking-item {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }

  .rank-number {
    position: absolute;
    margin-left: 0.4rem;
    margin-top: -3rem;
  }

  .ranking-action {
    display: none;
  }

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

  .related-card {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }
}

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

.category-overview-card {
  padding: 1.25rem;
  background: var(--white);
}

.category-overview-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
}

.category-overview-card h2 a:hover {
  color: var(--emerald-600);
}

.category-overview-card p {
  margin: 0 0 1rem;
  color: var(--slate-600);
}

.mini-links {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.mini-links a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-700);
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.mini-links a:hover {
  color: var(--emerald-600);
}

@media (max-width: 760px) {
  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}
