/* ==========================================================================
   elektromekka.com — music page
   Tokens, base, components, admin, responsive.
   Direction 3 identity: Acid Lime / Deep Violet on deep black.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --ground: #0A0A0A;
  --surface: #141417;
  --surface-2: #1B1B1F;
  --surface-3: #0F0F12;
  --border: #2A2A2E;
  --border-strong: #4E4E57;
  --text: #E5E5E5;
  --muted: #A3A3AC;          /* 7.1:1 on ground, 5.1:1 on surface */
  --placeholder: #8E8E98;
  --lime: #C6FF00;           /* primary accent: actions, ratings, playing */
  --violet: #7A00FF;         /* secondary accent: fills, bars, badges — not small text */
  --violet-text: #D6BBFF;    /* violet for text */
  --violet-dim: #2A1446;
  --ink: #0A0A0A;            /* text on lime */

  --font-ui: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mark: "Audiowide", "Orbitron", sans-serif;      /* wordmark only */
  --font-label: "Michroma", "Eurostile", sans-serif;     /* letterspaced caps */

  --radius: 6px;
  --radius-lg: 10px;
  --container: 1120px;
  --gutter: 24px;
  --glow-lime: 0 0 24px rgba(198, 255, 0, 0.35);
  --glow-violet: 0 0 80px rgba(122, 0, 255, 0.28);
}

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lime); }
a:hover { color: var(--text); }

img { display: block; max-width: 100%; }

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

::placeholder { color: var(--placeholder); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; fill: currentColor; }

/* ---- Type helpers ------------------------------------------------------ */
.eyebrow {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--accent { color: var(--lime); }

.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---- Header / footer --------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .container {
  min-height: 72px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px;
}
.site-header__left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-header__right { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }

.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
  padding: 12px 0;
}
.logo__mark {
  width: 36px; height: 36px; flex: 0 0 auto;
  filter: drop-shadow(0 0 6px rgba(198, 255, 0, 0.45));
}
.logo__name {
  font-family: var(--font-mark);
  font-size: 22px; line-height: 1; letter-spacing: 0.01em;
  display: flex; align-items: baseline; gap: 2px;
}
.logo__tld { color: var(--lime); font-size: 0.6em; }

.tagline {
  font-family: var(--font-label);
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--lime);
  padding: 12px 0;
}

