:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --orange-500: #f97316;
  --red-600: #dc2626;
  --yellow-400: #facc15;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}

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

button,
input,
select {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
  color: #fff;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand {
  font-size: 24px;
}

.brand span:last-child,
.footer-brand span:last-child {
  background: linear-gradient(90deg, var(--cyan-400), var(--blue-500));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.12);
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #e5e7eb;
  font-size: 15px;
}

.desktop-nav a,
.nav-search,
.mobile-nav a,
.mobile-search {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.nav-search:hover,
.mobile-nav a:hover,
.mobile-search:hover {
  color: var(--cyan-400);
}

.nav-search,
.mobile-search,
.menu-toggle,
.back-top,
.hero-prev,
.hero-next,
.hero-dot,
.search-close,
.player-overlay {
  border: 0;
  cursor: pointer;
}

.nav-search {
  padding: 9px 15px;
  color: #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav a,
.mobile-search {
  padding: 11px 14px;
  color: #e5e7eb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 18px 30px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.search-panel.is-open {
  display: flex;
}

.search-box {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.35);
}

.search-label {
  display: block;
  margin-bottom: 12px;
  color: var(--gray-800);
  font-size: 24px;
  font-weight: 800;
}

.search-input,
.filter-input,
.filter-bar select,
.hero-search input {
  width: 100%;
  border: 1px solid var(--gray-200);
  outline: none;
  border-radius: 16px;
  background: #fff;
  color: var(--gray-800);
}

.search-input {
  padding: 15px 18px;
  font-size: 16px;
}

.search-input:focus,
.filter-input:focus,
.filter-bar select:focus,
.hero-search input:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.search-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--slate-700);
  background: var(--gray-100);
  font-size: 24px;
}

.search-results {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--gray-50);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.search-result-item img {
  width: 74px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--slate-800), var(--cyan-600));
}

.search-result-item h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.search-result-item p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 70px 0 56px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-600), #1d4ed8 50%, var(--slate-900));
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.35) 0 2px, transparent 3px), radial-gradient(circle at 75% 35%, rgba(255,255,255,0.22) 0 3px, transparent 4px);
  background-size: 70px 70px, 110px 110px;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.68fr);
  gap: 46px;
  align-items: center;
}

.hero-slide.active {
  display: grid;
  animation: heroFade 0.65s ease both;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow-400);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 78px);
}

.hero-copy p {
  max-width: 690px;
  margin: 24px 0 0;
  color: #e0f2fe;
  font-size: 20px;
}

.hero-tags,
.tag-row,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

.btn-primary,
.hero-search button {
  color: #fff;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
  color: var(--cyan-600);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.hero-search button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  min-height: 470px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(8, 145, 178, 0.68));
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.35);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  z-index: 2;
  pointer-events: none;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.hero-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.hero-dots,
.hero-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dot.active {
  width: 34px;
  background: var(--yellow-400);
}

.hero-prev,
.hero-next {
  width: 46px;
  height: 46px;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 30px;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 720px;
  margin-top: 26px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero-search input {
  min-height: 52px;
  padding: 0 20px;
  border: 0;
}

.content-section {
  padding: 70px 0;
}

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

.section-heading h2 {
  margin: 0 0 6px;
  color: var(--gray-800);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--gray-600);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.poster-link,
.rank-poster,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--cyan-600));
}

.poster-link {
  aspect-ratio: 3 / 4.18;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(2, 6, 23, 0.44);
  transition: opacity 0.25s ease;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  opacity: 0;
  color: #fff;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.88);
  box-shadow: 0 0 0 8px rgba(6, 182, 212, 0.18);
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.play-mark.large {
  width: 62px;
  height: 62px;
  opacity: 1;
}

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

.card-body {
  padding: 18px;
}

.card-meta {
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #cbd5e1;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: var(--gray-800);
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-item h3 a:hover {
  color: var(--cyan-600);
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: var(--gray-600);
  background: var(--gray-100);
}

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

.ranking-band {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

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

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

.ranking-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 112px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--red-600));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
}

.rank-poster {
  width: 112px;
  height: 148px;
  border-radius: 16px;
}

.ranking-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-item p {
  margin: 0 0 12px;
  color: var(--gray-600);
}

.center-action {
  margin-top: 30px;
  text-align: center;
}

.category-band {
  color: #fff;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.category-band .section-heading h2,
.category-band .section-heading p {
  color: #fff;
}

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

.category-tile,
.category-card a {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card a:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18);
}

.tile-1 {
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
}

.tile-2 {
  background: linear-gradient(135deg, var(--orange-500), var(--red-600));
}

.tile-3 {
  background: linear-gradient(135deg, #10b981, #0f766e);
}

.tile-4 {
  background: linear-gradient(135deg, #f59e0b, #ca8a04);
}

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

.category-tile small,
.category-card p {
  color: rgba(255, 255, 255, 0.86);
}

.category-card h2 {
  margin-bottom: 10px;
}

.category-card p {
  margin: 0 0 18px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-600), var(--blue-600) 52%, var(--slate-900));
}

.compact-hero {
  padding: 62px 0;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: #e0f2fe;
  font-size: 18px;
}

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

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 170px 170px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.filter-input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-cover);
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.36;
}

.detail-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72), rgba(8, 145, 178, 0.50));
}

.detail-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: center;
  padding: 70px 0;
}

.detail-poster {
  aspect-ratio: 3 / 4.18;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
}

.detail-info h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.detail-intro {
  max-width: 760px;
  margin: 22px 0 24px;
  color: #e0f2fe;
  font-size: 20px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 12px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.detail-meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.detail-meta strong {
  color: var(--yellow-400);
}

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

.player-wrap {
  padding: 58px 0 28px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.30);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.25), rgba(2, 6, 23, 0.70));
}

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

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 0 0 14px rgba(6, 182, 212, 0.18), 0 18px 38px rgba(2, 6, 23, 0.35);
  font-size: 30px;
  transform: translateX(3px);
}

.prose-section {
  padding: 46px 0;
}

.prose-section h2 {
  margin: 0 0 14px;
  color: var(--gray-800);
  font-size: 30px;
}

.prose-section p {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.movie-text {
  max-width: 960px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
}

.faq-grid article,
.prose-section > article {
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.site-footer {
  padding: 60px 0 24px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #fff;
  font-size: 21px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.20);
}

.back-top {
  color: #cbd5e1;
  background: transparent;
}

.back-top:hover {
  color: var(--cyan-400);
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-poster {
    min-height: 380px;
  }

  .movie-grid,
  .featured-grid,
  .category-movie-grid,
  .related-grid,
  .latest-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

  .hero-carousel {
    min-height: auto;
    padding: 46px 0 38px;
  }

  .hero-copy h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .detail-intro {
    font-size: 17px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-control-row,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .featured-grid,
  .category-movie-grid,
  .related-grid,
  .latest-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-item {
    grid-template-columns: 44px 86px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .rank-poster {
    width: 86px;
    height: 116px;
  }

  .ranking-item h3 {
    font-size: 17px;
  }

  .ranking-item p {
    display: none;
  }

  .detail-hero-layout {
    padding: 42px 0;
  }

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

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

  .player-overlay span {
    width: 68px;
    height: 68px;
  }

  .mobile-nav.is-open {
    grid-template-columns: 1fr;
  }
}
