.portfolio-page {
  gap: 3rem;
  padding-top: 1.5rem;
}

.portfolio-page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.portfolio-section > h2 {
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

#portfolio-content > .portfolio-section + .portfolio-section {
  margin-top: 3rem;
}

#portfolio-retry {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

#portfolio-retry:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.portfolio-muted,
.release-meta,
.release-notes,
.highlight p {
  color: var(--muted);
  line-height: 1.6;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.25rem;
}

.highlight {
  min-width: 0;
  margin: 0;
}

.video-preview,
.video-player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #090909;
  overflow: hidden;
}

.video-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 2rem;
  text-shadow: 0 2px 10px black;
  background: rgba(0, 0, 0, 0.22);
}

.video-preview:hover .video-play {
  background: rgba(245, 10, 29, 0.25);
}

.highlight h3 {
  margin: 0.85rem 0 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.highlight h3 a {
  text-decoration: none;
}

.highlight p {
  margin: 0.4rem 0;
}

.discography-year {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
}

.discography-year > h3 {
  margin: 0;
  padding: 1.25rem 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.release-list,
.release-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.release-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 40%);
  align-items: start;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0;
  scroll-margin-top: 1rem;
}

.release-row + .release-row {
  border-top: 1px solid var(--line);
}

.release-album {
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 0;
}

.album-cover {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.album-details {
  min-width: 0;
}

.release-album .release-info h4 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.album-details .release-links {
  justify-content: flex-start;
}

.album-details > .release-links {
  margin-top: 0.5rem;
}

.album-tracks {
  margin: 1rem 0 0;
  padding-left: 2rem;
  list-style-type: decimal-leading-zero;
}

.album-tracks > li {
  padding: 0.25rem 0 0.25rem 0.35rem;
  border-top: 1px solid var(--line);
}

.album-tracks > li::marker {
  color: var(--muted);
  font-size: 0.85rem;
}

.album-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
}

.album-track-title {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.album-tracks .release-links a {
  min-height: 24px;
}

.release-info h4 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

.release-meta,
.release-notes {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
}

.release-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 1rem;
}

.release-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  text-underline-offset: 0.2em;
  font-size: 0.9rem;
}

.portfolio-page a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.portfolio-page a:hover {
  color: white;
  text-decoration: underline;
}

.portfolio-page p,
.portfolio-page h3,
.portfolio-page h4,
.release-links a {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .highlight-grid,
  .discography-year,
  .release-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .discography-year {
    gap: 0;
  }

  .discography-year > h3 {
    padding-bottom: 0;
  }

  .release-row {
    gap: 0.25rem;
  }

  .release-album {
    gap: 1.25rem;
  }

  .album-cover {
    max-width: 240px;
  }

  .release-links {
    justify-content: flex-start;
  }
}
