/* ==========================================================================
   Blog (/blog, /blog/:slug) + bloki SEO na stronach filmu i kategorii.
   Tokeny z base.css (atrament + bursztyn), ruch: --ease-out, --dur-*.
   ========================================================================== */

/* --- Lista artykułów --- */
.blog-head { padding-bottom: clamp(20px, 3vw, 32px); }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 2.6vw, 32px) clamp(14px, 2vw, 24px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 6vw, 80px);
  list-style: none;
}
.post-card { height: 100%; }
.post-card__link { display: grid; gap: 14px; height: 100%; align-content: start; border-radius: var(--radius); }
.post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.post-card__img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--accent);
  background: radial-gradient(120% 120% at 100% 0%, rgba(245, 165, 36, .16), transparent 60%), var(--bg-elev);
}
.post-card__placeholder .brand__glyph { width: 96px; height: auto; }
.post-card__text { display: grid; gap: 6px; }
.post-card__title { font-size: var(--fs-lg); line-height: 1.2; }
.post-card__desc { color: var(--text-muted); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { color: var(--text-dim); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .post-card__link:hover .post-card__media { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 12px 30px -12px rgba(0, 0, 0, .8); }
  .post-card__link:hover .post-card__title { color: var(--accent-hi); }
}
.post-card__link:active .post-card__media { transform: scale(0.98); }

/* --- Artykuł --- */
.post { max-width: 1120px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) var(--gutter) 0; }
.post__head { max-width: 760px; display: grid; gap: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-sm); color: var(--text-dim); }
.crumbs a { color: var(--text-muted); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--accent-hi); } }
.post__title { font-size: var(--fs-2xl); font-weight: 750; }
.post__lead { color: var(--text-muted); font-size: var(--fs-lg); max-width: 62ch; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 8px; color: var(--text-dim); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.post__cover { margin: clamp(20px, 3vw, 32px) 0 0; display: grid; gap: 8px; }
.post__cover-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
.post__layout { display: grid; gap: 28px; margin-top: clamp(24px, 4vw, 44px); }
@media (min-width: 1024px) {
  .post__layout { grid-template-columns: minmax(0, 720px) 260px; column-gap: clamp(40px, 5vw, 80px); align-items: start; }
  .post__layout .toc { order: 2; position: sticky; top: calc(var(--nav-h) + 20px); }
}
.post__body { max-width: 720px; font-size: 1.0625rem; line-height: 1.7; }
.post__body h2 { scroll-margin-top: calc(var(--nav-h) + 16px); }
.post__body h3 { font-size: var(--fs-lg); margin-top: 1.6em; color: var(--text); scroll-margin-top: calc(var(--nav-h) + 16px); }
.post__body ol { padding-left: 1.3em; display: grid; gap: .5em; }
.post__body ol li::marker { color: var(--accent); font-variant-numeric: tabular-nums; }
.post__body blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; color: var(--text-muted); }
.post__body table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.post__body th, .post__body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post__body th { color: var(--text-dim); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
.post__body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post__foot { max-width: 720px; margin-top: clamp(28px, 4vw, 48px); padding-top: 16px; border-top: 1px solid var(--line); }

.toc { padding: 16px 18px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); font-size: var(--fs-sm); }
.toc__title { font-size: var(--fs-xs); color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 8px; }
.toc__list { padding-left: 1.2em; display: grid; gap: 6px; color: var(--text-muted); }
.toc__list li::marker { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.toc__list a { color: var(--text-muted); transition: color var(--dur-1) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .toc__list a:hover { color: var(--accent-hi); } }

/* Karta filmu w treści ({{film}}) */
.prose .blog-film {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 16px;
  margin: 1.4em 0;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  line-height: 1.5;
}
.blog-film__media { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); align-self: start; }
.blog-film__img { width: 100%; height: 100%; object-fit: cover; }
.blog-film__body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.prose .blog-film__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--text); margin: 0; }
.prose .blog-film__title a { color: inherit; text-decoration: none; }
.blog-film__year { color: var(--text-dim); font-weight: 500; }
.blog-film__meta { color: var(--text-dim); font-size: var(--fs-xs); margin: 0; }
.blog-film__blurb { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.blog-film__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.prose .blog-film__actions a { text-decoration: none; color: inherit; }
.prose .blog-film__actions .btn--primary { color: var(--accent-ink); }
@media (max-width: 560px) {
  .prose .blog-film { grid-template-columns: 1fr; }
}
@media (hover: hover) and (pointer: fine) { .prose .blog-film__title a:hover { color: var(--accent-hi); } }

/* Siatka kart w treści ({{films}}) */
.prose .blog-films { padding: 0; margin: 1.4em 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); line-height: 1.4; }
.prose .blog-films a { text-decoration: none; color: inherit; }

.post-related { max-width: 1120px; margin: clamp(40px, 6vw, 72px) auto 0; }
.post-related .section-label { padding: 0 var(--gutter); margin-bottom: 16px; }
.post-grid--related { padding-bottom: 0; }

/* --- Strona filmu: fakty, FAQ, linki --- */
.title-hero__year { font-weight: 500; color: var(--text-muted); font-size: .55em; letter-spacing: 0; white-space: nowrap; }
.movie-faq { display: grid; gap: 14px; }
.movie-faq__item { padding: 14px 16px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.movie-faq__q { font-family: var(--font-ui); font-size: var(--fs-md); font-weight: 650; letter-spacing: 0; color: var(--text); }
.movie-faq__a { margin-top: 6px; color: var(--text-muted); font-size: var(--fs-sm); }
.movie-faq__a a, .see-also a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.see-also { display: grid; gap: 10px; }
.see-also__list { list-style: none; padding: 0; display: grid; gap: 8px; }
.see-also__list li { font-size: var(--fs-sm); }
.facts dd a { color: var(--accent-hi); }
.movie-body__side .facts > div { grid-template-columns: 128px 1fr; }

/* --- Kategoria: wpisy z bloga, inne kategorie --- */
.category-extra { max-width: var(--maxw); margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 var(--gutter); display: grid; gap: 20px; }
.category-extra .chips { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .post-card__link:hover .post-card__media, .post-card__link:active .post-card__media { transform: none; }
}
