/* ==========================================================================
   Eurasia Baike — Design Refresh  ·  SINGLE / INTERIOR PAGES
   Styles the single.php content parts: content-single (post), content-encic,
   content-muzica, content-filme, content-carte, the sidebar TOC, collection
   box, recommendations, and lyrics.
   Load AFTER eurasia-refresh.css (it reuses the same --eb-* tokens).
   ========================================================================== */

/* ---- Layout: main + sidebar --------------------------------------------- */
.site-content .standard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
.site-content .main-content { min-width: 0; }
.standard-sidebar {
  min-width: 0;
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  font-family: var(--eb-sans);
}

/* ==========================================================================
   POST / ARTICLE  (content-single.php)
   ========================================================================== */
.post-cover-small {
  height: 400px !important;
  border-radius: 10px !important;
}
.post-cover-small .cover-overlay {
  padding: 38px clamp(22px, 4vw, 44px) !important;
  background: linear-gradient(transparent 30%, rgba(18,14,10,0.9)) !important;
}
.post-cover-small .entry-title,
.entry-title-no-thumb {
  font-family: var(--eb-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem) !important;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.post-meta-elegant {
  font-family: var(--eb-sans);
  font-size: 0.9rem;
}
.post-meta-elegant a { color: inherit; }
.post-cover-small .meta-category-pills a,
.entry-title-no-thumb + .post-meta-elegant .meta-category-pills a {
  text-decoration: none;
}

.entry-content {
  font-family: var(--eb-sans);
  font-size: 1.08rem !important;
  line-height: 1.75 !important;
  color: var(--eb-ink-soft) !important;
  max-width: 68ch;
}
.entry-content > p:first-of-type {
  font-family: var(--eb-serif);
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--eb-ink);
  font-weight: 500;
}
.entry-content h2,
.entry-content h3 {
  font-family: var(--eb-serif);
  font-weight: 600;
  color: var(--eb-ink);
  line-height: 1.2;
  margin: 38px 0 14px;
  scroll-margin-top: 90px;
}
.entry-content h2 { font-size: 1.7rem; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content a { color: var(--eb-accent); text-underline-offset: 2px; }
.entry-content blockquote {
  margin: 30px 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid var(--eb-accent);
  font-family: var(--eb-serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--eb-ink);
}
.entry-content img { border-radius: 8px; }

.entry-footer .tags-links { color: var(--eb-muted); font-weight: 600; }
.entry-footer a {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--eb-ink-soft);
  border: 1px solid var(--eb-line);
  border-radius: 999px;
  padding: 4px 13px;
  margin: 0 4px 6px 0;
  text-decoration: none;
}
.entry-footer a:hover { border-color: var(--eb-accent); color: var(--eb-accent); }
.post-author-line { font-size: 0.9rem; color: var(--eb-muted); }
.post-author-line a { color: var(--eb-accent); font-weight: 600; text-decoration: none; }

/* ==========================================================================
   ENCYCLOPEDIA  (content-encic.php)
   ========================================================================== */
.entry-encic .encic-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--eb-ink);
  margin-bottom: 18px;
}
.entry-encic .encic-category {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eb-accent);
  font-weight: 700;
}
.entry-encic .encic-id {
  font-size: 0.74rem;
  color: var(--eb-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
.entry-encic .encic-title {
  font-family: var(--eb-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  color: var(--eb-ink);
  text-wrap: balance;
}
.entry-encic .encic-hero-strip {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--eb-line);
}
.entry-encic .encic-hero-strip img { width: 100%; display: block; }
.entry-encic .strip-caption {
  font-size: 0.8rem;
  color: var(--eb-muted);
  font-style: italic;
  margin-top: 9px;
}
.entry-encic .encic-footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--eb-line);
  font-size: 0.82rem;
  color: var(--eb-muted);
}

/* ==========================================================================
   MEDIA ENTRIES — shared header + credits (muzica / filme / carte)
   ========================================================================== */
