html,
body {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  --color-bg-dark: #011826;
  --color-bg-panel: rgba(1, 24, 38, 0.78);
  --color-text-primary: #e2e8ec;
  --color-text-muted: #b3c0c9;
  --color-accent: #5e6a75;
  --color-accent-light: #88939c;
  --color-accent-glow: #a4b3be;
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
}

body > main,
.album-page > main,
body .album-content.container {
  flex: 1 0 auto;
}

.album-page #album-title {
  text-align: left !important;
}

.album-content {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-color: var(--color-bg-panel);
  padding: 3rem 4rem;
  box-shadow: 0 8px 42px -10px rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 1;
  min-height: 60vh;
  outline-offset: 10px;
  border-radius: 0 0 12px 12px;
  border: 1px solid rgba(94, 106, 117, 0.25);
  /* Add vertical spacing from sticky navbar so H1 no longer touches it */
  margin-top: 3rem;
}

.album-content h1 {
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

/* HnH album backgrounds (panel) */
.reel-to-reel-page .album-content {
  background-image: url("../images/hnh/albums/backgrounds/tape-recorder.webp");
}
.academic-life-page .album-content {
  background-image: url("../images/hnh/albums/backgrounds/grid-paper.webp");
}
.island-in-the-city-page .album-content {
  background-image: url("../images/hnh/albums/backgrounds/island.webp");
}
.long-highway-road-page .album-content {
  background-image: url("../images/hnh/albums/backgrounds/highway.webp");
}
.reflections-page .album-content {
  background-image: url("../images/hnh/albums/backgrounds/landscape.webp");
}

/* Relax Listen collection inner panel backgrounds */
.gallery-page .album-content {
  background-image: url("../images/relax-listen/albums/backgrounds/gallery.webp");
}
.in-time-page .album-content {
  background-image: url("../images/relax-listen/albums/backgrounds/in-time.webp");
}
.looking-glass-page .album-content {
  background-image: url("../images/relax-listen/albums/backgrounds/looking-glass.webp");
}
.metaphor-page .album-content {
  background-image: url("../images/relax-listen/albums/backgrounds/headphones.webp");
}
.re-invented-page .album-content {
  background-image: url("../images/relax-listen/albums/backgrounds/re-invented.webp");
}
.relax-listen-page .album-content {
  background-image: url("../images/relax-listen/albums/relax-listen.webp");
}
.tonight-page .album-content {
  background-image: url("../images/relax-listen/albums/backgrounds/tonight.webp");
}

h2 {
  margin-top: 2rem;
  font-size: 1.75rem;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

ol.track-list {
  list-style: none;
  counter-reset: track;
  margin: 0;
  padding: 1.25rem 1.75rem 1.25rem 1.25rem;
  font-size: 1.15rem;
  line-height: 1.6;
  background: linear-gradient(
    135deg,
    rgba(1, 24, 38, 0.82),
    rgba(1, 24, 38, 0.55)
  );
  border: 1px solid rgba(94, 106, 117, 0.25);
  border-radius: 10px;
  backdrop-filter: blur(3px);
}

ol.track-list li {
  counter-increment: track;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.35rem 0.25rem;
  margin: 0;
  color: #ffffff;
  font-weight: 500;
  position: relative;
  isolation: isolate;
}

ol.track-list li::before {
  content: counter(track, decimal-leading-zero);
  flex: 0 0 3.2rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--color-accent-glow);
  opacity: 0.9;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(94, 106, 117, 0.35);
  margin-right: 0.25rem;
}

ol.track-list li:hover {
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0)
  );
  border-radius: 6px;
}

ol.track-list li:focus-within {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 2px;
  border-radius: 6px;
}

.track-list-section {
  margin-top: 3rem;
}

ol.track-list {
  box-shadow: 0 6px 22px -6px rgba(0, 0, 0, 0.55);
}

footer {
  flex-shrink: 0;
  background-color: #0f0f0f;
  border-top: 1px solid #222;
  padding: 1rem;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  position: relative;
  z-index: 10;
}

@media (max-width: 576px) {
  .album-content {
    padding: 2rem 2.5rem;
  }

  .album-content h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  ol {
    font-size: 1.1rem;
  }
}

.other-albums h2 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.album-thumbs {
  margin-left: auto;
  margin-right: auto;
}

.album-thumb {
  text-decoration: none;
  color: #ffffff;
  position: relative;
  display: inline-block;
  width: 140px;
  line-height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.album-thumb figure {
  margin: 0;
}

.album-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: #011826;
  position: relative;
  z-index: 1;
  transform: scale(1);
  transition: transform 1.25s ease, filter 1.25s ease;
  filter: brightness(0.92) saturate(0.9);
}

.album-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    radial-gradient(circle at 50% 60%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.65));
  opacity: 0.35;
  transition: opacity 1.25s ease;
  pointer-events: none;
  z-index: 2;
}

.album-thumb figcaption {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
  opacity: 0;
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.album-thumb:hover::after,
.album-thumb:focus-visible::after {
  opacity: 0.07;
}

.album-thumb:hover img,
.album-thumb:focus-visible img {
  transform: scale(1.12);
  filter: brightness(1) saturate(1);
}

.album-thumb:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 10px;
}

@media (max-width: 500px) {
  .album-thumb {
    width: 42%;
  }
  .album-thumb img {
    height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .album-thumb img {
    transition: none;
  }
  .album-thumb::after {
    transition: none;
  }
}
