/* ── Bucket 2: Music detail page extracted inline style patterns ────────────
   Used by: album.html, ep.html, single.html, song.html
   All selectors are namespaced utility classes. No specificity changes.
   ────────────────────────────────────────────────────────────────────────── */

/* A10 — Dark card, padding-20 */
.card-dark-20 {
  background: #111;
  padding: 20px;
  border-radius: 12px;
}

/* A11 — Dark card, padding-25 */
.card-dark-25 {
  background: #111;
  padding: 25px;
  border-radius: 12px;
}

/* A12 — Dark card, padding-18, faint border */
.card-dark-18 {
  background: #111;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 105, 180, 0.04);
}

/* A13 — Music detail 3-column grid layout */
.music-detail-grid {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 25px;
  margin: 40px auto;
  max-width: 1400px;
}

/* A14 — Cover image card (dark, centered, padding-20) */
.card-dark-cover {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-sizing: border-box;
}

/* Force the cover image to be a perfect square regardless of the source image's
   aspect ratio. Some custom-uploaded covers (and a few Spotify ones) come back
   non-square; without this the bare `width: 100%` from utils.css lets them
   render in their native ratio, producing a tall portrait crop on the song page.
   We use both higher specificity (img.cover-art) AND !important so this rule
   wins regardless of which other CSS file ends up loading after this one. */
.card-dark-cover img.cover-art,
.card-dark-cover .cover-art {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 10px !important;
  max-width: 100% !important;
}

