/* ===========================================================================
   PMG Artists — site styles

   Loaded after Bootstrap 5.3, whose grid, reset and breakpoints we keep; this
   file supplies the palette, typography and the components the design calls
   for. Mobile-first throughout: the base rules are the phone layout and the
   media queries add to them.

   Palette and type are fixed by CLAUDE.md; the two families are self-hosted
   from /fonts as latin-ext woff2, which covers the Turkish alphabet.
   =========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cinzel-v26-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/cinzel-v26-latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Trirong';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/trirong-v17-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Trirong';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/trirong-v17-latin_latin-ext-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Trirong';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/trirong-v17-latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Trirong';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/trirong-v17-latin_latin-ext-700italic.woff2') format('woff2');
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --pmg-white: #ffffff;
  --pmg-black: #000000;
  --pmg-off-white: #f8f3e8;
  --pmg-gold: #ff8e0f;
  --pmg-light-gray: #b3b3b3;
  --pmg-mid-gray: #575654;
  --pmg-dark-gray: #242224;
  --pmg-red: #ff0000;
  --pmg-light-blue: #1ab7ea;

  --pmg-font-heading: 'Cinzel', Georgia, 'Times New Roman', serif;
  --pmg-font-body: 'Trirong', Georgia, 'Times New Roman', serif;

  --pmg-header-height: 3.25rem;

  /* Album and artist swatches: 128px at the smallest viewport, never past
     256px, growing with the viewport in between. */
  --pmg-card: clamp(128px, 26vw, 256px);

  --pmg-gutter: 1rem;
  --pmg-radius: 0.5rem;
  --pmg-border: 2px;

  --pmg-shadow: 0 0.5rem 1.25rem rgb(0 0 0 / 45%);
  --pmg-glow: 0 0 0.75rem rgb(255 142 15 / 45%);
}

/* --- Base ----------------------------------------------------------------- */

.pmg-body {
  margin: 0;
  padding-top: var(--pmg-header-height);
  background-color: var(--pmg-dark-gray);
  color: var(--pmg-off-white);
  font-family: var(--pmg-font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

.pmg-main { display: block; }

h1, h2, h3, h4, h5, h6 { font-family: var(--pmg-font-heading); font-weight: 400; }

a { color: var(--pmg-gold); text-decoration: none; }
a:hover, a:focus-visible { color: var(--pmg-white); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--pmg-gold);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; }

.pmg-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--pmg-gold);
  color: var(--pmg-black);
}
.pmg-skip-link:focus { left: 0; }

/* --- Page shells ---------------------------------------------------------- */

.pmg-page {
  max-width: 78rem;
  margin: 0 auto;
  padding: 1.5rem var(--pmg-gutter) 3rem;
  background-color: var(--pmg-mid-gray);
  min-height: 60vh;
}
.pmg-page--narrow { max-width: 46rem; }
.pmg-page--notice { text-align: center; }

.pmg-page__title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--pmg-white);
  margin-bottom: 1rem;
}

.pmg-lede { color: var(--pmg-off-white); max-width: 46rem; }
.pmg-empty { color: var(--pmg-light-gray); font-style: italic; padding: 2rem 0; }

