:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --orange: #fb923c;
  --shadow: 0 24px 80px rgba(8, 47, 73, 0.32);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.15), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(37, 99, 235, 0.18), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  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;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.35);
  font-size: 15px;
}

.brand-name {
  font-size: 25px;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  overflow: hidden;
}

.desktop-nav a,
.mobile-panel a {
  color: #cbd5e1;
  font-weight: 650;
  font-size: 14px;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-grid a:hover {
  color: var(--cyan);
}

.top-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.search-page-form input,
.local-filter {
  width: 220px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: #e2e8f0;
  padding: 10px 13px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.local-filter:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.13);
}

.top-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  cursor: pointer;
  font-weight: 800;
}

.menu-button {
  display: none;
  border: 0;
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 8px 11px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 24px 22px;
  background: rgba(2, 6, 23, 0.96);
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 55%, rgba(2, 6, 23, 0.62) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 9vh;
  max-width: 680px;
  z-index: 2;
}

.eyebrow,
.hero-tags,
.detail-meta,
.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.eyebrow span,
.hero-tags span,
.tag-row span,
.tag-cloud a {
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.11);
  color: #67e8f9;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.eyebrow span + span {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.58);
  color: #cbd5e1;
}

.hero h1 {
  margin: 18px 0 16px;
  color: white;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
}

.hero p {
  max-width: 620px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
  margin: 0 0 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #cbd5e1;
  margin: 22px 0 28px;
}

.hero-meta span {
  padding-left: 14px;
  position: relative;
}

.hero-meta span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--cyan);
  transform: translateY(-50%);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 13px;
  padding: 12px 20px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.primary-button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover {
  transform: translateY(-2px);
}

.primary-button.small {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 14px;
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.58);
  color: #e2e8f0;
}

.ghost-button:hover {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 14px 30px rgba(8, 47, 73, 0.26);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: white;
  font-size: 34px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 46px;
  z-index: 4;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 34px;
  background: var(--cyan);
}

.block-section,
.page-shell {
  padding-top: 58px;
}

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

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

.section-head div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.section-head span {
  color: var(--cyan);
  font-weight: 900;
}

.section-head h2 {
  margin: 0;
  color: white;
  font-size: 27px;
  font-weight: 900;
}

.section-head a,
.filter-bar a {
  color: #67e8f9;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card:hover .poster-frame img,
.category-card:hover img {
  transform: scale(1.07);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 58%);
}

.duration {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  border-radius: 9px;
  padding: 4px 7px;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.88);
  color: white;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 18px 50px rgba(34, 211, 238, 0.28);
}

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

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

.movie-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 48px;
  color: #f8fafc;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.38;
  transition: color 0.2s ease;
}

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

.movie-card-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 44px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.card-meta {
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}

.tag-row span {
  padding: 4px 8px;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(30, 41, 59, 0.7);
  color: #cbd5e1;
  font-size: 12px;
}

.wide-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0;
}

.wide-card .poster-frame {
  aspect-ratio: auto;
  min-height: 132px;
  height: 100%;
}

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

.category-card,
.category-overview-card,
.content-card,
.search-box-panel,
.ranking-panel,
.side-poster,
.related-panel,
.filter-bar,
.page-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

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

.category-card:hover img {
  opacity: 0.6;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.14));
}

.category-card span,
.category-card small {
  position: relative;
  z-index: 2;
}

.category-card span {
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.category-card small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 8px;
  color: #cbd5e1;
  line-height: 1.55;
}

.two-column,
.rankings-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.wide-list {
  display: grid;
  gap: 16px;
}

.ranking-panel {
  padding: 20px;
  position: sticky;
  top: 92px;
}

.ranking-panel.large {
  position: static;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 34px 72px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 9px;
  background: rgba(15, 23, 42, 0.72);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  background: rgba(30, 41, 59, 0.92);
  transform: translateX(3px);
}

.rank-no {
  color: var(--orange);
  font-size: 20px;
  font-weight: 950;
  text-align: center;
}

.ranking-item img {
  width: 72px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

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

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

.rank-info strong {
  color: #f8fafc;
  font-size: 14px;
}

.rank-info small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.page-shell {
  padding-bottom: 50px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #67e8f9;
}

.breadcrumb span::before,
.breadcrumb a + a::before,
.breadcrumb a + span::before {
  content: "/";
  color: #475569;
  margin-right: 10px;
}

.breadcrumb a:first-child::before {
  content: none;
}

.page-hero {
  padding: 34px;
  margin-bottom: 28px;
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.72));
}

.page-hero h1 {
  margin: 0 0 12px;
  color: white;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 860px;
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.75;
}

.filter-bar {
  margin-bottom: 24px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.local-filter {
  width: min(560px, 100%);
}

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

.category-overview-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px 1fr;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 230px;
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card > div:last-child {
  padding: 24px;
}

.category-overview-card h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 20px;
}

.search-box-panel {
  padding: 24px;
  margin-bottom: 30px;
}

.search-page-form input {
  width: 100%;
  min-height: 54px;
  font-size: 17px;
}

.search-page-form button {
  min-height: 54px;
  padding-inline: 24px;
}

.hot-words {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hot-words button {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

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

.empty-state {
  grid-column: 1 / -1;
  padding: 50px 24px;
  text-align: center;
  color: var(--muted);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), rgba(2, 6, 23, 0.42));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer span {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 22px 70px rgba(34, 211, 238, 0.34);
  font-size: 35px;
  padding-left: 6px;
}

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

.detail-title-block {
  padding: 24px 0 10px;
}

.detail-title-block h1 {
  margin: 0 0 14px;
  color: white;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.detail-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--line);
  color: #cbd5e1;
  font-size: 13px;
}

.content-card,
.tag-cloud,
.side-poster,
.related-panel {
  margin-top: 20px;
  padding: 22px;
}

.content-card h2,
.tag-cloud h2,
.related-panel h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.content-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 16px;
}

.tag-cloud {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

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

.side-poster {
  position: sticky;
  top: 92px;
}

.side-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.side-poster strong {
  display: block;
  color: white;
  font-size: 22px;
  line-height: 1.35;
}

.side-poster span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.related-panel {
  position: sticky;
  top: 420px;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 28px;
}

.footer-brand {
  color: white;
  font-size: 20px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 16px;
  font-weight: 900;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
}

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

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 13px;
  }

  .top-search input {
    width: 170px;
  }

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

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

  .category-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .header-inner {
    padding: 0 18px;
  }

  .brand-name {
    font-size: 22px;
  }

  .hero {
    height: 74vh;
    min-height: 600px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.38) 100%),
      linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.42));
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 76px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    left: 22px;
    right: auto;
    bottom: 28px;
  }

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

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

  .two-column,
  .rankings-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
  }

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

  .hero h1 {
    font-size: 42px;
  }

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

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

  .block-section,
  .page-shell {
    padding-top: 40px;
  }

  .movie-grid,
  .search-results,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-template-columns: 126px 1fr;
  }

  .wide-card .poster-frame {
    min-height: 118px;
  }

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

  .movie-title {
    min-height: auto;
    font-size: 15px;
  }

  .movie-card-body p {
    min-height: auto;
  }

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

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

  .category-thumbs {
    min-height: 180px;
  }

  .search-page-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-title-block h1 {
    font-size: 30px;
  }

  .play-layer span {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }

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