:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #ea580c;
  --orange-soft: #fff7ed;
  --yellow: #fde047;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 46%, #f3f4f6 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
  background: #fff1f2;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-page-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.header-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  font-weight: 750;
  padding: 9px 16px;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.16);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #374151;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 16px 16px;
}

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

.mobile-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--red);
  background: #fff1f2;
}

.mobile-search {
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #fff;
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 52%, #b91c1c 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(253, 224, 71, 0.26), transparent 25%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-inner {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 56px;
}

.hero-slider {
  position: relative;
  min-height: 410px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.65fr);
  gap: 54px;
  align-items: center;
  min-height: 410px;
  animation: fadeIn 0.45s ease both;
}

.hero-slide.active {
  display: grid;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.9;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.detail-actions button,
.inline-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  padding: 14px 24px;
  color: var(--red);
  background: #fff;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
}

.ghost-btn {
  padding: 12px 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.inline-link:hover,
.detail-actions button:hover {
  transform: translateY(-2px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 650;
  font-size: 13px;
}

.hero-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-cover:hover img {
  transform: scale(1.07);
}

.hero-cover-glow {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -120px 80px rgba(0, 0, 0, 0.32);
}

.hero-controls {
  display: flex;
  gap: 9px;
  margin-top: 20px;
}

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

.hero-dot.active {
  width: 58px;
  background: #fff;
}

.hero-search-panel {
  margin-top: 32px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-search {
  display: flex;
  gap: 10px;
  padding: 7px;
  border-radius: 999px;
  background: #fff;
}

.hero-search input {
  padding: 0 14px;
}

.hero-mini-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.hero-mini-card {
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
}

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

.hero-mini-card span {
  display: block;
  padding: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-section,
.page-shell,
.detail-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 56px 0;
}

.soft-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1280px) / 2));
  padding-right: max(16px, calc((100vw - 1280px) / 2));
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

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

.section-head h2 {
  margin: 0 0 5px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.16;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-more {
  padding: 10px 14px;
  color: var(--red);
  background: #fff1f2;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.64));
}

.year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-info {
  padding: 13px;
}

.movie-info h3 {
  min-height: 42px;
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.4;
}

.movie-info h3 a:hover {
  color: var(--red);
}

.movie-meta,
.movie-line {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.movie-line {
  margin-top: 7px;
  color: #4b5563;
}

.category-section {
  padding-top: 20px;
}

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

.category-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 35px rgba(220, 38, 38, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:nth-child(even) {
  background: linear-gradient(135deg, #111827, #374151);
}

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

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

.category-tile span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.65;
}

.rank-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1280px) / 2));
  padding-right: max(16px, calc((100vw - 1280px) / 2));
  background: linear-gradient(135deg, #111827, #1f2937);
}

.light-head h2,
.light-head p {
  color: #fff;
}

.light-head p {
  opacity: 0.68;
}

.light-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}

.rank-number {
  font-weight: 900;
  color: var(--yellow);
}

.rank-item img {
  width: 64px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-style: normal;
}

.page-shell {
  padding: 36px 0 64px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 46px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 24px 55px rgba(220, 38, 38, 0.18);
}

.page-hero:after {
  content: "";
  position: absolute;
  right: -110px;
  top: -120px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.page-hero span {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 800;
  color: #fffbeb;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero h1 {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
}

.page-hero p {
  position: relative;
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.content-panel {
  padding: 28px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 22px;
}

.filter-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #374151;
  background: #f3f4f6;
  cursor: pointer;
  font-weight: 700;
}

.filter-button.active,
.filter-button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

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

.category-card-large {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.category-thumb-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  background: #111827;
}

.category-thumb-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.category-card-body {
  padding: 20px;
}

.category-card-body h2 {
  margin: 0 0 10px;
}

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

.inline-link {
  color: var(--red);
  font-weight: 800;
}

.top-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.top-rank-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: 28px;
  color: #fff;
  box-shadow: var(--shadow);
}

