:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(34, 211, 238, 0.42);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --white: #ffffff;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.18);
  --blue: #2563eb;
  --orange: #fb923c;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --glow: 0 0 36px rgba(34, 211, 238, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% -10%, rgba(34, 211, 238, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.18), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

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.92);
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: min(1180px, calc(100% - 2rem));
  height: 4.25rem;
  margin: 0 auto;
}

.site-logo,
.footer-logo,
.mobile-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 0.75rem;
  color: var(--white);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.9), rgba(37, 99, 235, 0.88));
  box-shadow: var(--glow);
}

.logo-text,
.footer-logo,
.mobile-logo {
  font-size: 1.35rem;
  background: linear-gradient(90deg, #67e8f9, #38bdf8, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--cyan);
}

.header-search,
.mobile-search,
.wide-search,
.page-filter {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-search input,
.mobile-search input,
.wide-search input,
.page-filter input,
.page-filter select {
  min-width: 0;
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: 0.85rem;
  color: var(--text);
  background: rgba(15, 23, 42, 0.94);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 15.5rem;
  padding: 0.62rem 0.85rem;
}

.mobile-search input,
.wide-search input,
.page-filter input,
.page-filter select {
  padding: 0.85rem 1rem;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.page-filter input:focus,
.page-filter select:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.header-search button,
.mobile-search button,
.wide-search button,
.page-filter button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 0.85rem;
  color: var(--white);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-search button,
.mobile-search button,
.wide-search button,
.page-filter button,
.primary-btn {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 32px rgba(34, 211, 238, 0.22);
}

.header-search button {
  padding: 0.62rem 0.95rem;
}

.mobile-search button,
.wide-search button,
.page-filter button,
.primary-btn,
.ghost-btn {
  padding: 0.86rem 1.25rem;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.page-filter button:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 1.65rem;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.98);
  padding: 1rem;
}

.mobile-nav.open {
  display: grid;
  gap: 0.85rem;
}

.mobile-link {
  padding: 0.75rem 0;
}

.mobile-search {
  align-items: stretch;
}

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

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

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.76) 38%, rgba(2, 6, 23, 0.32) 72%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.55) 42%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 5.5rem;
}

.hero-copy {
  max-width: 680px;
}

.hero-tags,
.hero-meta,
.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.hero-tags span,
.hero-tags a,
.detail-kicker,
.tag-card span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.14);
  font-size: 0.84rem;
  font-weight: 750;
}

.hero-tags span,
.hero-tags a {
  padding: 0.36rem 0.72rem;
}

.hero h1,
.hero h2 {
  margin: 1rem 0;
  color: var(--white);
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 58ch;
  margin: 0 0 1.35rem;
  color: #cbd5e1;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.hero-meta {
  color: #cbd5e1;
  margin-bottom: 1.8rem;
}

.hero-meta span,
.movie-meta span,
.detail-meta span {
  color: #cbd5e1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.46);
  font-size: 2rem;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 1.2rem;
}

.hero-next {
  right: 1.2rem;
}

.hero-dots {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section-shell,
.detail-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-shell {
  padding: 4rem 0 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: 2rem;
  align-items: center;
  padding-top: 3rem;
}

.intro-strip h2,
.section-title h2,
.page-hero h1,
.content-card h2,
.detail-sidebar h2 {
  margin: 0;
  color: var(--white);
  letter-spacing: -0.03em;
}

.intro-strip h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.intro-strip p,
.page-hero p,
.category-overview-card p,
.category-card p,
.content-card p,
.detail-heading p,
.footer-brand p,
.footer-col p {
  color: var(--muted);
}

.wide-search {
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--panel);
}

.wide-search input {
  flex: 1;
  border-color: transparent;
  background: transparent;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title.tight {
  align-items: center;
}

.section-title span,
.page-hero span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.section-title a {
  color: var(--cyan);
  font-weight: 750;
}

.movie-grid,
.category-grid,
.category-overview-grid,
.top-grid {
  display: grid;
  gap: 1.25rem;
}

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

.catalog-grid {
  align-items: stretch;
}

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

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

.movie-card,
.horizontal-card,
.category-card,
.category-overview-card,
.content-card,
.ranking-panel {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.18);
}

.movie-card,
.horizontal-card,
.category-card,
.category-overview-card {
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover,
.horizontal-card:hover,
.category-card:hover,
.category-overview-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px rgba(34, 211, 238, 0.1);
  transform: translateY(-3px);
}

.movie-thumb,
.horizontal-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.92);
}

.movie-thumb {
  aspect-ratio: 16 / 10;
}

.movie-card-large .movie-thumb {
  aspect-ratio: 16 / 13;
}

.movie-card-compact .movie-thumb {
  aspect-ratio: 3 / 4;
}

.movie-thumb img,
.horizontal-thumb img,
.category-preview img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-thumb img,
.horizontal-card:hover .horizontal-thumb img,
.category-preview a:hover img {
  transform: scale(1.08);
}

.thumb-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 60%);
}

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 850;
}

.duration {
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.2rem 0.55rem;
  background: rgba(0, 0, 0, 0.75);
}

.rank-badge {
  left: 0.7rem;
  top: 0.7rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.24);
}

