.track-page .post-content { margin-top: 0; }

.track-hero {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 0 0 28px;
  padding: 24px;
  border: 1px solid rgba(127, 127, 127, 0.28);
  border-radius: 16px;
  background: rgba(127, 127, 127, 0.07);
}

.track-hero-cover { display: block; line-height: 0; }
.track-hero-cover img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.track-hero-album {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.track-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.track-hero-meta { margin: 0 0 14px; color: #aaa; font-size: 0.95rem; }
.track-review-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.track-review-status.is-reviewed { color: #b9f6ca; background: rgba(30, 130, 76, 0.22); }
.track-review-status.needs-review { color: #ffe082; background: rgba(180, 130, 0, 0.2); }
.track-review-status a { white-space: nowrap; }

.track-play-button {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  justify-self: end;
  margin-top: 0;
  padding: 7px 12px 7px 10px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(205, 255, 130, 0.85) !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #baff68 0%, #71d993 100%) !important;
  color: #10251b !important;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(111, 218, 139, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.track-play-button span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 37, 27, 0.14);
  font-size: 0.6rem;
}
.track-play-button:hover,
.track-play-button:focus-visible {
  background: linear-gradient(135deg, #d4ff91 0%, #8ae7a8 100%) !important;
  box-shadow: 0 8px 22px rgba(111, 218, 139, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.track-play-button:focus-visible {
  outline: 3px solid rgba(186, 255, 104, 0.35);
  outline-offset: 3px;
}
.track-play-button[hidden] { display: none; }

.track-facts {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid rgba(127, 127, 127, 0.25);
  border-radius: 14px;
  background: rgba(127, 127, 127, 0.055);
}
.track-facts-heading {
  margin: 0 0 12px;
  color: #999;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.track-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.track-fact-group {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(127, 127, 127, 0.2);
  border-radius: 11px;
  background: rgba(127, 127, 127, 0.06);
}
.track-fact-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.track-fact-label h2 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.2;
}
.track-fact-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 800;
}
.track-fact-values {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.track-fact-values li {
  max-width: 100%;
  padding: 5px 9px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(127, 127, 127, 0.22);
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.08);
  font-size: 0.82rem;
  line-height: 1.25;
}
.track-fact-values .track-fact-value-with-note { padding: 0; }
.track-fact-link {
  color: #aaa;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.track-fact-link:visited { color: #aaa; }
.track-fact-link:hover,
.track-fact-link:focus-visible { color: var(--minima-link-base-color, #2a7ae2); }
.track-fact-value-with-note .track-fact-link {
  display: inline-block;
  padding: 5px 0 5px 9px;
}
.track-fact-note-trigger {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 5px;
  border: 0;
  color: #ffcc80;
  background: rgba(255, 167, 38, 0.1);
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
.track-fact-note-trigger:hover,
.track-fact-note-trigger:focus-visible {
  color: #ffcc80;
}
.track-fact-note-trigger:focus-visible {
  border-radius: 999px;
  outline: 2px solid #ffcc80;
  outline-offset: 2px;
}
.track-fact-note-label {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.track-fact-note-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}
.track-fact-note-popover {
  box-sizing: border-box;
  width: min(320px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid #ffcc80;
  border-radius: 12px;
  color: #f5f5f5;
  background: #1e1e3a;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  line-height: 1.45;
}
.track-fact-note-popover::backdrop { background: rgba(0, 0, 0, 0.22); }
.track-fact-note-popover strong { color: #ffcc80; }
.track-fact-note-popover p { margin: 8px 0 0; }
.track-fact-aliases .track-fact-icon { color: #90caf9; background: rgba(66, 165, 245, 0.16); }
.track-fact-establishments .track-fact-icon { color: #ffcc80; background: rgba(255, 167, 38, 0.16); }
.track-fact-deliveries .track-fact-icon { color: #a5d6a7; background: rgba(102, 187, 106, 0.16); }
.track-subtitle-divider { margin: 22px 0; }
.track-edit-actions {
  display: flex;
  justify-content: center;
}
#suggest-edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 12px;
  padding: 5px 14px;
  border: 1px solid lavender;
  border-radius: 6px;
  color: lavender;
  background: none;
  font-size: 0.85em;
  cursor: pointer;
}
#suggest-edit-toggle .github-identity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
  border-left: 1px solid currentColor;
  font-weight: 600;
}
#suggest-edit-toggle .github-identity svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.track-subtitle-list {
  margin: 0;
  padding-left: 0;
  padding-bottom: 60px;
  list-style: none;
}
.sub-edit {
  display: none;
  align-items: baseline;
  gap: 6px;
  width: 100%;
}
.sub-speaker-input,
.sub-text-input,
.suggest-edit-note {
  box-sizing: border-box;
  padding: 3px 7px;
  border: 1px solid #666;
  border-radius: 4px;
  color: #e0e0e0;
  background: #1a1a2e;
  font: inherit;
  font-size: 0.85em;
}
.sub-speaker-input { width: 120px; flex: 0 0 120px; }
.sub-text-input { min-width: 180px; flex: 1; }
.suggest-edit-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 7000;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-top: 1px solid lavender;
  background: #1a1a2e;
}
.suggest-edit-bar-top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.suggest-edit-identity,
.suggest-edit-count {
  color: lavender;
  font-size: 0.85em;
  white-space: nowrap;
}
.suggest-edit-identity {
  display: flex;
  align-items: center;
  gap: 6px;
}
.suggest-edit-identity img { border-radius: 50%; }
.suggest-edit-sign-out {
  padding: 0 2px;
  border: 0;
  color: #aaa;
  background: none;
  font: inherit;
  cursor: pointer;
}
.suggest-edit-note {
  min-width: 160px;
  max-width: 380px;
  flex: 1;
  background: #0d0d1a;
}
.suggest-edit-submit,
.suggest-edit-cancel {
  padding: 5px 14px;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 0.85em;
  cursor: pointer;
}
.suggest-edit-submit {
  border: 1px solid greenyellow;
  color: greenyellow;
  font-weight: 700;
}
.suggest-edit-submit:disabled { cursor: not-allowed; opacity: 0.5; }
.suggest-edit-cancel { border: 1px solid #666; color: #aaa; }
.suggest-edit-result { font-size: 0.85em; text-align: center; }

@media (max-width: 620px) {
  .track-hero { grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .track-hero-cover img { width: 92px; height: 92px; }
  .track-hero h1 { font-size: clamp(1.55rem, 8vw, 2.2rem); }
  .track-play-button {
    grid-column: 2;
    justify-self: start;
    margin-top: 10px;
  }
  .track-facts { padding: 14px; }
  .track-facts-grid { grid-template-columns: 1fr; }
  .sub-edit { align-items: stretch; flex-wrap: wrap; }
  .sub-speaker-input { width: calc(100% - 20px); flex: 1; }
  .sub-text-input { width: 100%; flex-basis: 100%; }
}
.subtitle-taxonomy-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}
