/* Static movie site styles inspired by the uploaded emerald / teal Tailwind build. */
:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0d9488;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  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-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.28);
}

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

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

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

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

.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  padding: 10px;
  display: none;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft-shadow);
}

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--slate-700);
}

.dropdown-menu a:hover {
  background: #ecfdf5;
  color: var(--emerald-dark);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #ecfdf5;
  color: var(--emerald-dark);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

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

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 10px;
}

.mobile-nav-link:hover {
  background: #ecfdf5;
}

main {
  min-height: 60vh;
}

.hero-carousel {
  background: var(--slate-950);
}

.hero-stage {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 48px;
  padding: 72px max(32px, calc((100vw - 1280px) / 2 + 32px));
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(6px) saturate(1.15);
  transform: scale(1.08);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.82) 48%, rgba(15, 23, 42, 0.45) 100%),
    radial-gradient(circle at 25% 30%, rgba(5, 150, 105, 0.38), transparent 34%);
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(5, 150, 105, 0.18);
  border: 1px solid rgba(167, 243, 208, 0.28);
  font-size: 0.86rem;
  font-weight: 750;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero-description {
  max-width: 720px;
  margin: 22px 0 0;
  color: #e2e8f0;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--emerald-dark);
  background: #d1fae5;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.primary-button,
.secondary-button,
.home-search-form button,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 14px 26px rgba(5, 150, 105, 0.28);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secondary-button {
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.primary-button:hover,
.secondary-button:hover,
.home-search-form button:hover,
.search-form button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 32px rgba(5, 150, 105, 0.34);
}

.hero-poster {
  justify-self: end;
  width: min(380px, 100%);
  border-radius: 28px;
  overflow: hidden;
  background: var(--slate-800);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
  transition: transform 0.25s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.025);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 2.75;
  object-fit: cover;
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.search-strip,
.section-block,
.player-section,
.detail-content,
.ranking-page-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.search-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 28px;
  align-items: center;
  margin-top: -42px;
  padding: 26px;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 6;
}

.search-strip h2,
.section-heading h2,
.ranking-panel h2,
.ranking-aside h2,
.content-card h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.search-strip p,
.section-heading p,
.content-card p {
  margin: 8px 0 0;
  color: var(--slate-600);
}

.home-search-form {
  display: flex;
  gap: 10px;
}

.home-search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.section-block {
  padding: 64px 0 0;
}

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

.section-heading .section-kicker {
  color: var(--emerald-dark);
  background: #d1fae5;
  border-color: transparent;
}

.text-link,
.light-link {
  color: var(--emerald);
  font-weight: 800;
  white-space: nowrap;
}

.light-link {
  color: #d1fae5;
}

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

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

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

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

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #d1fae5, #ccfbf1);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 2.85;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.6), transparent 52%);
  opacity: 0.78;
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: auto;
  right: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(5, 150, 105, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card-title {
  display: -webkit-box;
  min-height: 3em;
  overflow: hidden;
  color: var(--slate-900);
  font-weight: 850;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  color: var(--slate-500);
  font-size: 0.82rem;
}

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

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: var(--slate-700);
  background: var(--slate-100);
}

.ranking-strip {
  margin-top: 68px;
  padding: 58px max(24px, calc((100vw - 1280px) / 2 + 24px));
  background:
    radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.34), transparent 28%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.section-heading.inverted h2,
.section-heading.inverted p {
  color: var(--white);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.14);
}

.ranking-row img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-number {
  color: #a7f3d0;
  font-weight: 900;
  font-size: 1.2rem;
}

.ranking-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.ranking-meta {
  color: #cbd5e1;
  font-size: 0.88rem;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.page-hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  padding: 76px max(24px, calc((100vw - 1280px) / 2 + 24px));
}

.small-hero p,
.category-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #ecfdf5;
  font-size: 1.08rem;
}

.dark-hero {
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.category-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--page-hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.26;
  filter: blur(2px) saturate(1.1);
}

.category-hero > div {
  position: relative;
  z-index: 2;
}

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

