:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), #ffffff 38%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.site-nav {
  max-width: var(--container);
  height: 66px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-600);
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.logo-mark path {
  fill: currentColor;
  stroke: none;
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.mobile-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--gray-100);
  cursor: pointer;
}

.mobile-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--gray-700);
}

.mobile-nav {
  display: none;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--gray-700);
  font-weight: 600;
  background: var(--gray-50);
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  height: 72vh;
  overflow: hidden;
  background: var(--gray-900);
}

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

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

.hero-bg,
.page-hero-bg,
.detail-bg {
  position: absolute;
  inset: -28px;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.44);
  transform: scale(1.08);
}

.hero-overlay,
.page-hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.58) 48%, rgba(17, 24, 39, 0.2));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 70px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(260px, 0.54fr);
  align-items: center;
  gap: 54px;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
}

.hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-kicker span,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-600);
  font-size: 13px;
  font-weight: 800;
}

.hero-kicker span {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--emerald-600);
  letter-spacing: 0;
  text-transform: none;
}

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

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.hero-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.primary-button,
.ghost-button,
.section-more,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

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

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

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

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

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 26px;
  cursor: pointer;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.home-search-block {
  max-width: var(--container);
  margin: -36px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.wide-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.wide-search input,
.filter-search input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
  background: var(--white);
  color: var(--gray-900);
}

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

.wide-search button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  color: var(--white);
  background: var(--emerald-600);
  font-weight: 800;
  cursor: pointer;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 700;
}

.page-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  align-items: start;
}

.main-column,
.side-column {
  min-width: 0;
}

.content-section {
  margin-bottom: 72px;
}

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2,
.rank-panel h2,
.detail-content-card h2,
.category-overview-card h2 {
  margin: 6px 0 0;
  color: var(--gray-900);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
}

.section-more,
.panel-link {
  min-height: 40px;
  color: var(--emerald-700);
  background: var(--emerald-50);
}

.section-more:hover,
.panel-link:hover {
  color: var(--white);
  background: var(--emerald-600);
}

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

.movie-card {
  min-width: 0;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent 54%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-link:hover .poster-shade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 8px);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(5, 150, 105, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-link:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, 0);
}

.poster-year {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-card-body {
  padding: 12px 2px 0;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-card h3 {
  margin: 0;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 44px;
  margin: 7px 0 10px;
  color: var(--gray-600);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

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

.category-tile,
.category-overview-card,
.rank-panel,
.detail-content-card,
.player-card,
.filter-panel {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-tile {
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-covers {
  height: 98px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.category-covers img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.category-tile strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gray-900);
  font-size: 17px;
}

.category-tile span {
  display: block;
  color: var(--gray-600);
  font-size: 13px;
}

.rank-panel {
  position: sticky;
  top: 90px;
  padding: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 32px 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--gray-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-number {
  color: var(--emerald-600);
  font-size: 18px;
  font-weight: 900;
}

.rank-item img {
  width: 56px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-text {
  min-width: 0;
}

.rank-text strong,
.rank-text em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-text strong {
  color: var(--gray-900);
  font-size: 15px;
}

.rank-text em {
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: var(--gray-900);
}

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

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 86px 24px;
  color: var(--white);
}

.page-hero h1 {
  margin-top: 10px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  margin-bottom: 34px;
}

.filter-selects {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.category-overview-card {
  overflow: hidden;
}

.category-overview-cover {
  height: 210px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px;
  background: var(--gray-900);
}

.category-overview-cover img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.category-overview-body {
  padding: 24px;
}

.category-overview-body h2 {
  font-size: 24px;
}

.category-overview-body p {
  color: var(--gray-600);
}

.mini-link-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mini-link-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-50);
  font-size: 14px;
}

.mini-link-list a:hover {
  color: var(--emerald-700);
  background: var(--emerald-50);
}

.top-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}

.top-rank-card {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 24px;
  color: var(--white);
  background: var(--gray-900);
  box-shadow: var(--shadow-md);
}

.top-rank-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.35s ease;
}

.top-rank-card:hover img {
  transform: scale(1.06);
}

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.08));
}

.top-rank-card span,
.top-rank-card strong,
.top-rank-card em {
  position: relative;
  z-index: 2;
}

.top-rank-card span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--emerald-600);
  font-weight: 900;
}

.top-rank-card strong {
  margin-top: 12px;
  font-size: 24px;
}

.top-rank-card em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: var(--white);
}

.ranking-main {
  display: grid;
  grid-template-columns: 54px 68px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.ranking-index {
  color: var(--emerald-600);
  font-weight: 900;
}

.ranking-main img {
  width: 68px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-main strong,
.ranking-main em {
  display: block;
}

.ranking-main strong {
  color: var(--gray-900);
  font-size: 18px;
}

.ranking-main em {
  margin-top: 4px;
  color: var(--gray-600);
  font-style: normal;
}

.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ranking-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 13px;
}

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

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 24px 78px;
}

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

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

.breadcrumb strong {
  color: var(--white);
}

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

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

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

.detail-copy {
  color: var(--white);
}

.detail-shell {
  margin-top: -120px;
  position: relative;
  z-index: 4;
}

.player-card {
  overflow: hidden;
  margin-bottom: 34px;
  background: var(--gray-900);
}

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

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-layer {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--emerald-600);
  box-shadow: 0 18px 38px rgba(5, 150, 105, 0.32);
  font-size: 34px;
  line-height: 1;
}

.player-layer strong {
  max-width: 88%;
  font-size: clamp(20px, 3vw, 34px);
}

.detail-content-card {
  padding: 30px;
  margin-bottom: 62px;
}

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

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

.info-list dt {
  color: var(--gray-500);
  font-size: 13px;
}

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

.detail-content-card p {
  color: var(--gray-700);
  font-size: 17px;
}

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

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

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 54px 24px 38px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

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

.footer-brand p,
.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--gray-300);
  font-size: 14px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 17px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px;
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1060px) {
  .home-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-column,
  .rank-panel {
    position: static;
  }

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

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

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

  .mobile-toggle {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

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

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

  .detail-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 22px;
  }

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

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

  .ranking-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-nav {
    padding: 0 16px;
  }

  .site-logo span {
    font-size: 17px;
  }

  .hero-carousel {
    min-height: 560px;
  }

  .hero-inner,
  .page-shell,
  .page-hero-inner,
  .detail-inner,
  .home-search-block {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .movie-grid,
  .related-grid,
  .category-grid,
  .category-overview-grid,
  .top-rank-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .movie-card p,
  .tag-row {
    display: none;
  }

  .category-tile span {
    display: none;
  }

  .category-covers {
    height: 74px;
  }

  .detail-hero {
    min-height: 560px;
  }

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

  .detail-poster {
    display: none;
  }

  .detail-shell {
    margin-top: -70px;
  }

  .detail-content-card {
    padding: 20px;
  }

  .info-list,
  .filter-selects {
    grid-template-columns: 1fr;
  }

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

  .ranking-main img {
    width: 58px;
    height: 78px;
  }
}
