:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --red-500: #ef4444;
  --rose-500: #f43f5e;
  --pink-500: #ec4899;
  --green-500: #22c55e;
  --blue-500: #3b82f6;
  --cyan-500: #06b6d4;
  --purple-500: #a855f7;
  --slate-700: #334155;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #ffffff;
  --panel-soft: #f9fafb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark,
.footer-brand span {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.32);
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  padding: 26px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--amber-600);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-600);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-search {
  width: 220px;
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 8px 10px 16px;
  background: transparent;
}

.header-search button {
  border: 0;
  padding: 9px 14px;
  color: var(--muted);
  background: transparent;
}

.mobile-toggle,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, rgba(217, 119, 6, 0.96), rgba(249, 115, 22, 0.94), rgba(239, 68, 68, 0.92));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35) 0 3px, transparent 4px), radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.25) 0 2px, transparent 3px), linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 80px 80px, 120px 120px, 60px 60px;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(0deg, #ffffff, rgba(255, 255, 255, 0));
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 8px;
  padding: 8px 16px;
  color: var(--amber-700, #b45309);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.hero-badge {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(8px);
}

.hero-copy h1 {
  margin: 26px 0 20px;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy h1 span,
.hero-copy h1 small {
  display: block;
}

.hero-copy h1 span {
  color: #fde68a;
}

.hero-copy h1 small {
  margin-top: 12px;
  color: #ffedd5;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.03em;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #fff7ed;
  font-size: 19px;
}

.hero-actions,
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-light {
  color: var(--amber-600);
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(146, 64, 14, 0.22);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.hero-showcase {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 25px 60px rgba(124, 45, 18, 0.25);
  backdrop-filter: blur(18px);
}

.hero-showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hero-showcase-head strong {
  font-size: 20px;
}

.hero-showcase-head span {
  color: #ffedd5;
  font-size: 13px;
}

.hero-focus-item {
  display: none;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 170px;
}

.hero-focus-item.active {
  display: grid;
  animation: fadeIn 0.45s ease;
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  box-shadow: 0 20px 50px rgba(67, 20, 7, 0.28);
}

.hero-poster img,
.poster-frame img,
.detail-cover img,
.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-focus-item span {
  color: #fde68a;
  font-size: 13px;
  font-weight: 900;
}

.hero-focus-item strong {
  display: block;
  margin: 8px 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.18;
}

.hero-focus-item small {
  color: #ffedd5;
  font-size: 14px;
}

.stats-section {
  background: #ffffff;
  padding: 42px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stat-card {
  padding: 28px 22px;
  text-align: center;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card strong {
  display: block;
  font-size: 34px;
  color: var(--amber-600);
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 86px 0;
}

.section-tight {
  padding-top: 42px;
}

.section-warm {
  background: linear-gradient(180deg, #ffffff, var(--amber-50));
}

.section-soft {
  background: linear-gradient(180deg, var(--amber-50), #ffffff);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head h2,
.section-title-row h2 {
  margin: 14px 0 12px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.section-title-row p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  color: var(--amber-600);
  background: var(--amber-100);
}

.eyebrow.green {
  color: #15803d;
  background: #dcfce7;
}

.text-link {
  color: var(--amber-600);
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

.featured-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #fed7aa 55%, #fb923c);
}

.featured-grid .poster-frame {
  aspect-ratio: 4 / 3;
}

.poster-frame.image-missing::after,
.hero-poster.image-missing::after,
.detail-cover.image-missing::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: #92400e;
  font-weight: 900;
  background: linear-gradient(135deg, #fffbeb, #fed7aa);
}

.poster-frame img {
  transition: transform 0.45s ease;
}

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

.year-pill,
.rank-badge,
.rank-number {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  background: var(--amber-500);
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(146, 64, 14, 0.25);
}

.year-pill {
  top: 10px;
  right: 10px;
  padding: 4px 9px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.play-mask {
  position: absolute;
  inset: auto 12px 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 8px 10px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.70);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.card-body {
  padding: 18px;
}

.movie-card.compact .card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.32;
  transition: color 0.2s ease;
}

.movie-card.compact .card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover h3,
.rank-card:hover h3 {
  color: var(--amber-600);
}

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

.card-meta,
.rank-meta,
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-meta span,
.detail-badges span {
  padding: 4px 9px;
  color: #92400e;
  background: var(--amber-50);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-tags {
  margin-top: 10px;
  color: #9ca3af;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.category-card,
.category-overview-card {
  position: relative;
  display: block;
  padding: 24px;
  min-height: 152px;
  border: 2px solid transparent;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-7px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: var(--shadow);
}

.category-card::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -46px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  opacity: 0.14;
  background: var(--amber-500);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-size: 28px;
}

.category-card strong,
.category-overview-card h2 {
  display: block;
  margin: 0 0 4px;
  font-size: 20px;
}

.category-card small,
.category-overview-card small,
.category-overview-card p {
  color: var(--muted);
}

.from-orange .category-icon,
.from-orange::after { background: linear-gradient(135deg, #fb923c, #f97316); }
.from-red .category-icon,
.from-red::after { background: linear-gradient(135deg, #f87171, #ef4444); }
.from-pink .category-icon,
.from-pink::after { background: linear-gradient(135deg, #f9a8d4, #ec4899); }
.from-slate .category-icon,
.from-slate::after { background: linear-gradient(135deg, #64748b, #334155); }
.from-blue .category-icon,
.from-blue::after { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.from-purple .category-icon,
.from-purple::after { background: linear-gradient(135deg, #c084fc, #9333ea); }
.from-green .category-icon,
.from-green::after { background: linear-gradient(135deg, #86efac, #16a34a); }
.from-rose .category-icon,
.from-rose::after { background: linear-gradient(135deg, #fb7185, #e11d48); }
.from-cyan .category-icon,
.from-cyan::after { background: linear-gradient(135deg, #67e8f9, #0891b2); }

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

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

.rank-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.rank-link {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 170px;
}

.rank-poster {
  aspect-ratio: auto;
  height: 100%;
}

.rank-number {
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-size: 15px;
}

.rank-body {
  padding: 20px;
}

.rank-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.rank-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

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

.score-pill {
  min-width: max-content;
  padding: 5px 10px;
  color: #92400e;
  background: var(--amber-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.rank-meta span {
  color: var(--muted);
  font-size: 13px;
}

.page-shell {
  background: #f9fafb;
}

.page-hero {
  padding: 68px 0 54px;
  color: #ffffff;
  background: linear-gradient(120deg, var(--amber-500), var(--orange-500));
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #fff7ed;
  font-size: 18px;
}

.ranking-hero {
  background: linear-gradient(120deg, #ef4444, #f97316, #f59e0b);
}

.search-hero {
  background: linear-gradient(120deg, #0f172a, #334155, #f59e0b);
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 170px;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr;
  gap: 18px;
}

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

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

.input,
.select,
.search-page-form input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  color: var(--text);
  background: #ffffff;
}

.input:focus,
.select:focus,
.search-page-form input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.filter-count,
.search-summary {
  margin: 14px 0 0;
  color: var(--muted);
}

.filter-count strong {
  color: var(--amber-600);
}

.search-page-form {
  display: flex;
  max-width: 720px;
  margin-top: 28px;
  gap: 12px;
}

.search-page-form input {
  min-height: 52px;
  border: 0;
}

.search-page-form button {
  min-width: 120px;
  border: 0;
  border-radius: 14px;
  color: var(--amber-600);
  background: #ffffff;
  font-weight: 900;
}

.detail-page {
  background: #f9fafb;
}

.detail-hero {
  padding: 38px 0 46px;
  color: #ffffff;
  background: radial-gradient(circle at 15% 10%, rgba(253, 230, 138, 0.25), transparent 28%), linear-gradient(120deg, #111827, #7c2d12 55%, #ea580c);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 32px;
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fed7aa;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-hero p {
  max-width: 780px;
  color: #ffedd5;
  font-size: 18px;
}

.detail-cover {
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

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

.player-card,
.content-card,
.side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-card {
  padding: 12px;
  margin-bottom: 22px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
}

.hls-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.70));
  transition: opacity 0.2s ease;
}

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

.player-shell.is-playing:hover .player-overlay {
  opacity: 1;
  pointer-events: auto;
}

.play-button {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--amber-600);
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.player-overlay small {
  color: #fed7aa;
}

.player-message {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  margin: 0;
  color: #fed7aa;
  font-size: 13px;
}

.content-card,
.side-card {
  padding: 24px;
  margin-bottom: 22px;
}

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

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

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0;
}

.info-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

.info-grid dt {
  color: var(--muted);
  font-size: 13px;
}

.info-grid dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-aside {
  position: sticky;
  top: 96px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span,
.side-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #92400e;
  background: var(--amber-50);
  font-weight: 800;
  font-size: 13px;
}

.side-link {
  width: 100%;
  margin-top: 10px;
  color: var(--amber-600);
  background: #fff7ed;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
  padding: 50px 0 34px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
  font-size: 14px;
}

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

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li + li {
  margin-top: 8px;
}

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

.social-row {
  display: flex;
  gap: 10px;
}

.social-row span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--amber-600);
  background: var(--amber-100);
  font-weight: 900;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.hidden-by-filter {
  display: none !important;
}

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

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

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 18px;
  }

  .header-search {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 80px 0 120px;
  }

  .featured-grid,
  .compact-ranking,
  .category-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .detail-aside {
    position: static;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 64px;
  }

  .desktop-nav,
  .header-search {
    display: none;
  }

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--amber-600);
    background: var(--amber-100);
    font-size: 22px;
  }

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

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

  .mobile-nav-link {
    padding: 12px;
    border-radius: 12px;
    color: #374151;
    background: #f9fafb;
    font-weight: 800;
  }

  .mobile-nav-link.active {
    color: var(--amber-600);
    background: var(--amber-50);
  }

  .mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .mobile-search input,
  .mobile-search button {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 10px 12px;
  }

  .mobile-search button {
    border-color: var(--amber-500);
    color: #ffffff;
    background: var(--amber-500);
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    padding: 58px 0 98px;
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

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

  .hero-actions,
  .section-title-row,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-showcase {
    padding: 16px;
  }

  .hero-focus-item {
    grid-template-columns: 92px 1fr;
  }

  .stats-grid,
  .featured-grid,
  .compact-grid,
  .catalog-grid,
  .category-grid,
  .category-overview-grid,
  .compact-ranking {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 54px 0;
  }

  .section-tight {
    padding-top: 28px;
  }

  .rank-link {
    grid-template-columns: 120px 1fr;
  }

  .rank-body {
    padding: 14px;
  }

  .rank-title-line {
    display: block;
  }

  .filter-row,
  .filter-row.single,
  .detail-hero-grid,
  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-page-form {
    flex-direction: column;
  }
}

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

  .movie-grid {
    gap: 16px;
  }

  .rank-link {
    grid-template-columns: 104px 1fr;
  }

  .rank-body h3 {
    font-size: 17px;
  }

  .rank-meta {
    display: none;
  }
}
