:root {
  --teal: #0f766e;
  --teal-dark: #115e59;
  --cyan: #0891b2;
  --blue: #2563eb;
  --amber: #f59e0b;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
  font-family: Inter, 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 {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(8, 145, 178, 0.18));
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  box-shadow: 0 10px 30px rgba(8, 145, 178, 0.28);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 25px rgba(2, 6, 23, 0.18);
  font-size: 14px;
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: scale(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a,
.mobile-links a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-links a:hover,
.mobile-links a.active {
  color: #fde68a;
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 2px;
}

.mobile-links {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 94, 89, 0.98);
  padding: 10px 24px 18px;
}

.mobile-links a {
  display: block;
  padding: 10px 0;
}

.page-main {
  min-height: 60vh;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--teal), var(--cyan) 52%, var(--blue));
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.28;
  pointer-events: none;
}

.hero-orb-a {
  width: 280px;
  height: 280px;
  top: 40px;
  left: 5%;
  background: var(--white);
}

.hero-orb-b {
  width: 360px;
  height: 360px;
  right: 6%;
  bottom: 30px;
  background: #fbbf24;
}

.hero-shell {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px 24px 56px;
}

.hero-title-block {
  max-width: 900px;
  margin: 0 auto 28px;
  text-align: center;
}

.hero-title-block p,
.section-kicker,
.page-banner span {
  margin: 0 0 10px;
  color: #ccfbf1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title-block h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.06;
  font-weight: 900;
}

.hero-search {
  max-width: 680px;
  margin: 0 auto;
  padding: 7px;
  display: flex;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 12px 18px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.hero-search button,
.primary-btn {
  border: 0;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--white);
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-search button:hover,
.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.22);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.64fr);
  gap: 36px;
  align-items: center;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  background: linear-gradient(110deg, rgba(2, 6, 23, 0.45), rgba(15, 118, 110, 0.28)), var(--hero-image) center / cover;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.22));
}

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

.hero-eyebrow {
  display: inline-flex;
  width: max-content;
  margin-bottom: 16px;
  padding: 7px 13px;
  color: #ccfbf1;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-tags,
.chips,
.detail-tags,
.card-tags,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.chips span,
.chips a,
.detail-tags span,
.card-tags span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.hero-buttons,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ghost-btn {
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 12px 22px;
  font-weight: 800;
  transition: background 0.25s ease, transform 0.25s ease;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.ghost-btn.light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.hero-poster {
  justify-self: end;
  width: min(340px, 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.36);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

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

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

.hero-controls {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  font-size: 26px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 28px;
  background: var(--white);
}

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

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

.section-head.tight {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
}

.section-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--slate-600);
}

.section-head a {
  color: var(--teal);
  font-weight: 800;
}

.section-kicker {
  color: var(--teal);
}

.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-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-card);
  background: var(--slate-900);
}

.category-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.75;
  transform: scale(1.04);
  transition: transform 0.55s ease, opacity 0.55s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.82));
}

.category-content {
  position: relative;
  z-index: 1;
  min-height: 190px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-content strong {
  font-size: 23px;
  font-weight: 900;
}

.category-content em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
  font-size: 14px;
}

.category-content small {
  margin-top: 12px;
  color: #fde68a;
  font-weight: 750;
}

.category-card:hover .category-bg {
  opacity: 0.92;
  transform: scale(1.12);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e2e8f0;
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.1);
}

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

.play-mark,
.player-button {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

.play-mark {
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.card-badge,
.card-score {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  top: 10px;
  left: 10px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.card-score {
  right: 10px;
  bottom: 10px;
  background: rgba(2, 6, 23, 0.72);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--slate-800);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

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

.card-body p {
  min-height: 42px;
  margin: 0 0 10px;
  color: var(--slate-600);
  font-size: 13px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--slate-500);
  font-size: 12px;
}

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

.card-tags span {
  color: var(--teal-dark);
  background: #ccfbf1;
}

.movie-card.compact .card-body p,
.movie-card.compact .card-tags {
  display: none;
}

.split-section {
  display: block;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 80px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-num {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
}

.rank-thumb img {
  width: 80px;
  height: 108px;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 6px;
  color: var(--slate-800);
  font-size: 18px;
  font-weight: 900;
}

.rank-info h3 a:hover {
  color: var(--teal);
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--slate-600);
  font-size: 14px;
}

.rank-meta span {
  color: var(--slate-600);
  background: var(--slate-100);
}

.rank-score {
  min-width: 58px;
  text-align: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 900;
}

.page-banner {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(100deg, var(--teal), var(--cyan));
}

.ranking-banner {
  background: linear-gradient(100deg, rgba(2, 6, 23, 0.85), rgba(15, 118, 110, 0.52)), var(--banner-image) center / cover;
}

.page-banner::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -160px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(30px);
}

.banner-shell {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
}

.banner-shell h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 900;
}