.media-header {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.music-entry-refined .media-header { align-items: center; }
.media-info { min-width: 0; flex: 1 1 260px; }
.media-info .media-meta,
.media-info .media-meta a {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eb-accent);
  font-weight: 700;
  text-decoration: none;
}
.media-title {
  font-family: var(--eb-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 8px 0 6px;
  color: var(--eb-ink);
}
.media-original-title {
  font-family: var(--eb-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--eb-muted);
  margin-bottom: 6px;
}
.media-year {
  font-size: 1rem;
  color: var(--eb-ink-soft);
  font-weight: 600;
  margin-bottom: 18px;
}

/* Vote button */
.eurasia-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--eb-paper-2);
  border: 1px solid var(--eb-line);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  font-family: var(--eb-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--eb-ink);
  transition: border-color .2s ease, transform .1s ease;
}
.eurasia-vote-btn:hover { border-color: var(--eb-accent); }
.eurasia-vote-btn:active { transform: scale(0.96); }
.eurasia-vote-btn .vote-icon { color: var(--eb-accent); }

/* Credits grid (music-credits-grid) — used by music, film, book */
.music-credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--eb-line);
  border: 1px solid var(--eb-line);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 30px;
}
.music-credits-grid .credit-box {
  background: var(--eb-paper);
  padding: 15px 18px;
}
.music-credits-grid .credit-box strong {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eb-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.music-credits-grid .credit-box span,
.music-credits-grid .credit-box span a {
  font-size: 0.95rem;
  color: var(--eb-ink);
  font-weight: 500;
  text-decoration: none;
}
.music-credits-grid .credit-box span a:hover { color: var(--eb-accent); }

/* Video / embed wrapper */
.media-video-section .video-wrapper {
  border-radius: 9px !important;
  border: 1px solid var(--eb-line);
}
.media-video-section iframe { width: 100%; height: 100%; border: 0; }

.text-description {
  font-family: var(--eb-sans);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--eb-ink-soft);
  max-width: 68ch;
}

/* ---- Music: vinyl treatment --------------------------------------------- */
.music-entry-refined .vinyl-container {
  position: relative;
  width: 210px;
  height: 210px;
  flex: none;
}
.music-entry-refined .record-sleeve {
  position: absolute;
  top: 0; left: 0;
  width: 200px; height: 200px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  border: 1px solid var(--eb-line);
  z-index: 2;
}
.music-entry-refined .record-sleeve img { width: 100%; height: 100%; object-fit: cover; }
.music-entry-refined .actual-record {
  position: absolute;
  top: 5px; right: 0;
  width: 195px; height: 195px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  background: repeating-radial-gradient(circle at center, #1a1a1a 0 2px, #2a2a2a 2px 4px);
  transition: transform .6s ease;
}
.music-entry-refined .actual-record img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 66px; height: 66px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #111;
}
.music-entry-refined:hover .actual-record { transform: translateX(28px) rotate(8deg); }

/* ---- Film: poster ------------------------------------------------------- */
.film-entry-refined .poster-container {
  width: 210px;
  flex: none;
}
.film-entry-refined .movie-poster-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 9px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
  border: 1px solid var(--eb-line);
}

/* Cast & Crew section (taxonomies: regizor, actor + crew meta).
   See the markup block in INSTALL.md to add this to content-filme.php. */
.film-cast { margin-top: 40px; }
.film-cast .cast-heading {
  font-family: var(--eb-serif);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--eb-ink);
  color: var(--eb-ink);
}
.film-cast .cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.film-cast .cast-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--eb-paper-2);
  border: 1px solid var(--eb-line);
  border-radius: 10px;
  text-decoration: none;
}
.film-cast .cast-member:hover { border-color: var(--eb-accent); }
.film-cast .cast-avatar {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--eb-sans);
  font-size: 0.8rem;
  font-weight: 700;
  /* Initials fallback tint; override per-member with inline background if desired */
  background: var(--eb-accent);
}
.film-cast .cast-info { min-width: 0; }
.film-cast .cast-name {
  display: block;
  font-family: var(--eb-serif);
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--eb-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.film-cast .cast-role {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--eb-muted);
  margin-top: 2px;
}

