/* Surfaces used by inner pages */
.bg-block {
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.bg-block.active { background: var(--surface-2); }

.btn.bg-block {
  color: var(--fg);
  background: var(--surface);
  border-color: var(--border);
}

.btn.bg-block:hover { background: var(--surface-2); }
.border-block { border-color: var(--border) !important; }
.bg-transparent-contrast { background: var(--surface) !important; }
.color-transparent { color: var(--muted-fg); }
.border-transparent { border-color: var(--border) !important; }

/* Page shell: every inner page uses .wrap > .page */
.page { padding-top: 24px; padding-bottom: 40px; }

.page__head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding: 0 0 12px;
  background: none;
  border-bottom: 2px solid var(--border);
  border-radius: 0;
}

.page__head::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 72px;
  height: 2px;
  background: var(--accent);
}

/* Fixed size: the page title is a landmark, not body copy,
   so it does not follow the sites.font scale */
.page__head h1 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--fg);
}

/* The icon becomes the same accent bar the module headers use */
.page__head h1 .icon {
  display: inline-block;
  flex-shrink: 0;
  width: 5px;
  height: 26px;
  background: var(--accent);
  border-radius: 3px;
}

.page__head h1 .icon svg { display: none; }

.page__head .page__link { padding-bottom: 4px; }

.page__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  color: var(--muted-fg);
  transition: color var(--ease);
}


/* Any label followed by the arrow lines up by flex, never by baseline */
.msg-card__more,
.host-card__more,
.entry__more,
.card__empty a { display: inline-flex; align-items: center; gap: 5px; }

.page__link:hover { color: var(--accent); }

.page__body { min-width: 0; }

/* Single column: this theme has no ads rail on the inner pages. Only the top
   song page keeps a rail, and it holds the ranking. */
.page__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.page__cols--rail { grid-template-columns: minmax(0, 1fr) 340px; }

@media (max-width: 1000px) {
  .page__cols--rail { grid-template-columns: minmax(0, 1fr); }
}

.page__cols--side-left { grid-template-columns: 240px minmax(0, 1fr); }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0 20px;
  padding: 8px;
  background: var(--surface);
  border-radius: var(--radius);
}

.page-head h1 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.page-head h1 i { font-size: var(--fs-md); color: var(--accent); }

@media (max-width: 1100px) {
  .page__cols,
  .page__cols--side-left { grid-template-columns: 1fr; }
}

/* Post */
.post-head { margin-bottom: 15px; }

.post-image {
  margin-bottom: 20px;
  overflow: hidden;
  text-align: center;
  border-radius: var(--radius);
}

/* Client written article: everything the editor can output needs a rule */
.post-entry {
  font-size: var(--fs-md);
  line-height: 1.75;
}

.post-entry > *:last-child { margin-bottom: 0; }
.post-entry p { margin: 0 0 18px; }

.post-entry h2,
.post-entry h3,
.post-entry h4 {
  margin: 30px 0 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.post-entry h2 { font-size: var(--fs-xl); }
.post-entry h3 { font-size: var(--fs-lg); }
.post-entry h4 { font-size: var(--fs-md); }

.post-entry a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-entry ul,
.post-entry ol { margin: 0 0 18px; padding-left: 22px; }
.post-entry li { margin-bottom: 7px; }

.post-entry img {
  max-width: 100%;
  height: auto;
  margin: 6px 0 18px;
  border-radius: var(--radius-sm);
}

.post-entry figure { margin: 0 0 18px; }

.post-entry figcaption {
  margin-top: -8px;
  font-size: var(--fs-sm);
  color: var(--muted-fg);
}

.post-entry hr {
  margin: 26px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.post-entry blockquote {
  margin: 0 0 20px;
  padding: 12px 20px;
  font-size: var(--fs-lg);
  font-style: italic;
  line-height: 1.55;
  color: var(--fg);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-entry blockquote p:last-child { margin-bottom: 0; }

.post-entry table {
  width: 100%;
  margin: 0 0 18px;
  font-size: var(--fs-base);
  border-collapse: collapse;
}

.post-entry th,
.post-entry td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.post-entry th { font-weight: 700; background: var(--surface); }

.post-entry iframe {
  max-width: 100%;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
}

.post-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: var(--fs-base);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background var(--ease), border-color var(--ease);
}

.post-share:hover { background: var(--muted); border-color: var(--accent); }

/* Grid cards */
.grid-card { flex: 0 0 33%; padding: 5px; }

.card-grid {
  display: block;
  margin-bottom: 0;
  color: inherit;
}

.card-grid .card-grid-image {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.card-grid .card-grid-image img {
  display: block;
  width: 100%;
  max-width: 100%;
}

.card-grid .card-grid-container,
.card-grid .card-grid-event-container {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.card-grid .card-grid-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

.card-grid .card-grid-day,
.card-grid .card-grid-hour {
  line-height: 1.1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.card-grid .card-grid-day { font-weight: 800; }
.card-grid .card-grid-hour { font-size: var(--fs-sm); color: var(--muted-fg); }

.card-grid .card-grid-name {
  overflow: hidden;
  align-self: center;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-grid:hover .card-grid-name { color: var(--accent); }

.card-grid.without-image .card-grid-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.card-grid.without-image .card-grid-name { font-size: var(--fs-md); }

/* Messages page: feed takes the full width, the form lives in a modal */
.msg-list { min-width: 0; }

/* align-items: start keeps each card at its own height: without it the grid
   stretches the short one to match the tallest in the row */
.messages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  align-items: start;
  gap: 12px;
}

.msg-card {
  position: relative;
  overflow: hidden;
  padding: 26px 22px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  transition: background var(--ease);
}

.msg-card:hover { background: var(--surface-2); }

/* Quote mark sits behind the text as a watermark */
.msg-card::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  left: 12px;
  font-size: 84px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  opacity: 0.22;
  pointer-events: none;
}

/* Long messages are clamped so one card cannot stretch the whole row */
.msg-card__text {
  position: relative;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
  color: var(--fg);
}

.msg-card.is-expanded .msg-card__text {
  display: block;
  overflow: visible;
}

.msg-card__more {
  margin-top: 8px;
  padding: 0;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--accent);
  background: none;
  border: 0;
  cursor: pointer;
  transition: opacity var(--ease);
}

.msg-card__more:hover { opacity: 0.75; }

.msg-card__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-2);
}

.msg-card__dot {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--accent-soft-fg);
  background: var(--accent-soft);
  border-radius: 999px;
}