.pmg-eyebrow {
  margin: 0 0 1rem;
  font-family: var(--pmg-font-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pmg-eyebrow a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--pmg-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Track detail: a larger file-music mark, outside the link on purpose. */
.pmg-eyebrow__icon {
  color: var(--pmg-gold);
  font-size: 1.75rem;
  line-height: 1;
}
/* The generic language-branded cover used as the page mark on the album
   list, track list and album detail: framed like album artwork. */
img.pmg-minicover {
  border: var(--pmg-border) solid var(--pmg-gold);
  border-radius: 0.35rem;
  background: var(--pmg-dark-gray);
}

.pmg-section { margin: 2.5rem 0; }
.pmg-section__title {
  font-size: clamp(1.15rem, 3.5vw, 1.75rem);
  color: var(--pmg-white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

/* --- Header --------------------------------------------------------------- */

.pmg-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--pmg-header-height);
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  background: var(--pmg-black);
}

.pmg-hamburger {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0.25rem;
  background: var(--pmg-gold);
  color: var(--pmg-black);
  font-size: 1rem;
  cursor: pointer;
}

.pmg-header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--pmg-white);
  text-decoration: none;
}
.pmg-header__brand:hover { text-decoration: none; }
.pmg-header__logo { height: 1.75rem; width: auto; }
.pmg-header__note { color: var(--pmg-gold); font-size: 0.85rem; }
.pmg-header__word {
  font-family: var(--pmg-font-heading);
  font-size: clamp(0.9rem, 3vw, 1.25rem);
  letter-spacing: 0.08em;
  color: var(--pmg-white);
}

.pmg-langswitch {
  display: flex;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-family: var(--pmg-font-heading);
}
.pmg-langswitch__current { color: var(--pmg-gold); }
.pmg-langswitch__other { color: var(--pmg-light-gray); }

/* --- Drawer menu ---------------------------------------------------------- */

.pmg-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgb(0 0 0 / 55%);
}

.pmg-menu {
  position: fixed;
  z-index: 120;
  top: var(--pmg-header-height);
  left: 0;
  bottom: 0;
  width: min(20rem, 82vw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0;
  background: var(--pmg-black);
  box-shadow: var(--pmg-shadow);
  overflow-y: auto;
}
.pmg-menu[hidden] { display: none; }

.pmg-menu__list { list-style: none; margin: 0; padding: 0; }
.pmg-menu__list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  font-family: var(--pmg-font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--pmg-gold);
}
.pmg-menu__list a:hover { background: rgb(255 142 15 / 12%); text-decoration: none; }
.pmg-menu__list i { font-size: 0.7rem; }

.pmg-menu__close {
  align-self: flex-end;
  margin: 1rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: none;
  color: var(--pmg-gold);
  font-family: var(--pmg-font-heading);
  cursor: pointer;
}

/* --- Hero ----------------------------------------------------------------- */

.pmg-hero {
  background: var(--pmg-black) url('/img/pmg-music-header-bkg.jpg') center / cover no-repeat;
}
.pmg-hero__inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: 2rem var(--pmg-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 9rem;
}
.pmg-hero__heading {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.5rem, 6vw, 2.75rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--pmg-white);
  text-shadow: 0 0.15rem 0.5rem rgb(0 0 0 / 70%);
}
/* Hidden on phones, as the mobile mockup shows. */
.pmg-hero__latest { display: none; }
.pmg-hero__latest img {
  width: clamp(128px, 18vw, 200px);
  border: var(--pmg-border) solid var(--pmg-gold);
  border-radius: var(--pmg-radius);
  box-shadow: var(--pmg-shadow);
}

/* --- Blurb ---------------------------------------------------------------- */

.pmg-blurb {
  background: linear-gradient(100deg, var(--pmg-dark-gray) 0%, #7a4a10 55%, var(--pmg-gold) 130%);
}
.pmg-blurb__inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: 1.75rem var(--pmg-gutter);
  /* Off-white, not gold: the gradient behind this runs into gold on the
     right, and gold-on-gold text disappeared into it. */
  color: var(--pmg-off-white);
  font-size: 1.05rem;
}
.pmg-blurb__inner p:last-child { margin-bottom: 0; }

/* --- Discover sections ---------------------------------------------------- */

.pmg-section--discover {
  margin: 0;
  padding: 1.5rem var(--pmg-gutter);
  background: var(--pmg-mid-gray);
}
.pmg-section--discover .pmg-section__title { max-width: 78rem; margin-inline: auto; }
.pmg-section--discover .pmg-scroller { max-width: 78rem; margin-inline: auto; }

