* {
  box-sizing: border-box;
}

:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0d9488;
  --cyan: #0891b2;
  --rose: #e11d48;
  --amber: #d97706;
  --blue: #2563eb;
  --slate: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --surface: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 32%, #f8fafc 100%);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.top-nav {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--emerald);
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link,
.mobile-link {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  transition: color 0.2s ease;
}

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

.nav-search {
  position: relative;
  margin-left: auto;
  width: min(360px, 30vw);
}

.nav-search input,
.mobile-search input,
.filter-bar input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 11px 16px;
  background: #ffffff;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 430px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 200;
}

.search-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-item:hover {
  background: #f0fdf4;
}

.search-item img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}

.search-item strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.35;
}

.search-item span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.search-empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 8px 12px;
  color: #334155;
  cursor: pointer;
}

.mobile-menu {
  padding: 16px 24px 22px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.mobile-search {
  position: relative;
  margin-bottom: 14px;
}

.mobile-link {
  display: block;
  padding: 11px 0;
}

.home-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 42px;
  min-height: 720px;
  padding: 94px max(24px, calc((100vw - 1280px) / 2)) 110px;
  color: #ffffff;
  background: linear-gradient(135deg, #059669 0%, #0d9488 45%, #0891b2 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.22), transparent 28%), radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.16), transparent 30%), rgba(0, 0, 0, 0.08);
}

.hero-bg-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: 60px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(40px);
  border-radius: 50%;
}

.hero-copy,
.hero-carousel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
}

.hero-badge,
.hero-kicker,
.detail-badge,
.sub-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  font-size: 20px;
  color: #ecfeff;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.3);
}

.home-hero .primary-button {
  color: #065f46;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-category-links,
.site-cta div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-category-links a,
.site-cta a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.hero-carousel {
  align-self: center;
  min-height: 510px;
}

.hero-slide {
  display: none;
  overflow: hidden;
  grid-template-columns: 0.9fr 1fr;
  min-height: 510px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-slide.active {
  display: grid;
  animation: fadeIn 0.45s ease;
}

.hero-slide-image {
  position: relative;
  min-height: 100%;
}

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

.hero-slide-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.25));
}

.hero-slide-content {
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slide-content h2 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.12;
  font-weight: 900;
}

.hero-slide-content p {
  color: #ecfeff;
  font-size: 17px;
  margin: 0 0 18px;
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #065f46;
  background: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.overlap-section {
  margin-top: -54px;
  position: relative;
  z-index: 5;
}

.wide-section {
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 48%, #f0fdfa 100%);
}

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

.section-heading span {
  color: var(--emerald);
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  color: #0f172a;
}

.section-heading i {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), transparent);
}

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.07);
}

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55));
  opacity: 0.82;
}

.movie-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
}

.movie-year {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--rose), var(--amber));
}

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

.movie-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #0f172a;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

.movie-line {
  display: -webkit-box;
  overflow: hidden;
  min-height: 41px;
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  color: #475569;
  font-size: 12px;
}

.movie-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
}

.movie-tags span {
  color: #047857;
  background: #d1fae5;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 22px;
  padding: 24px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.78));
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 1;
  display: block;
}

.category-card strong {
  margin-top: 100px;
  font-size: 24px;
  font-weight: 900;
}

.category-card em {
  margin-top: 8px;
  color: #e2e8f0;
  font-style: normal;
  font-size: 14px;
}

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

.movie-card-compact {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: stretch;
}

.movie-card-compact .movie-cover {
  aspect-ratio: auto;
  min-height: 154px;
}

.movie-card-compact .movie-title {
  min-height: 0;
}

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

.site-cta {
  max-width: 1280px;
  margin: 30px auto 76px;
  padding: 56px 24px;
  border-radius: 30px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: var(--shadow);
}

.site-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 900;
}

.site-cta p {
  margin: 0 auto;
  max-width: 760px;
  color: #ecfeff;
  font-size: 18px;
}

.site-cta div {
  justify-content: center;
}

.sub-hero {
  padding: 96px 24px 80px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, #047857 0%, #0d9488 50%, #0891b2 100%);
}

.sub-hero span {
  color: #ffffff;
}

.sub-hero h1 {
  margin: 22px auto 16px;
  max-width: 880px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 900;
}

.sub-hero p {
  margin: 0 auto;
  max-width: 780px;
  color: #ecfeff;
  font-size: 18px;
}

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

.category-overview-card {
  overflow: hidden;
  display: block;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 170px;
}

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

.category-overview-card div:last-child {
  padding: 22px;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 24px;
}

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

.filter-bar {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

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

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #334155;
  background: #f1f5f9;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: var(--emerald);
  transform: translateY(-1px);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(18px);
  transform: scale(1.08);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.98));
}

.detail-layout {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 74px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--emerald);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  padding-left: 6px;
}

.detail-info-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.detail-info-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.detail-info-card h1 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  font-weight: 900;
}

.detail-info-card p {
  margin: 0 0 16px;
  color: #e2e8f0;
}

.detail-tags span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.14);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.detail-text {
  padding: 34px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.detail-meta-grid div {
  border-radius: 16px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 14px;
}

.detail-text h2 {
  margin: 28px 0 12px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 900;
}

.detail-text h2:first-of-type {
  margin-top: 0;
}

.detail-text p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 48px;
  color: #e5e7eb;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-logo span {
  color: #34d399;
}

.footer-inner h3 {
  margin: 0 0 14px;
  color: #34d399;
  font-size: 17px;
}

.footer-inner p {
  margin: 10px 0 0;
  color: #cbd5e1;
}

.footer-inner a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-inner a:hover {
  color: #34d399;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  color: #94a3b8;
}

.footer-bottom button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--emerald);
  cursor: pointer;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

[data-card].is-hidden {
  display: none;
}

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

@media (max-width: 1180px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-carousel {
    min-height: 460px;
  }

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

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

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

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

  .nav-links,
  .nav-search {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .home-hero {
    padding: 70px 18px 74px;
  }

  .hero-slide.active {
    grid-template-columns: 1fr;
  }

  .hero-slide-image {
    height: 280px;
  }

  .hero-slide-content {
    padding: 28px;
  }

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

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

  .content-section {
    padding: 46px 16px;
  }

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

  .section-heading i {
    width: 100%;
    flex: none;
  }

  .movie-card-compact {
    grid-template-columns: 96px 1fr;
  }

  .detail-layout {
    padding: 24px 16px 50px;
  }

  .detail-info-card img {
    display: none;
  }

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

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 18px;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
  }

  .hero-copy h1,
  .sub-hero h1 {
    letter-spacing: -0.03em;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .hero-slide-image {
    height: 220px;
  }

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

  .movie-title {
    font-size: 15px;
  }

  .detail-text {
    padding: 22px;
  }

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