.banner-shell p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.banner-shell .primary-btn {
  display: inline-flex;
  margin-top: 24px;
}

.crumb {
  display: inline-flex;
  margin-bottom: 12px;
  color: #fde68a;
  font-weight: 800;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: var(--slate-700);
  font-weight: 800;
}

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 12px 16px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.clear-search {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--slate-600);
  background: var(--white);
  text-align: center;
}

.category-previews {
  display: grid;
  gap: 38px;
}

.category-preview {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.detail-hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(120deg, rgba(2, 6, 23, 0.92), rgba(15, 118, 110, 0.7)), var(--detail-image) center / cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(8, 145, 178, 0.35), transparent 34%);
}

.detail-shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 56px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fde68a;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: center;
}

.player-card,
.detail-info,
.story-card,
.info-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
  background: #020617;
}

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

.movie-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--white);
  background: #020617;
  overflow: hidden;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
}

.player-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 118, 110, 0.12), rgba(2, 6, 23, 0.78));
}

.player-button {
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  color: var(--teal);
  font-size: 26px;
  transform: translate(-50%, -50%);
}

.player-cover strong {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.movie-player.playing .player-cover {
  display: none;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.detail-info {
  color: var(--slate-800);
  padding: 30px;
  background: rgba(255, 255, 255, 0.94);
}

.chips a,
.chips span {
  color: var(--teal-dark);
  background: #ccfbf1;
}

.detail-info h1 {
  margin: 18px 0;
  color: var(--slate-800);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  font-weight: 900;
}

.detail-lead {
  margin: 0;
  color: var(--slate-600);
  font-size: 18px;
}

.detail-tags {
  margin-top: 20px;
}

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

.detail-actions .primary-btn {
  color: var(--white);
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

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

.story-card {
  padding: 30px;
}

.story-card h2 {
  margin: 0 0 14px;
  color: var(--slate-800);
  font-size: 26px;
  font-weight: 900;
}

.story-card h2:not(:first-child) {
  margin-top: 30px;
}

.story-card p {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
  line-height: 1.9;
}

.info-card {
  overflow: hidden;
}

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

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

.info-card dt {
  color: var(--slate-500);
}

.info-card dd {
  margin: 0;
  color: var(--slate-800);
  font-weight: 750;
}

.episode-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 20px;
}

.episode-links a {
  border-radius: 12px;
  padding: 11px;
  color: var(--white);
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  text-align: center;
  font-weight: 800;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: var(--white);
  font-size: 20px;
}

.footer-grid p {
  max-width: 420px;
  margin: 16px 0 0;
  color: #94a3b8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-links a:hover {
  color: #5eead4;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

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

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

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

  .menu-toggle {
    display: block;
  }

  .mobile-links.open {
    display: block;
  }

  .hero-shell {
    padding-top: 48px;
  }

  .hero-slider {
    min-height: 720px;
  }

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

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

  .rank-list.compact-list {
    grid-template-columns: 1fr;
  }

  .detail-info {
    padding: 24px;
  }
}

@media (max-width: 680px) {
  .nav-shell {
    padding: 0 16px;
  }

  .brand {
    font-size: 15px;
  }

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

  .hero-search,
  .search-box {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-search button,
  .clear-search {
    width: 100%;
    min-height: 46px;
  }

  .hero-slide {
    padding: 26px;
  }

  .hero-copy p,
  .banner-shell p,
  .detail-lead {
    font-size: 16px;
  }

  .section-shell,
  .banner-shell,
  .detail-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head {
    display: block;
  }

  .section-head a {
    display: inline-flex;
    margin-top: 12px;
  }

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

  .card-body {
    padding: 12px;
  }

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

  .card-body p,
  .card-tags {
    display: none;
  }

  .rank-row {
    grid-template-columns: 42px 64px minmax(0, 1fr);
    gap: 11px;
  }

  .rank-thumb img {
    width: 64px;
    height: 88px;
  }

  .rank-score {
    grid-column: 3;
    width: max-content;
  }

  .rank-info p,
  .rank-meta {
    display: none;
  }

  .story-card,
  .category-preview {
    padding: 20px;
  }
}