.site-footer { border-top: 1px solid var(--border); margin-top: 64px; }
.site-footer .container {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px;
}
.site-footer .logo { padding: 0; gap: 10px; }
.site-footer .logo__mark { width: 22px; height: 22px; filter: none; }
.site-footer .logo__name { font-size: 14px; }
.site-footer__line {
  font-family: var(--font-label);
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
}
.site-footer nav { display: flex; gap: 20px; font-size: 13px; }
.site-footer nav a { color: var(--muted); text-decoration: none; display: flex; align-items: center; min-height: 44px; }
.site-footer nav a:hover { color: var(--text); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px;
  border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--text);
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.btn:hover { border-color: var(--border-strong); color: var(--text); }
.btn--primary {
  border-color: transparent; background: var(--lime); color: var(--ink);
  font-size: 15px; font-weight: 600; padding: 0 24px 0 18px;
}
.btn--primary:hover { background: #D9FF4D; color: var(--ink); }
.btn--lg { min-height: 48px; }
.btn--block { width: 100%; }

/* icon-only round button, 44px target */
.btn-icon {
  width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: transparent; color: var(--text);
}
.btn-icon:hover { background: var(--surface-2); }
.btn-icon--outline { border: 1px solid var(--border); }
.btn-icon--muted { color: var(--muted); }
.btn-icon .icon { width: 22px; height: 22px; }

/* ---- Hero (album) ------------------------------------------------------ */
.hero {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  column-gap: 48px; row-gap: 18px; align-items: start;
  padding: 56px 0 40px;
}
.hero__cover {
  grid-row: 1 / span 2;
  width: 320px; height: 320px; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--glow-violet);
}
.hero__head, .hero__more { grid-column: 2; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero__title {
  margin: 0; font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__artist { font-size: 20px; font-weight: 500; color: var(--lime); }
.hero__text { margin: 0; max-width: 560px; color: var(--muted); text-wrap: pretty; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 8px; }

.rating-summary { display: flex; align-items: center; gap: 10px; }
.rating-summary__value { font-size: 15px; font-weight: 600; }
.rating-summary__count { font-size: 13px; color: var(--muted); }

/* ---- Stars (display) ---------------------------------------------------
   <span class="stars" style="--v: 4.3" role="img" aria-label="4.3 of 5"></span>
   Outline layer + lime fill clipped to --v / 5. Cell = 24 units, star = 20. */
.stars {
  --v: 0;
  --size: 16px;
  position: relative; display: inline-block;
  width: calc(var(--size) * 1.2 * 5 - var(--size) * 0.2);
  height: var(--size);
  vertical-align: middle;
  flex: 0 0 auto;
}
.stars::before, .stars::after {
  content: ""; position: absolute; inset: 0;
  background: var(--lime);
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: calc(var(--size) * 1.2) var(--size); mask-size: calc(var(--size) * 1.2) var(--size);
}
.stars::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28.8 24'%3E%3Cpath d='M12 2.6L14.5 9.2 21.5 9.5 16 13.9 17.9 20.7 12 16.8 6.1 20.7 8 13.9 2.5 9.5 9.5 9.2Z' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28.8 24'%3E%3Cpath d='M12 2.6L14.5 9.2 21.5 9.5 16 13.9 17.9 20.7 12 16.8 6.1 20.7 8 13.9 2.5 9.5 9.5 9.2Z' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
}
.stars::after {
  width: calc(var(--v) / 5 * 100%);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28.8 24'%3E%3Cpath d='M12 2.6L14.5 9.2 21.5 9.5 16 13.9 17.9 20.7 12 16.8 6.1 20.7 8 13.9 2.5 9.5 9.5 9.2Z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28.8 24'%3E%3Cpath d='M12 2.6L14.5 9.2 21.5 9.5 16 13.9 17.9 20.7 12 16.8 6.1 20.7 8 13.9 2.5 9.5 9.5 9.2Z' fill='%23000'/%3E%3C/svg%3E");
}
.stars--lg { --size: 20px; }
.stars--sm { --size: 13px; }

/* ---- Player ------------------------------------------------------------ */
.player {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 48px;
  display: flex; flex-direction: column; gap: 20px;
}
.player__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.player__transport { display: flex; align-items: center; gap: 8px; }
.player__play {
  width: 56px; height: 56px; padding: 0; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--ink); box-shadow: var(--glow-lime);
}
.player__play:hover { background: #D9FF4D; }
.player__play .icon { width: 24px; height: 24px; }
.player__thumb { display: none; width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.player__info { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.player__title { font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__sub { font-size: 13px; color: var(--muted); }
.player__volume { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.player__volume input[type="range"] { width: 110px; accent-color: var(--lime); }
.player__progress { display: none; }

/* Waveform: two layers of bars; lime layer clipped to --p (0–100%) */
.wave {
  --p: 0%;
  position: relative; height: 64px; cursor: pointer; user-select: none;
  border-radius: 4px;
}
.wave svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wave__base { fill: #4E4E57; }
.wave__fill { fill: var(--lime); clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.wave__head {
  position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px;
  background: #F2F2F2; pointer-events: none;
}
.player__times { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* icon swap: .is-playing on the player and on the row that is audibly playing;
   .is-current marks the loaded title (highlight) whether playing or paused */
.icon-pause { display: none; }
.is-playing .icon-play { display: none; }
.is-playing .icon-pause { display: block; }

/* ---- Title list -------------------------------------------------------- */
.tracks { list-style: none; margin: 0; padding: 0; }
.tracks__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.tracks__head h2 { margin: 0; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 400; }
.tracks__hint { font-size: 13px; color: var(--muted); }

.track-item { border-bottom: 1px solid var(--border); }
.track-item.is-current { background: var(--surface); border-radius: 8px; margin-top: 8px; border-bottom: 0; }
.track-item.is-current + .track-item { border-top: 1px solid var(--border); }

.track {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 14px 8px;
}
.track__main { display: flex; align-items: center; gap: 16px; flex: 1 1 320px; min-width: 0; }
.track__index { width: 24px; font-family: var(--font-label); font-size: 11px; color: var(--muted); }
.is-current .track__index { color: var(--lime); }
.is-current .track__play { background: var(--lime); color: var(--ink); border-color: transparent; }

.track__thumb {
  position: relative; width: 56px; height: 56px; padding: 0; border: 0;
  border-radius: 4px; overflow: hidden; background: var(--surface-2); color: #fff; flex: 0 0 auto;
}
.track__thumb img { width: 100%; height: 100%; object-fit: cover; }
.track__thumb .icon { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; opacity: 0; }
.track__thumb:hover img, .track__thumb:focus-visible img { opacity: 0.5; }
.track__thumb:hover .icon, .track__thumb:focus-visible .icon { opacity: 1; }
.is-current .track__thumb { color: var(--lime); }
.is-current .track__thumb img { opacity: 0.5; }
.is-current .track__thumb .icon { opacity: 1; }

.track__body {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px;
  text-align: left; padding: 0; border: 0; background: transparent; color: inherit;
}
.track__title { font-size: 16px; font-weight: 600; }
.is-current .track__title { color: var(--lime); }
.track__text { font-size: 13px; color: var(--muted); }
.track__meta { display: none; font-size: 12px; color: var(--muted); }

.track__aside { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-left: auto; }
.track__duration { width: 40px; text-align: right; font-size: 13px; color: var(--muted); }
.track__rating { display: flex; align-items: center; gap: 8px; width: 150px; }
.track__rating-value { font-size: 13px; font-weight: 600; }
.track__rating-count { font-size: 12px; color: var(--muted); }
.track__comments {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px;
  border: 0; background: transparent; color: var(--muted); font-size: 13px;
}
.track__comments:hover, .is-open .track__comments { color: var(--lime); }
.track__comments .icon { width: 18px; height: 18px; }

/* ---- Comments panel ---------------------------------------------------- */
.track-panel {
  background: var(--surface); border-top: 1px solid var(--border);
  border-radius: 0 0 8px 8px; padding: 28px 24px; margin-bottom: 8px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 40px;
}
.track-panel[hidden] { display: none; }
.track-item:not(.is-current) .track-panel { border-radius: 8px; border: 1px solid var(--border); margin-top: 8px; }

.composer { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.composer h3, .comments h3 { margin: 0; font-size: 18px; font-weight: 600; }
.composer__intro { display: flex; flex-direction: column; gap: 4px; }
.composer__hint { font-size: 13px; color: var(--muted); }
.composer__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.composer__note { font-size: 12px; color: var(--muted); }

/* rating input: five 44px buttons; .is-on = filled */
.rate { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rate legend { padding: 0; font-size: 13px; color: var(--muted); }
.rate__row { display: flex; align-items: center; gap: 2px; color: var(--lime); }
.rate__btn {
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit;
  display: inline-flex; align-items: center; justify-content: center;
}
.rate__btn .icon { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.rate__btn.is-on .icon { fill: currentColor; }
.rate__value { margin-left: 8px; font-size: 14px; font-weight: 600; color: var(--text); min-width: 3em; }

.comments { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.comments__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.comments__sort { font-size: 13px; color: var(--muted); }
.comments__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.comments__empty { font-size: 14px; color: var(--muted); }
.comments__more { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }

.comment { display: flex; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.comment__avatar {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 999px;
  background: var(--violet-dim); color: var(--violet-text);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.comment__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.comment__name { font-size: 14px; font-weight: 600; }
.comment__time { font-size: 12px; color: var(--muted); }
.comment__text { margin: 0; font-size: 15px; line-height: 1.55; }

/* ---- Forms ------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field__label { font-size: 13px; color: var(--muted); }
.input, .textarea {
  width: 100%; padding: 0 14px; min-height: 44px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 15px;
}
.input:focus, .textarea:focus { outline: 0; border-color: var(--lime); }
.textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 112px; }
.input--sm { min-height: 40px; padding: 0 12px; font-size: 14px; }
.input--title { font-weight: 600; font-size: 15px; }

.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--lime); }

/* ---- Admin ------------------------------------------------------------- */
.badge {
  font-family: var(--font-label); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: #fff; background: var(--violet); padding: 7px 10px 6px; border-radius: 4px;
}
.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 32px; padding-top: 44px;
}
.page-head__title { margin: 0; font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.page-head__left { display: flex; flex-direction: column; gap: 8px; }
.page-head__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--lime); }

.admin { display: flex; flex-direction: column; gap: 32px; padding-bottom: 64px; }
.admin-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 32px; align-items: start;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 20px; margin: 0;
}
.card h2 { margin: 0; font-size: 18px; font-weight: 600; }
.card__section { padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.card__section > .field__label { padding-bottom: 8px; }

.cover-field { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.cover-field__img { width: 140px; height: 140px; object-fit: cover; border-radius: var(--radius); flex: 0 0 auto; }
.cover-field__side { display: flex; flex-direction: column; gap: 10px; flex: 1 1 160px; min-width: 0; }
.cover-field__hint { font-size: 12px; color: var(--muted); }
.file-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius);
  font-size: 14px; font-weight: 500; cursor: pointer;
}
.file-btn:hover { border-color: var(--lime); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.section-head__hint { font-size: 13px; color: var(--muted); }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 32px 24px; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-3);
  transition: border-color 120ms, background 120ms;
}
.dropzone.is-over { border-color: var(--lime); background: var(--surface); }
.dropzone .icon { width: 32px; height: 32px; color: var(--lime); }
.dropzone__title { font-size: 16px; font-weight: 600; }
.dropzone__hint { font-size: 13px; color: var(--muted); }
.dropzone .btn { margin-top: 6px; }

.title-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.title-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; display: flex; gap: 14px; align-items: flex-start;
}
.title-card.is-uploading { border-color: var(--violet); }
.title-card__handle { cursor: grab; }
.title-card__handle:disabled { color: var(--border-strong); cursor: default; }
.title-card__img { display: flex; flex-direction: column; gap: 8px; align-items: center; flex: 0 0 auto; }
.title-card__img img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); }
.title-card__img label { font-size: 12px; color: var(--lime); cursor: pointer; min-height: 24px; }
.title-card__img .img-empty {
  width: 72px; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); font-size: 11px; cursor: pointer; text-align: center;
}
.title-card__img .img-empty .icon { width: 18px; height: 18px; }
.title-card__fields { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.title-card__row { display: flex; align-items: center; gap: 12px; }
.title-card__row .input { flex: 1 1 auto; min-width: 0; }
.title-card__index { font-family: var(--font-label); font-size: 11px; color: var(--muted); }
.title-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.title-card__ok { color: var(--lime); display: inline-flex; align-items: center; gap: 4px; }
.title-card__ok .icon { width: 14px; height: 14px; }

.progress { display: flex; flex-direction: column; gap: 6px; }
.progress__label { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.progress__label em { font-style: normal; color: var(--violet-text); }
.progress__bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress__bar > span { display: block; height: 100%; width: var(--p, 0%); background: var(--violet); border-radius: 999px; }

/* ---- Responsive: phone layout (≤ 759px) -------------------------------- */
@media (max-width: 759px) {
  :root { --gutter: 20px; }

  .site-header .container { min-height: 64px; }
  .logo__mark { width: 30px; height: 30px; }
  .logo__name { font-size: 17px; }
  .tagline { font-size: 8px; letter-spacing: 0.26em; text-align: right; max-width: 110px; }

  /* compact hero: small cover beside the title, text and actions full width below */
  .hero { grid-template-columns: 140px minmax(0, 1fr); column-gap: 16px; row-gap: 16px; padding: 20px 0 28px; }
  .hero__cover { grid-row: 1; width: 140px; height: 140px; box-shadow: 0 0 40px rgba(122, 0, 255, 0.3); }
  .hero__head { gap: 6px; align-self: center; }
  .hero__more { grid-column: 1 / -1; gap: 14px; }
  .hero__title { font-size: 28px; line-height: 1.05; }
  .hero__artist { font-size: 15px; }
  .hero__text { font-size: 14px; }
  .hero__actions { padding-top: 0; }
  .hero__actions .btn--primary { width: 100%; }

  /* player docks to the bottom as a mini bar */
  .player {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    margin: 0; padding: 0; border-radius: 0; border-width: 1px 0 0; gap: 0;
  }
  .player__progress { display: block; height: 3px; background: var(--border); }
  .player__progress > span { display: block; height: 100%; width: var(--p, 0%); background: var(--lime); }
  .player__row { flex-wrap: nowrap; gap: 12px; padding: 10px 16px 22px; }
  .player__thumb { display: block; flex: 0 0 auto; }
  .player__info { flex: 1 1 auto; order: 1; }
  .player__title { font-size: 14px; }
  .player__sub { font-size: 12px; }
  .player__transport { order: 2; gap: 0; }
  .player__prev, .player__volume, .player__wave, .player__times, .player__eyebrow { display: none; }
  .player__play { width: 48px; height: 48px; box-shadow: 0 0 18px rgba(198, 255, 0, 0.35); }
  .player__play .icon { width: 22px; height: 22px; }
  main { padding-bottom: 100px; }

  /* compact rows */
  .tracks__head h2 { font-size: 10px; }
  .track { padding: 10px 0; gap: 12px; flex-wrap: nowrap; }
  .track__main { gap: 12px; flex: 1 1 auto; }
  .track__index, .track__play, .track__text, .track__duration, .track__comments { display: none; }
  .track__thumb { width: 44px; height: 44px; }
  .track__thumb img { opacity: 0.7; }
  .track__thumb .icon { opacity: 1; width: 18px; height: 18px; margin: -9px 0 0 -9px; }
  .track__title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .track__meta { display: block; }
  .track__aside { margin-left: 0; gap: 6px; flex: 0 0 auto; }
  .track__rating { width: auto; gap: 6px; }
  .track__rating .stars { --size: 13px; }
  .track__rating-count { display: none; }
  .track-item.is-current { background: transparent; margin-top: 0; border-radius: 0; border-bottom: 1px solid var(--border); }
  .track-item.is-current + .track-item { border-top: 0; }
  .track-panel { padding: 20px 16px; gap: 28px; border-radius: 8px; margin: 8px 0; border: 1px solid var(--border); }

  .site-footer { margin-top: 40px; }

  /* admin */
  .page-head { padding-top: 28px; }
  .page-head__title { font-size: 28px; }
  .title-card { flex-wrap: wrap; }
  .title-card__fields { flex-basis: 100%; order: 3; }
  .title-card > [data-action="remove"] { margin-left: auto; }
}