.msg-card__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.msg-card__who b {
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg);
}

.msg-card__who span {
  overflow: hidden;
  font-size: var(--fs-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-fg);
}

/* Infinite scroll feedback */
.msg-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted-fg);
}

.msg-loader[hidden] { display: none; }

.msg-loader__spin {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: msgSpin 0.7s linear infinite;
}

@keyframes msgSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .msg-loader__spin { animation: none; }
}

/* Floating action: follows the visitor down the feed */
.msg-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--accent-fg);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity var(--ease), transform var(--ease);
}

.msg-fab:hover { opacity: 0.9; }
.msg-fab:active { transform: scale(0.97); }

/* Modal */
.msg-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.msg-modal.is-open { opacity: 1; visibility: visible; }
.msg-modal[hidden] { display: none; }

.msg-modal__box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow: hidden;
  background: var(--bg);
  border-radius: var(--radius);
  transform: translateY(10px);
  transition: transform var(--ease);
}

.msg-modal.is-open .msg-modal__box { transform: translateY(0); }

.msg-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border-2);
}

.msg-modal__head h2 {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.msg-modal__head p {
  margin: 4px 0 0;
  font-size: var(--fs-sm);
  color: var(--muted-fg);
}

.msg-modal__close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  color: var(--fg);
  background: var(--surface);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--ease);
}

.msg-modal__close:hover { background: var(--surface-2); }

.msg-modal__body {
  padding: 22px 24px 24px;
  overflow-y: auto;
}

.msg-modal__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.msg-modal__row .input-field { margin-bottom: 12px; }
.msg-modal .g-recaptcha-container { overflow: hidden; }

.msg-modal .form-sent-success {
  margin: 4px 0 14px;
  padding: 12px 14px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

.msg-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

/* Sent confirmation: covers the box while the modal closes itself */
.msg-modal__box { position: relative; }

.msg-modal__sent {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px;
  text-align: center;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease);
}

.msg-modal.is-sent .msg-modal__sent { opacity: 1; visibility: visible; }

.msg-modal__check {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.msg-modal__check svg { width: 36px; height: 36px; }
.msg-modal__sent b { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.03em; }
.msg-modal__sent > span { font-size: var(--fs-sm); color: var(--muted-fg); }

@media (max-width: 600px) {
  .msg-fab { right: 16px; bottom: 16px; padding: 13px 18px; }
  .msg-modal { padding: 12px; }
  .msg-modal__box { max-height: 92vh; }
  .msg-modal__head { padding: 18px 18px 14px; }
  .msg-modal__body { padding: 18px; }
  .msg-modal__row { grid-template-columns: 1fr; gap: 0; }
  .msg-modal__foot { flex-direction: column-reverse; }
  .msg-modal__foot .btn { width: 100%; }
}

/* Single entry (post, video, album, event, promo) */
.entry { min-width: 0; }

.entry__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted-fg);
}

.entry__crumb a { transition: color var(--ease); }
.entry__crumb a:hover { color: var(--accent); }

.entry__title {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: pretty;
  color: var(--fg);
}

.entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 22px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

.entry__meta i { color: var(--accent); }
.entry__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.entry__media {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: var(--radius);
}

.entry__media img { display: block; width: 100%; height: auto; }

/* Embedded player */
.entry__player {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 22px;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius);
}

.entry__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.entry__body {
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--fg);
}

.entry__body p { margin: 0 0 18px; }
.entry__body h2, .entry__body h3 { margin: 28px 0 12px; letter-spacing: -0.02em; }
.entry__body img { height: auto; border-radius: var(--radius-sm); }
.entry__body a { font-weight: 700; color: var(--accent); }
.entry__body iframe { max-width: 100%; border-radius: var(--radius-sm); }

.entry__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-2);
}

