:root {
  color-scheme: dark;
  --dark-950: #05070a;
  --dark-900: #07090c;
  --dark-850: #0d1117;
  --dark-800: #12171e;
  --dark-700: #1d2530;
  --dark-650: #283342;
  --primary-700: #0043ad;
  --primary-600: #0056e0;
  --primary-500: #1a75ff;
  --accent-500: #ffc61a;
  --accent-600: #e6a800;
  --text: #ffffff;
  --muted: #9ca3af;
  --soft: #d1d5db;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(18, 23, 30, 0.78);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 86, 224, 0.2), transparent 28rem),
    linear-gradient(180deg, var(--dark-900), var(--dark-800) 45%, var(--dark-900));
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 12, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  border-radius: 11px;
  box-shadow: 0 10px 25px rgba(26, 117, 255, 0.28);
}

.brand-text {
  font-size: 20px;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  background: var(--dark-800);
  border: 1px solid var(--line);
  border-radius: 18px;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 0.9s ease, transform 1.5s ease;
  pointer-events: none;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.9), rgba(7, 9, 12, 0.42), rgba(7, 9, 12, 0.12)),
    linear-gradient(0deg, var(--dark-900), rgba(7, 9, 12, 0.12) 45%, rgba(7, 9, 12, 0.35));
}

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

.hero-copy {
  max-width: 760px;
  animation: riseIn 0.8s ease both;
}

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

.hero-tags strong,
.hero-tags span,
.tag-list span,
.detail-meta span,
.meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(29, 37, 48, 0.86);
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
}

.hero-tags strong {
  background: var(--accent-600);
  color: #ffffff;
}

.hero-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--soft);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(0, 86, 224, 0.32);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.ghost-btn.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

.hero-dot.is-active {
  width: 38px;
  background: var(--accent-500);
}

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

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--accent-500);
  background: rgba(230, 168, 0, 0.14);
  border: 1px solid rgba(230, 168, 0, 0.2);
  border-radius: 13px;
}

.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 28px;
  padding: 14px;
  background: rgba(18, 23, 30, 0.74);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.search-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 46px;
  background: rgba(7, 9, 12, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search-box input {
  width: 100%;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
}

.quick-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-filters button {
  height: 34px;
  padding: 0 12px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.quick-filters button:hover {
  color: #ffffff;
  border-color: rgba(255, 198, 26, 0.4);
}

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

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

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

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

.movie-card,
.movie-row,
.rank-card {
  min-width: 0;
}

.card-link,
.row-link,
.rank-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  background: rgba(18, 23, 30, 0.62);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.card-link:hover,
.row-link:hover,
.rank-card a:hover {
  transform: translateY(-4px);
  background: rgba(29, 37, 48, 0.8);
  border-color: rgba(255, 198, 26, 0.28);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--dark-700);
}

.poster-frame img,
.row-poster img,
.rank-card img,
.category-tile img,
.category-preview-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card-link:hover .poster-frame img,
.row-link:hover .row-poster img,
.rank-card a:hover img {
  transform: scale(1.06);
}

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  font-size: 12px;
}

.poster-play {
  left: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  border-radius: 999px;
}

.card-body {
  padding: 16px;
}

.card-body h3,
.row-body h3,
.rank-card h2 {
  margin: 8px 0;
  color: #ffffff;
  line-height: 1.35;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 17px;
}

.card-body p,
.row-body p,
.rank-card p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line {
  gap: 6px;
}

.meta-line span {
  min-height: 22px;
  padding: 3px 8px;
  color: var(--muted);
}

.tag-list span {
  background: rgba(255, 255, 255, 0.06);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

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

.row-link {
  display: flex;
  gap: 16px;
}

.row-poster {
  width: 170px;
  min-height: 120px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--dark-700);
}

.row-body {
  min-width: 0;
  padding: 14px 16px 14px 0;
}

.ranking-box {
  position: sticky;
  top: 86px;
  padding: 22px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.ranking-head h2 {
  margin: 0;
  font-size: 24px;
}

.ranking-head a {
  color: var(--accent-500);
  font-size: 14px;
  font-weight: 700;
}

.ranking-box ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-box li a {
  display: grid;
  grid-template-columns: 40px 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
}

.rank-num {
  color: var(--accent-500);
  font-weight: 900;
}

.ranking-box img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.ranking-box strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-box em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: var(--dark-700);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 9, 12, 0.95), rgba(7, 9, 12, 0.12));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: var(--soft);
  line-height: 1.65;
}