.category-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--slate-900);
  box-shadow: var(--soft-shadow);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to top, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.12)),
    var(--category-image);
  background-size: cover;
  background-position: center;
  transition: transform 0.28s ease;
}

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

.category-card-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  color: var(--white);
}

.category-card strong,
.category-card em,
.category-card small {
  display: block;
}

.category-card strong {
  font-size: 1.45rem;
  font-weight: 900;
}

.category-card em {
  margin-top: 4px;
  color: #a7f3d0;
  font-style: normal;
  font-weight: 800;
}

.category-card small {
  margin-top: 8px;
  color: #dbeafe;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.6fr)) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--slate-600);
  font-size: 0.9rem;
  font-weight: 750;
}

.filter-count,
.search-summary {
  color: var(--slate-600);
  font-weight: 750;
}

.filter-count strong {
  color: var(--emerald-dark);
}

.ranking-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 26px;
  padding-top: 56px;
}

.ranking-panel,
.ranking-aside,
.content-card {
  padding: 24px;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.large-list .ranking-row {
  color: var(--slate-900);
  background: var(--slate-50);
  border-color: #e2e8f0;
}

.large-list .ranking-meta {
  color: var(--slate-500);
}

.detail-hero {
  min-height: 560px;
  background: var(--slate-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0.9)),
    var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.detail-shell {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 62px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.breadcrumbs a:hover {
  color: #a7f3d0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: var(--slate-800);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 2.85;
  object-fit: cover;
}

.detail-one-line {
  max-width: 820px;
  margin: 18px 0 0;
  color: #e2e8f0;
  font-size: 1.15rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-tags span {
  color: #d1fae5;
  background: rgba(5, 150, 105, 0.32);
}

.detail-info .primary-button {
  margin-top: 28px;
}

.player-section {
  padding-top: 58px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #000;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.28);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(5, 150, 105, 0.35), rgba(2, 6, 23, 0.78));
  cursor: pointer;
}

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

.player-play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 18px 36px rgba(5, 150, 105, 0.36);
  font-size: 2rem;
}

.player-overlay strong {
  font-size: 1.4rem;
}

.player-overlay small {
  color: #d1fae5;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.86rem;
  pointer-events: none;
}

.player-status:empty {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 32px;
}

.content-card p,
.content-card li {
  color: var(--slate-700);
}

.tips-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

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

.footer-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(180px, 1fr));
  gap: 38px;
  padding: 46px 0;
}

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

.footer-brand-block p {
  max-width: 560px;
  margin: 16px 0 0;
  color: #94a3b8;
}

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

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

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #6ee7b7;
}

.copyright {
  padding: 18px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  text-align: center;
  color: #94a3b8;
}

.search-page .movie-grid {
  margin-top: 22px;
}

.search-summary {
  margin-top: 22px;
}

.movie-card.is-hidden {
  display: none;
}

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

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

  .detail-content,
  .ranking-page-layout {
    grid-template-columns: 1fr;
  }

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

  .hero-poster {
    display: none;
  }

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

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

  .mobile-menu-button {
    display: block;
  }

  .hero-stage {
    min-height: 640px;
  }

  .hero-slide {
    padding: 64px 24px;
  }

  .hero-arrow {
    display: none;
  }

  .search-strip,
  .home-search-form,
  .section-heading,
  .detail-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

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

  .ranking-row {
    grid-template-columns: 42px 52px minmax(0, 1fr);
  }

  .ranking-row img {
    width: 52px;
    height: 68px;
  }

  .ranking-meta {
    grid-column: 3 / 4;
  }

  .detail-grid {
    gap: 24px;
  }

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

@media (max-width: 560px) {
  .nav-shell,
  .search-strip,
  .section-block,
  .player-section,
  .detail-content,
  .ranking-page-layout,
  .detail-shell,
  .footer-shell {
    width: min(100% - 22px, 1280px);
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .hero-stage {
    min-height: 590px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 2.25rem;
  }

  .movie-grid,
  .compact-grid,
  .slim-grid,
  .category-grid,
  .filter-panel,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 260px;
    padding: 54px 18px;
  }

  .player-shell {
    border-radius: 18px;
  }
}