/* --- Scroller ------------------------------------------------------------- */

.pmg-scroller {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.pmg-scroller__track {
  grid-column: 2;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0.25rem 0 0.75rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pmg-scroller__track::-webkit-scrollbar { display: none; }

.pmg-scroller__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: var(--pmg-card);
}
.pmg-scroller--videos .pmg-scroller__item { width: clamp(180px, 34vw, 320px); }

.pmg-scroller__chevron {
  border: 0;
  background: none;
  color: var(--pmg-gold);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  padding: 0.25rem;
  cursor: pointer;
  line-height: 1;
  /* Centred on the artwork itself, not on the whole row (which also holds
     titles and dots): half the media height down from the track's top edge,
     which starts 0.25rem below the row. Square cards are --pmg-card tall;
     the video scroller overrides the midpoint for its 16:9 stills. */
  align-self: start;
  margin-top: calc(0.25rem + var(--pmg-scroller-media-mid, calc(var(--pmg-card) / 2)));
  transform: translateY(-50%);
}
.pmg-scroller--videos {
  --pmg-scroller-media-mid: calc(clamp(180px, 34vw, 320px) * 9 / 32);
}
.pmg-scroller__chevron[hidden] { visibility: hidden; display: block; }
.pmg-scroller__chevron--prev { grid-column: 1; }
.pmg-scroller__chevron--next { grid-column: 3; }

.pmg-scroller__dots {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.pmg-scroller__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pmg-dark-gray);
  cursor: pointer;
}
.pmg-scroller__dot[aria-selected='true'] { background: var(--pmg-white); }

/* Mobile "show all": turns a scroller into a wrapped list. */
.pmg-scroller.is-expanded .pmg-scroller__track {
  flex-wrap: wrap;
  overflow: visible;
  justify-content: center;
}
.pmg-scroller.is-expanded + .pmg-showall .pmg-scroller__chevron { display: none; }

.pmg-showall { text-align: center; margin: 0.25rem 0 0; }
.pmg-showall button {
  border: 0;
  background: none;
  color: var(--pmg-gold);
  font-family: var(--pmg-font-body);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

/* --- Album card ----------------------------------------------------------- */

.pmg-album-card { display: block; text-align: center; color: inherit; }
.pmg-album-card:hover { text-decoration: none; }
.pmg-album-card__art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--pmg-border) solid var(--pmg-gold);
  border-radius: var(--pmg-radius);
  background: var(--pmg-dark-gray);
}
.pmg-album-card__title {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--pmg-gold);
  font-family: var(--pmg-font-body);
}
.pmg-album-card__artist {
  display: block;
  font-size: 0.85rem;
  color: var(--pmg-off-white);
}

/* --- Artist card ---------------------------------------------------------- */

.pmg-artist-card { display: block; text-align: center; color: inherit; }
.pmg-artist-card:hover { text-decoration: none; }

.pmg-artist-card__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
}
.pmg-artist-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: var(--pmg-border) solid var(--pmg-gold);
  background: var(--pmg-light-gray);
  box-shadow: var(--pmg-glow);
}
/* Badge sits in the corner, and only over a real photograph. */
.pmg-artist-card__badge {
  position: absolute;
  right: 2%;
  bottom: 2%;
  width: 30%;
  height: auto;
  border-radius: 50%;
}
.pmg-artist-card__name {
  margin: 0.5rem 0 0;
  font-family: var(--pmg-font-heading);
  font-size: 0.95rem;
  color: var(--pmg-off-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* --- Artists page --------------------------------------------------------- */

.pmg-artists-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 2rem;
}
/* The glow sits on a circular wrapper; the logo PNG is scaled up slightly so
   its own gray ring reaches the wrapper's edge and meets the cast shadow. */
.pmg-artists-intro__badge {
  display: block;
  flex: 0 0 auto;
  width: clamp(128px, 24vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--pmg-glow);
}
.pmg-artists-intro__logo {
  width: 100%;
  height: 100%;
  max-width: none;
}
.pmg-artists-intro__text { color: var(--pmg-off-white); max-width: 42rem; }

.pmg-artist-grid,
.pmg-album-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 1rem;
  grid-template-columns: repeat(auto-fill, minmax(var(--pmg-card), 1fr));
  justify-items: center;
}
.pmg-artist-grid__item,
.pmg-album-grid__item { width: 100%; max-width: 256px; text-align: center; }
.pmg-album-grid__date { display: block; font-size: 0.8rem; color: var(--pmg-light-gray); }