.entry__share > span {
  margin-right: 4px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

/* Inline mark instead of an image file, so it follows the text color */
.post-share__x { width: 15px; height: 15px; }

/* Each network keeps its own color on hover */
.entry__share .post-share {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: var(--fs-md);
  color: var(--fg);
  background: var(--surface);
  border: 0;
  border-radius: 999px;
  transition: color var(--ease), background var(--ease), transform var(--ease);
}

.entry__share .post-share:hover { color: #fff; transform: translateY(-2px); }
.entry__share .post-share:nth-child(2):hover { background: #1877f2; }
.entry__share .post-share:nth-child(3):hover { background: #25d366; }
.entry__share .post-share:nth-child(4):hover { background: #000; }
.entry__share .post-share:nth-child(5):hover { background: #0a66c2; }

.entry__share .post-share img { width: 15px; height: 13px; }
.entry__share .post-share:nth-child(4):hover img { filter: invert(1) brightness(2); }

/* Right rail: related content and side ads */
.page__side {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.side-related__list {
  display: flex;
  flex-direction: column;
}

.side-related__item {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  color: inherit;
}

.side-related__item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--border-2);
}

.side-related__item:first-child::before { display: none; }

.side-related__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--muted);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
}

/* Small play badge for video lists */
.side-related__thumb--play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
  transform: translate(-40%, -50%);
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6));
}

.side-related__info { min-width: 0; }

.side-related__info b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fg);
  transition: color var(--ease);
}

.side-related__item:hover b { color: var(--accent); }

.side-related__info small {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted-fg);
}

.side-related__all {
  display: block;
  margin-top: 14px;
  padding: 10px;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: center;
  color: var(--fg);
  background: var(--surface);
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
}

.side-related__all:hover { color: var(--accent-fg); background: var(--accent); }

@media (max-width: 1100px) {
  .page__side { position: static; }
}

/* Album slider: big stage plus a thumb strip, fullscreen is optional */
.album-slider { margin-bottom: 8px; }

.album-slider__stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #121212;
  border-radius: var(--radius);
  cursor: grab;
  touch-action: pan-y;
}

.album-slider__stage.is-dragging { cursor: grabbing; }

.album-slider__track {
  position: absolute;
  inset: 0;
  will-change: transform;
}

/* The photo fills the whole stage: a portrait shot used to leave black bars
   on the sides. The full frame is still one click away, in the lightbox. */
.album-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.album-slider__slide[data-slot="-1"] { left: -100%; }
.album-slider__slide[data-slot="1"] { left: 100%; }

/* Mid swap: out of sight while the next photo decodes */
.lightbox__figure img.is-swapping { opacity: 0; }

.album-slider__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: background var(--ease), opacity var(--ease);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* The arrows stay out of the way and only answer to the pointer */
.album-slider__stage:hover .album-slider__nav,
.album-slider__nav:focus-visible { opacity: 1; }

.album-slider__nav:hover { background: var(--accent); }
.album-slider__nav--prev { left: 14px; }
.album-slider__nav--next { right: 14px; }

.album-slider__stage:hover .album-slider__full,
.album-slider__stage:hover .album-slider__count,
.album-slider__full:focus-visible { opacity: 1; }

/* No pointer to hover with: dragging is the gesture, the chrome stays visible */
@media (hover: none) {
  .album-slider__nav,
  .album-slider__full,
  .album-slider__count { opacity: 1; }
}

.album-slider__full {
  position: absolute;
  top: 14px;
  right: 14px;
  opacity: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--ease), opacity var(--ease);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.album-slider__full:hover { background: var(--accent); }

.album-slider__count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  opacity: 0;
  transition: opacity var(--ease);
  padding: 5px 12px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* Caption sits inside the photo, same pill treatment as the counter.
   Fixed 16px and wrapping: long captions must read, not get cut. */
.album-slider__caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  max-width: calc(100% - 130px);
  padding: 9px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.album-slider__caption[hidden] { display: none; }

/* Thumb strip */
.album-slider__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.album-slider__thumbs[hidden] { display: none; }

.album-slider__thumb {
  flex: 0 0 96px;
  height: 66px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color var(--ease), opacity var(--ease);
  opacity: 0.65;
}

.album-slider__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-slider__thumb:hover { opacity: 1; }
.album-slider__thumb.is-active { opacity: 1; border-color: var(--accent); }

/* Lightbox */
/* Above every player: two of them sit at 9999 and used to draw over the
   photo, leaving the bar stuck to the top edge of the image */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease);
}

.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox[hidden] { display: none; }

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  transition: opacity 0.16s linear;
  border-radius: var(--radius-sm);
}

