* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --teal: #0f766e;
  --cyan: #0891b2;
  --blue: #2563eb;
  --slate: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --paper: #ffffff;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #111827;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #eef8fb 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  color: white;
  background: linear-gradient(90deg, #0f766e, #0891b2 48%, #2563eb);
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.28);
}

.topbar-inner {
  width: min(1240px, calc(100% - 28px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  font-weight: 900;
}

.brand-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

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

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

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

.top-search input,
.inline-filter input {
  width: 230px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 11px 14px;
  outline: none;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

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

.top-search button,
.inline-filter button,
.filter-tabs button {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  color: #0f766e;
  background: white;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: white;
  border-radius: 999px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 54px 0 74px;
  color: white;
  background: radial-gradient(circle at 16% 18%, rgba(45, 212, 191, 0.36), transparent 31%), linear-gradient(135deg, #0f172a 0%, #0f766e 52%, #2563eb 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.32));
}

.hero-heading {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #14b8a6;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow,
.detail-hero-section .eyebrow {
  color: #99f6e4;
}

.hero-heading h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(34px, 5.8vw, 70px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-heading p:last-child {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-stage {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 520px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  opacity: 0;
  transform: translateX(30px) scale(0.985);
  pointer-events: none;
  background: rgba(15, 23, 42, 0.45);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.36);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.2);
  opacity: 0.42;
  transform: scale(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.58) 50%, rgba(8, 145, 178, 0.36));
}

.hero-content {
  position: relative;
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 42px;
  padding: 52px;
}

.hero-copy h2 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 16px;
  padding: 0 20px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(14px);
}

.hero-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

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

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.17);
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.section {
  padding: 72px 0 0;
}

.page-main {
  padding: 54px 0 80px;
}

.page-hero {
  overflow: hidden;
  margin-bottom: 32px;
  border-radius: 30px;
  padding: 42px;
  color: white;
  background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.46), transparent 34%), linear-gradient(135deg, #0f172a, #0f766e 58%, #2563eb);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

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

.section-title h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.more-link {
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  padding: 10px 14px;
  color: #0f766e;
  background: #ccfbf1;
  font-weight: 900;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: white;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.46);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

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

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

.movie-card-horizontal .poster {
  height: 100%;
  min-height: 220px;
  aspect-ratio: auto;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.62));
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.poster-badge {
  left: 12px;
}

.poster-year {
  right: 12px;
}

.poster-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.24);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  backdrop-filter: blur(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-body {
  padding: 18px;
}

.movie-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.movie-meta a,
.rank-meta a {
  color: #0f766e;
}

.movie-body h2 {
  margin: 10px 0 8px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
}

.movie-body h2 a:hover,
.rank-copy h2 a:hover,
.catalog-card h2 a:hover {
  color: #0f766e;
}

.movie-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  background: #f1f5f9;
  color: #0f766e;
}

.soft-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto 0;
  border-radius: 34px;
  padding: 42px;
  background: linear-gradient(135deg, #ecfeff, #f0fdfa);
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.14);
}

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

.category-card,
.catalog-card,
.content-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  background: white;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.category-card > a {
  display: block;
  padding: 24px;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  color: white;
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 950;
}

.category-card strong {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 650;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px;
}

.mini-links a {
  border-radius: 999px;
  padding: 8px 10px;
  color: #0f766e;
  background: #f0fdfa;
  font-size: 13px;
  font-weight: 800;
}

.ranking-section {
  scroll-margin-top: 86px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 1fr 128px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  padding: 16px;
  background: white;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.rank-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  font-size: 22px;
  font-weight: 950;
}

.rank-copy h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.rank-copy p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-cover {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
}

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

.catalog-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  padding: 18px;
}

.catalog-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  min-height: 210px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.catalog-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card h2 {
  margin: 6px 0 10px;
  font-size: 26px;
  line-height: 1.1;
}

.catalog-card p {
  margin: 0;
  color: #64748b;
}

.inline-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.inline-filter input {
  min-width: min(420px, 100%);
  border-color: rgba(255, 255, 255, 0.22);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-tabs button {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.filter-tabs button.is-active {
  color: #0f766e;
  background: white;
}

.empty-state {
  margin: 32px 0;
  border-radius: 22px;
  padding: 28px;
  color: #0f766e;
  background: #ccfbf1;
  font-weight: 900;
  text-align: center;
}

.detail-hero-section {
  position: relative;
  overflow: hidden;
  color: white;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(9px) saturate(1.12);
  opacity: 0.32;
  transform: scale(1.04);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 118, 110, 0.62));
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 42px;
  align-items: center;
  padding: 58px 0;
}

.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(14px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: white;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.detail-meta {
  margin-bottom: 16px;
}

.player-section {
  padding-top: 58px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.28), rgba(2, 6, 23, 0.48));
  transition: opacity 0.25s ease;
}

.player-overlay span {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  box-shadow: 0 18px 52px rgba(37, 99, 235, 0.42);
  font-size: 38px;
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 24px;
  padding-top: 42px;
}

.content-card {
  padding: 30px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.15;
}

.content-card p {
  margin: 0;
  color: #475569;
  font-size: 16px;
}

.accent-card {
  background: linear-gradient(135deg, #ecfeff, #f0fdfa);
}

.footer {
  margin-top: 86px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #134e4a 55%, #0f172a);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer h2 {
  margin: 0 0 16px;
  color: white;
  font-size: 18px;
}

.footer p {
  max-width: 420px;
  color: #94a3b8;
}

.footer-logo {
  color: white;
  font-size: 22px;
}

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

.footer-links a {
  border-radius: 999px;
  padding: 8px 10px;
  color: #ccfbf1;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 750;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 1100px) {
  .topbar-inner {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav-links {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 14px;
  }

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

  .top-search {
    grid-column: 1 / -1;
    justify-content: stretch;
    padding-bottom: 14px;
  }

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

  .hero-content {
    grid-template-columns: 1fr 260px;
    padding: 38px;
  }

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

  .rank-list,
  .category-grid,
  .catalog-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .brand-text {
    font-size: 18px;
  }

  .hero {
    padding: 34px 0 52px;
  }

  .hero-stage,
  .hero-slide,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: end;
    padding: 28px;
  }

  .hero-poster {
    width: min(230px, 75%);
    order: -1;
  }

  .hero-controls {
    right: 18px;
    bottom: 18px;
  }

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

  .soft-panel,
  .page-hero {
    padding: 28px;
  }

  .movie-grid,
  .compact-grid,
  .category-movie-grid,
  .featured-grid,
  .poster-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .rank-item {
    grid-template-columns: 46px 1fr;
  }

  .rank-cover {
    grid-column: 1 / -1;
  }

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

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding: 38px 0;
  }

  .detail-cover {
    width: min(290px, 78%);
  }

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

@media (max-width: 520px) {
  .shell,
  .hero-heading,
  .hero-stage,
  .topbar-inner,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .movie-grid,
  .compact-grid,
  .category-movie-grid,
  .featured-grid,
  .poster-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card-horizontal .poster {
    aspect-ratio: 3 / 4;
  }

  .inline-filter input {
    min-width: 100%;
  }
}
