:root {
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --teal-700: #0f766e;
  --cyan-800: #155e75;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 14px 38px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.18);
  --radius-lg: 18px;
  --radius-xl: 24px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  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(--gray-100));
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(6, 95, 70, 0.96), rgba(15, 118, 110, 0.96), rgba(21, 94, 117, 0.96));
  color: var(--white);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-name {
  white-space: nowrap;
  font-size: 1.16rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input {
  width: 210px;
  padding: 10px 14px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
}

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

.header-search button {
  border: 0;
  padding: 10px 16px;
  color: var(--green-700);
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  border-radius: 4px;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.45), transparent 28%), linear-gradient(135deg, #020617, #064e3b 48%, #155e75);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding-top: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--green-500);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-content h1 {
  max-width: 720px;
  margin: 20px 0 18px;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 650px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.75;
}

.hero-tags,
.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.info-pills span {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 0.9rem;
  font-weight: 650;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  border: 0;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--green-500);
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.34);
}

.btn-primary:hover {
  background: var(--green-600);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.btn-soft {
  color: var(--green-700);
  background: var(--green-50);
}

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

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

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

.hero-search {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  width: min(760px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 18px 24px;
  background: transparent;
  color: var(--gray-900);
}

.hero-search button {
  border: 0;
  padding: 0 28px;
  color: var(--white);
  background: var(--green-500);
  font-weight: 800;
  cursor: pointer;
}

.feature-strip,
.section-wrap,
.detail-layout {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 46px 0 18px;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.feature-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-700);
  font-size: 1.5rem;
}

.feature-card span {
  color: var(--gray-500);
  line-height: 1.6;
}

.section-wrap {
  padding: 62px 0;
}

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

.section-heading.compact {
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
}

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

.section-heading > a,
.panel-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-50);
  font-weight: 800;
}

.is-dark,
.is-dark p,
.is-dark a {
  color: var(--white);
}

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

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #064e3b);
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .poster-link::after {
  background: rgba(0, 0, 0, 0.28);
}

.play-float {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.92);
  color: var(--white);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
}

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

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover h3 a {
  color: var(--green-600);
}

.movie-one-line {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gray-500);
  font-size: 0.8rem;
}

.category-band {
  padding: 64px max(16px, calc((100% - 1200px) / 2));
  color: var(--white);
  background: linear-gradient(90deg, #064e3b, #0f766e, #155e75);
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.category-card {
  min-height: 170px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.18);
}

.category-emoji {
  font-size: 2.4rem;
}

.category-card strong {
  margin: 10px 0 8px;
  font-size: 1.25rem;
}

.category-card em,
.category-card-head em {
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  line-height: 1.6;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

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

.ranking-panel,
.side-card,
.detail-card,
.ranking-list-card,
.category-overview-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.ranking-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.ranking-head > span {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--green-50);
  font-size: 1.6rem;
}

.ranking-head h2,
.side-card h2,
.ranking-list-card h2 {
  margin: 0 0 4px;
}

.ranking-head p {
  margin: 0;
  color: var(--gray-500);
}

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

.compact-list.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-item {
  display: grid;
  grid-template-columns: auto 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-item:hover {
  background: var(--gray-50);
  transform: translateX(3px);
}

.compact-item img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f172a, #064e3b);
}

.list-rank {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-500);
  font-size: 0.8rem;
  font-weight: 900;
}

.compact-info {
  min-width: 0;
}

.compact-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-info em {
  display: block;
  margin-top: 5px;
  color: var(--gray-500);
  font-size: 0.82rem;
  font-style: normal;
}

.panel-more {
  width: 100%;
  margin-top: 18px;
}

