* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: #111827;
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  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;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #065f46 0%, #0f766e 48%, #155e75 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark,
.footer-logo span {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #065f46;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 24px;
  letter-spacing: 0.02em;
}

.logo-text small {
  color: #d1fae5;
  font-size: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #d1fae5;
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.nav-search input {
  width: 220px;
  color: #ffffff;
  border: 0;
  outline: 0;
  padding: 8px 12px;
  background: transparent;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.nav-search button {
  border: 0;
  color: #065f46;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 16px;
  background: #ffffff;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #ffffff;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(20, 184, 166, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.64) 45%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1280px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 16px;
  padding: 5px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  background: #10b981;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.24);
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #ecfeff;
  background: rgba(15, 118, 110, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

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

.primary-button,
.ghost-button,
.section-link,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 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: #10b981;
  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.34);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: #059669;
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

.hero-dot.active {
  width: 34px;
  background: #10b981;
}

.feature-band {
  padding: 44px 0;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

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

.feature-card {
  min-height: 140px;
  padding: 26px;
  border-radius: 22px;
  text-align: center;
}

.feature-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 42px;
  line-height: 1;
}

.feature-card span {
  color: #4b5563;
  font-weight: 700;
}

.feature-card.emerald {
  background: linear-gradient(135deg, #ecfdf5, #ccfbf1);
  color: #059669;
}

.feature-card.blue {
  background: linear-gradient(135deg, #eff6ff, #cffafe);
  color: #2563eb;
}

.feature-card.amber {
  background: linear-gradient(135deg, #fffbeb, #fed7aa);
  color: #d97706;
}

.feature-card.rose {
  background: linear-gradient(135deg, #fff1f2, #fce7f3);
  color: #e11d48;
}

.section-block {
  padding-top: 64px;
  padding-bottom: 64px;
}

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

.section-head.simple {
  align-items: center;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 900;
  color: #111827;
}

.section-head p {
  margin: 0;
  color: #6b7280;
}

.section-link {
  color: #047857;
  background: #ecfdf5;
}

.section-link:hover {
  color: #ffffff;
  background: #10b981;
}

.light h2,
.light p {
  color: #ffffff;
}

.light-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  background: rgba(0, 0, 0, 0.34);
  transition: opacity 0.25s ease;
}

.poster-overlay span {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.92);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.movie-card:hover .poster-overlay {
  opacity: 1;
}

.type-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

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

.movie-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
}

.movie-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info span {
  color: #6b7280;
  font-size: 13px;
}

.category-section {
  padding: 64px 0;
  color: #ffffff;
  background: linear-gradient(90deg, #064e3b 0%, #115e59 52%, #164e63 100%);
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
  opacity: 0.65;
  transform: scale(1.08);
}

.category-tile span {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.category-tile strong {
  font-size: 20px;
}

.category-tile em,
.horizontal-card em,
.overview-body em,
.rank-info em {
  display: -webkit-box;
  overflow: hidden;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 36px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.horizontal-poster {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  background: #111827;
}

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

.hot-number {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.horizontal-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px;
}

.horizontal-body strong {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.horizontal-body em {
  color: #4b5563;
  line-height: 1.55;
}

.horizontal-body span {
  color: #6b7280;
  font-size: 13px;
}

.compact-list .horizontal-card {
  grid-template-columns: 92px minmax(0, 1fr);
}

.compact-list .horizontal-poster {
  min-height: 112px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 0%, rgba(45, 212, 191, 0.28), transparent 30%),
    linear-gradient(90deg, #064e3b 0%, #0f766e 50%, #155e75 100%);
}

.page-hero {
  padding: 86px 0;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #d1fae5;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

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

.overview-tile {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.overview-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.overview-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 220px;
  background: #111827;
}

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

.overview-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 28px;
}

.overview-body strong {
  color: #111827;
  font-size: 28px;
  font-weight: 900;
}

.overview-body em {
  color: #4b5563;
  line-height: 1.7;
}

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #374151;
  font-weight: 800;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.category-chip:hover,
.category-chip.active {
  color: #ffffff;
  background: #10b981;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  outline: 0;
  padding: 13px 14px;
  color: #111827;
  background: #f9fafb;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.sticky-filter {
  position: sticky;
  top: 90px;
  z-index: 3;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 62px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 12px 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.rank-index {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.rank-row img {
  width: 76px;
  height: 94px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.rank-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rank-info strong {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.rank-info em {
  color: #4b5563;
  line-height: 1.5;
}

.rank-info span {
  color: #6b7280;
  font-size: 13px;
}

.rank-action {
  color: #047857;
  background: #ecfdf5;
}

.detail-hero {
  min-height: 620px;
  background: #020617;
}

.detail-bg,
.detail-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  object-fit: cover;
  filter: blur(4px) saturate(1.1);
  transform: scale(1.04);
}

.detail-overlay {
  background:
    radial-gradient(circle at 82% 10%, rgba(20, 184, 166, 0.24), transparent 24%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.48));
}

.detail-intro {
  position: relative;
  padding: 56px 0;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
  max-width: 850px;
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.7;
}

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

.detail-meta li {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.detail-meta span {
  display: block;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
}

.detail-meta strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  word-break: break-word;
}

.player-section {
  padding-bottom: 40px;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-start {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 6px;
  font-size: 42px;
  background: rgba(16, 185, 129, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

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

.player-caption {
  padding: 22px 26px;
  color: #ffffff;
  background: linear-gradient(90deg, #064e3b, #0f766e);
}

.player-caption h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.player-caption p {
  margin: 0;
  color: #d1fae5;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding-bottom: 24px;
}

.content-card,
.side-card {
  border-radius: 24px;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.content-card p {
  margin: 0 0 26px;
  color: #374151;
  font-size: 17px;
  line-height: 1.85;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 16px;
  margin: 0;
}

.side-card dt {
  color: #6b7280;
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: #111827;
  word-break: break-word;
}

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

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding: 54px 0 38px;
}

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

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #ffffff;
}

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

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

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

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

@media (max-width: 1180px) {
  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .two-column-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .site-nav {
    min-height: 66px;
  }

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

  .nav-menu {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    background: linear-gradient(90deg, #065f46, #0f766e, #155e75);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
  }

  .nav-menu.open {
    display: flex;
  }

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

  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    transform: none;
  }

  .nav-search {
    margin-top: 10px;
  }

  .nav-search input {
    width: 100%;
  }

  .hero {
    height: 540px;
  }

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

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

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

  .overview-images {
    min-height: 260px;
  }

  .detail-poster {
    width: min(280px, 78vw);
  }

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

  .rank-row {
    grid-template-columns: 46px 70px minmax(0, 1fr);
  }

  .rank-action {
    display: none;
  }
}

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

  .logo-text strong {
    font-size: 20px;
  }

  .logo-text small {
    display: none;
  }

  .hero {
    height: 520px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 74px;
  }

  .hero p {
    font-size: 16px;
  }

  .feature-grid,
  .category-grid,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

  .movie-info {
    padding: 11px;
  }

  .horizontal-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .horizontal-poster {
    min-height: 128px;
  }

  .horizontal-body {
    padding: 14px;
  }

  .horizontal-body strong {
    font-size: 16px;
  }

  .page-hero {
    padding: 58px 0;
  }

  .detail-intro {
    padding: 36px 0;
  }

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

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

  .content-card,
  .side-card {
    padding: 22px;
  }

  .rank-row {
    grid-template-columns: 38px 60px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .rank-index {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .rank-row img {
    width: 60px;
    height: 78px;
  }
}
