/*
 * Part 8 of 8 — sequential slice of the original styles.css.
 * These files preserve the exact original rule order and must stay linked
 * in this sequence in index.html; splitting was done at safe top-level
 * rule boundaries only (no reordering), so cascading overrides keep working.
 */
.public-section-card strong {
  order: 3;
  color: var(--text);
  font-family: var(--font-display-serif);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  font-weight: 400;
  line-height: 1.25;
}

.public-section-card small {
  order: 4;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.public-section-card--compact {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.public-section-card--compact img,
.public-section-card--compact .public-section-card__placeholder {
  aspect-ratio: 1 / 0.72;
  box-shadow: none;
}

.public-section-genre-grid {
  display: grid;
  gap: clamp(16px, 2.8vw, 26px);
}

.public-section-genre-tile {
  position: relative;
  min-height: clamp(96px, 11vw, 130px);
  display: grid;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.public-section-genre-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tile-tone, var(--amber-deep));
}

.public-section-genre-tile:hover,
.public-section-genre-tile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--tile-tone, var(--amber-deep));
}

.public-section-genre-tile span {
  max-width: none;
  color: var(--text);
  font-family: var(--font-display-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

.public-section-genre-tile--lime {
  --tile-tone: #708c69;
}

.public-section-genre-tile--rose {
  --tile-tone: #9b5f40;
}

.public-section-genre-tile--sky {
  --tile-tone: #a38f00;
}

.public-section-genre-tile--coral {
  --tile-tone: #b5563f;
}

.public-section-genre-tile--violet {
  --tile-tone: #6d6a8a;
}

.public-section-genre-tile--teal {
  --tile-tone: #3b6b63;
}

.public-section-media {
  display: grid;
  gap: 7px;
  color: #050505;
}

.public-section-media__image {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: #ddd4c0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.public-section-media__image img,
.public-section-media__image .public-section-media-video,
.public-section-media__image .public-section-card__placeholder {
  width: 100%;
  aspect-ratio: 21 / 6;
  max-height: 300px;
  display: block;
  object-fit: cover;
}

.public-section-media__play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.public-section-media__play::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 18px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 19px solid #111;
}

.public-section-media strong {
  font-size: 1rem;
  line-height: 1.2;
}

.public-section-media small {
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.82rem;
}

.public-section-list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding-left: 42px;
}

.public-section-list li {
  padding-left: 4px;
  font-size: clamp(1.05rem, 1.75vw, 1.34rem);
  font-weight: 900;
  line-height: 1.32;
}

.public-section-list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.public-section-list span {
  color: rgba(0, 0, 0, 0.72);
}

.public-artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 24px 16px;
}

.public-artist-tile {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #050505;
  text-align: center;
}

