:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.62);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(6, 182, 212, 0.45);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --cyan-soft: rgba(6, 182, 212, 0.18);
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.48);
  --radius: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.13), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.26);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100%, var(--max-width));
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.24);
}

.logo-text {
  font-size: 1.12rem;
}

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

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  color: var(--muted-strong);
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.94rem;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.mobile-menu-button span {
  width: 18px;
  height: 2px;
  margin: 4px auto;
  display: block;
  border-radius: 99px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-nav a {
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 5s ease;
}

.hero-slide.is-active img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.88) 20%, rgba(2, 6, 23, 0.45) 56%, rgba(2, 6, 23, 0.12) 100%),
    linear-gradient(to right, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.12));
}

.hero-content {
  position: absolute;
  left: max(20px, calc((100vw - var(--max-width)) / 2 + 20px));
  right: 20px;
  bottom: 88px;
  max-width: 680px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 13px;
  border: 1px solid rgba(103, 232, 249, 0.25);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.18);
  color: #67e8f9;
  font-size: 0.92rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero h1,
.page-hero h1 {
  margin: 16px 0 14px;
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
  max-width: 780px;
  margin: 0 0 28px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions,
.footer-links,
.detail-chips,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-button,
.glass-button,
.search-panel button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.24);
}

.primary-button.small {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 0.92rem;
}

.glass-button {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.glass-button:hover,
.search-panel button:hover {
  transform: translateY(-1px);
}

.hero-controls {
  position: absolute;
  right: max(20px, calc((100vw - var(--max-width)) / 2 + 20px));
  bottom: 90px;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease;
}

.hero-controls button:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

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

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

.quick-search-band,
.page-container,
.footer-inner,
.copyright {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.quick-search-band {
  margin-top: -38px;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-band strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.quick-search-band span,
.section-heading p,
.movie-card p,
.category-card p,
.category-overview-body p,
.ranking-info p,
.content-card p,
.lead-text,
.site-footer p {
  color: var(--muted);
}

.quick-search {
  display: flex;
  min-width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(2, 6, 23, 0.5);
}

.quick-search input,
.filter-panel input,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  background: rgba(2, 6, 23, 0.55);
  color: var(--text);
}

.quick-search input {
  min-width: 0;
  padding: 0 14px;
  border: 0;
}

.quick-search button {
  border: 0;
  padding: 0 18px;
  background: var(--cyan);
  color: #fff;
  font-weight: 800;
}

.section-stack {
  padding: 72px 0;
}

.section-stack > section + section {
  margin-top: 76px;
}

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

.section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 6px 0 0;
}

.section-link {
  color: #67e8f9;
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card,
.category-card,
.category-overview-card,
.ranking-item,
.content-card,
.detail-title-card,
.side-card,
.player-card,
.filter-panel,
.search-panel,
.highlight-section {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(12px);
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 22px 54px rgba(6, 182, 212, 0.10);
  transform: translateY(-4px);
}

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

.poster-wrap img,
.category-card img,
.wide-poster img,
.ranking-poster img,
.cover-card img,
.side-related-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.wide-rank-item:hover img,
.ranking-item:hover img,
.side-related-list a:hover img {
  transform: scale(1.08);
}

.year-badge,
.play-hover,
.category-card span,
.wide-poster span,
.ranking-poster span {
  position: absolute;
  z-index: 2;
}

.year-badge {
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.78rem;
}

.play-hover {
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.18);
  color: #fff;
  font-size: 2.3rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

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

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 0.78rem;
}

.movie-card h3,
.wide-rank-item h3,
.ranking-info h2,
.content-card h2,
.side-card h2 {
  margin: 8px 0 8px;
  color: #fff;
  line-height: 1.3;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 2.55em;
  overflow: hidden;
  font-size: 1rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card a:hover,
.ranking-info a:hover,
.wide-rank-item:hover h3,
.side-related-list a:hover span {
  color: #67e8f9;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: var(--radius);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.22));
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-card span,
.category-card h3,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  top: 14px;
  right: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.90);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.category-card p {
  margin: 0;
  font-size: 0.9rem;
}

.highlight-section {
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.56));
}

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

.wide-rank-item {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.58);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.wide-rank-item:hover {
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.wide-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.wide-poster span,
.ranking-poster span {
  top: 12px;
  left: 12px;
  display: inline-flex;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  font-weight: 900;
}

.wide-rank-item > div:last-child {
  padding: 22px 22px 22px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wide-rank-item p {
  color: var(--muted);
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 72px 20px;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.22), transparent 42%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 1));
}