.pmg-join-cta {
  margin: 3rem 0 0;
  text-align: center;
  font-family: var(--pmg-font-heading);
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  text-transform: uppercase;
}

/* --- Artist profile ------------------------------------------------------- */

.pmg-profile { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.pmg-profile__portrait { width: clamp(160px, 45vw, 260px); margin: 0 auto; }
.pmg-profile__name {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  color: var(--pmg-white);
}
.pmg-profile__bio { color: var(--pmg-off-white); }

.pmg-competencies { margin-top: 1rem; }
.pmg-competencies__summary {
  cursor: pointer;
  color: var(--pmg-light-gray);
  font-family: var(--pmg-font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
}
.pmg-competencies__list { color: var(--pmg-light-gray); margin: 0.5rem 0 0; }

/* --- Release header (album + track) --------------------------------------- */

.pmg-release { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.pmg-release__art img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--pmg-border) solid var(--pmg-gold);
  border-radius: var(--pmg-radius);
  display: block;
  margin: 0 auto;
}
.pmg-release__title {
  margin: 0;
  font-size: clamp(1.5rem, 6vw, 2.6rem);
  color: var(--pmg-white);
}
.pmg-release__album,
.pmg-release__artist {
  margin: 0.15rem 0;
  font-family: var(--pmg-font-heading);
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  color: var(--pmg-light-gray);
}
.pmg-release__album a, .pmg-release__artist a { color: inherit; }
.pmg-release__album a:hover, .pmg-release__artist a:hover { color: var(--pmg-gold); }
.pmg-release__featured {
  margin: 0.25rem 0;
  font-family: var(--pmg-font-body);
  font-size: 0.85rem;
  color: var(--pmg-light-gray);
}
.pmg-release__featured a { color: var(--pmg-light-gray); text-decoration: underline; }
.pmg-release__featured a:hover { color: var(--pmg-gold); }
/* Release date and copyright share the quiet gray of the artist line;
   both set in the body face (Trirong). */
.pmg-release__date,
.pmg-release__genres {
  font-family: var(--pmg-font-body);
  font-size: 0.85rem;
  color: var(--pmg-light-gray);
  margin: 0.5rem 0 0;
}
.pmg-release__copyright { font-size: 0.75rem; color: var(--pmg-light-gray); margin: 0.25rem 0 0.5rem; }
.pmg-release__length,
.pmg-release__meta { font-size: 0.9rem; color: var(--pmg-light-gray); }
.pmg-release__meta p { margin: 0 0 0.2rem; }
.pmg-release__meta-label { color: var(--pmg-off-white); }

.pmg-release__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

/* --- Play buttons --------------------------------------------------------- */

.pmg-play {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.pmg-play:hover { transform: scale(1.06); }

/* Album/track primary button: always gold, only the glyph changes. */
.pmg-play--primary {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--pmg-gold);
  color: var(--pmg-black);
  font-size: 1.1rem;
}

/* Per-track button: grey until it is the active track, then white. */
.pmg-play--track {
  width: 1.6rem;
  height: 1.6rem;
  background: var(--pmg-light-gray);
  color: var(--pmg-dark-gray);
  font-size: 0.7rem;
}
.pmg-play--track.is-active { background: var(--pmg-white); color: var(--pmg-black); }

/* --- Streaming service buttons -------------------------------------------- */

.pmg-services { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.pmg-services__link {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pmg-light-gray);
  color: var(--pmg-dark-gray);
}
.pmg-services__link:hover { 
  background: var(--pmg-white); 
  color: var(--pmg-black);
  text-decoration: none; 
}

/* --- Track lists ---------------------------------------------------------- */

.pmg-tracklist { list-style: none; margin: 0; padding: 0; }
.pmg-tracklist__row {
  display: grid;
  grid-template-columns: 2rem 1.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 15%);
}
.pmg-tracklist__row.is-active { background: rgb(0 0 0 / 22%); }

