
:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --red: #dc2626;
  --red-dark: #991b1b;
  --orange: #f97316;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.12), transparent 30rem),
    linear-gradient(180deg, #f9fafb 0%, #f1f5f9 48%, #ffffff 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 42%, #7f1d1d 72%, #0f172a 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, #f87171, #fb923c, #facc15);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover {
  color: #fca5a5;
}

.desktop-nav a:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  padding: 76px 0 70px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.98), rgba(127, 29, 29, 0.94) 48%, rgba(15, 23, 42, 0.98)),
    radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.25), transparent 26rem);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.48;
  pointer-events: none;
}

.hero-glow-one {
  width: 420px;
  height: 420px;
  left: -160px;
  top: -140px;
  background: rgba(239, 68, 68, 0.35);
}

.hero-glow-two {
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -200px;
  background: rgba(249, 115, 22, 0.28);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  align-items: center;
  gap: 46px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(220, 38, 38, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  background: linear-gradient(90deg, #fecaca 0%, #fb923c 48%, #fee2e2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p,
.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.8;
}

.hero-search {
  margin-top: 28px;
  display: flex;
  max-width: 560px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-search input,
.inline-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 14px;
  padding: 13px 15px;
  background: #fff;
  color: var(--ink);
}

.hero-search input {
  flex: 1;
  border: none;
  background: rgba(255, 255, 255, 0.96);
}

.hero-search button,
.primary-btn,
.ghost-btn,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: none;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.primary-btn,
.panel-link {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.32);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.primary-btn:hover,
.ghost-btn:hover,
.hero-search button:hover,
.panel-link:hover {
  transform: translateY(-2px);
}

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

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

.hero-feature-stage {
  position: relative;
  min-height: 420px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.76);
}

.hero-feature {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  color: #fff;
}

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

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

.hero-feature-shade,
.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.78) 100%);
}

.hero-feature-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 10px;
}

.hero-feature-content strong {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 900;
}

.hero-feature-content em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  line-height: 1.6;
}

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(220, 38, 38, 0.82);
  font-size: 12px;
  font-weight: 700;
}

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