.page-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(0, 86, 224, 0.28), rgba(18, 23, 30, 0.86));
  box-shadow: var(--shadow);
}

.slim-hero {
  margin-top: 42px;
  padding: 64px;
}

.category-hero {
  min-height: 390px;
  margin-top: 42px;
  padding: 56px;
  display: flex;
  align-items: end;
}

.category-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.category-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 9, 12, 0.92), rgba(7, 9, 12, 0.42));
}

.category-hero > div,
.slim-hero > div {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-500);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
}

.page-hero p {
  margin: 0 0 24px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

.category-preview-list {
  display: grid;
  gap: 28px;
}

.category-preview {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: rgba(18, 23, 30, 0.68);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.category-preview-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.category-preview h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.category-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-preview-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
}

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

.rank-card a {
  display: grid;
  grid-template-columns: 76px 118px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.big-rank {
  color: var(--accent-500);
  font-size: 30px;
  font-weight: 950;
  text-align: center;
}

.rank-card img {
  width: 118px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.rank-card h2 {
  font-size: 24px;
}

.watch-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 30px;
}

.watch-backdrop {
  position: absolute;
  inset: 0;
  height: 520px;
  opacity: 0.18;
  filter: blur(2px);
  pointer-events: none;
}

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

.watch-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--dark-900), rgba(7, 9, 12, 0.1));
}

.watch-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 28px;
  align-items: center;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.player-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.2)),
    transparent;
  border: 0;
}

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

.play-orb {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  border-radius: 999px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
  font-size: 34px;
}

.watch-info {
  padding: 24px;
  background: rgba(18, 23, 30, 0.72);
  border: 1px solid var(--line);
  border-radius: 28px;
  backdrop-filter: blur(14px);
}

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

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

.watch-info h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
}

.lead-text {
  margin: 0 0 18px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.75;
}

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

.large-tags span {
  min-height: 30px;
  padding: 5px 12px;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 20px;
}

.detail-block,
.detail-side {
  padding: 24px;
  background: rgba(18, 23, 30, 0.68);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.detail-block h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-block p {
  margin: 0;
  color: var(--soft);
  line-height: 1.95;
  font-size: 16px;
}

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

.side-list .movie-card .card-body p,
.side-list .movie-card .tag-list,
.side-list .movie-card .meta-line {
  display: none;
}

.side-list .movie-card .poster-frame {
  aspect-ratio: 16 / 9;
}

.side-list .movie-card h3 {
  min-height: auto;
  font-size: 15px;
}

.site-footer {
  margin-top: 88px;
  background: rgba(7, 9, 12, 0.96);
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.site-footer p {
  max-width: 460px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent-500);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #6b7280;
  border-top: 1px solid var(--line);
  text-align: center;
}

[data-card].is-hidden {
  display: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .movie-grid,
  .archive-grid,
  .movie-grid.compact,
  .classic-grid,
  .related-grid,
  .mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section,
  .detail-content,
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .ranking-box {
    position: static;
  }

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

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

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    padding-bottom: 76px;
  }

  .hero-arrow {
    display: none;
  }

  .section-heading,
  .search-panel,
  .category-preview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .archive-grid,
  .movie-grid.compact,
  .classic-grid,
  .related-grid,
  .mini-grid,
  .category-grid,
  .row-list.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row-link,
  .rank-card a {
    grid-template-columns: 1fr;
    display: block;
  }

  .row-poster,
  .rank-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .row-body {
    padding: 14px;
  }

  .slim-hero,
  .category-hero {
    padding: 36px 24px;
    border-radius: 24px;
  }

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

@media (max-width: 520px) {
  .header-inner,
  .content-section,
  .watch-layout,
  .page-hero,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 17px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .movie-grid,
  .archive-grid,
  .movie-grid.compact,
  .classic-grid,
  .related-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .poster-frame {
    aspect-ratio: 16 / 10;
  }

  .watch-info,
  .detail-block,
  .detail-side {
    padding: 18px;
    border-radius: 20px;
  }

  .play-orb {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
