/* FunnyRabbit — стили блога (главная-лента, список /blog/, страница записи).
   Опирается на переменные и компоненты из theme.css. */

/* ---------- лента записей ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }

a.post-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px;
  overflow: hidden; transition: transform .15s ease;
}
a.post-card:hover { transform: translateY(-4px); }
.post-card .thumb {
  aspect-ratio: 16 / 9; background: var(--bg-soft); display: grid; place-items: center;
  font-size: 44px; border-bottom: 1.5px solid var(--line);
}
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: 13px; color: var(--ink-soft); display: flex; gap: 10px; align-items: center; }
.post-card .tag-video { color: var(--carrot-dk); font-weight: 700; }
.post-card h3 { margin: 8px 0 6px; font-size: 20px; letter-spacing: -.01em; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- страница записи ---------- */
.post { width: min(760px, 92vw); margin-inline: auto; }
.post .post-meta { font-size: 14px; color: var(--ink-soft); margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.post h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin: 10px 0 0; font-weight: 800; text-wrap: balance; }
.post .content { font-size: 17.5px; margin-top: 24px; }
.post .content p { margin: 0 0 18px; }
.post .content h2 { font-size: clamp(22px, 3.4vw, 30px); margin: 34px 0 0; }
.post .content img { max-width: 100%; height: auto; border-radius: 14px; }
.post .back { display: inline-block; margin: 10px 0 0; color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.post .back:hover { color: var(--carrot); }

/* ---------- видео-вставка (источник-независимая) ---------- */
.video {
  margin: 26px 0; padding: 0; position: relative; aspect-ratio: 16 / 9;
  background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden;
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* фасад: превью + кнопка «играть», пока не кликнули */
.video .facade {
  position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0;
  background-size: cover; background-position: center; background-color: var(--bg-soft);
  display: grid; place-items: center;
}
.video .facade::after {
  content: "▶"; font-size: 28px; color: #fff; width: 72px; height: 72px; border-radius: 50%;
  background: var(--carrot); display: grid; place-items: center;
  box-shadow: 0 6px 0 var(--carrot-dk); padding-left: 4px;
}
.video .facade .src-label {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 12px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55);
  padding: 4px 10px; border-radius: 999px;
}
/* запасной вид без JS */
.video noscript a, .video .fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--carrot-dk); font-weight: 700; text-decoration: none;
}