/* Album-detail rows (the plain variant): on phones the length sits on the
   title row, right-aligned, with any featured artists wrapping underneath. */
.pmg-tracklist:not(.pmg-tracklist--compact):not(.pmg-tracklist--index) .pmg-tracklist__length {
  grid-column: 4;
  grid-row: 1;
  text-align: right;
}
.pmg-tracklist:not(.pmg-tracklist--compact):not(.pmg-tracklist--index) .pmg-tracklist__featured {
  grid-column: 3;
  font-family: var(--pmg-font-heading);
}
.pmg-tracklist:not(.pmg-tracklist--compact):not(.pmg-tracklist--index) .pmg-tracklist__featured a {
  text-decoration: none;
}

/* The control column is always rendered, even when a track has no audio, so
   the numbers and titles of every row stay aligned. */
.pmg-tracklist__control { display: grid; place-items: center; min-width: 2rem; }
.pmg-tracklist__thumb { border-radius: 0.2rem; }
.pmg-tracklist__number { color: var(--pmg-light-gray); font-size: 0.85rem; text-align: right; }
.pmg-tracklist__title { color: var(--pmg-gold); min-width: 0; overflow-wrap: anywhere; }
.pmg-tracklist__album,
.pmg-tracklist__artists,
.pmg-tracklist__featured {
  color: var(--pmg-off-white);
  font-size: 0.9rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pmg-tracklist__length { color: var(--pmg-light-gray); font-size: 0.85rem; white-space: nowrap; }

.pmg-tracklist--compact .pmg-tracklist__row,
.pmg-tracklist--index .pmg-tracklist__row {
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
}
.pmg-tracklist--compact .pmg-tracklist__album {
  grid-column: 2;
  font-size: 0.8rem;
  color: var(--pmg-light-gray);
}

/* Track index, phones: artwork top-left; album top-right; the main artist,
   featured artists and length stack under the title. Absent spans (no
   featured artists, no length) simply yield no row. */
.pmg-tracklist--index .pmg-tracklist__row {
  row-gap: 0.15rem;
  align-items: start;
}
.pmg-tracklist--index .pmg-tracklist__control { grid-column: 1; grid-row: 1; }
.pmg-tracklist--index .pmg-tracklist__title { grid-column: 2; grid-row: 1; }
.pmg-tracklist--index .pmg-tracklist__album {
  grid-column: 3;
  grid-row: 1;
  text-align: right;
  font-size: 0.8rem;
  color: var(--pmg-light-gray);
}
.pmg-tracklist--index .pmg-tracklist__artists,
.pmg-tracklist--index .pmg-tracklist__featured {
  grid-column: 2;
  font-size: 0.8rem;
  color: var(--pmg-light-gray);
  text-align: left;
  white-space: normal;
}
/* The length closes the stack, flush with the row's right edge. */
.pmg-tracklist--index .pmg-tracklist__length {
  grid-column: 2 / -1;
  font-size: 0.8rem;
  color: var(--pmg-light-gray);
  text-align: right;
  white-space: normal;
}

/* --- Listing heads (albums, tracks) --------------------------------------- */

.pmg-listing-head {
  position: sticky;
  top: var(--pmg-header-height);
  z-index: 50;
  margin: -1.5rem calc(var(--pmg-gutter) * -1) 1rem;
  padding: 0.75rem var(--pmg-gutter);
  background: var(--pmg-mid-gray);
  box-shadow: 0 0.4rem 0.6rem rgb(0 0 0 / 25%);
}
.pmg-listing-head__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 5vw, 2.2rem);
  color: var(--pmg-white);
  text-transform: uppercase;
}
.pmg-listing-head__controls { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.pmg-field { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.pmg-field__label { color: var(--pmg-off-white); white-space: nowrap; }
.pmg-field__input {
  background: var(--pmg-light-gray);
  color: var(--pmg-dark-gray);
  border: 1px solid var(--pmg-gold);
  border-radius: 0.2rem;
  padding: 0.2rem 0.4rem;
  font-family: var(--pmg-font-body);
  font-size: 0.85rem;
  min-width: 0;
}

/* Phones: the two dropdowns (sort, genre) share a row and the search box
   wraps to a full row of its own, keeping the sticky listing header well
   under a third of an iPhone SE screen while every control stays tappable. */
@media (max-width: 575.98px) {
  .pmg-listing-head__controls .pmg-field { flex: 1 1 45%; min-width: 0; }
  .pmg-listing-head__controls .pmg-field__input { flex: 1; width: 100%; }
}

/* --- Video cards and overlay ---------------------------------------------- */

.pmg-video-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
/* Still and film-strip frame share one 16:9 box; the frame is a transparent
   PNG stretched over the still as an overlay (never a border-image, which
   tiled and duplicated itself). */
.pmg-video-card__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: transparent;
  border-radius: 1.45rem;
}
.pmg-video-card__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Rounded so the still's corners tuck out of sight behind the film-strip
     overlay instead of poking past its frame. */
  border-radius: 1.45rem;
}
.pmg-video-card__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* Service mark: a coloured glyph over the still — YouTube red, Vimeo blue,
   local files off-white — kept legible with a soft dark halo. */