.public-artist-tile__avatar {
  width: 100%;
  max-width: 170px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.35), transparent 28%),
    linear-gradient(135deg, #314f44, #9b5f40);
  background-size: cover;
  background-position: center;
  color: #fff;
  font-family: var(--font-display-serif);
  font-size: clamp(2.2rem, 4.6vw, 3rem);
  font-weight: 400;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.public-artist-tile strong {
  font-family: var(--font-display-serif);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.16;
}

.public-artist-tile small {
  max-width: 220px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.public-section-empty {
  min-height: 86px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 22px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  color: rgba(0, 0, 0, 0.58);
  font-weight: 800;
  text-align: center;
}

.footer--public-section {
  margin-top: 0;
  background: var(--text);
  color: #fff;
  border-top: 0;
}

.footer--public-section .footer__minimal-brand h3 {
  font-family: var(--font-display-serif);
  font-weight: 400;
}

.footer--public-section .footer__inner--minimal {
  width: min(1120px, calc(100% - clamp(36px, 8vw, 150px)));
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 1fr);
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 18px;
  align-items: start;
  padding: 28px 0 18px;
}

@media (max-width: 760px) {
  .page:has(.public-section-page) {
    width: min(100% - 24px, 680px) !important;
  }

  .public-section-page {
    gap: 30px;
    padding-top: 24px;
  }

  .public-section-filterbar {
    gap: 13px 22px;
    font-size: 0.94rem;
  }

  .public-section-grid--card,
  .public-section-grid--poster,
  .public-section-grid--compact,
  .public-section-genre-grid,
  .public-artist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-section-media__image img,
  .public-section-media__image .public-section-media-video,
  .public-section-media__image .public-section-card__placeholder {
    aspect-ratio: 16 / 6;
    max-height: 220px;
  }

  .footer--public-section .footer__inner--minimal {
    width: min(100% - 24px, 680px);
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .public-section-hero h1 {
    font-size: clamp(2.8rem, 18vw, 4.4rem);
  }

  .public-section-search,
  .public-section-search input {
    min-height: 50px;
  }

  .public-section-grid--card,
  .public-section-grid--poster,
  .public-section-grid--compact,
  .public-section-genre-grid,
  .public-artist-grid {
    grid-template-columns: 1fr;
  }

  .public-section-category > header {
    min-height: 36px;
    padding-inline: 12px;
  }

  .public-section-list {
    padding-left: 28px;
  }

  .footer--public-section .footer__inner--minimal {
    padding: 22px 0 16px;
  }
}

/* Botones "Reproducir" sobre tarjetas — el de Mediateca (.public-section-media__play) ya
   existía como un span decorativo con un triángulo dibujado por CSS; cuando la obra tiene
   audio pasa a ser un botón real (mismo circulo, ícono de texto en vez del triángulo). */
.public-section-media__play[data-play-index] {
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #111;
  font-size: 1.15rem;
  cursor: pointer;
}

.public-section-media__play[data-play-index]::after {
  content: none;
}

.public-section-card__media {
  position: relative;
}

.public-section-card__play,
.media-play-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  color: #111;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.public-section-card__play:hover,
.media-play-button:hover {
  background: #fff;
  transform: scale(1.05);
}

.feature-work {
  position: relative;
}

.feature-work .media-play-button {
  top: 18px;
  right: 18px;
  bottom: auto;
}

/* Reproductor persistente — barra fija, sobrevive a la navegación porque vive fuera de #app.
   Fondo oscuro y compacto a propósito; la animación de entrada y el ecualizador
   son puro CSS (sin JS de por medio) para que no pesen en la página. */
.audio-player-bar {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 70;
  width: min(calc(100% - 32px), 380px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #1c1913;
  box-shadow: 0 20px 48px rgba(10, 8, 6, 0.38);
  animation: audioBarIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes audioBarIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.audio-player-bar__cover {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 9px;
  background-color: rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
}

.audio-player-bar__eq {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: none;
  align-items: flex-end;
  gap: 2px;
  width: 16px;
  height: 12px;
  padding: 3px 3px 2px;
  border-radius: 999px;
  background: var(--amber);
}

.audio-player-bar.is-playing .audio-player-bar__eq {
  display: flex;
}

.audio-player-bar__eq span {
  width: 2px;
  border-radius: 2px;
  background: var(--text);
  animation: audioEq 0.9s ease-in-out infinite;
}

.audio-player-bar__eq span:nth-child(1) {
  animation-delay: -0.6s;
}

.audio-player-bar__eq span:nth-child(2) {
  animation-delay: -0.3s;
}

@keyframes audioEq {
  0%, 100% {
    height: 2px;
  }

  50% {
    height: 7px;
  }
}

.audio-player-bar__info {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.audio-player-bar__info strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.audio-player-bar__info span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
}

.audio-player-bar__controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.audio-player-bar__control {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.audio-player-bar__control:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.audio-player-bar__control:disabled {
  color: rgba(255, 255, 255, 0.28);
  cursor: default;
}

.audio-player-bar__control:disabled:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.28);
}

.audio-player-bar__control--play {
  width: 34px;
  height: 34px;
  background: var(--amber);
  color: var(--text);
}

.audio-player-bar__control--play:hover {
  background: var(--amber);
  color: var(--text);
  opacity: 0.9;
}

.audio-player-bar__control[data-player-shuffle].is-active {
  color: var(--amber);
}

/* Progreso: una tira pegada al borde inferior del reproductor, sin números —
   mantiene el ancho compacto sin perder la referencia visual. Antes esto medía
   2px de alto con toda el área de click puesta en padding negativo: en la
   práctica el padding se salía del cuadro del reproductor (quedaba recortado
   o colgando por fuera) y el trazo en sí era invisible. Ahora el contenedor
   tiene una altura fija para el toque, separada del trazo visible más fino
   (sin trucos de margen negativo), y el reproductor deja espacio real abajo
   para que quepa sin desbordar. */
.audio-player-bar__progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 16px;
  display: flex;
  align-items: center;
}

.audio-player-bar__progress span {
  display: none;
}

.audio-player-bar__progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  touch-action: none;
}

.audio-player-bar__progress-track:hover {
  background-color: rgba(255, 255, 255, 0.24);
}

.audio-player-bar__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--amber);
}

.audio-player-bar__close {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.audio-player-bar__close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .audio-player-bar {
    animation: none;
  }

  .audio-player-bar__eq span {
    animation: none;
    height: 5px;
  }
}