.hero-thumb {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-thumb.is-active,
.hero-thumb:hover {
  transform: translateY(-3px);
  border-color: rgba(248, 113, 113, 0.72);
}

.hero-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-thumb span {
  display: block;
  padding: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.section-block {
  padding: 64px 0;
}

.no-top-pad {
  padding-top: 20px;
}

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

.section-head h2,
.rank-panel-head h2,
.related-panel h2,
.content-card h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-head a {
  color: var(--red);
  text-decoration: none;
  font-weight: 800;
}

.section-kicker {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}

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

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: rgba(248, 113, 113, 0.48);
}

.poster-box {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.movie-card.compact .poster-box,
.catalog-grid .poster-box {
  aspect-ratio: 3 / 4;
}

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

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

.corner-badge,
.year-badge,
.small-card-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.corner-badge {
  left: 10px;
  top: 10px;
  background: var(--red);
}

.year-badge {
  right: 10px;
  top: 10px;
  background: rgba(0, 0, 0, 0.65);
}

.movie-card-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.movie-title {
  min-height: 1.4em;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.36;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.movie-meta span:first-child {
  color: var(--red);
  font-weight: 800;
}

.soft-band {
  background: linear-gradient(90deg, #eff6ff, #fff7ed 55%, #fef2f2);
}

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

.category-tile,
.category-overview-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-overview-info strong {
  font-size: 20px;
  font-weight: 900;
}

.category-tile em,
.category-overview-info em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.category-overview-card {
  min-height: auto;
  padding: 0;
  overflow: hidden;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  background: #0f172a;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.category-overview-info {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
}

.rank-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  border-radius: var(--radius-xl);
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.rank-panel-head span {
  color: var(--red);
  font-weight: 900;
}

.rank-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.rank-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: #fee2e2;
  transform: translateX(4px);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.rank-meta {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.panel-link {
  width: 100%;
}

.page-hero {
  padding: 78px 0 64px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(251, 146, 60, 0.24), transparent 24rem),
    linear-gradient(120deg, #0f172a, #7f1d1d 58%, #111827);
}

.page-hero h1 {
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a {
  color: #fecaca;
  text-decoration: none;
}

.inline-search {
  margin-top: 24px;
  max-width: 560px;
}

.filter-section {
  padding: 30px 0 0;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

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

.podium-card {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 320px;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: #0f172a;
}

.podium-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: brightness(0.66);
  transition: transform 0.3s ease;
}

.podium-card:hover img {
  transform: scale(1.06);
}

.podium-rank {
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 24px;
  font-weight: 900;
}

.podium-card strong,
.podium-card em {
  position: absolute;
  left: 24px;
  right: 24px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.podium-card strong {
  bottom: 58px;
  font-size: 26px;
  font-weight: 900;
}

.podium-card em {
  bottom: 28px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
}

.wide-rank-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.wide-rank-row {
  display: grid;
  grid-template-columns: 64px 96px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.wide-rank-row:hover {
  border-color: #fecaca;
  transform: translateY(-2px);
}

.wide-rank-number {
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.wide-rank-row img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.wide-rank-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.wide-rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.wide-rank-info em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-style: normal;
}

.wide-rank-meta {
  color: var(--muted);
  text-align: right;
  font-size: 13px;
}

.detail-hero {
  padding: 28px 0 56px;
  color: #fff;
  background:
    radial-gradient(circle at right top, rgba(249, 115, 22, 0.2), transparent 26rem),
    linear-gradient(120deg, #0f172a, #7f1d1d 60%, #111827);
}

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

.player-card,
.detail-side-card,
.content-card,
.related-panel {
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.player-card {
  overflow: hidden;
  color: var(--ink);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 14px 38px rgba(220, 38, 38, 0.38);
  font-size: 30px;
  line-height: 1;
  padding-left: 4px;
}

.play-overlay strong {
  font-size: 18px;
}

.detail-title-block {
  display: grid;
  gap: 12px;
  padding: 26px;
}

.detail-title-block h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 900;
}

.detail-title-block p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.detail-side-card {
  overflow: hidden;
  color: var(--ink);
}

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

.detail-side-info {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.detail-side-info h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.detail-side-info dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-side-info div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
}

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

.detail-side-info dd {
  margin: 0;
  font-weight: 750;
}

.primary-btn.full {
  width: 100%;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: 36px;
  align-items: start;
}

.content-stack {
  display: grid;
  gap: 22px;
}

.content-card {
  padding: 28px;
}

.content-card h2,
.related-panel h2 {
  font-size: 24px;
  margin: 0 0 14px;
}

.content-card p {
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.9;
}

.lead-text {
  color: var(--ink) !important;
  font-weight: 750;
}

.review-card {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.related-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.related-list {
  display: grid;
  gap: 13px;
}

.related-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  border-radius: 14px;
  padding: 8px;
  transition: background 0.2s ease;
}

.related-row:hover {
  background: #f8fafc;
}

.related-row img {
  width: 104px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.related-row span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.related-row strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

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

.mobile-related {
  display: none;
}

.narrow-text {
  max-width: 860px;
}

.site-footer {
  margin-top: 72px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

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

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

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

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 12px;
    font-size: 13px;
  }

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

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

  .menu-toggle {
    display: inline-block;
  }

  .hero-layout,
  .two-column-section,
  .detail-grid,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding: 56px 0;
  }

  .hero-feature-stage {
    min-height: 360px;
  }

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

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

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

  .filter-bar input {
    grid-column: 1 / -1;
  }

  .related-panel {
    display: none;
  }

  .mobile-related {
    display: block;
  }

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

  .detail-side-card img {
    height: 100%;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-copy h1,
  .page-hero h1 {
    font-size: 36px;
  }

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

  .hero-search,
  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search {
    display: grid;
  }

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

  .hero-feature-stage {
    min-height: 300px;
    border-radius: 22px;
  }

  .hero-feature-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .hero-feature-content strong {
    font-size: 24px;
  }

  .movie-grid,
  .catalog-grid,
  .latest-grid,
  .category-grid,
  .category-overview-grid,
  .podium-grid,
  .filter-bar {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

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

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

  .movie-desc {
    display: none;
  }

  .wide-rank-row {
    grid-template-columns: 44px 70px minmax(0, 1fr);
  }

  .wide-rank-row img {
    width: 70px;
    height: 52px;
  }

  .wide-rank-meta {
    display: none;
  }

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

  .detail-side-card img {
    aspect-ratio: 16 / 10;
  }

  .content-card {
    padding: 20px;
  }
}