.lightbox__figure figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  max-width: 800px;
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox__figure figcaption b {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

.lightbox__figure figcaption span[hidden] { display: none; }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover { background: var(--accent); }

.lightbox__close {
  top: 20px;
  right: 20px;
  font-size: 24px;
  line-height: 1;
}

.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__nav[hidden] { display: none; }

@media (max-width: 600px) {
  .album-slider__thumb { flex: 0 0 74px; height: 52px; }
  .album-slider__nav { width: 38px; height: 38px; }
  .album-slider__nav--prev { left: 8px; }
  .album-slider__nav--next { right: 8px; }
  .lightbox { padding: 12px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* Comments */
.comments { margin-top: 36px; }

.comments .write {
  padding: 20px;
  margin-bottom: 16px;
  background: var(--surface);
  border-radius: var(--radius);
}

.comments .write .form-control { background: var(--card); }
.comments .write .g-recaptcha-container { overflow: hidden; }

.comments .form-sent-success {
  margin-top: 12px;
  padding: 12px 14px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-item {
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius);
}

.comment-item__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.comment-item__head b {
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.comment-item__head time {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

.comment-item p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  word-break: break-word;
  color: var(--fg);
}

.loading-data {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted-fg);
}

.loading-data[hidden] { display: none; }

@media (max-width: 760px) {
  .entry__title { font-size: 25px; }
}

/* Contact page */
.contact-page {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
}

/* The form sits on the right, with the rule under its title carrying the
   accent tick the rest of the theme uses */
.contact-form {
  order: 2;
  padding: 0;
  background: none;
  border-radius: 0;
}

.contact-form__hint { position: relative; padding-bottom: 16px; border-bottom: 2px solid var(--border); }

.contact-form__hint::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
}

.contact-form form { margin-top: 20px; }
.contact-form .btn--block { width: auto; min-width: 220px; }

.contact-form__title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.contact-form__hint {
  margin: 6px 0 22px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted-fg);
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form .form-control { background: var(--card); }
.contact-form textarea.form-control { resize: vertical; }
.contact-form .g-recaptcha-container { overflow: hidden; }

.contact-form .form-sent-success {
  margin-bottom: 14px;
  padding: 12px 14px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

/* Side info */
.contact-side {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Channels stacked, each one a plain tile with the accent bar */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.contact-list__icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.contact-list__icon svg { width: 20px; height: 20px; }

.contact-list__info { min-width: 0; }

.contact-list__info small {
  display: block;
  margin-bottom: 2px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.contact-list__info a,
.contact-list__info b {
  display: block;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.35;
  color: var(--fg);
  /* A long address has no space to break on and used to run past the card */
  overflow-wrap: anywhere;
  transition: color var(--ease);
}

.contact-list__info a:hover { color: var(--accent); }

/* WhatsApp shortcut closes the column, full width */
.contact-whats {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: var(--radius-sm);
  transition: filter var(--ease), transform var(--ease);
}

.contact-whats:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }
.contact-whats svg { width: 26px; height: 26px; }
.contact-whats span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.contact-whats small { font-size: var(--fs-xs); opacity: 0.92; }
.contact-whats b { font-size: var(--fs-md); font-weight: 800; }

.contact-social {
  padding: 18px;
  background: var(--surface);
  border-radius: var(--radius);
}

.contact-social h2 {
  margin: 0 0 12px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.contact-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-social__links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: var(--fs-base);
  color: var(--fg);
  background: var(--card);
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease);
}

.contact-social__links a:hover { color: var(--accent-fg); background: var(--accent); }

/* Map */
.contact-map { margin-top: 24px; }

/* Fixed height: on a 1600px container an aspect ratio would push it past 600px */
.contact-map__frame {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.contact-map__frame .map-container {
  width: 100%;
  height: 100%;
}

.contact-map__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 18px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--fg);
  background: var(--surface);
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
}

.contact-map__link:hover { color: var(--accent-fg); background: var(--accent); }
.contact-map__link i { font-size: var(--fs-xs); }

/* Tap to activate, so the map does not trap the scroll on touch */
.block-map-mobile {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  place-items: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.35);
}

.block-map-mobile .block-message {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--fg);
  background: var(--bg);
  border-radius: 999px;
}

@media (max-width: 1000px) {
  .contact-page { grid-template-columns: 1fr; }
  .contact-map__frame { height: 260px; }
}

@media (max-width: 760px) {
  .block-map-mobile { display: grid; }
}

@media (max-width: 600px) {
  .contact-form { padding: 20px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
}

/* Request page: banner plus a single centered form */
/* Same shape as the contact page: no box, title over a rule with the accent
   tick, fields in a comfortable column */
.request-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
  margin: 0;
}

.request-box {
  padding: 0;
  background: none;
  border-radius: 0;
}

.request-box__title {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.request-box__hint {
  position: relative;
  margin: 6px 0 0;
  padding-bottom: 16px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted-fg);
  border-bottom: 2px solid var(--border);
}

.request-box__hint::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
}

.request-box form { margin-top: 22px; }
.request-box .btn--block { width: auto; min-width: 220px; }

.request-box__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.request-box .form-control { background: var(--card); }
.request-box textarea.form-control { resize: vertical; }
.request-box .g-recaptcha-container { overflow: hidden; }