.pmg-video-card__service {
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  color: var(--pmg-white);
  font-size: 1.3rem;
  line-height: 1;
  text-shadow: 0 0 0.4rem rgb(0 0 0 / 85%);
}
.pmg-video-card__service--youtube { color: var(--pmg-red); }
.pmg-video-card__service--vimeo { color: var(--pmg-light-blue); }
.pmg-video-card__service--local { color: var(--pmg-off-white); }

.pmg-video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.pmg-video-modal[hidden] { display: none; }
.pmg-video-modal__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 80%); }
.pmg-video-modal__panel {
  position: relative;
  width: min(60rem, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1rem;
  background: var(--pmg-dark-gray);
  border: var(--pmg-border) solid var(--pmg-gold);
  border-radius: var(--pmg-radius);
}
.pmg-video-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: var(--pmg-gold);
  color: var(--pmg-black);
  cursor: pointer;
}
.pmg-video-modal__title { margin: 0 2.5rem 0.75rem 0; font-size: 1.2rem; color: var(--pmg-white); }
.pmg-video-modal__stage { aspect-ratio: 16 / 9; background: var(--pmg-black); }
.pmg-video-modal__stage iframe,
.pmg-video-modal__stage video { width: 100%; height: 100%; border: 0; display: block; }
.pmg-video-modal__description { margin: 0.75rem 0 0; color: var(--pmg-light-gray); font-size: 0.9rem; }

/* --- Lyrics --------------------------------------------------------------- */

.pmg-lyrics__tabs { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.pmg-lyrics__tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 0.2rem 0;
  color: var(--pmg-light-gray);
  font-family: var(--pmg-font-body);
  font-size: 0.95rem;
  cursor: pointer;
}
.pmg-lyrics__tab[aria-selected='true'] {
  color: var(--pmg-gold);
  border-bottom-color: var(--pmg-gold);
}
/* The panel grows with its content — deliberately not a scrolling box. */
.pmg-lyrics__panel { color: var(--pmg-off-white); }
.pmg-lyrics__panel[hidden] { display: none; }
.pmg-lyrics__alt-title { font-family: var(--pmg-font-heading); color: var(--pmg-white); }

