:root{
  --bg:#0b0c0f;
  --bg2:#0f1016;
  --text:#ececf1;
  --muted:#a7a7b4;
  --line: rgba(255,255,255,.12);
  --accent:#ff2a2a;

  --max: 1180px;

  --font-text: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-heading: "Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --text-size: 16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--font-text);
  font-size: var(--text-size);
  color: var(--text);
  line-height:1.65;

  /* ТИХИЙ фон: картинка = текстура, не сюжет */
  background:
    /* основной ровный тёмный слой (чтобы всё читалось) */
    linear-gradient(180deg, rgba(6,7,10,.92), rgba(11,12,15,.94)),

    /* локальный красный акцент (очень мягко) */
    radial-gradient(900px 520px at 55% -10%, rgba(255,42,42,.08), transparent 60%),
    radial-gradient(700px 420px at 15% 10%, rgba(255,42,42,.05), transparent 55%),

    /* сама картинка — сильно приглушена через opacity слоями */
    url("/assets/bg.jpg");

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}


a{color:inherit; text-decoration:none}
a:hover{color:var(--text)}
::selection{background:rgba(255,42,42,.35)}

.wrap{max-width:var(--max); margin:0 auto; padding:28px 18px 84px}
@media (min-width: 860px){ .wrap{padding:36px 24px 96px} }

/* Brand */
.brand{display:flex; align-items:baseline; gap:10px; white-space:nowrap}
.brand .esc{font-family:var(--font-mono); letter-spacing:.08em; font-size:14px; color:rgba(236,236,241,.92)}
.brand .dot{
  width:8px; height:8px; border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 18px rgba(255,42,42,.35);
  transform:translateY(-1px);
}