.request-box .form-sent-success {
  margin-bottom: 14px;
  padding: 12px 14px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

@media (max-width: 600px) {
  .request-box__row { grid-template-columns: 1fr; gap: 0; }
  .request-box .btn--block { width: 100%; }
}

/* Messages module markup (legacy) */
.message-item { margin-bottom: 10px; }

.message-item .message-source {
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

.message-item .info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.message-item .name {
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.message-item .date {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

.message-item .message { font-size: var(--fs-base); line-height: 1.45; }

/* Schedule: day picker in chips, deliberately unlike the top menu */
.schedule-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.schedule-days button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 46px;
  padding: 0 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.schedule-days button:hover { background: var(--surface-2); border-color: var(--border); }

/* Full name on desktop, three letters on phones so the row never wraps */
.schedule-days .day-short { display: none; }

.schedule-days button.active {
  color: var(--accent-fg);
  background: var(--accent);
  border-color: var(--accent);
}

.schedule-days button.active:hover {
  color: var(--accent-fg);
  border-color: var(--accent);
  opacity: 0.88;
}

.schedule-day { display: none; }
.schedule-day.is-active { display: block; }

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-2);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 74px 52px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 16px 14px 14px;
  border-bottom: 1px solid var(--border-2);
  transition: background var(--ease);
}

.timeline__item:hover { background: var(--surface); }

/* The bar on the left is what marks the program, no filled block behind it */
.timeline__item::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  background: transparent;
  border-radius: 0 3px 3px 0;
}

.timeline__time {
  text-align: right;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.timeline__time b {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.timeline__time small {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted-fg);
}

.timeline__avatar {
  width: 52px;
  height: 52px;
  object-fit: cover;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

.timeline__info { min-width: 0; }

.timeline__info h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  overflow: hidden;
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.timeline__info h3 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.timeline__info small {
  display: block;
  margin-top: 3px;
  font-size: var(--fs-sm);
  color: var(--muted-fg);
}

/* On air: accent bar, accent time and the name in the accent colour */
.timeline__item--live::before { background: var(--accent); }
.timeline__item--live .timeline__time b { color: var(--accent); }
.timeline__item--live .timeline__info h3 { color: var(--accent); }
.timeline__item--live:hover { background: var(--accent-soft); }

@media (max-width: 600px) {
  .timeline__item {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
    padding-left: 12px;
  }

  .timeline__avatar { display: none; }
  .timeline__time b { font-size: var(--fs-base); }
}

.badge--live {
  flex-shrink: 0;
  padding: 3px 9px;
  font-size: var(--fs-xs);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-fg);
  background: var(--accent);
  border-radius: 999px;
}

@media (max-width: 760px) {
  .schedule-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
  .schedule-days button { height: 42px; padding: 0 2px; letter-spacing: 0.02em; }
  .schedule-days .day-full { display: none; }
  .schedule-days .day-short { display: inline; }
  .timeline { padding-left: 0; }
  .timeline::before,
  .timeline__dot { display: none; }
  .timeline__time { position: static; width: auto; margin-bottom: 6px; text-align: left; transform: none; }
  .timeline__time b { display: inline; }
  .timeline__time small { margin-left: 4px; }
}

/* Hosts page: wide rows, photo on the left, room for the bio */
.hosts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
  gap: 16px;
}

.host-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  transition: background var(--ease);
}

.host-card:hover { background: var(--surface-2); }

.host-card__avatar {
  width: 128px;
  height: 128px;
  object-fit: cover;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.host-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.host-card__name {
  margin: 0;
  overflow: hidden;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-overflow: ellipsis;
  color: var(--fg);
}

.host-card__role {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent);
}

/* Always two lines tall so every card keeps the same height */
.host-card__about {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 3.1em;
  margin: 10px 0 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--fg);
}

.host-card__more {
  align-self: flex-start;
  margin-top: 6px;
  padding: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  background: none;
  transition: opacity var(--ease);
}

.host-card__more:hover { opacity: 0.75; }

/* Pinned to the bottom so cards of different heights stay aligned
   and never leave a gap under the socials */
.host-card__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}

.host-card__body > .host-card__socials:first-child { margin-top: 0; }

.host-card__socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: var(--fs-base);
  color: var(--fg);
  background: var(--card);
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease);
}

.host-card__socials a:hover { color: var(--accent-fg); background: var(--accent); }

@media (max-width: 560px) {
  .hosts-grid { grid-template-columns: 1fr; }
  .host-card { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .host-card__avatar { width: 84px; height: 84px; }
}

/* Host modal */
.host-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.host-modal.is-open { opacity: 1; visibility: visible; }

.host-modal__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 26px;
  background: var(--bg);
  border-radius: var(--radius);
  transform: translateY(8px);
  transition: transform var(--ease);
}

.host-modal.is-open .host-modal__box { transform: translateY(0); }

.host-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  color: var(--fg);
  background: var(--surface);
  border-radius: 999px;
  transition: background var(--ease);
}

.host-modal__close:hover { background: var(--surface-2); }

.host-modal__head {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-right: 40px;
}

.host-modal__head img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  background: var(--surface-2);
  border-radius: 999px;
}

.host-modal__head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.host-modal__head span {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
}

.host-modal__about {
  margin: 0 0 18px;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--fg);
  white-space: pre-line;
}

@media (max-width: 520px) {
  .host-modal__box { padding: 20px; }
  .host-modal__head { grid-template-columns: 60px minmax(0, 1fr); }
  .host-modal__head img { width: 60px; height: 60px; }
  .host-modal__head h2 { font-size: 19px; }
}

/* Media grid shared by videos, albums, events and promos */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.media-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
}

.media-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--muted);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  transition: filter var(--ease);
}

.media-card:hover .media-card__thumb { filter: brightness(0.94); }

.media-card__thumb--tall { aspect-ratio: 3 / 4; }
.media-card__thumb--square { aspect-ratio: 1; }

/* Photo albums: never crop the client artwork. Same treatment as the module,
   a blurred copy of the photo fills the frame instead of empty bars. */
.media-card__thumb--fit {
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
}

.media-card__thumb--fit::before,
.media-card__thumb--fit::after {
  content: "";
  position: absolute;
  inset: 0;
}

.media-card__thumb--fit::before {
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
}

.media-card__thumb--fit::after {
  background-image: inherit;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Play badge over video thumbs */
.media-card__play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: background var(--ease), border-color var(--ease);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.media-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 56%;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
  transform: translate(-50%, -50%);
}