/* --- Credits -------------------------------------------------------------- */

.pmg-credits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem 2rem;
  grid-template-columns: 1fr;
}
.pmg-credits__role { color: var(--pmg-light-gray); }
.pmg-credits__note { color: var(--pmg-light-gray); font-size: 0.85rem; }

/* --- Forms and buttons ---------------------------------------------------- */

.pmg-form { max-width: 34rem; margin-top: 1.5rem; }
.pmg-form__field { margin-bottom: 1rem; }
.pmg-form__label { display: block; margin-bottom: 0.25rem; color: var(--pmg-off-white); }
.pmg-form__input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--pmg-light-gray);
  border-radius: 0.25rem;
  background: var(--pmg-off-white);
  color: var(--pmg-dark-gray);
  font-family: var(--pmg-font-body);
}
.pmg-form__input.is-invalid { border-color: var(--pmg-red); }
.pmg-form__input--area { min-height: 8rem; resize: vertical; }
.pmg-form__error { margin: 0.25rem 0 0; color: var(--pmg-red); font-size: 0.85rem; }

.pmg-button {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: 0.25rem;
  background: var(--pmg-light-gray);
  color: var(--pmg-dark-gray);
  font-family: var(--pmg-font-heading);
  cursor: pointer;
}
.pmg-button--gold { background: var(--pmg-gold); color: var(--pmg-black); }
.pmg-button:hover { text-decoration: none; filter: brightness(1.1); }

.pmg-alert { padding: 0.75rem 1rem; border-radius: 0.25rem; }
.pmg-alert--success { background: rgb(255 142 15 / 18%); border: 1px solid var(--pmg-gold); }