.top-rank-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.top-rank-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
  z-index: -1;
}

.top-rank-num {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.95);
  font-weight: 900;
}

.top-rank-card strong {
  font-size: 25px;
  margin-bottom: 8px;
}

.top-rank-card em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 70px 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ranking-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ranking-index {
  color: var(--red);
  font-weight: 900;
  font-size: 20px;
  text-align: center;
}

.ranking-row img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-title strong,
.ranking-title em {
  display: block;
}

.ranking-title em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.ranking-meta {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.search-page-form {
  position: relative;
  display: flex;
  gap: 10px;
  max-width: 760px;
  margin-top: 24px;
  padding: 8px;
  border-radius: 999px;
  background: #fff;
}

.search-page-form input {
  padding: 0 16px;
}

.detail-shell {
  padding: 28px 0 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.2), rgba(0, 0, 0, 0.7));
  cursor: pointer;
  text-align: center;
}

.player-overlay.hidden {
  display: none;
}

.big-play {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

.player-overlay strong {
  max-width: min(680px, 90%);
  font-size: clamp(20px, 3vw, 34px);
}

.player-overlay em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.72);
}

.detail-card,
.side-box {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.detail-meta a,
.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f3f4f6;
}

.detail-meta a {
  color: var(--red);
  background: #fff1f2;
  font-weight: 750;
}

.tag-row span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--red);
  background: #fff1f2;
  font-weight: 700;
  font-size: 14px;
}

.detail-actions {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.detail-actions button {
  border: 0;
  cursor: pointer;
  padding: 10px 15px;
  color: #374151;
  background: #f3f4f6;
}

.detail-actions button.active,
.detail-actions button:hover {
  color: var(--red);
  background: #fff1f2;
}

.text-block {
  padding: 22px 0 0;
}

.text-block h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.text-block p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.lead-line {
  padding-left: 18px;
  border-left: 4px solid var(--red);
  font-size: 18px;
  color: #111827;
}

.side-poster {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.side-box h2 {
  margin: 0 0 16px;
}

.side-box dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.side-box dt {
  color: var(--muted);
}

.side-box dd {
  margin: 0;
  color: #111827;
  font-weight: 650;
}

.related-section {
  padding-bottom: 0;
}

.prose-panel {
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
}

.prose-panel p {
  margin: 0 0 16px;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
}

.footer-logo .brand-text {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.footer-brand p {
  max-width: 420px;
  margin: 16px 0 0;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-col h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
}

.footer-col a {
  display: block;
  margin: 0 0 10px;
  color: #9ca3af;
  font-size: 14px;
}

.footer-col a:hover {
  color: #fca5a5;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.hidden-card {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

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

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

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-slide.active {
    grid-template-columns: 1fr;
  }

  .hero-cover {
    max-width: 300px;
    margin: 0 auto;
  }

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

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

  .detail-side {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 18px;
  }

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

  .ranking-row {
    grid-template-columns: 52px 60px 1fr;
  }

  .ranking-meta {
    grid-column: 3;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .content-section,
  .page-shell,
  .detail-shell,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

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

  .hero-inner {
    width: min(100% - 24px, 1280px);
    padding: 36px 0;
  }

  .hero-actions,
  .hero-search,
  .search-page-form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
  }

  .hero-search input,
  .search-page-form input {
    padding: 12px;
  }

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

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

  .movie-info {
    padding: 11px;
  }

  .category-grid,
  .rank-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

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

  .page-hero,
  .content-panel,
  .detail-card,
  .side-box {
    padding: 22px;
    border-radius: 22px;
  }

  .detail-side {
    display: block;
  }

  .side-poster {
    max-width: 260px;
    margin: 0 auto;
  }

  .ranking-row {
    grid-template-columns: 44px 54px 1fr;
    gap: 10px;
  }

  .ranking-row img {
    width: 54px;
    height: 72px;
  }
}
