/* Phogra → Hugo additions. Layered on top of the original theme CSS. */

/* WordPress block file (PDF download) — replicates the minimal styling from
 * the live site's block-library CSS so the embed download button matches. */
.wp-block-file { box-sizing: border-box; }
.wp-block-file:not(.wp-element-button) { font-size: 0.8em; }
.wp-block-file__button {
  background: #32373c;
  color: #fff;
  text-decoration: none;
  border-radius: 2em;
  display: inline-block;
  padding: 0.5em 1em;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.wp-block-file * + .wp-block-file__button { margin-left: 0.75em; }
.wp-block-file__button:active,
.wp-block-file__button:focus,
.wp-block-file__button:hover,
.wp-block-file__button:visited {
  box-shadow: none;
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
}
.wp-block-file__embed { margin-bottom: 1em; }
.wp-element-button { cursor: pointer; }

/* About */
#column-content .the-content p { margin: 14px 0; }

/* /blog/ — year cards. The card surface inherits the column-content
   semi-transparent background; we add the year-number typography, the
   count chip, and the inline category list. */
#column-content.blog-list .blog-intro {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
}
#column-content.blog-list .blog-years {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
#column-content.blog-list .blog-year-card { margin: 0; }
#column-content.blog-list .blog-year-link {
  display: block;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 18px 16px;
  text-decoration: none;
  color: #fff;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
#column-content.blog-list .blog-year-link:hover {
  background: rgba(171, 166, 246, 0.15);
  border-color: rgba(171, 166, 246, 0.5);
  transform: translateY(-2px);
}
#column-content.blog-list .blog-year-link .year {
  display: block;
  font-family: 'TerminalDosisMedium';
  font-size: 36px;
  line-height: 1;
  color: #aba6f6;
  letter-spacing: 1px;
  text-transform: uppercase;
}
#column-content.blog-list .blog-year-link .count {
  display: inline-block;
  margin: 4px 0 12px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
#column-content.blog-list .blog-year-link .year-range {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'TerminalDosisMedium';
}

/* /blog/<year>/ — list of posts in a single year. */
#column-content.blog-list .blog-year-back {
  margin: 0 0 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#column-content.blog-list .blog-year-back a {
  color: #aba6f6;
  text-decoration: none;
}
#column-content.blog-list .blog-year-back a:hover { color: #fff; }

#column-content.blog-list .blog-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}
#column-content.blog-list .blog-post-summary {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#column-content.blog-list .blog-post-summary:last-child { border-bottom: 0; }
#column-content.blog-list .post-date {
  color: #aba6f6;
  font-family: 'TerminalDosisMedium';
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 2px;
}
#column-content.blog-list .post-link {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
}
#column-content.blog-list .post-link:hover { color: #aba6f6; }
#column-content.blog-list .kind-audio {
  display: inline-block;
  margin-right: 6px;
  color: #c6ff00;
  font-size: 16px;
}
#column-content.blog-list .post-cats {
  /* Span both grid columns (the grid is 80px date + 1fr content;
     without this the post-cats is confined to the 1fr column only,
     which can be too narrow for the text and forces it to wrap). */
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 4px;
  row-gap: 4px;
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.6;
}
#column-content.blog-list .post-cats em {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.06);
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: top;
}
#column-content.blog-list .post-cats em.tag {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.55);
}
#column-content.blog-list .post-cats em + em::before {
  content: " · ";
  color: rgba(255, 255, 255, 0.3);
  margin: 0 2px;
}
#column-content.blog-list .post-cats em.tag {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.55);
}

/* Single blog post: back-to-year, players list, post tags footer */
#column-content.blog-post .blog-back-to-year {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
#column-content.blog-post .blog-back-to-year a {
  color: #aba6f6;
  text-decoration: none;
}
#column-content.blog-post .blog-back-to-year a:hover { color: #fff; }

#column-content.blog-post .post-players {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#column-content.blog-post .post-players .post-player {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#column-content.blog-post .post-players .player-title {
  font-family: 'TerminalDosisMedium';
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #aba6f6;
  font-weight: normal;
}
#column-content.blog-post .post-players audio {
  width: 100%;
}

#column-content.blog-post .post-tags {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
#column-content.blog-post .post-tags .post-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 4px;
  row-gap: 4px;
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}
#column-content.blog-post .post-tags em {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-style: normal;
  vertical-align: top;
}
#column-content.blog-post .post-tags em.cat {
  background: rgba(171, 166, 246, 0.12);
  color: #aba6f6;
}
#column-content.blog-post .post-tags em.tag {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.55);
}
#column-content.blog-post .post-tags em + em::before {
  content: " · ";
  color: rgba(255, 255, 255, 0.3);
  margin: 0 2px;
}

@media (max-width: 700px) {
  #column-content.blog-list .blog-years { grid-template-columns: 1fr; }
  #column-content.blog-list .blog-year-link .year { font-size: 28px; }
  #column-content.blog-list .blog-post-summary { grid-template-columns: 1fr; gap: 4px; }
}

/* Albums list — nudge the 4th item to break nicely on smaller widths */
@media (max-width: 1180px) {
  #albums-list { width: auto; padding: 30px; }
}

/* Album cards: when we use the original full-size image (no -225x225 thumb
 * was available), make it cover the 225x225 box nicely. The base
 * main.css already constrains the .album box and clips overflow. */
#albums-list .album img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Active slider prev/next keyboard hint — small detail only on hover */
#slider:focus-within .slider-prev,
#slider:focus-within .slider-next { opacity: 0.8; }

/* Hugo: ensure content fills viewport when sidebar is closed */
body.display-sidebar #content { margin-left: 244px; }

/* Empty / single-image album placeholders */
#slider.single,
#slider.empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
#slider.empty {
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-family: 'TerminalDosisMedium';
  font-size: 22px;
}
#slider.empty .empty-message { text-align: center; padding: 40px; }

/* Smooth fade for the slider <ul> when the preloader reveals it.
 * The base rule in main.css has #slider ul { opacity: 0 } (held until JS
 * confirms the first images have loaded), so we need a transition here
 * for the reveal step. */
#slider ul {
  transition: opacity 500ms ease;
}