* {
  box-sizing: border-box;
}

:root {
  --primary: #9333ea;
  --primary-dark: #6d28d9;
  --primary-light: #c084fc;
  --accent: #ec4899;
  --ink: #1f2937;
  --muted: #6b7280;
  --surface: #ffffff;
  --soft: #faf5ff;
  --line: #ede9fe;
  --shadow: 0 20px 45px rgba(88, 28, 135, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 42%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img,
video {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #7c3aed 0%, #a855f7 48%, #9333ea 100%);
  box-shadow: 0 12px 30px rgba(88, 28, 135, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.25s ease;
}

.brand-mark::after {
  position: absolute;
  inset: 7px;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg, #c084fc, #7c3aed);
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(8deg);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.desktop-nav > a,
.nav-dropdown > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 22px 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.desktop-nav > a:hover,
.nav-dropdown > button:hover {
  color: #f3e8ff;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(80px, 1fr));
  gap: 4px;
  width: 230px;
  padding: 12px;
  color: #374151;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dropdown-menu a {
  padding: 8px 10px;
  border-radius: 10px;
}

.dropdown-menu a:hover {
  color: var(--primary);
  background: var(--soft);
}

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

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(280px, 26vw);
  min-width: 190px;
}

.header-search input {
  width: 100%;
  padding: 10px 42px 10px 16px;
  color: #4c1d95;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid transparent;
  border-radius: 999px;
  outline: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(216, 180, 254, 0.35);
}

.header-search button {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--primary);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  color: #ffffff;
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 22px;
  background: #7e22ce;
}

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

.mobile-nav a {
  color: #ffffff;
  font-weight: 700;
}

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.mobile-nav input {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
}

.mobile-nav button {
  padding: 10px 16px;
  color: #ffffff;
  background: var(--primary-dark);
  border: 0;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(115deg, #6d28d9 0%, #a855f7 48%, #ec4899 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle at 78% 68%, rgba(255, 255, 255, 0.13), transparent 24%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  filter: blur(55px);
}

.hero-glow-one {
  top: 82px;
  left: 7vw;
}

.hero-glow-two {
  right: 10vw;
  bottom: 70px;
}

.hero-slider {
  position: relative;
  z-index: 2;
  min-height: 560px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 44px;
  padding: 74px 24px 94px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: linear-gradient(90deg, rgba(88, 28, 135, 0.92), rgba(147, 51, 234, 0.64), rgba(236, 72, 153, 0.4)), var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  transform: scale(1.08);
  filter: blur(1px);
}

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

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: #f5d0fe;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 0 0 14px;
  color: #fdf4ff;
  font-size: clamp(26px, 3vw, 42px);
}

.hero p {
  max-width: 680px;
  margin: 0 0 30px;
  color: #f3e8ff;
  font-size: clamp(17px, 2vw, 22px);
}

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

.primary-btn,
.ghost-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--primary-dark);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(76, 29, 149, 0.2);
}

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

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.secondary-btn {
  color: #ffffff;
  background: var(--primary);
  border: 0;
  cursor: pointer;
}

.hero-poster {
  display: block;
  justify-self: end;
  width: min(340px, 100%);
  aspect-ratio: 2 / 3;
  padding: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  box-shadow: 0 28px 70px rgba(88, 28, 135, 0.35);
  backdrop-filter: blur(14px);
  transform: rotate(2deg);
  transition: transform 0.25s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-poster span,
.poster,
.detail-poster,
.rank-poster {
  display: block;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, rgba(76, 29, 149, 0.4), rgba(236, 72, 153, 0.25)), var(--poster-image);
  background-size: cover;
  background-position: center;
  border-radius: inherit;
}

.hero-tools {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 34px;
}

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-categories a {
  padding: 9px 15px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-categories a:hover {
  background: rgba(255, 255, 255, 0.26);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 30px;
  background: #ffffff;
}

.page-section,
.subpage-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
}

.subpage-main {
  padding-top: 34px;
}

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

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

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(24px, 3vw, 34px);
}

.section-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(147, 51, 234, 0.22);
}