/* A23 — Score tag pill badge */
.score-tag {
  display: inline-block;
  background: #ba478f;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* A24 — Inline edit button (small, faint pink border) */
.btn-edit-inline {
  background: none;
  border: 1px solid rgba(255, 105, 180, 0.4);
  color: #ff69b4;
  padding: 2px 7px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.75rem;
  margin-left: 6px;
  vertical-align: middle;
}

/* A25 — Rate button, block-width, pink border */
.btn-rate-block {
  background: none;
  border: 1px solid rgba(255, 105, 180, 0.4);
  color: #ff69b4;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  width: 100%;
}

/* A26 — Score input (compact, dark, centered) */
.input-score {
  width: 60px;
  text-align: center;
  background: #333;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 4px;
}

/* A27 — Score save button (pink, bold) */
.btn-score-save {
  background: #ff69b4;
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 4px;
}

/* ── Extracted inline styles from song.html + album.html ──────────────── */

/* Structural */
.song-left-col { display: flex; flex-direction: column; gap: 20px; }
.song-center-col { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* Score boxes */
.song-score-label { color: #ff69b4; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; }
.song-score-subtext { font-size: 0.72rem; color: #a0a0a0; margin-top: 4px; }
.song-rating-count { font-size: 0.75rem; color: #ccc; margin-top: 4px; }

/* Preview player */
.song-preview-player { text-align: center; }
.song-preview-label { color: #ff69b4; font-size: 0.85rem; margin-bottom: 10px; font-weight: 700; }
.song-preview-controls { display: flex; align-items: center; gap: 12px; justify-content: center; }
.song-preview-play-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid #ff69b4; background: rgba(255,105,180,0.1);
  color: #ff69b4; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; font-size: 1rem;
}
.song-preview-progress-track {
  flex: 1; position: relative; height: 4px;
  background: #333; border-radius: 2px; overflow: hidden;
}
.song-preview-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ff69b4, #ff00ff);
  border-radius: 2px; transition: width 0.2s linear;
}
.song-preview-time { color: #b0b0b0; font-size: 0.75rem; min-width: 36px; }

/* Song info card */
.song-info-label { color: #ff69b4; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }

/* Shared detail helpers */
.detail-title { color: #ff69b4; }
.detail-subtitle { color: #ccc; }
.detail-section-heading { color: #ff69b4; }
.detail-badge-wrap { margin-top: 12px; }
.badge-local-db {
  display: inline-block; background: #666; color: #fff;
  padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700;
}
.detail-synopsis-body { background: #1a1a1a; padding: 20px; border-radius: 10px; }
.no-underline { text-decoration: none; }
.admin-inline-btn {
  background: none; border: 1px solid rgba(255,105,180,0.4);
  color: #ff69b4; padding: 3px 9px; border-radius: 6px;
  cursor: pointer; font-size: 0.8rem; margin-left: 8px; vertical-align: middle;
}
.admin-separator { border-color: rgba(255,105,180,0.15); margin: 10px 0; }

/* Rating section */
.song-slider-wrap { position: relative; margin-bottom: 4px; padding-top: 28px; }
.song-rating-value-wrap { margin-top: 10px; }
.song-rating-denominator { color: #ff69b4; font-weight: 600; }

/* Sidebar */
.song-sidebar-card { background: #111; padding: 14px; border-radius: 12px; margin-top: 12px; border: 1px solid rgba(255,105,180,0.04); }
.song-sidebar-heading { color: var(--color-accent); margin: 0 0 8px 0; }
.song-sidebar-list { display: flex; flex-direction: column; gap: 8px; }
.song-sidebar-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; padding: 6px; border-radius: 8px;
  transition: background 0.2s;
}
.song-sidebar-link:hover { background: rgba(255,105,180,0.05); }
.song-sidebar-rank {
  font-size: 0.85rem; font-weight: 700; color: #888;
  min-width: 18px; text-align: center;
}
.song-action-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.song-login-prompt { color: #c0c0c0; margin-top: 10px; }

/* Album tracklist */
.album-tracklist { width: 100%; border-collapse: collapse; }
.album-tracklist-header { border-bottom: 1px solid rgba(255,255,255,0.03); }
.album-th { text-align: left; padding: 10px; color: #888; }
.album-th-center { text-align: center; padding: 10px; color: #888; }
.album-track-row { border-bottom: 1px solid rgba(255,255,255,0.02); }
.album-td { padding: 10px; color: #ccc; }
.album-td-title { padding: 10px; color: #fff; }
.album-track-link { text-decoration: none; font-weight: 600; }
.album-track-artist { color: #9b9b9b; font-size: 0.85rem; }
.album-td-center { padding: 10px; text-align: center; color: #aaa; }
.album-td-rating { padding: 10px; text-align: center; }
.album-rated-value { color: #ff69b4; font-weight: 700; }
.album-remove-btn {
  background: transparent; color: #ff6b6b;
  border: 1px solid rgba(255,107,107,0.45);
  padding: 3px 12px; border-radius: 999px;
  font-weight: 600; margin-left: 8px; font-size: 0.78rem;
  letter-spacing: 0.3px; cursor: pointer; transition: all 0.2s;
}
.album-remove-btn:hover { background: rgba(255,107,107,0.12); border-color: rgba(255,107,107,0.8); }
.album-rate-input {
  background: transparent; border: 1px solid rgba(255,105,180,0.35);
  color: #fff; border-radius: 999px; padding: 3px 10px;
  width: 64px; font-size: 0.78rem; text-align: center; outline: none;
  -moz-appearance: textfield; appearance: textfield;
}
.album-rate-wrap { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.album-save-btn {
  background: transparent; color: #ff69b4;
  border: 1px solid rgba(255,105,180,0.45);
  padding: 3px 12px; border-radius: 999px;
  font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.3px; cursor: pointer; transition: all 0.2s;
}
.album-save-btn:hover { background: rgba(255,105,180,0.12); border-color: rgba(255,105,180,0.9); }
.album-rate-notice {
  margin-top: 10px; padding: 10px 12px; background: #0f0f0f;
  border: 1px solid rgba(255,105,180,0.12); border-radius: 8px;
  color: #aaa; font-size: 0.82rem; line-height: 1.5;
}
.album-rate-notice-icon { color: #ff69b4; margin-right: 6px; }
.album-rate-notice-total { color: #ffd9f7; }
.album-rate-notice-progress { color: #ff69b4; font-weight: 600; }
.album-tracklist-heading { color: var(--color-accent); margin: 0 0 12px 0; }