.media-card:hover .media-card__play { background: var(--accent); border-color: var(--accent); }

/* Corner badges. z-index keeps them above the blurred fill layers */
.media-card__tag {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.media-card__tag--accent { color: var(--accent-fg); background: var(--accent); }

.media-card__date {
  position: absolute;
  z-index: 1;
  bottom: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  padding: 6px 8px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  border-radius: var(--radius-sm);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.media-card__date b { font-size: var(--fs-md); font-weight: 800; font-variant-numeric: tabular-nums; }
.media-card__date small { margin-top: 3px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; opacity: 0.85; }

.media-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* No reserved height here: a one line title would leave a gap above the meta */
.media-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fg);
  transition: color var(--ease);
}

.media-card:hover .media-card__title { color: var(--accent); }

.media-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

.media-card__meta i { color: var(--accent); }

/* Broadcaster */
.broadcaster { width: 250px; }

.outer-circle,
.inner-circle {
  display: table;
  width: 80px;
  height: 80px;
  padding: 3px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.inner-circle img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

/* Event page */
.event-hero { position: relative; }

.event-hero img { aspect-ratio: 16 / 7; object-fit: cover; }

.event-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

.event-hero__status {
  position: absolute;
  top: 14px;
  left: 14px;
}

.event-status.is-live { color: var(--accent-fg); background: var(--accent); }
.event-status.is-next { color: var(--accent-soft-fg); background: var(--accent-soft); }
.event-status.is-past { color: var(--muted-fg); background: var(--muted); }

/* Pulsing dot only while the event is running */
.event-status.is-live::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  animation: eventPulse 1.6s ease-in-out infinite;
}

@keyframes eventPulse {
  50% { opacity: 0.25; }
}

.event-hero__date {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  justify-items: center;
  min-width: 62px;
  padding: 8px 10px;
  line-height: 1;
  color: var(--fg);
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.event-hero__date b {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.event-hero__date small {
  margin-top: 3px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.event-fact {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.event-fact--wide { grid-column: span 2; }

.event-fact__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.event-fact__label i { font-size: var(--fs-xs); color: var(--accent); }

.event-fact b {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--fg);
}

.event-fact small {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

.event-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.event-cta .btn { gap: 8px; }

.event-map { margin-top: 6px; }

.event-map__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.event-map__title i { font-size: var(--fs-md); color: var(--accent); }

@media (max-width: 640px) {
  .event-fact--wide { grid-column: span 1; }
  .event-hero__date { min-width: 54px; padding: 6px 9px; }
  .event-hero__date b { font-size: 20px; }
}

/* Podcast listing */
.pod-search {
  position: relative;
  margin-bottom: 14px;
}

.pod-search .form-control { padding-right: 42px; }

.pod-search button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 100%;
  color: var(--muted-fg);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color var(--ease);
}

.pod-search button:hover { color: var(--accent); }

.pod-results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
  font-size: var(--fs-sm);
  color: var(--muted-fg);
}

.pod-results a { font-weight: 600; color: var(--accent); }
.pod-results a:hover { text-decoration: underline; }

.pod-catinfo {
  margin: 0 0 18px;
  font-size: var(--fs-sm);
  color: var(--muted-fg);
}

.pod-catinfo b { color: var(--fg); }

/* Podcast page */
.pod-head {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 22px;
  background: var(--surface);
  border-radius: var(--radius);
}

.pod-head__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
}

.pod-head__mark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: var(--fs-md);
  color: var(--accent-fg);
  background: var(--accent);
  border-radius: 50%;
}

.pod-head__label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.pod-head__title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: pretty;
  color: var(--fg);
}

.pod-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

.pod-head__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pod-head__meta i { color: var(--accent); }

.pod-head__desc {
  margin: 12px 0 0;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--muted-fg);
}

/* Episodes: one open at a time, height animated by the inline script */
.eps { display: flex; flex-direction: column; gap: 8px; }

.acc-item {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color var(--ease);
}

.acc-item.is-open { border-color: var(--accent); }

.acc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
}

.acc-header__play {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  font-size: var(--fs-sm);
  color: var(--accent-fg);
  background: var(--accent);
  border-radius: 50%;
}

.acc-header__info { display: grid; gap: 3px; min-width: 0; flex: 1; }

.acc-header__info b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--fg);
}

.acc-header__info small {
  font-size: var(--fs-sm);
  color: var(--muted-fg);
}

.badge-new {
  display: none;
  padding: 2px 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-fg);
  background: var(--accent);
  border-radius: 999px;
}

.acc-item.is-new .badge-new { display: inline-block; }

.acc-header__caret {
  flex-shrink: 0;
  font-size: var(--fs-sm);
  color: var(--muted-fg);
  transition: transform var(--ease);
}

.acc-item.is-open .acc-header__caret { transform: rotate(180deg); }

.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.acc-content__inner { padding: 0 16px 16px; }
.acc-content__inner .entry__player { margin-bottom: 0; }

.acc-content__desc {
  margin: 14px 0 0;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--muted-fg);
}

.yt-loading-wrap { position: relative; background: #000; }

.player-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  transition: opacity var(--ease);
}

.player-loading.is-off { opacity: 0; pointer-events: none; }

.player-loading__spin {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: msgSpin 0.8s linear infinite;
}

