/* ===== Article Body (block renderer) ===== */
.article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  max-width: var(--content-narrow-width);
}

.article-body > * + * { margin-top: 1.25em; }

.article-paragraph { font-size: inherit; line-height: inherit; }
.article-paragraph a { color: var(--link-color); text-decoration: underline; text-underline-offset: 2px; }
.article-paragraph a:hover { color: var(--link-hover); }

.article-heading { font-weight: 600; line-height: 1.3; margin-top: 2em; }
h2.article-heading { font-size: 1.5em; }
h3.article-heading { font-size: 1.25em; }
h4.article-heading { font-size: 1.1em; }

.article-figure { margin: 1.5em 0; }
.article-image { width: 100%; border-radius: 8px; background-color: var(--bg-secondary); }
.article-figcaption { margin-top: 8px; font-size: 13px; color: var(--text-tertiary); text-align: center; }
.article-credit { font-style: italic; }

.article-quote {
  border-left: 3px solid var(--brand-primary);
  padding: 12px 20px;
  margin: 1.5em 0;
  background-color: var(--bg-secondary);
  border-radius: 0 8px 8px 0;
}
.article-quote p { font-style: italic; color: var(--text-secondary); }
.article-quote-footer { margin-top: 8px; font-size: 13px; color: var(--text-tertiary); }

.article-list { padding-left: 1.5em; }
.article-list li { margin-top: 0.5em; }
ol.article-list { list-style: decimal; }
ul.article-list { list-style: disc; }

.article-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 1.5em 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}
.article-embed-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.article-divider { border: none; border-top: 1px solid var(--divider); margin: 2em 0; }

.article-spoiler {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5em 0;
}
.article-spoiler-title {
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  user-select: none;
}
.article-spoiler-title:hover { background-color: var(--bg-tertiary); }
.article-spoiler-content { padding: 16px; }

.article-infobox {
  border: 1px solid var(--border-active);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5em 0;
  background-color: var(--brand-muted);
}
.article-infobox-title {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--brand-primary);
  border-bottom: 1px solid var(--border-active);
}
.article-infobox-content { padding: 16px; }

.article-tribute-block {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5em 0;
  background-color: var(--bg-secondary);
}
.article-tribute-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
}
.article-tribute-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
}
.article-tribute-grid {
  display: flex;
  gap: 12px;
  padding: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.article-tribute-grid::-webkit-scrollbar { height: 4px; }
.article-tribute-grid::-webkit-scrollbar-track { background: transparent; }
.article-tribute-grid::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
.article-tribute-loading {
  min-height: 180px;
}

.tribute-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}
@media (hover: hover) {
  .tribute-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-sm);
  }
}
.tribute-card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background-color: var(--bg-tertiary);
}
.tribute-card-no-image {
  display: block;
}
.tribute-card-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tribute-card-name {
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tribute-card-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
}

.article-movie-card {
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin: 1.5em 0;
}
.article-movie-card-placeholder { font-size: 14px; color: var(--text-tertiary); }

@media (max-width: 768px) {
  .article-body { font-size: 17px; }
}
