/* Static movie site stylesheet */
:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --blue-50: #eff6ff;
  --blue-500: #3b82f6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 25px 60px rgba(15, 23, 42, 0.16);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  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 {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: var(--max-width);
  height: 4rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-icon {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-500), var(--blue-500));
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.25);
  font-size: 0.85rem;
}

.brand-name {
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--gray-700);
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.mobile-menu-button {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--gray-100);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 4px auto;
  background: var(--gray-700);
  border-radius: 99px;
}

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

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

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

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

.hero-bg {
  position: absolute;
  inset: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  object-fit: cover;
  filter: blur(20px) brightness(0.45);
  transform: scale(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(16, 185, 129, 0.28), transparent 35%),
    linear-gradient(0deg, rgba(17, 24, 39, 1), rgba(17, 24, 39, 0.55) 45%, rgba(17, 24, 39, 0.15));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero-kicker span,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.75rem;
  color: var(--white);
  background: var(--emerald-500);
  border-radius: 999px;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
}

.hero-kicker em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 0.92rem;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: 0.9rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: var(--emerald-600);
  box-shadow: 0 18px 35px rgba(5, 150, 105, 0.28);
}

.primary-button:hover {
  background: var(--emerald-700);
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.small-button {
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
  left: max(1rem, calc((100vw - var(--max-width)) / 2));
}

.hero-next {
  right: max(1rem, calc((100vw - var(--max-width)) / 2));
}

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

.hero-dots button {
  width: 0.62rem;
  height: 0.62rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dots button.is-active {
  width: 2.2rem;
  background: var(--white);
}

.home-search-shell,
.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.home-search-shell {
  margin-top: -2.5rem;
  position: relative;
  z-index: 5;
}

.home-search {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 520px);
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.home-search strong {
  display: block;
  font-size: 1.25rem;
}

.home-search p {
  margin: 0.25rem 0 0;
  color: var(--gray-600);
}

.search-form {
  display: flex;
  gap: 0.75rem;
}

.search-form input,
.filter-search input,
.filter-select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.9rem;
  background: var(--white);
  color: var(--gray-900);
  outline: none;
}

.search-form input,
.filter-search input {
  padding: 0 1rem;
}

.filter-select {
  padding: 0 0.85rem;
}

.search-form input:focus,
.filter-search input:focus,
.filter-select:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.search-form button {
  min-width: 6rem;
  border: 0;
  border-radius: 0.9rem;
  color: var(--white);
  background: var(--emerald-600);
  font-weight: 800;
  cursor: pointer;
}

.home-layout {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.content-section {
  margin-bottom: 5rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.15;
}

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

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

.movie-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

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

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

.movie-poster,
.ranking-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 25% 20%, rgba(16, 185, 129, 0.45), transparent 30%),
    linear-gradient(135deg, var(--gray-800), var(--gray-900));
}

.card-wide .movie-poster {
  aspect-ratio: 16 / 10;
}

.movie-poster img,
.ranking-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover img,
.ranking-card:hover img {
  transform: scale(1.08);
}

.poster-fallback-title {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  display: none;
  color: var(--white);
  font-weight: 800;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.is-missing-image .poster-fallback-title {
  display: block;
}

.movie-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  color: var(--white);
  background: rgba(16, 185, 129, 0.88);
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
  font-weight: 800;
}

.movie-info {
  padding: 1rem;
}

.movie-info h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-info h3 a {
  transition: color 0.2s ease;
}

.movie-info h3 a:hover {
  color: var(--emerald-600);
}

.movie-meta {
  margin: 0.45rem 0;
  color: var(--gray-500);
  font-size: 0.88rem;
}

.movie-desc {
  display: -webkit-box;
  margin: 0.5rem 0 0;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags,
.detail-tags,
.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.movie-tags span,
.detail-tags span,
.genre-list span {
  display: inline-flex;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  color: var(--emerald-700);
  background: var(--emerald-100);
  font-size: 0.75rem;
  font-weight: 700;
}

.hot-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--emerald-50), var(--blue-50));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

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

.category-card {
  position: relative;
  min-height: 180px;
  padding: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
}

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

.category-count {
  color: var(--emerald-600);
  font-size: 0.82rem;
  font-weight: 800;
}

.category-card h3 {
  margin: 0.55rem 0;
  font-size: 1.2rem;
}

