/* ===================================================
   The Muse Atelier — Audio Hub Styles
   =================================================== */

/* ---- Audio Page Layout ---- */
.audio-hero {
  padding: 120px 0 60px;
  background: var(--clr-dark);
  color: #fff;
}

.audio-hero-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.audio-hero-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--clr-accent);
  margin-bottom: 16px;
}

.audio-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.audio-hero-title em { color: var(--clr-accent); font-style: normal; }

.audio-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ---- Category Tabs ---- */
.audio-tabs {
  padding: 32px 0;
  background: var(--clr-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 72px;
  z-index: 50;
}

.audio-tab-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.audio-tab {
  padding: 8px 22px;
  border-radius: 24px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.25s;
}

.audio-tab:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

.audio-tab.active {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
}

/* ---- Track Grid ---- */
.audio-tracks-section {
  padding: var(--space-xl) 0;
  background: var(--clr-dark);
  min-height: 60vh;
}

.audio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-md);
}

/* ---- Track Card ---- */
.track-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
  cursor: pointer;
}

.track-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.track-card.playing {
  border-color: var(--clr-accent);
  background: rgba(233,30,140,0.06);
}

.track-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.track-card-icon {
  font-size: 1.6rem;
}

.track-card-badge {
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.track-card-badge.free {
  background: rgba(233,30,140,0.15);
  color: var(--clr-accent);
}

.track-card-badge.locked {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
}

.track-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.track-card-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 16px;
}

.track-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.track-card-duration {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
}

.track-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  color: #fff;
}

.track-play-btn:hover {
  border-color: var(--clr-accent);
  background: var(--clr-accent);
}

.track-play-btn svg { width: 18px; height: 18px; }

/* ---- Now Playing Bar (Bottom) ---- */
.now-playing {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.now-playing.visible { transform: translateY(0); }

.now-playing-progress {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  position: relative;
}

.now-playing-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-primary));
  width: 0%;
  transition: width 0.3s;
  border-radius: 2px;
}

.now-playing-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.np-info {
  flex: 1;
  min-width: 0;
}

.np-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-category {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
}

.np-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.np-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.np-btn:hover { color: #fff; }

.np-btn-play {
  width: 48px;
  height: 48px;
  background: var(--clr-accent);
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.np-btn-play:hover { transform: scale(1.08); }

.np-time {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  min-width: 90px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.np-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.np-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---- Transcript Overlay ---- */
.transcript-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.92);
  backdrop-filter: blur(20px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s;
}

.transcript-overlay.visible { opacity: 1; visibility: visible; }

.transcript-panel {
  background: var(--clr-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 48px;
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.transcript-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.transcript-close:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

.transcript-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.transcript-meta {
  font-size: 0.8rem;
  color: var(--clr-accent);
  margin-bottom: 24px;
}

.transcript-body {
  font-size: 0.95rem;
  line-height: 2;
  color: rgba(255,255,255,0.65);
  white-space: pre-line;
}

/* ---- Empty state ---- */
.audio-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,0.35);
  font-size: 0.95rem;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .audio-grid { grid-template-columns: 1fr; }
  .audio-hero-title { font-size: 2rem; }
  .now-playing-inner { padding: 10px 16px; gap: 12px; }
  .np-time { display: none; }
  .transcript-panel { padding: 32px 24px; }
}