.page-hero > div {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #67e8f9;
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: 22px;
}

.category-thumb-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 118px;
  overflow: hidden;
}

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

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

.category-overview-body span {
  color: #67e8f9;
  font-weight: 800;
}

.category-overview-body h2 {
  margin: 8px 0;
}

.filter-panel,
.search-panel {
  margin: 36px 0 24px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--radius);
}

.filter-panel strong {
  display: block;
}

.filter-panel span,
.search-summary {
  color: var(--muted);
  font-size: 0.92rem;
}

.filter-panel input {
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 12px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
}

.search-panel input,
.search-panel select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
}

.search-panel button {
  background: var(--cyan-dark);
}

.search-summary {
  margin: 0 0 20px;
}

.ranking-list {
  padding: 54px 0;
  display: grid;
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  overflow: hidden;
  border-radius: var(--radius);
}

.ranking-item.top-three {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(15, 23, 42, 0.82));
}

.ranking-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ranking-info {
  padding: 18px 20px 18px 0;
}

.ranking-info h2 {
  font-size: 1.28rem;
}

.tag-chip,
.detail-chips a,
.detail-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.54);
  color: var(--muted-strong);
  font-size: 0.82rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tag-chip:hover,
.detail-chips a:hover {
  border-color: var(--line-strong);
  background: var(--cyan-soft);
  color: #67e8f9;
}

.detail-page {
  padding: 34px 0 72px;
}

.detail-breadcrumb {
  margin: 0 0 22px;
}

.detail-breadcrumb em {
  color: var(--muted-strong);
  font-style: normal;
}

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

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

.player-card,
.detail-title-card,
.content-card,
.side-card {
  border-radius: 22px;
}

.player-card {
  overflow: hidden;
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.42));
  color: #fff;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  box-shadow: 0 24px 60px rgba(6, 182, 212, 0.32);
  font-size: 2rem;
  text-indent: 5px;
}

.video-player.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
}

.player-loading,
.player-error {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.72);
  color: var(--muted-strong);
  font-size: 0.86rem;
}

.player-error {
  display: none;
  color: #fecaca;
}

.video-player.has-error .player-error {
  display: block;
}

.video-player.is-ready .player-loading {
  display: none;
}

.detail-title-card,
.content-card {
  padding: 24px;
}

.detail-title-card h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.lead-text {
  margin: 0 0 22px;
  font-size: 1.08rem;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.detail-meta-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.26);
}

.detail-meta-grid strong {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-meta-grid span {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-weight: 700;
}

.content-card h2,
.side-card h2 {
  margin-top: 0;
}

.content-card p {
  margin: 0;
  white-space: pre-line;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.side-card {
  padding: 18px;
}

.cover-card {
  position: sticky;
  top: 88px;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  object-fit: cover;
  margin-bottom: 14px;
}

.cover-card .primary-button {
  width: 100%;
}

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

.side-related-list a {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: center;
}

.side-related-list img {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #0f172a;
}

.side-related-list span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-section {
  margin-top: 54px;
}

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

.footer-inner {
  padding: 34px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo {
  color: #fff;
  font-size: 1.1rem;
}

.site-footer p {
  max-width: 620px;
  margin: 8px 0 0;
}

.copyright {
  padding: 0 0 28px;
  color: #64748b;
  font-size: 0.85rem;
}

.hidden-by-filter {
  display: none !important;
}

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

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

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

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

  .wide-rank-item,
  .ranking-item,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .wide-rank-item > div:last-child,
  .ranking-info {
    padding: 18px;
  }

  .detail-side,
  .cover-card {
    position: static;
  }

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

@media (max-width: 720px) {
  .header-inner {
    padding: 0 14px;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    left: 20px;
    bottom: 86px;
  }

  .hero-controls {
    right: 20px;
    bottom: 28px;
  }

  .hero-dots {
    left: 20px;
    bottom: 44px;
    transform: none;
  }

  .quick-search-band,
  .filter-panel,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-search {
    min-width: 0;
  }

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

  .highlight-section {
    padding: 18px;
  }

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

  .filter-panel input {
    max-width: none;
  }

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

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

@media (max-width: 460px) {
  .movie-grid,
  .compact-grid,
  .category-movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .logo-text {
    font-size: 1rem;
  }

  .page-container,
  .quick-search-band,
  .footer-inner,
  .copyright {
    width: min(100% - 28px, var(--max-width));
  }
}
