/* ==========================
   Album Header (overhang art)
   Uses /img/album-covers/
   ========================== */

.album-hero {
  position: relative;
  margin: 18px auto 14px;
  padding: 18px 18px 18px 18px;

  /* Leave room for the overhanging art on the left */
  padding-left: 180px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(30, 34, 38, 0.78);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  overflow: visible; /* key: allow the image to overhang */
}

.album-hero__art {
  position: absolute;
  left: 14px;
  top: -18px;         /* overhang upwards */
  width: 150px;
  height: 150px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);

  background: rgba(0,0,0,0.18);
  overflow: hidden;   /* keeps image neatly clipped */
}

.album-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



.album-hero__text {
  position: relative;
  z-index: 1;
}

.album-hero__brand {
  font-weight: 700;
  color: #9ACAF0; /* similar to synth title blue */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

.album-hero__title {
  margin: 6px 0 6px;
  font-size: 1.8rem;
  color: #E6E5DF; /* Roland White */
  line-height: 1.12;
}

.album-hero__sub {
  opacity: 0.90;
  color: #8EC0EB; /* similar to music index */
  font-size: 1.05rem;
}

/* Mobile: stack text under the art */
@media (max-width: 720px) {
  .album-hero {
    padding-left: 18px;
    padding-top: 168px; /* make room above for the art */
  }

  .album-hero__art {
    left: 18px;
    top: -18px;
    width: 140px;
    height: 140px;
  }

  .album-hero__title {
    font-size: 1.55rem;
  }
}

/* Track row hover + active playing states */
.track-row {
  transition: background-color 120ms ease, box-shadow 120ms ease;
  border-radius: 10px;          /* optional, matches your card vibe */
}

/* Pastel orange hover */
.track-row:hover {
  background: rgba(255, 170, 90, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 170, 90, 0.22);
}

/* Bold orange when playing (persists even if not hovered) */
.track-row.is-playing {
  background: rgba(255, 140, 40, 0.38);
  box-shadow: inset 0 0 0 2px rgba(255, 140, 40, 0.55);
}

/* If you want a subtle “active” text contrast boost */
.track-row.is-playing .track-title,
.track-row.is-playing .track-meta {
  color: inherit;
}

/* ==========================
   New album template: tidy track rows
   ========================== */

.track-row--album{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
}

/* Star cell: small, consistent, no huge button chrome */
.track-row--album .sim-bookmark{
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #cfcfcf;
  background: #fff;
  border-radius: 8px;
  line-height: 32px;
  text-align: center;
  font-size: 18px;
  cursor: pointer;
}

/* When shortlisted: use your blue semantics */
.track-row--album .sim-bookmark.is-shortlisted{
  border-color: #2b6cff;
  color: #2b6cff;
}

/* Audio fixed width to prevent row bloat */
.track-row--album .track-audio{
  flex: 0 0 150px;
}
.track-row--album .track-audio audio{
  width: 150px;
  max-width: 150px;
}

/* Title takes remaining space, stays on one line */
.track-row--album .track-title{
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Duration fixed width */
.track-row--album .track-meta{
  flex: 0 0 60px;
  text-align: right;
  white-space: nowrap;
  opacity: 0.85;
}

.track-row--album .track-link{
  flex: 0 1 auto;
  max-width: 100px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile: allow wrap but keep order sane */
@media (max-width: 640px){
  .track-row--album{
    flex-wrap: wrap;
    gap: 10px;
  }
  .track-row--album .track-audio{
    flex: 1 1 100%;
    order: 3;
  }
  .track-row--album .track-audio audio{
    width: 100%;
    max-width: 100%;
  }
  .track-row--album .track-title{
    order: 2;
    flex: 1 1 calc(100% - 46px);
  }
  .track-row--album .sim-bookmark{ order: 1; }
  .track-row--album .track-meta{ order: 4; flex: 0 0 auto; }
  .track-row--album .track-link{ order: 5; flex: 1 1 auto; text-align: left; }
}

/* Shortlist grid: 3 per row desktop, responsive */
#shortlistGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}


/* Album template: never let the star button become a "full width bar" */
.track-row--album .sim-bookmark{
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* Shortlist: prevent long titles from breaking the cards */
.short-title{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Ensure the header layout allows truncation */
.short-head{
  display: flex;
  align-items: center;
  gap: 10px;
}

.short-head .short-title{
  flex: 1 1 auto;
  min-width: 0; /* critical for ellipsis in flex layouts */
}

.short-actions{
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Panels: match track-page header alignment */
.panel-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-move{
  margin-left: auto;      /* forces right alignment even if justify-content is missing */
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Album track list: stars must use BLUE shortlist semantics (not green) */
#albumTracks .sim-btn.sim-bookmark{
  background: #0b1f3a;
  border-color: #163a63;
  color: #7fb6ff;
}
#albumTracks .sim-btn.sim-bookmark:hover{
  background: #12305a;
  border-color: #2a66a6;
  color: #b8dcff;
}
#albumTracks .sim-btn.sim-bookmark.is-shortlisted{
  background: #1e6bff;
  border-color: #0b3fa8;
  color: #ffe600;
  box-shadow:
    0 0 0 1px rgba(30,107,255,0.65),
    0 0 14px rgba(30,107,255,0.50);
}
#albumTracks .sim-btn.sim-bookmark.is-shortlisted:hover{
  background: #3b82ff;
  border-color: #1e6bff;
  color: #fff1a8;
}

.short-head .short-title{ min-width: 0; }

#shortlistPanel.is-hidden { display: none !important; }


/* =========================================================
   Album pages: gentle de-emphasis (NOT washed out)
   ========================================================= */

/* Perfect For chips — softer, but still designed */
#overviewPanel .chips .chip-btn{
  background: #dfe3e6 !important;   /* darker than before */
  border: 1px solid #c7ccd1 !important;
  color: #233028 !important;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.06);
}

#overviewPanel .chips .chip-btn:hover,
#overviewPanel .chips .chip-btn:focus{
  background: #d4d9dd !important;
}

/* Active stays strong */
#overviewPanel .chips .chip-btn.is-active,
#overviewPanel .chips .chip-btn[aria-pressed="true"]{
  background: #1f3b2d !important;
  border-color: #1f3b2d !important;
  color: #ffffff !important;
  box-shadow: none;
}


/* Panel move buttons — nudge down, not flatten */
#panelStack .panel-move .panel-btn{
  background: #e3e6e9 !important;   /* not white */
  border: 1px solid #cfd4d8 !important;
  color: #3a4a40 !important;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.08);
}

/* Subtle hover */
#panelStack .panel-move .panel-btn:hover{
  background: #d9dde1 !important;
}

/* Reset button: leave as-is (do NOT over-dim) */
#panelStack .panel-move .panel-reset{
  background: #dde1e4;
  border-color: inherit !important;
  color: inherit !important;
}

.voiceonly-icon {
  width: 28px;
  height: 28px;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.99;
}











@media (max-width: 960px){
  #shortlistGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  #shortlistGrid{ grid-template-columns: 1fr; }
}
