:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #0f172a;
  --panel-soft: #111c31;
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --violet: #7c3aed;
  --green: #34d399;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.14), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(124, 58, 237, 0.16), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #08111f 42%, #020617 100%);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr minmax(280px, 380px) auto;
  gap: 24px;
  align-items: center;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), #67e8f9 45%, #a78bfa);
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.32);
}

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

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

.nav-link,
.nav-button {
  border: 0;
  padding: 10px 0;
  color: var(--muted-strong);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -18px;
  width: 210px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--muted-strong);
}

.dropdown-menu a:hover {
  color: var(--text);
  background: rgba(34, 211, 238, 0.12);
}

.header-search,
.large-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.large-search input,
.search-field input,
.catalog-toolbar select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  min-height: 42px;
  padding: 0 16px;
}

.header-search input:focus,
.large-search input:focus,
.search-field input:focus,
.catalog-toolbar select:focus {
  border-color: rgba(34, 211, 238, 0.62);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.header-search button,
.large-search button,
.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  box-shadow: 0 12px 36px rgba(34, 211, 238, 0.26);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.large-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(34, 211, 238, 0.34);
}

.ghost-btn,
.section-link {
  color: var(--text);
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(34, 211, 238, 0.32);
  box-shadow: none;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.86);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 44%, rgba(34, 211, 238, 0.18), transparent 22rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.78) 46%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.12) 0%, rgba(2, 6, 23, 0.88) 100%);
}

.hero-content {
  position: relative;
  width: min(1440px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: center;
  padding: 72px 0 96px;
}

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

.kicker,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: var(--muted-strong);
  font-size: clamp(18px, 2vw, 24px);
}

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

.hero-tags {
  margin: 26px 0 30px;
}

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  color: #d8faff;
  background: rgba(34, 211, 238, 0.09);
  font-size: 12px;
  font-weight: 700;
}

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

.hero-poster {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.56);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #001018;
  background: rgba(103, 232, 249, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 4;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
  font-size: 28px;
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.home-search-panel,
.content-section,
.category-preview,
.detail-content,
.player-section {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  gap: 24px;
  align-items: center;
  margin-top: -52px;
  position: relative;
  z-index: 5;
  padding: 28px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.home-search-panel h2,
.section-head h2,
.category-preview h2,
.story-card h2,
.rank-info h2 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.home-search-panel h2 {
  font-size: clamp(26px, 3vw, 42px);
}

.large-search input {
  min-height: 56px;
  padding: 0 20px;
}

.large-search button {
  min-height: 56px;
  padding: 0 26px;
}

.content-section,
.category-preview,
.detail-content,
.player-section {
  padding: 72px 0 0;
}

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

.section-head h2,
.category-preview h2 {
  font-size: clamp(28px, 4vw, 50px);
}

.section-head p,
.category-preview p,
.sub-hero p,
.story-card p,
.footer-grid p,
.rank-info p,
.movie-card p {
  color: var(--muted);
}

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

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

.category-tile {
  position: relative;
  min-height: 220px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-solid);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

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

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.56;
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.94) 100%);
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  margin-bottom: 8px;
  font-size: 22px;
}

.category-tile em {
  color: var(--muted-strong);
  font-style: normal;
  font-size: 14px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.58);
}

.search-field {
  flex: 1 1 360px;
}

.search-field input,
.catalog-toolbar select {
  min-height: 46px;
  padding: 0 16px;
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-toolbar select {
  min-width: 140px;
  color-scheme: dark;
}

.movie-grid,
.rank-grid,
.preview-grid {
  display: grid;
  gap: 18px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.36);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #001018;
  background: linear-gradient(135deg, #67e8f9, #f0abfc);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

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

.movie-meta {
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.movie-card h3 a:hover,
.rank-info h2 a:hover {
  color: var(--cyan);
}

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

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

.movie-card-compact h3 {
  font-size: 16px;
}

.sub-hero {
  position: relative;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 34px;
}

.sub-hero h1 {
  max-width: 920px;
  margin: 0 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
}

.sub-hero-category {
  padding-bottom: 0;
}

.sub-actions {
  margin-top: 26px;
}

.category-preview {
  padding-top: 52px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 92px 62px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.3);
}

.rank-cover img {
  width: 92px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.rank-number {
  color: var(--cyan);
  font-size: 34px;
  font-weight: 900;
  text-align: center;
}

.rank-info h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.rank-info p {
  margin: 0 0 10px;
}

.rank-score {
  min-width: 92px;
  text-align: center;
}

.rank-score span {
  display: block;
  color: var(--cyan);
  font-size: 30px;
  font-weight: 900;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-bottom: 1px solid var(--line);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 40%, rgba(34, 211, 238, 0.16), transparent 24rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.62)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.94));
}

.detail-layout {
  position: relative;
  width: min(1440px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 70px 0 54px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.52);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted-strong);
}

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

.detail-copy h1 {
  max-width: 980px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 900px;
  margin: 0 0 22px;
  color: var(--muted-strong);
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.52);
}

.detail-tags {
  margin-bottom: 28px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.main-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--text);
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.2), transparent 18rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), #f0abfc);
  box-shadow: 0 24px 70px rgba(34, 211, 238, 0.4);
  font-size: 34px;
  line-height: 1;
  padding-left: 5px;
}

.player-overlay strong {
  font-size: 20px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.story-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.68);
}

.story-card h2 {
  margin-bottom: 14px;
  font-size: 30px;
}

.story-card p {
  margin: 0;
  font-size: 16px;
}

.related-section {
  padding-bottom: 76px;
}

.empty-state {
  display: none;
  padding: 36px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

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

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

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

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

.footer-brand {
  margin-bottom: 14px;
  font-size: 20px;
}

.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid p {
  max-width: 520px;
  margin: 0;
}

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

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

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

.footer-bottom {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 1280px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-panel {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    z-index: 60;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
  }

  body.menu-open .mobile-panel {
    display: grid;
    gap: 8px;
  }

  .mobile-panel a {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--muted-strong);
  }

  .mobile-panel a:hover {
    color: var(--text);
    background: rgba(34, 211, 238, 0.12);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 52px;
  }

  .hero-poster {
    width: min(330px, 76vw);
    transform: none;
  }

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

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

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

  .detail-layout {
    grid-template-columns: 240px 1fr;
    gap: 30px;
  }

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

@media (max-width: 760px) {
  .header-inner,
  .hero-content,
  .home-search-panel,
  .content-section,
  .category-preview,
  .sub-hero,
  .detail-layout,
  .detail-content,
  .player-section,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1440px);
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 680px;
  }

  .hero-copy h1,
  .detail-copy h1,
  .sub-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-copy p,
  .detail-one-line {
    font-size: 17px;
  }

  .hero-controls {
    bottom: 18px;
  }

  .home-search-panel {
    margin-top: -28px;
    padding: 20px;
  }

  .large-search,
  .catalog-toolbar,
  .section-head,
  .category-preview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-selects {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .rank-row {
    grid-template-columns: 72px 42px 1fr;
  }

  .rank-cover img {
    width: 72px;
  }

  .rank-score {
    grid-column: 2 / -1;
    display: flex;
    gap: 8px;
    align-items: baseline;
    justify-content: flex-start;
    text-align: left;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }
}

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

  .hero-actions,
  .sub-actions {
    display: grid;
  }

  .rank-row {
    grid-template-columns: 78px 1fr;
  }

  .rank-number {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #001018;
    background: var(--cyan);
    font-size: 18px;
  }

  .rank-info,
  .rank-score {
    grid-column: 2;
  }
}
