/* ────────────────────────────────────────────────────────────
   Rossi News — news.rossims.ru (static feed)
   Tokens aligned with rossims.ru/assets/styles.css
   ──────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('https://rossims.ru/assets/fonts/manrope-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('https://rossims.ru/assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('https://rossims.ru/assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('https://rossims.ru/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg-0: #07070b;
  --bg-1: #0f0f15;
  --fg: #ffffff;
  --fg-muted: rgba(255, 255, 255, 0.62);
  --fg-soft: rgba(255, 255, 255, 0.86);
  --rose-500: #ef4444;
  --rose-400: #f87171;
  --rose-600: #dc2626;
  --rose-700: #b91c1c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.06);
  --shadow-glow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

html {
  background: var(--bg-0);
  color: var(--fg);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 800px 500px at 100% 0%, rgba(239, 68, 68, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 0% 100%, rgba(220, 38, 38, 0.08), transparent 60%),
    var(--bg-0);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.5;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-glow > span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.bg-glow__a {
  width: 480px;
  height: 480px;
  background: rgba(239, 68, 68, 0.2);
  top: -160px;
  right: -100px;
}
.bg-glow__b {
  width: 420px;
  height: 420px;
  background: rgba(244, 63, 94, 0.14);
  bottom: -180px;
  left: -120px;
}

/* ────── topbar ────── */
.news-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.news-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-soft);
}
.news-topbar__logo {
  height: 22px;
  width: auto;
}
.news-topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.news-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.30);
  background: rgba(239, 68, 68, 0.10);
  color: rgba(252, 165, 165, 0.95);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.news-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.50);
  color: #fff;
}
.news-btn--ghost {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg-soft);
}
.news-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.news-btn svg { width: 15px; height: 15px; }

/* ────── layout ────── */
.news-main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

/* ────── channel header ────── */
.channel-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 20px;
  margin-bottom: 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-glow);
  min-height: 96px;
}
.channel-head__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.channel-head__avatar--placeholder {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 28px;
  color: var(--rose-400);
  background:
    radial-gradient(circle at 30% 30%, rgba(239, 68, 68, 0.35), transparent 60%),
    rgba(255, 255, 255, 0.05);
}
.channel-head__meta { min-width: 0; flex: 1; }
.channel-head__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.channel-head__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  color: #fff;
  flex-shrink: 0;
}
.verified-badge svg { width: 12px; height: 12px; }
.channel-head__username {
  margin: 6px 0 0;
  color: var(--fg-muted);
  font-size: 14px;
}
.channel-head__stats {
  margin: 10px 0 0;
  color: var(--fg-muted);
  font-size: 13px;
}
.channel-head__desc {
  margin: 12px 0 0;
  color: var(--fg-soft);
  font-size: 14px;
  line-height: 1.45;
}
.channel-head__cta { margin-top: 14px; }

/* ────── feed cards ────── */
.feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 120px;
}
.feed-card {
  display: block;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, background-color 0.25s;
}
.feed-card:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.28);
  background: var(--card-strong);
}
.feed-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.03);
}
.feed-card__body { padding: 16px 18px 18px; }
.feed-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--fg);
}
.feed-card__excerpt {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--fg-muted);
  font-size: 12.5px;
}

/* ────── post page ────── */
.post-page { min-height: 200px; }
.post-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--fg-muted);
  font-size: 13.5px;
}
.post-page__back:hover { color: var(--fg); }
.post-page__back svg { width: 16px; height: 16px; }
.post-article {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.post-article__media {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.03);
}
.post-article__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2px;
  background: rgba(0, 0, 0, 0.25);
}
.post-article__gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.post-article__body { padding: 22px 22px 26px; }
.post-article__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.post-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--fg-muted);
  font-size: 13px;
}
.post-article__text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--fg-soft);
  font-size: 15.5px;
  line-height: 1.55;
}
.post-article__cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ────── empty / stable states ────── */
.news-empty {
  padding: 36px 20px;
  border-radius: 22px;
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  color: var(--fg-muted);
  font-size: 14px;
}
.news-empty[hidden],
[hidden] { display: none !important; }

.news-footer {
  position: relative;
  z-index: 1;
  padding: 28px 20px 40px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 12.5px;
}
.news-footer a:hover { color: var(--fg-soft); }

@media (max-width: 560px) {
  .news-topbar { padding: 12px 14px; }
  .news-btn span { display: none; }
  .news-btn { padding: 8px 11px; }
  .channel-head { padding: 16px; gap: 12px; }
  .channel-head__avatar { width: 60px; height: 60px; }
  .news-main { padding: 20px 14px 64px; }
  .post-article__body { padding: 18px 16px 22px; }
}