@media (max-width: 700px) {
  .pod-head { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .pod-head__title { font-size: 23px; }
}

/* Legal pages */
.legal { padding-bottom: 8px; }

.legal h2 {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.legal h2:first-of-type { margin-top: 26px; }
.legal h3 { margin-top: 26px; }
.legal li { margin-bottom: 10px; }

/* Chat page: the room itself is an external app inside the frame */
.chat-page {
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
}

.chat-page__frame {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
}

.chat-page__note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted-fg);
}

.chat-page__note i { flex-shrink: 0; color: var(--accent); }

@media (max-width: 760px) {
  .chat-page__frame { height: 70vh; min-height: 420px; }
}

/* Music chart */
.top-now {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.top-now__cover {
  position: relative;
  flex-shrink: 0;
  width: 128px;
  height: 128px;
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
}

.top-now__rank {
  position: absolute;
  right: -10px;
  bottom: -10px;
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-fg);
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.top-now__info { min-width: 0; }

.top-now__label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.top-now__title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: pretty;
  color: var(--fg);
}

.top-now__artist {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--muted-fg);
}

.top-chart {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.top-chart__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  color: inherit;
  border-radius: var(--radius-sm);
  transition: background var(--ease);
}

.top-chart__item:hover { background: var(--surface); }
.top-chart__item.is-active { background: var(--accent-soft); }

.top-chart__rank {
  flex-shrink: 0;
  width: 18px;
  font-size: var(--fs-sm);
  font-weight: 800;
  text-align: center;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

.top-chart__item.is-active .top-chart__rank { color: var(--accent); }

.top-chart__cover {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
}

.top-chart__info {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.top-chart__info b {
  overflow: hidden;
  font-size: var(--fs-base);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-chart__info small {
  overflow: hidden;
  font-size: var(--fs-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-fg);
}

.top-chart__play {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  color: var(--muted-fg);
}

.top-chart__item:hover .top-chart__play,
.top-chart__item.is-active .top-chart__play { color: var(--accent); }

@media (max-width: 640px) {
  .top-now { gap: 16px; }
  .top-now__cover { width: 96px; height: 96px; }
  .top-now__title { font-size: 24px; }
}

/* Single promotion */
.promo-hero { position: relative; }
.promo-hero img { aspect-ratio: 16 / 7; object-fit: cover; }

.promo-hero__status {
  position: absolute;
  top: 14px;
  left: 14px;
}

.promo-winner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

.promo-winner__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  font-size: var(--fs-lg);
  color: var(--accent-fg);
  background: var(--accent);
  border-radius: 50%;
}

.promo-winner__info { display: grid; gap: 2px; min-width: 0; }

.promo-winner__info small {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-soft-fg);
}

.promo-winner__info b {
  overflow: hidden;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg);
}

.promo-closed {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px 20px;
  background: var(--surface);
  border-radius: var(--radius);
}

.promo-closed i {
  flex-shrink: 0;
  font-size: var(--fs-lg);
  color: var(--muted-fg);
}

.promo-closed b {
  display: block;
  margin-bottom: 2px;
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--fg);
}

.promo-closed span {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted-fg);
}

.promo-form {
  margin-bottom: 26px;
  padding: 24px 26px 26px;
  background: var(--surface);
  border-radius: var(--radius);
}

.promo-form__head { margin-bottom: 20px; }

.promo-form__head h2 {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.promo-form__head p {
  margin: 6px 0 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted-fg);
}

.promo-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0 14px;
}

.input-field--wide { grid-column: 1 / -1; }

.promo-form .form-control,
.promo-form .form-select { background: var(--card); }
.promo-form textarea.form-control { resize: vertical; }
.promo-form .g-recaptcha-container { overflow: hidden; }

.promo-form .form-sent-success {
  margin-bottom: 14px;
  padding: 12px 14px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

/* Promotions page */
.promo-finished {
  width: 260px;
  padding: 6px 10px;
  font-size: var(--fs-sm);
  color: var(--fg);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

/* Category rail: vertical list on desktop, collapsible on mobile.
   Scrolls on its own when the client has many categories. */
.cat-side { min-width: 0; }

.filter-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: left;
  color: var(--fg);
  background: var(--surface);
  border-radius: var(--radius);
}

.filter-toggle > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-toggle b { font-weight: 800; color: var(--accent); }
.filter-toggle i:first-child { color: var(--accent); }

.filter-toggle__caret {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  transition: transform 0.22s;
}

.is-open .filter-toggle__caret { transform: rotate(180deg); }

/* gap keeps the active background from touching the hovered one */
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding: 6px;
  background: var(--surface);
  border-radius: var(--radius);
  scrollbar-width: thin;
}

.cat-list__item {
  padding: 10px 12px;
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-fg);
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
}

.cat-list__item:hover { color: var(--fg); background: var(--muted); }

.cat-list__item.is-active {
  font-weight: 700;
  color: var(--accent-fg);
  background: var(--accent);
}

/* The active item keeps its own background on hover: feedback comes from opacity */
.cat-list__item.is-active:hover {
  color: var(--accent-fg);
  background: var(--accent);
  opacity: 0.88;
}

/* Collapsed on narrow screens. Declared after the base rules on purpose:
   same specificity, so it has to come last to win. */