/* Topbar: без прямоугольника */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.nav{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.nav a{
  font-family:var(--font-mono);
  font-size:13px;
  letter-spacing:.06em;
  padding:8px 10px;
  border-radius:10px;
  color:rgba(236,236,241,.86);
}
.nav a:hover{background:rgba(255,255,255,.05)}
.nav a.active{
  background:rgba(255,42,42,.10);
  border:1px solid rgba(255,42,42,.25);
  color:var(--text);
}

/* Typography */
h1, h2, h3{
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 22px 0 12px;
}
p{margin:0 0 12px; color:rgba(236,236,241,.92)}
.small{color:var(--muted); font-size:14px}

/* Sections */
.home-section{ padding: 26px 0 12px; }
.section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title{
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
}

.section-link{
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(236,236,241,.78);
}
.section-link:hover{ color: var(--text); }

/* Cards (shared) */
.card{
  display:flex;
  flex-direction:column;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.card:hover{
  border-color: rgba(255,42,42,.35);
  background: rgba(255,255,255,.06);
}

.thumb{
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  filter: saturate(1.0) contrast(1.05);
}

.card-body{ padding: 12px 12px 14px; }

.meta{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.card-title{
  margin: 8px 0 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.card-desc{
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(236,236,241,.86);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mosaic layout (VGTimes-like composition) */
.mosaic{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 760px){
  .mosaic{
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
  }

  .card--big{
    grid-column: span 2;
    grid-row: span 2;
  }
  .card--wide{
    grid-column: span 2;
  }
  .card--small{
    grid-column: span 1;
  }
}

/* Big cards: чуть крупнее превью/внутренние отступы */
.card--big .card-body{ padding: 14px 14px 16px; }
.card--big .card-title{ font-size: 24px; }
.card--big .card-desc{ font-size: 18px; }

/* Footer */
.footer{
  margin-top:34px; padding-top:18px;
  border-top:1px solid var(--line);
  color:var(--muted); font-size:13px;
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.footer a{color:rgba(236,236,241,.76)}
.footer a:hover{color:var(--text)}

/* Section intro (for /music /cinema /games /feed) */
.section-intro{
  padding: 18px 0 10px;
}
.kicker{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(236,236,241,.60);
  text-transform: uppercase;
}
.section-h1{
  margin: 10px 0 8px;
  font-size: 44px;
  line-height: 1.05;
}
.section-lead{
  margin: 0 0 10px;
  max-width: 72ch;
  font-size: 18px;
  color: rgba(236,236,241,.86);
}

/* back link */
.backline{ margin-top: 18px; }
.backlink{
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(236,236,241,.76);
}
.backlink:hover{ color: var(--text); }

.muted{ opacity: .72; }

/* Section intro (for /music /cinema /games /feed) */
.section-intro{ padding: 18px 0 10px; }
.kicker{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(236,236,241,.60);
  text-transform: uppercase;
}
.section-h1{
  margin: 10px 0 8px;
  font-size: 44px;
  line-height: 1.05;
}
.section-lead{
  margin: 0 0 10px;
  max-width: 72ch;
  font-size: 18px;
  color: rgba(236,236,241,.86);
}
.backline{ margin-top: 18px; }
.backlink{
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(236,236,241,.76);
}
.backlink:hover{ color: var(--text); }
.muted{ opacity: .72; }

/* ===== Article v2 (clean + editorial) ===== */

.article{
  padding: 18px 0 16px;
}

/* constrain + subtle left rhythm */
.article-inner{
  max-width: 86ch;
}

/* breadcrumbs line */
.breadcrumbs{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(236,236,241,.62);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.breadcrumbs a{ color: rgba(236,236,241,.78); }
.breadcrumbs a:hover{ color: var(--text); }

/* Title block */
.article-title{
  margin: 14px 0 10px;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.article-meta{
  margin: 0 0 16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(236,236,241,.62);
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(10,11,14,.58);
}

/* Hero: cover image with readable overlay */
.hero{
  margin: 18px 0 20px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,11,14,.55);
  position: relative;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.45));
  pointer-events:none;
}

.hero img{
  width:100%;
  display:block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  filter: saturate(1.0) contrast(1.05) brightness(1.0);
}

.hero .caption{
  position:absolute;
  left:0; right:0; bottom:0;
  padding: 12px 14px 14px;
  font-size: 13px;
  color: rgba(236,236,241,.72);
  z-index: 1;
}

/* Lead (first paragraph) bigger */
.prose{
  max-width: 86ch;
}
.prose p{
  font-size: 18px;
  line-height: 1.78;
  margin: 0 0 16px;
  color: rgba(236,236,241,.92);
}
.prose p.lead{
  font-size: 20px;
  line-height: 1.75;
  color: rgba(236,236,241,.96);
}

/* headings inside article */
.prose h2{
  margin: 34px 0 12px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.prose h3{
  margin: 24px 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
  opacity: .98;
}

/* lists */
.prose ul, .prose ol{
  margin: 0 0 18px 20px;
  padding: 0;
}
.prose li{
  margin: 6px 0;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(236,236,241,.92);
}

/* links */
.prose a{
  color: rgba(236,236,241,.94);
  text-decoration: underline;
  text-decoration-color: rgba(255,42,42,.35);
  text-underline-offset: 3px;
}
.prose a:hover{
  text-decoration-color: rgba(255,42,42,.75);
}

/* Quote block (more “magazine”) */
.quote{
  margin: 18px 0 22px;
  padding: 14px 16px;
  border-left: 3px solid rgba(255,42,42,.70);
  background: rgba(10,11,14,.62);
  border-radius: 14px;
}
.quote p{
  margin:0;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(236,236,241,.94);
}

/* Divider */
.hr{
  height:1px;
  background: rgba(255,255,255,.12);
  border:0;
  margin: 28px 0;
}

/* Article navigation (prev/next style) */
.article-nav{
  margin-top: 22px;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  max-width: 86ch;
}
.article-nav a{
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(236,236,241,.82);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(10,11,14,.62);
  padding: 10px 12px;
  border-radius: 12px;
}
.article-nav a:hover{
  border-color: rgba(255,42,42,.30);
  background: rgba(10,11,14,.70);
}

/* Small tweak on mobile */
@media (max-width: 740px){
  .hero img{ aspect-ratio: 16 / 9; }
  .prose p, .prose li{ font-size: 17px; }
  .prose p.lead{ font-size: 18px; }
}

/* --- ARTICLE CONTENT FIX --- */
.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
  border-radius: 16px;
}