/* ---- Book: jacket ------------------------------------------------------- */
.book-entry-refined .book-cover-container {
  width: 190px;
  flex: none;
}
.book-entry-refined .book-jacket .book-cover-img,
.book-entry-refined .book-cover-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px 8px 8px 4px;
  box-shadow: -6px 10px 30px rgba(0,0,0,0.25);
  border: 1px solid var(--eb-line);
  border-left: 4px solid rgba(0,0,0,0.25);
}

/* ==========================================================================
   LYRICS  (song-lyrics)
   ========================================================================== */
.song-lyrics {
  margin-top: 36px;
  background: var(--eb-paper-2);
  border: 1px solid var(--eb-line);
  border-radius: 12px;
  padding: clamp(22px, 3vw, 32px);
}
.song-lyrics h2 {
  font-family: var(--eb-serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 20px;
  color: var(--eb-ink);
}
.song-lyrics .lyrics-wrapper { gap: 26px !important; }
.song-lyrics h3 {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eb-accent);
  font-weight: 700;
  margin: 0 0 12px;
}
.song-lyrics .lyrics-text {
  font-family: var(--eb-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--eb-ink-soft);
}

/* ==========================================================================
   SIDEBAR — TOC, collection, recommendations
   ========================================================================== */
/* Table of contents */
.eurasia-toc-sidebar,
.standard-sidebar .toc-wrapper {
  border: 1px solid var(--eb-line);
  border-radius: 10px;
  overflow: hidden;
}
.eurasia-toc-sidebar .toc-title,
.standard-sidebar .toc-wrapper .toc-title {
  background: var(--eb-paper-2);
  padding: 12px 16px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eb-ink);
  font-weight: 700;
  border-bottom: 1px solid var(--eb-line);
}
.eurasia-toc-sidebar ul { list-style: none; margin: 0; padding: 8px 6px; }
.eurasia-toc-sidebar li a {
  display: block;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.86rem;
  line-height: 1.3;
  color: var(--eb-ink-soft);
  text-decoration: none;
}
.eurasia-toc-sidebar li a:hover,
.eurasia-toc-sidebar li a.is-active {
  background: var(--eb-paper-2);
  color: var(--eb-accent);
  font-weight: 600;
}

/* Collection / series box */
.eurasia-collection-wrapper {
  margin: 0 !important;
  padding: 16px 18px !important;
  background: var(--eb-paper-2) !important;
  border: 1px solid var(--eb-line) !important;
  border-left: 4px solid var(--eb-accent) !important;
  border-radius: 6px !important;
}
.eurasia-collection-wrapper .collection-header {
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
  color: var(--eb-muted) !important;
  font-weight: 700;
  margin-bottom: 6px !important;
}
.eurasia-collection-wrapper .collection-name { color: var(--eb-ink) !important; }
.eurasia-collection-wrapper .collection-part { color: var(--eb-accent) !important; }
.eurasia-collection-wrapper .collection-divider { color: var(--eb-line) !important; }

/* Recommendations */
.eurasia-recommendations .rec-title,
.sidebar-recommendations h3 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eb-ink);
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--eb-ink);
}
.eurasia-recommendations a,
.sidebar-recommendations a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  padding: 7px 0;
}
.eurasia-recommendations a img,
.sidebar-recommendations a img {
  width: 64px; height: 64px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--eb-line);
}
.eurasia-recommendations .rec-cat {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eb-accent);
  font-weight: 700;
}
.eurasia-recommendations .rec-name {
  font-family: var(--eb-serif);
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--eb-ink);
}
.eurasia-recommendations a:hover .rec-name { color: var(--eb-accent); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .site-content .standard-layout { grid-template-columns: 1fr; }
  .standard-sidebar { position: static; }
}
@media (max-width: 640px) {
  .post-cover-small { height: 300px !important; }
  .post-cover-small .cover-overlay { padding: 22px !important; }
  .song-lyrics .lyrics-wrapper { grid-template-columns: 1fr !important; }
  .media-header { gap: 20px; }
}
