/* ── AUDIOS PAGE ── */
.audios-page {
  padding: 20px;
  background: var(--gray-mid);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow 0.3s ease;
  margin-top: 32px;
}


.audios-page h1,
.audios-page h2 {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.audios-page h1::after,
.audios-page h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--black);
  border-radius: 2px;
}

/* ── AUDIOS SEARCH ── */
.audios-search {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--gray-light);
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid var(--gray-mid);
  transition: all 0.3s ease;
}

.audios-search:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* ── CONTROLS ── */
.audios-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.audios-controls input[type="search"],
#audio-search {
  font-family: var(--font-b);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  border: 2px solid var(--gray-mid);
  border-radius: 10px;
  padding: 10px 16px;
  width: 100%;
  max-width: 400px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.audios-controls input[type="search"]:focus,
#audio-search:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-gl);
}

#audio-count {
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--gray-text);
  transition: color 0.3s ease;
}

/* ── AUDIO LIST ── */
.audio-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audio-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 12px;
  padding: 14px 20px;
  transition: all 0.3s ease;
}

.audio-item:hover {
  border-color: var(--gray-dark);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.audio-item h3 {
  font-family: var(--font-b);
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.audio-item:hover h3 {
  color: var(--black);
}

.audio-actions {
  display: flex;
  gap: 10px;
}

.audio-actions button {
  flex: 1;
}

.audio-item audio,
.reproductor-audio {
  flex-shrink: 0;
  width: 100%;
  height: 36px;
  border-radius: 8px;
  accent-color: var(--accent);
}

.audio-item video {
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  margin-top: 8px;
}

.error-msg {
  font-family: var(--font-b);
  font-size: 14px;
  color: var(--gray-text);
  text-align: center;
  padding: 32px;
  background: var(--gray-light);
  border-radius: 12px;
  border: 1px solid var(--gray-mid);
}

@media (max-width: 768px) {
.audios-page {
    padding: 16px;
    gap: 16px;
    border-radius: 16px;
    margin-top: 24px;
  }

.audios-search {
    padding: 20px;
    gap: 12px;
  }

.audios-page h1,
  .audios-page h2 {
    font-size: 20px;
  }

.audios-controls input[type="search"],
  #audio-search {
    max-width: 100%;
    font-size: 15px;
    padding: 12px 16px;
  }

.audio-item h3 {
    font-size: 15px;
  }

.audio-item audio {
    width: 100%;
  }
}

@media (max-width: 480px) {
.audios-page {
    padding: 12px;
    gap: 12px;
    border-radius: 12px;
    margin-top: 10px;
  }

.audios-search {
    padding: 14px;
    gap: 10px;
    border-radius: 12px;
  }

.audios-page h1,
  .audios-page h2 {
    font-size: 18px;
  }

.audios-page h1::after,
  .audios-page h2::after {
    width: 44px;
    height: 2px;
    bottom: -6px;
  }

.audios-controls {
    flex-direction: column;
    align-items: stretch;
  }

.audios-controls input[type="search"],
  #audio-search {
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 10px;
  }

.audio-item {
    padding: 12px 14px;
    gap: 12px;
  }

.audio-item h3 {
    font-size: 14px;
  }

.audio-actions .btn-label {
    display: none;
  }

.audio-actions a.btn-out {
    font-size: 16px;
    padding: 6px 14px;
  }

#audio-count {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
.audios-page {
    padding: 10px;
    border-radius: 10px;
  }

.audios-search {
    padding: 10px;
  }

.audios-page h1,
  .audios-page h2 {
    font-size: 16px;
  }

.audios-controls input[type="search"],
  #audio-search {
    font-size: 15px;
    padding: 10px 12px;
  }
}