.section-more {
  color: var(--primary);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(88, 28, 135, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: #ddd6fe;
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.poster-link {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
}

.poster {
  position: relative;
  border-radius: 0;
  transition: transform 0.35s ease;
}

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

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #ffffff;
  background: rgba(147, 51, 234, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
}

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

.type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  color: #ffffff;
  background: rgba(147, 51, 234, 0.92);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h3 {
  display: -webkit-box;
  min-height: 3em;
  margin: 0 0 8px;
  overflow: hidden;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card h3 a:hover {
  color: var(--primary);
}

.movie-line {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.movie-tags {
  margin-top: 10px;
}

.movie-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  padding: 4px 8px;
  color: var(--primary-dark);
  background: #f3e8ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.movie-card-compact .poster-link {
  aspect-ratio: 16 / 10;
}

.movie-card-compact h3 {
  min-height: 0;
  font-size: 15px;
}

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

.ranking-panel,
.content-card,
.filter-panel,
.category-card,
.rank-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(88, 28, 135, 0.08);
  backdrop-filter: blur(10px);
}

.ranking-panel {
  position: sticky;
  top: 90px;
  padding: 22px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 900;
}

.panel-title a {
  color: var(--primary);
  font-size: 14px;
}

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

.ranking-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #faf5ff;
  border-radius: 14px;
}

.ranking-list span {
  color: var(--accent);
  font-weight: 900;
}

.ranking-list a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

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

.site-footer {
  margin-top: 40px;
  color: #f3e8ff;
  background: linear-gradient(120deg, #4c1d95, #6d28d9 60%, #831843);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 560px;
  margin: 10px 0 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: flex-start;
  justify-content: flex-end;
}

.footer-inner nav a {
  color: #ffffff;
  font-weight: 700;
}

.subpage-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #6d28d9, #a855f7 55%, #ec4899);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.small-hero {
  padding: 56px;
}

.small-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
}

.small-hero p {
  max-width: 780px;
  margin: 0;
  color: #f3e8ff;
  font-size: 18px;
}

.filter-panel {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 20px 24px;
}

.filter-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 0.8fr)) auto;
  gap: 14px;
  align-items: end;
}

.filter-field {
  display: grid;
  gap: 7px;
}

.filter-field label {
  color: #4c1d95;
  font-size: 13px;
  font-weight: 900;
}

.filter-field input,
.filter-field select {
  width: 100%;
  padding: 12px 14px;
  color: #312e81;
  background: #ffffff;
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  outline: none;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.18);
}

.result-count {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

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

.category-card {
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-title {
  display: inline-flex;
  margin-bottom: 8px;
  color: #581c87;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.category-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-examples a {
  max-width: 100%;
  padding: 5px 9px;
  overflow: hidden;
  color: var(--primary-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #f3e8ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ranking-page {
  display: grid;
  gap: 18px;
}

.rank-card {
  display: grid;
  grid-template-columns: 62px 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.rank-number {
  color: var(--accent);
  font-size: 24px;
  font-weight: 950;
}

.rank-poster {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.rank-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-card h2 a:hover {
  color: var(--primary);
}

.rank-card p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-main {
  background: #ffffff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background-image: linear-gradient(115deg, rgba(76, 29, 149, 0.95), rgba(147, 51, 234, 0.72), rgba(236, 72, 153, 0.52)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.18), transparent 24%);
}

.detail-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  max-width: 1280px;
  min-height: 560px;
  margin: 0 auto;
  padding: 70px 24px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border: 12px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.35);
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 800px;
  margin: 0 0 22px;
  color: #f3e8ff;
  font-size: 20px;
}

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

.player-section {
  max-width: 1080px;
  margin: 40px auto;
  padding: 0 24px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111827;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

.video-element {
  display: block;
  width: 100%;
  height: 100%;
  background: #111827;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background: radial-gradient(circle, rgba(88, 28, 135, 0.34), rgba(17, 24, 39, 0.62));
  border: 0;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  padding-left: 4px;
  background: rgba(147, 51, 234, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.28);
}

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

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

.player-status {
  margin: 12px 4px 0;
  color: var(--muted);
  font-weight: 700;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 20px;
}

.content-card {
  padding: 24px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: #4c1d95;
  font-size: 24px;
}

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

.info-card {
  grid-row: span 2;
}

.info-card dl {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.info-card dt {
  color: #6b7280;
  font-weight: 900;
}

.info-card dd {
  margin: 0;
}

.hidden-card {
  display: none !important;
}

@media (max-width: 1180px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 920px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    min-height: 700px;
  }

  .hero-poster {
    justify-self: start;
    width: min(240px, 70vw);
  }

  .hero-tools {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .detail-poster {
    max-width: 280px;
  }

  .info-card {
    grid-row: auto;
  }
}

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

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

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-slide {
    padding: 48px 18px 130px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero h2 {
    font-size: 26px;
  }

  .hero p {
    font-size: 16px;
  }

  .page-section,
  .subpage-main {
    padding: 32px 16px;
  }

  .small-hero {
    padding: 34px 22px;
    border-radius: 24px;
  }

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

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

  .movie-line {
    display: none;
  }

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

  .rank-card {
    grid-template-columns: 42px 76px minmax(0, 1fr);
    gap: 12px;
  }

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

  .detail-content {
    min-height: auto;
    padding: 46px 16px;
  }

  .detail-info h1 {
    font-size: 38px;
  }

  .detail-one-line {
    font-size: 17px;
  }

  .player-section,
  .detail-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .content-card {
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
    padding: 34px 16px;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}

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

  .hero-categories a:nth-child(n + 7) {
    display: none;
  }

  .rank-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .rank-poster {
    display: none;
  }
}