.play-symbol {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 2.35rem;
  opacity: 0;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
  transform: scale(0.92);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.play-symbol.small {
  font-size: 1.65rem;
}

.movie-card:hover .play-symbol,
.horizontal-card:hover .play-symbol {
  opacity: 1;
  transform: scale(1);
}

.movie-info,
.horizontal-info {
  padding: 1rem;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

.movie-info p,
.horizontal-info p {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  margin: 0.55rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.detail-meta {
  color: var(--muted-2);
  font-size: 0.82rem;
}

.movie-meta span + span::before,
.detail-meta span + span::before {
  content: "•";
  margin-right: 0.65rem;
  color: var(--muted-2);
}

.horizontal-list {
  display: grid;
  gap: 1rem;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 170px 1fr;
}

.horizontal-thumb {
  min-height: 118px;
}

.split-sections {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 1.7rem;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 5.5rem;
  padding: 1.25rem;
}

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

.category-card {
  position: relative;
  min-height: 172px;
  padding: 1.2rem;
  isolation: isolate;
}

.category-glow {
  position: absolute;
  inset: auto -24px -58px auto;
  z-index: -1;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.18);
  filter: blur(16px);
}

.category-card strong {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--white);
  font-size: 1.2rem;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.2rem 0 2rem;
}

.compact-hero,
.category-hero,
.ranking-hero,
.search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  gap: 2rem;
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.05;
}

.page-hero p {
  max-width: 68ch;
  font-size: 1.05rem;
}

.page-filter {
  justify-content: end;
  align-self: center;
}

.page-filter input {
  width: min(100%, 330px);
}

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

.category-overview-card {
  padding: 1.25rem;
}

.category-headline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.category-headline span {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 850;
}

.category-headline a {
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 750;
  white-space: nowrap;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.category-preview a {
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 4 / 5;
  background: rgba(2, 6, 23, 0.48);
}

.empty-state {
  display: none;
  margin: 2rem 0;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--muted);
  text-align: center;
  background: var(--panel);
}

.empty-state.active {
  display: block;
}

.rank-section {
  padding-bottom: 1rem;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.search-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.search-suggest a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.58);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.search-suggest a:hover {
  border-color: var(--border-strong);
  color: var(--cyan);
  background: var(--cyan-soft);
}

.detail-shell {
  padding: 2rem 0 0;
}

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

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

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

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

.movie-player,
.player-layer,
.player-cover,
.player-shadow {
  position: absolute;
  inset: 0;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-layer {
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: #020617;
}

.player-layer.is-hidden {
  display: none;
}

.player-cover {
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.player-shadow {
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 22rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.45));
}

.player-button {
  position: relative;
  z-index: 5;
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.92), rgba(37, 99, 235, 0.92));
  box-shadow: 0 22px 55px rgba(34, 211, 238, 0.24);
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.player-layer:hover .player-button {
  transform: scale(1.06);
}

.detail-heading {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.1rem;
  margin: 1.4rem 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  aspect-ratio: 3 / 4;
  background: rgba(15, 23, 42, 0.8);
}

.detail-kicker {
  width: fit-content;
  padding: 0.34rem 0.72rem;
}

.detail-heading h1 {
  margin: 0.7rem 0 0.55rem;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-heading p {
  margin: 0 0 0.9rem;
  font-size: 1.03rem;
}

.content-card {
  padding: 1.35rem;
  margin-bottom: 1rem;
}

.content-card h2,
.detail-sidebar h2 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

.content-card p {
  margin: 0;
}

.tag-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.tag-card span {
  padding: 0.35rem 0.72rem;
}

.sidebar-sticky {
  position: sticky;
  top: 5.5rem;
}

.sidebar-list .horizontal-card {
  grid-template-columns: 130px 1fr;
}

.sidebar-list .horizontal-thumb {
  min-height: 96px;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(30, 41, 59, 0.92);
  background: rgba(2, 6, 23, 0.72);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.footer-brand p,
.footer-col p {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.footer-col h2 {
  margin: 0 0 0.85rem;
  color: var(--white);
  font-size: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 1.4rem;
  border-top: 1px solid rgba(30, 41, 59, 0.86);
  color: var(--muted-2);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

  .top-grid,
  .rank-list,
  .split-sections,
  .detail-layout,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .sidebar-sticky {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero {
    height: 66vh;
    min-height: 500px;
  }

  .hero-content {
    padding-bottom: 4.5rem;
  }

  .hero-arrow {
    display: none;
  }

  .intro-strip,
  .compact-hero,
  .category-hero,
  .ranking-hero,
  .search-hero,
  .detail-heading {
    grid-template-columns: 1fr;
  }

  .wide-search,
  .page-filter,
  .search-page-form {
    align-items: stretch;
    flex-direction: column;
  }

  .page-filter {
    justify-content: stretch;
  }

  .page-filter input,
  .page-filter select {
    width: 100%;
  }

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

  .horizontal-card {
    grid-template-columns: 135px 1fr;
  }

  .detail-poster {
    width: 150px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section-shell,
  .detail-shell,
  .page-hero,
  .footer-shell,
  .footer-bottom {
    width: min(100% - 1rem, 1180px);
  }

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

  .hero {
    min-height: 460px;
  }

  .hero h1,
  .hero h2 {
    font-size: 2.35rem;
  }

  .hero-dots {
    left: 1rem;
    right: auto;
  }

  .section-shell {
    padding-top: 3rem;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .top-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .horizontal-card,
  .sidebar-list .horizontal-card {
    grid-template-columns: 120px 1fr;
  }

  .horizontal-info {
    padding: 0.75rem;
  }

  .horizontal-info p {
    -webkit-line-clamp: 1;
    min-height: auto;
  }

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

  .player-button {
    width: 4rem;
    height: 4rem;
    font-size: 1.6rem;
  }
}
