:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f3f8ff;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 34%, #f9fafb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.12));
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  max-width: 1280px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #1f2937;
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.18)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.05) 55%, rgba(255, 255, 255, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  min-height: 86vh;
  padding: 150px 24px 220px;
  margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.eyebrow {
  width: fit-content;
  padding: 8px 14px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(191, 219, 254, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 650px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.meta-row span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn,
.catalog-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.catalog-toolbar button:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

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

.btn-ghost.light {
  color: #1e3a8a;
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.12);
}

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

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 999px;
  opacity: 0.5;
}

.hero-dot.is-active {
  width: 30px !important;
  opacity: 1;
  background: #60a5fa;
}

.hero-search-panel {
  position: absolute;
  z-index: 5;
  left: 50%;
  right: auto;
  bottom: 26px;
  width: min(1180px, calc(100% - 36px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 18px;
  align-items: center;
}

.hero-search {
  display: flex;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  background: transparent;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 800;
}

.hero-mini-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero-mini {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}

.hero-mini img {
  width: 64px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
  background: #1e293b;
}

.hero-mini span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 700;
}

.page-main {
  padding-top: 76px;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.soft-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.8), rgba(255, 255, 255, 0.6));
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-head.small h2 {
  font-size: 26px;
}

.section-link {
  flex: none;
  color: var(--blue);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), transparent);
}

.play-pill {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-pill {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.26);
}

.card-body {
  padding: 16px;
}

.meta-row {
  justify-content: space-between;
  margin-bottom: 10px;
}

.meta-row span {
  color: var(--blue);
  background: #eff6ff;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--blue);
}

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

.tag-row {
  margin-bottom: 12px;
}

.tag-row span {
  color: #0369a1;
  background: #e0f2fe;
}

.sub-row {
  justify-content: space-between;
  color: #6b7280;
  font-size: 13px;
}

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

.category-tile {
  min-height: 168px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:nth-child(3n+2) {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 34%), linear-gradient(135deg, #7c3aed, #06b6d4);
}

.category-tile:nth-child(3n) {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 34%), linear-gradient(135deg, #0f766e, #2563eb);
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 55px rgba(37, 99, 235, 0.25);
}

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

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.two-col-section {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: start;
}

.rank-panel,
.prose-panel,
.ranking-block,
.player-card,
.detail-article,
.cover-card,
.side-rank {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.rank-panel {
  position: sticky;
  top: 100px;
  padding: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.rank-row:hover {
  background: #eff6ff;
}

.rank-row b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
}

.rank-row span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.rank-row em {
  color: #f59e0b;
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  padding: 96px 24px 72px;
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.25), transparent 25%),
    linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #e0f2fe;
  font-size: 18px;
}

.page-actions {
  justify-content: center;
}

.catalog-toolbar {
  position: sticky;
  z-index: 10;
  top: 86px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.catalog-search input,
.filter-select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  padding: 0 18px;
  background: #ffffff;
}

.catalog-search input:focus,
.filter-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.movie-card.is-hidden {
  display: none;
}

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

.ranking-block {
  padding: 24px;
}

.ranking-block h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
}

.ranking-item:hover {
  background: #eff6ff;
}

.ranking-item b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.ranking-item img {
  width: 58px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #dbeafe;
}

.ranking-item span {
  min-width: 0;
  font-weight: 800;
}

.ranking-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-item em {
  color: #f59e0b;
  font-style: normal;
  font-weight: 900;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 700;
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
  gap: 30px;
  align-items: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.58));
}

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

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.36);
  font-size: 34px;
}

.player-bar {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  pointer-events: none;
}

.player-bar button {
  pointer-events: auto;
  border: 0;
  padding: 9px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.detail-article {
  margin-top: 24px;
  padding: 30px;
}

.detail-article h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.detail-article h2 {
  margin: 30px 0 12px;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 14px;
  color: #374151;
  font-size: 17px;
}

.detail-article .lead {
  color: #1e3a8a;
  font-size: 20px;
  font-weight: 700;
}

.detail-tags {
  margin: 18px 0;
}

.detail-tags span {
  color: #1d4ed8;
  background: #eff6ff;
}

.detail-tag-row {
  margin-bottom: 24px;
}

.detail-side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 22px;
}

.cover-card,
.side-rank {
  padding: 20px;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: #dbeafe;
}

.cover-card h2 {
  margin: 18px 0 8px;
  font-size: 24px;
}

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

.side-rank h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.side-rank a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.side-rank a:last-child {
  border-bottom: 0;
}

.side-rank span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-rank em {
  flex: none;
  color: #f59e0b;
  font-style: normal;
}

.prose-panel {
  max-width: 920px;
  padding: 36px;
}

.prose-panel h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.prose-panel p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 17px;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border-top: 1px solid var(--line);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
}

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

.footer-grid p,
.footer-grid a {
  color: var(--muted);
}

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

.footer-grid a:hover {
  color: var(--blue);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  color: #94a3b8;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .movie-grid,
  .featured-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .two-col-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }

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

@media (max-width: 760px) {
  .nav-wrap {
    height: 66px;
    padding: 0 16px;
  }

  .logo {
    font-size: 20px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: #eff6ff;
  }

  .hero-carousel {
    min-height: 92vh;
  }

  .hero-content {
    min-height: 92vh;
    margin-left: 0;
    padding: 120px 18px 230px;
  }

  .hero-search-panel {
    grid-template-columns: 1fr;
    bottom: 18px;
  }

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

  .hero-controls {
    bottom: 175px;
  }

  .content-section,
  .soft-section {
    padding: 42px 18px;
  }

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

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

  .card-body {
    padding: 13px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .card-body p,
  .tag-row,
  .sub-row {
    font-size: 12px;
  }

  .catalog-toolbar {
    position: static;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .page-main {
    padding-top: 66px;
  }

  .page-hero {
    padding: 70px 18px 48px;
  }

  .detail-layout,
  .breadcrumb {
    padding-left: 18px;
    padding-right: 18px;
  }

  .detail-article,
  .cover-card,
  .side-rank,
  .prose-panel,
  .ranking-block {
    padding: 20px;
  }

  .player-overlay span {
    width: 70px;
    height: 70px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 36px 18px 24px;
  }
}

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

  .hero-mini-list {
    display: none;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .ranking-item {
    grid-template-columns: 30px 48px minmax(0, 1fr);
  }

  .ranking-item em {
    display: none;
  }
}