.page-hero {
  min-height: 330px;
  padding: 82px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  background: radial-gradient(circle at 25% 25%, rgba(16, 185, 129, 0.35), transparent 26%), linear-gradient(110deg, #064e3b, #0f766e, #155e75);
}

.small-hero {
  min-height: 280px;
}

.ranking-hero {
  background: radial-gradient(circle at 70% 20%, rgba(249, 115, 22, 0.42), transparent 24%), linear-gradient(110deg, #111827, #064e3b, #0f766e);
}

.category-hero {
  background: radial-gradient(circle at 78% 18%, rgba(45, 212, 191, 0.38), transparent 24%), linear-gradient(110deg, #064e3b, #0f766e, #155e75);
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

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

.category-card-head {
  display: block;
  padding: 6px 0 18px;
}

.category-card-head span {
  display: block;
  font-size: 2rem;
}

.category-card-head strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.35rem;
}

.category-card-head em {
  color: var(--gray-500);
}

.category-sample {
  min-height: 136px;
  display: grid;
  gap: 8px;
  margin: 10px 0 18px;
}

.category-sample a {
  overflow: hidden;
  color: var(--gray-700);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-sample a:hover {
  color: var(--green-600);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(130px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--gray-500);
  font-size: 0.84rem;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  outline: 0;
  padding: 0 12px;
  color: var(--gray-900);
  background: var(--white);
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.filter-bar button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: var(--white);
  background: var(--gray-900);
  font-weight: 800;
  cursor: pointer;
}

.result-line {
  min-height: 24px;
  margin: 8px 0 24px;
  color: var(--gray-500);
  font-weight: 650;
}

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

.ranking-top-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

.ranking-list-card {
  padding: 24px;
}

.player-band {
  padding: 22px 0 34px;
  background: #020617;
}

.breadcrumb {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--green-500);
}

.player-shell {
  position: relative;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  box-shadow: var(--shadow-lg);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.custom-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(16, 185, 129, 0.9);
  box-shadow: 0 18px 44px rgba(16, 185, 129, 0.34);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.custom-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.custom-play span {
  margin-left: 6px;
  font-size: 2rem;
}

.player-shell.is-playing .custom-play {
  opacity: 0;
  pointer-events: none;
}

.player-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 22px 18px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
  padding: 42px 0 70px;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.detail-card {
  padding: 24px;
}

.title-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.detail-poster {
  width: 180px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #064e3b);
  box-shadow: var(--shadow-sm);
}

.detail-card h1 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
}

.detail-card h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.detail-card p,
.lead-text {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.85;
}

.title-card .info-pills span {
  color: var(--green-700);
  background: var(--green-50);
}

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

.info-list div {
  padding: 14px;
  border-radius: 14px;
  background: var(--gray-50);
}

.info-list dt {
  margin-bottom: 6px;
  color: var(--gray-500);
  font-size: 0.86rem;
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
}

.info-list a {
  color: var(--green-700);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.tag-list a:hover {
  color: var(--green-700);
  background: var(--green-100);
}

.detail-side {
  position: sticky;
  top: 96px;
}

.side-card {
  padding: 22px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #111827;
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(160px, 0.6fr));
  gap: 34px;
}

.footer-logo {
  color: var(--white);
}

.footer-brand p {
  max-width: 420px;
  margin: 16px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.footer-links a:hover {
  color: var(--green-500);
}

.image-missing {
  opacity: 0;
}

.is-hidden {
  display: none !important;
}

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

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

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

  .ranking-panel,
  .detail-side {
    position: static;
  }

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

  .filter-keyword {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 64px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 12px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.18);
  }

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

  .header-search {
    order: 4;
    width: 100%;
  }

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

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 110px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.24));
  }

  .hero-search {
    flex-direction: column;
    border-radius: 22px;
  }

  .hero-search button {
    min-height: 52px;
  }

  .hero-controls {
    bottom: 148px;
  }

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

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

  .compact-list.two-column {
    grid-template-columns: 1fr;
  }

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

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

  .detail-poster {
    width: 160px;
  }

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

@media (max-width: 560px) {
  .feature-strip,
  .category-grid,
  .category-overview-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

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

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

  .hero-content h1 {
    font-size: 2.55rem;
  }

  .hero-tags span,
  .info-pills span {
    font-size: 0.8rem;
  }

  .player-caption {
    display: none;
  }

  .custom-play {
    width: 66px;
    height: 66px;
  }
}