@media (max-width: 1100px) {
  .filter-toggle { display: flex; }

  .cat-list {
    display: none;
    max-height: 340px;
    margin-top: 8px;
  }

  .cat-side.is-open .cat-list { display: flex; }
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  color: inherit;
}

.post-card__media {
  aspect-ratio: 16 / 9;
  background-color: var(--muted);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  transition: filter var(--ease);
}

.post-card:hover .post-card__media { filter: brightness(0.94); }

/* Date is a line of text under the summary, not a stamp over the photo */
.post-card__date {
  margin-top: 2px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

/* Fixed rows: a post without category keeps the slot empty, so every title in
   the row starts at the same height and the date sits at the bottom */
.post-card__body {
  display: grid;
  grid-template-rows: 21px auto auto 1fr;
  gap: 8px;
  min-width: 0;
  height: 100%;
}

/* Each piece names its own row: a card with no category leaves the first row
   empty instead of pulling the title up into it */
.post-card__cat {
  grid-row: 1;
  justify-self: start;
  align-self: center;
  padding: 4px 10px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--p1);
  background: var(--accent);
  border-radius: var(--radius-sm);
}
.post-card__title { grid-row: 2; }
.post-card__desc { grid-row: 3; }
.post-card__date { grid-row: 4; align-self: end; }

.post-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  min-height: 2.6em;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  color: var(--fg);
  transition: color var(--ease);
}

.post-card:hover .post-card__title { color: var(--accent); }

.post-card__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.9em;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--muted-fg);
}

.post-card__meta {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

/* Pagination */
.paginator {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.paginator .page-link {
  display: grid;
  place-items: center;
  min-width: 40px;
  padding: 8px 12px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-sm) !important;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.paginator .page-link:hover { border-color: var(--accent); }

.paginator .page-link.is-active,
.paginator .active .page-link {
  color: var(--accent-fg);
  background: var(--accent);
  border-color: var(--accent);
}

.paginator .page-link.is-active:hover,
.paginator .active .page-link:hover {
  color: var(--accent-fg);
  background: var(--accent);
  opacity: 0.88;
}

/* Side widgets */
.side-widget { margin-bottom: 20px; }

.side-widget .widget-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: var(--fs-base);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

.side-ad { margin-bottom: 12px; overflow: auto; }
.side-ad img { display: block; width: 100%; border-radius: var(--radius-sm); }

/* Forms */
.input-field { margin-bottom: 12px; }

.input-field label {
  display: block;
  margin-bottom: 5px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--fg);
}

.form-control,
.form-select {
  width: 100%;
  padding: 10px 12px;
  font-size: var(--fs-base);
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--ease);
}

/* Bootstrap ships a fixed gray here, which disappears on some palettes.
   opacity is reset because Firefox dims the placeholder on its own. */
.form-control::placeholder,
.form-select::placeholder,
.form-control::-webkit-input-placeholder {
  color: var(--muted-fg);
  opacity: 1;
}

/* Bootstrap repaints the field on focus with its own light theme colors, so
   the palette has to be restated here or the text turns black */
.form-control:focus,
.form-select:focus {
  outline: none;
  color: var(--fg);
  background: var(--card);
  border-color: var(--accent);
}

.error-message {
  margin-top: 4px;
  font-size: var(--fs-sm);
  color: var(--accent);
}

/* Helpers */
.text-overflow-inline {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ext-link { word-break: break-word; }

/* Responsive */
@media (max-width: 900px) {
  .grid-card { flex: 0 0 100%; }
  .schedule-tabs li { flex: 1 1 calc(50% - 6px); }
}

/* Contact page, narrow screens */
@media (max-width: 900px) {
  .contact-page { grid-template-columns: 1fr; gap: 28px; }
  .contact-form { order: 1; }
  .contact-side { order: 2; }
}

/* Messages page: one column of quotes with the author on the side.
   stretch is explicit because the grid rule above sets align-items: start */
.messages {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.msg-card {
  position: relative;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  overflow: visible;
  padding: 22px 6px;
  background: none;
  border-top: 1px solid var(--border-2);
  border-radius: 0;
}

.msg-card:first-child { border-top: 0; }
.msg-card:hover { background: none; }
.msg-card::before { display: none; }

/* Author column: initials, name and where the message came from */
.msg-card__foot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  order: -1;
  margin: 0;
  padding: 0;
  border: 0;
}

.msg-card__foot b {
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.3;
  color: var(--fg);
}

.msg-card__place,
.msg-card__foot time {
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted-fg);
}

.msg-card__foot time { font-variant-numeric: tabular-nums; }

.msg-card__text {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 1.55;
  border-left: 2px solid var(--border);
}

.msg-card:hover .msg-card__text { border-left-color: var(--accent); }

@media (max-width: 700px) {
  .msg-card { grid-template-columns: 1fr; gap: 14px; }
  .msg-card__text { padding-left: 0; border-left: 0; }
}

/* What used to live on the rail now closes the article, full width */
.entry__extra {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 2px solid var(--border);
}

.entry__extra .side-related__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.entry__extra .side-related__item {
  align-items: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--ease);
}

.entry__extra .side-related__item:hover { background: var(--muted); }
/* Album embedded in a post: the photos open the album, where the gallery is */
.embed-album {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.embed-album__item {
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.embed-album__item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.embed-album__item:hover img { transform: scale(1.06); }