.category-card p,
.category-card small {
  position: relative;
  z-index: 1;
  color: var(--gray-600);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

.rank-panel,
.static-article,
.detail-main,
.detail-side,
.detail-player-card,
.category-overview-block {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.rank-panel {
  position: sticky;
  top: 5.5rem;
  padding: 1.25rem;
}

.rank-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rank-panel-head h2 {
  margin: 0;
}

.rank-panel-head a {
  color: var(--emerald-600);
  font-weight: 800;
}

.rank-list {
  display: grid;
  gap: 0.75rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.4rem 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: var(--gray-50);
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: var(--emerald-50);
}

.rank-number {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  color: var(--white);
  background: var(--emerald-600);
  font-weight: 900;
}

.rank-title {
  font-weight: 800;
}

.rank-meta {
  color: var(--gray-500);
  font-size: 0.82rem;
}

.page-shell {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
  color: var(--gray-500);
  font-size: 0.92rem;
}

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

.breadcrumb-sep {
  color: var(--gray-300);
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.38), transparent 32%),
    linear-gradient(135deg, var(--gray-900), var(--gray-800));
  box-shadow: var(--shadow-lg);
}

.page-hero h1 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.filter-controls {
  display: flex;
  gap: 0.75rem;
}

.filter-result {
  margin: 0;
  color: var(--gray-600);
  white-space: nowrap;
}

.category-overview-block {
  margin-bottom: 2rem;
  padding: 1.25rem;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.category-overview-head h2 {
  margin: 0;
}

.category-overview-head p {
  margin: 0.35rem 0 0;
  color: var(--gray-600);
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.ranking-poster {
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 5;
}

.ranking-body h2 {
  margin: 0.35rem 0;
  font-size: 1.45rem;
}

.ranking-body p {
  margin: 0.55rem 0 0;
  color: var(--gray-600);
}

.ranking-index {
  display: inline-flex;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--emerald-600);
  font-weight: 900;
  font-size: 0.8rem;
}

.rank-score {
  margin-top: 0.75rem;
  color: var(--emerald-700);
  font-weight: 900;
}

.detail-player-card {
  overflow: hidden;
  margin-bottom: 2rem;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--black);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: var(--black);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.65rem;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12));
  cursor: pointer;
}

.play-overlay[hidden] {
  display: none;
}

.play-circle {
  width: 5rem;
  height: 5rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--emerald-600);
  box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.16);
  font-size: 1.8rem;
}

.player-error {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  color: var(--white);
  background: rgba(185, 28, 28, 0.88);
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.detail-head h1 {
  margin: 0.85rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.detail-one-line {
  margin: 0;
  color: var(--gray-600);
  font-size: 1.05rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

.detail-main,
.detail-side {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.detail-main h2,
.detail-side h2 {
  margin: 1.5rem 0 0.75rem;
}

.detail-main h2:first-of-type,
.detail-side h2:first-child {
  margin-top: 0;
}

.detail-main p {
  color: var(--gray-700);
}

.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.detail-meta-list span {
  padding: 0.48rem 0.75rem;
  border-radius: 0.75rem;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 700;
  font-size: 0.9rem;
}

.review-box {
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: var(--gray-50);
}

.side-list {
  display: grid;
  gap: 0.65rem;
}

.side-list a {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
  background: var(--gray-50);
  transition: background 0.2s ease;
}

.side-list a:hover {
  background: var(--emerald-50);
}

.side-list span {
  font-weight: 800;
}

.side-list small {
  color: var(--gray-500);
}

.prev-next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.prev-next-links a {
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  color: var(--emerald-700);
  background: var(--emerald-50);
  font-weight: 800;
}

.static-article {
  padding: 2rem;
  color: var(--gray-700);
}

.site-footer {
  color: var(--gray-300);
  background: var(--gray-900);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  color: var(--white);
  font-size: 1.1rem;
}

.site-footer p,
.site-footer li,
.footer-small {
  color: var(--gray-400);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

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

.site-footer h3 {
  margin: 0 0 1rem;
  color: var(--white);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-400);
  text-align: center;
  font-size: 0.9rem;
}

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

@media (max-width: 1100px) {
  .poster-grid,
  .wide-grid,
  .compact-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .rank-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .mobile-menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 4rem;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem;
    border-radius: 0.75rem;
  }

  .nav-links a:hover {
    background: var(--gray-50);
  }

  .hero {
    min-height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .home-search {
    grid-template-columns: 1fr;
  }

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

  .filter-controls {
    flex-direction: column;
  }

  .poster-grid,
  .wide-grid,
  .compact-grid,
  .latest-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail-head {
    flex-direction: column;
  }

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

@media (max-width: 560px) {
  .brand-name {
    font-size: 1.05rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions,
  .search-form {
    flex-direction: column;
  }

  .poster-grid,
  .wide-grid,
  .compact-grid,
  .latest-grid,
  .catalog-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-poster {
    aspect-ratio: 16 / 10;
  }

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