/* СериалГид — автономная таблица стилей */
:root {
  --bg: #0c0e13;
  --bg-elev: #141821;
  --bg-card: #191e29;
  --bg-hover: #202736;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(245, 158, 11, 0.35);
  --text: #eef2f7;
  --text-muted: #98a2b3;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --radius: 14px;
  --maxw: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 36%), var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(12, 14, 19, 0.86);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 0.9rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  padding: 44px 0 28px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, rgba(25, 30, 41, 0.96), rgba(20, 24, 33, 0.92));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(1.8rem, 3.3vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero p {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 1.03rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: var(--accent);
  color: #111318;
}

.btn-primary:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.hero-poster {
  max-width: 260px;
  margin-left: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.pill:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.pill.is-active {
  background: var(--accent);
  color: #111318;
  border-color: var(--accent);
}

.search-box {
  position: relative;
  min-width: 240px;
  flex: 0 1 300px;
}

.search-box input {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
}

.search-box input:focus {
  border-color: var(--border-strong);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.count-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.card.is-hidden {
  display: none;
}

.card-poster {
  aspect-ratio: 3 / 4;
  background: #11151d;
  overflow: hidden;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.rating-tag {
  color: var(--accent);
  font-weight: 700;
}

.card-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
}

.card-blurb {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.91rem;
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.76rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.card-link {
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.empty-state {
  display: none;
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-elev);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.empty-state.is-visible {
  display: block;
}

.weekend-picks {
  margin: 46px 0 24px;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.weekend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.weekend-item {
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.weekend-item h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.weekend-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Страницы обзоров и статей */
.article-wrap {
  padding: 34px 0 48px;
}

.breadcrumbs {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.article-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-bottom: 28px;
}

.article-hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.18;
}

.article-lead {
  color: #cbd5e1;
  font-size: 1.04rem;
  margin: 12px 0 18px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.fact {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.fact-label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fact-value {
  font-weight: 600;
  font-size: 0.92rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.article-content {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.article-content h2 {
  margin: 26px 0 10px;
  font-size: 1.32rem;
  letter-spacing: -0.015em;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p {
  margin: 0 0 16px;
  color: #d6dde8;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.box-list {
  padding: 18px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.box-list h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.box-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.box-list li + li {
  margin-top: 6px;
}

.verdict-box {
  margin-top: 22px;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(25, 30, 41, 0.95));
  border: 1px solid var(--border-strong);
}

.verdict-box h3 {
  margin: 0 0 8px;
  color: var(--accent);
}

.verdict-box p {
  margin: 0;
}

.sidebar-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.sidebar-card + .sidebar-card {
  margin-top: 18px;
}

.sidebar-card h3 {
  margin: 0 0 14px;
  font-size: 1.04rem;
}

.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.score-row:last-child {
  border-bottom: 0;
}

.score-row strong {
  color: var(--accent);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.16s ease;
}

.related-item:hover {
  border-color: var(--border-strong);
}

.related-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.collection-block {
  padding: 26px;
  border-radius: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

.collection-block h2 {
  margin: 0 0 8px;
}

.collection-block > p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding: 26px 0 36px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero-card,
  .article-hero,
  .article-layout,
  .pros-cons {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    margin: 0 auto;
  }
}