.pmg-contact { list-style: none; margin: 1.5rem 0; padding: 0; }
.pmg-contact__item { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.pmg-contact__item i { color: var(--pmg-gold); width: 1.25rem; text-align: center; }

/* --- Footer --------------------------------------------------------------- */

.pmg-footer { background: var(--pmg-black); padding: 2rem var(--pmg-gutter) 1.5rem; }
.pmg-footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.pmg-footer__brand img { width: clamp(140px, 40vw, 200px); height: auto; }

.pmg-social { display: flex; gap: 0.6rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.pmg-social__link {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pmg-white);
  font-size: 1rem;
}
.pmg-social__link:hover { text-decoration: none; filter: brightness(1.15); }
.pmg-social__link--facebook { background: #1877f2; }
.pmg-social__link--x { background: #000; border: 1px solid #333; }
.pmg-social__link--youtube { background: #ff0000; }
.pmg-social__link--instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.pmg-social__link--whatsapp { background: #25d366; }

.pmg-footer__rule { border: 0; border-top: 1px solid rgb(255 255 255 / 30%); margin: 1.25rem auto; max-width: 70rem; }

.pmg-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  font-size: 0.72rem;
}
.pmg-footer__links { list-style: none; margin: 0; padding: 0; }
.pmg-footer__links a { color: var(--pmg-off-white); }
.pmg-footer__links li::before { content: '\2022'; color: var(--pmg-gold); margin-right: 0.4rem; }
.pmg-footer__copyright { margin: 0; color: var(--pmg-gold); }

/* ===========================================================================
   Breakpoints — Bootstrap 5.3's standard widths.
   =========================================================================== */

/* ≥576px (sm) */
@media (min-width: 576px) {
  .pmg-credits__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmg-footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ≥768px (md) — the mobile-only rules stop applying here. */
@media (min-width: 768px) {
  :root { --pmg-gutter: 1.5rem; }

  .pmg-hero__latest { display: block; }

  .pmg-profile { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .pmg-profile__portrait { margin: 0; }

  .pmg-release { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .pmg-release--track { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pmg-release__meta { text-align: right; }

  /* The listing head only needs to be pinned on small screens. */
  .pmg-listing-head { position: static; box-shadow: none; }

  /* Album-detail rows from md up: one row of five columns — play, number,
     title, featured (centred), length (right-justified, never wrapping). */
  .pmg-tracklist:not(.pmg-tracklist--compact):not(.pmg-tracklist--index) .pmg-tracklist__row {
    grid-template-columns: 2rem 1.5rem minmax(0, 2fr) minmax(0, 1.5fr) max-content;
  }
  .pmg-tracklist:not(.pmg-tracklist--compact):not(.pmg-tracklist--index) .pmg-tracklist__title,
  .pmg-tracklist:not(.pmg-tracklist--compact):not(.pmg-tracklist--index) .pmg-tracklist__featured {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .pmg-tracklist:not(.pmg-tracklist--compact):not(.pmg-tracklist--index) .pmg-tracklist__featured {
    grid-column: 4;
    grid-row: 1;
    text-align: center;
  }
  .pmg-tracklist:not(.pmg-tracklist--compact):not(.pmg-tracklist--index) .pmg-tracklist__length {
    grid-column: 5;
    white-space: nowrap;
    justify-self: end;
  }

  /* Artwork | Track Title | Album Title | Main Artist | Featured | Length.
     Text columns shrink and wrap; the length column is max-content so the
     duration never drops onto a second row from md up. */
  .pmg-tracklist--index .pmg-tracklist__row {
    grid-template-columns: 3rem minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) max-content;
    align-items: start;
  }
  .pmg-tracklist--index .pmg-tracklist__control { grid-column: 1; }
  .pmg-tracklist--index .pmg-tracklist__title { grid-column: 2; }
  .pmg-tracklist--index .pmg-tracklist__album {
    grid-column: 3;
    text-align: left;
    font-size: 0.9rem;
  }
  .pmg-tracklist--index .pmg-tracklist__artists { grid-column: 4; }
  .pmg-tracklist--index .pmg-tracklist__featured { grid-column: 5; }
  .pmg-tracklist--index .pmg-tracklist__length {
    grid-column: 6;
    text-align: right;
    white-space: nowrap;
    justify-self: end;
  }
  .pmg-tracklist--index .pmg-tracklist__title,
  .pmg-tracklist--index .pmg-tracklist__album,
  .pmg-tracklist--index .pmg-tracklist__artists,
  .pmg-tracklist--index .pmg-tracklist__featured {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .pmg-tracklist--index .pmg-tracklist__artists,
  .pmg-tracklist--index .pmg-tracklist__featured { grid-row: 1; font-size: 0.9rem; }
  .pmg-tracklist--index .pmg-tracklist__control,
  .pmg-tracklist--index .pmg-tracklist__title,
  .pmg-tracklist--index .pmg-tracklist__album,
  .pmg-tracklist--index .pmg-tracklist__length { grid-row: 1; }

  .pmg-tracklist--compact .pmg-tracklist__row {
    grid-template-columns: 3rem minmax(0, 2fr) minmax(0, 1.5fr) auto;
  }
  .pmg-tracklist--compact .pmg-tracklist__album { grid-column: auto; font-size: 0.9rem; }

  .pmg-artists-intro { flex-direction: row; text-align: start; align-items: center; }
  .pmg-artists-intro__text { margin: 0; }

  .pmg-credits__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .pmg-footer__top { flex-direction: row; justify-content: space-around; }
}

/* ≥992px (lg) */
@media (min-width: 992px) {
  .pmg-hero__inner { min-height: 12rem; padding-block: 3rem; }
  .pmg-page { padding-inline: 2rem; }
}

/* Users who prefer less motion get instant jumps instead of smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
  .pmg-scroller__track { scroll-behavior: auto; }
  .pmg-play { transition: none; }
}
