@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

/* =========================================
   RE:CORD
   Music Discovery
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f5f3ed;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}


/* =========================================
   HEADER
========================================= */

.site-header {
  width: 100%;
  border-bottom: 1px solid #111;
}

.header-top {
  padding: 22px 4vw 14px;
  text-align: center;
}

.logo {
  font-family: "Special Elite", monospace;
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 40px;

  padding: 13px 4vw;

  border-top: 1px solid #111;

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;

  left: 0;
  bottom: -3px;

  width: 0;
  height: 1px;

  background: #111;

  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}


/* =========================================
   FEATURED ALBUM
========================================= */

.featured {
  padding: 28px 4vw 80px;
  border-bottom: 1px solid #111;
}

.featured-label {
  display: flex;
  justify-content: space-between;

  padding-bottom: 12px;
  margin-bottom: 35px;

  border-bottom: 1px solid #111;

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 6vw;
  align-items: center;

  max-width: 1450px;
  margin: 0 auto;
}


/* =========================================
   FEATURED ARTWORK
========================================= */

.featured-artwork {
  width: 100%;
}

.artwork-placeholder {
  aspect-ratio: 1 / 1;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at center,
      #fff 0%,
      #ddd 12%,
      #777 28%,
      #292929 48%,
      #080808 70%
    );

  border: 1px solid #111;

  overflow: hidden;
  position: relative;
}

.artwork-placeholder::before {
  content: "";

  position: absolute;

  width: 60%;
  height: 60%;

  border-radius: 50%;

  border: 2px solid rgba(255, 255, 255, 0.4);

  box-shadow:
    0 0 35px rgba(255, 255, 255, 0.15),
    inset 0 0 35px rgba(255, 255, 255, 0.1);
}

.artwork-placeholder span {
  position: relative;
  z-index: 2;

  color: #fff;

  font-size: clamp(1.5rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.15em;

  transform: rotate(-8deg);
}


/* =========================================
   FEATURED CONTENT
========================================= */

.featured-content {
  max-width: 580px;
}

.featured-artist {
  margin-bottom: 5px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-style: italic;
}

.featured-content h1 {
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.85;

  letter-spacing: -0.07em;

  margin-bottom: 28px;
}

.featured-meta {
  display: flex;
  gap: 20px;

  padding: 12px 0;

  border-top: 1px solid #111;
  border-bottom: 1px solid #111;

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-description {
  max-width: 480px;

  margin: 30px 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  gap: 15px;
  align-items: center;

  padding-bottom: 4px;

  border-bottom: 1px solid #111;

  font-size: 0.75rem;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(6px);
}

/* =========================================
   FEATURED CATALOGUE TABS
========================================= */

.featured-heading-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
}


.featured-catalog-tabs {
  display: flex;
  align-items: flex-end;

  gap: 3px;

  border-bottom: 1px solid #111;
}


/* ---------- TAB ---------- */

.featured-catalog-tab {
  position: relative;

  appearance: none;

  min-width: 46px;

  padding: 7px 9px 6px;

  border: 1px solid transparent;
  border-bottom: 0;

  background: transparent;
  color: #111;

  font-family: "Special Elite", monospace;
  font-size: 0.7rem;
  line-height: 1;

  letter-spacing: 0.04em;

  cursor: pointer;

  opacity: 0.45;

  transform: translateY(1px);

  transition:
    opacity 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}


/* ---------- ACTIVE TAB ---------- */

.featured-catalog-tab.active {
  border-color: #111;

  background: #111;
  color: #f5f3ed;

  opacity: 1;

  transform: translateY(1px);
}


/*
  Extends the active tab into the line below
  so it feels like a physical archive tab.
*/

.featured-catalog-tab.active::after {
  content: "";

  position: absolute;

  left: -1px;
  right: -1px;
  bottom: -2px;

  height: 3px;

  background: #111;
}


/* ---------- HOVER ---------- */

.featured-catalog-tab:not(.active):hover {
  opacity: 1;

  background: rgba(17, 17, 17, 0.04);

  transform: translateY(0);
}


/* ---------- KEYBOARD ---------- */

.featured-catalog-tab:focus-visible {
  outline: 1px solid #111;
  outline-offset: 3px;
}


/* =========================================
   FEATURED CATALOGUE TABS — MOBILE
========================================= */

@media (max-width: 600px) {

  .featured-catalog-tabs {
    gap: 2px;
  }

  .featured-catalog-tab {
    min-width: 39px;

    padding:
      6px
      7px
      5px;

    font-size: 0.67rem;
  }

}


/* =========================================
   FEATURED CATALOGUE NAVIGATION
========================================= */

.featured-catalogue-nav {
  display: grid;

  grid-template-columns: 1fr auto 1fr;

  align-items: center;

  margin-top: 42px;
  padding-top: 16px;

  border-top: 1px solid #111;
}


/* ---------- NAV BUTTONS ---------- */

.catalogue-nav-button {
  appearance: none;

  padding: 0;

  border: 0;
  background: transparent;

  color: #111;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;

  letter-spacing: 0.12em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    gap 0.2s ease;
}


#featured-previous {
  justify-self: start;

  display: inline-flex;
  align-items: center;
  gap: 7px;
}


#featured-next {
  justify-self: end;

  display: inline-flex;
  align-items: center;
  gap: 7px;
}


#featured-previous:hover,
#featured-next:hover {
  gap: 12px;
  opacity: 0.6;
}


/* ---------- PAGE POSITION ---------- */

.catalogue-position {
  display: flex;

  align-items: baseline;

  gap: 7px;

  font-family: "Special Elite", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}


#catalogue-current {
  font-size: 1.15rem;
}


.catalogue-divider {
  opacity: 0.4;
}


/* =========================================
   FEATURED CATALOGUE NAVIGATION — MOBILE
========================================= */

@media (max-width: 600px) {

  .featured-catalogue-nav {
    margin-top: 30px;
    padding-top: 14px;
  }


  .catalogue-nav-button {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }


  .catalogue-position {
    gap: 5px;
    font-size: 0.78rem;
  }


  #catalogue-current {
    font-size: 1rem;
  }

}

/* =========================================
   SHUFFLE
========================================= */

.shuffle-section {
  display: grid;
  grid-template-columns: 1fr 1fr;

  min-height: 650px;

  border-bottom: 1px solid #111;
}

.shuffle-intro {
  padding: 80px 5vw;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-right: 1px solid #111;
}

.shuffle-label {
  margin-bottom: 25px;

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shuffle-intro h2 {
  font-size: clamp(3.5rem, 6vw, 7rem);
  line-height: 0.9;

  letter-spacing: -0.06em;

  margin-bottom: 35px;
}

.shuffle-description {
  max-width: 500px;

  margin-bottom: 35px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.55;
}

/* =========================================
   SHUFFLE FILTERS
========================================= */

.shuffle-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;

  max-width: 430px;

  margin: 30px 0 18px;
}


/* ---------- FILTER ---------- */

.shuffle-filter {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.shuffle-filter label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* ---------- SELECT ---------- */

.shuffle-filter select {
  width: 100%;

  padding: 12px 34px 10px 11px;

  border: 1px solid #111;
  border-radius: 0;

  background-color: transparent;

  color: #111;

  font-family: "Special Elite", monospace;
  font-size: 0.85rem;

  cursor: pointer;
}


/* ---------- FOCUS ---------- */

.shuffle-filter select:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .shuffle-filters {
    grid-template-columns: 1fr;
    gap: 14px;

    max-width: none;

    margin-top: 24px;
  }

}

/* =========================================
   SHUFFLE BUTTON
========================================= */

.shuffle-button {
  width: fit-content;

  display: inline-flex;
  align-items: center;
  gap: 14px;

  padding: 16px 24px;

  border: 1px solid #111;

  background: #111;
  color: #fff;

  cursor: pointer;

  font-size: 0.75rem;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.shuffle-button:hover {
  background: transparent;
  color: #111;
}

.shuffle-icon {
  font-size: 1.2rem;
}


/* =========================================
   SHUFFLE RESULT
========================================= */

.shuffle-result {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 60px;
}

.shuffle-placeholder {
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #111;

  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 15px,
      rgba(0, 0, 0, 0.03) 15px,
      rgba(0, 0, 0, 0.03) 16px
    );
}

.shuffle-placeholder p {
  text-align: center;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-style: italic;

  line-height: 1.2;
}


/* =========================================
   SEARCH — RE:CORD ARCHIVE
========================================= */

.discover {
  padding: 110px 5vw 120px;

  border-bottom: 1px solid #111;
}


.discover-content {
  max-width: 1250px;
  margin: 0 auto;
}


/* =========================================
   SEARCH HEADING
========================================= */

.discover-heading {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap: 70px;

  align-items: end;

  padding-bottom: 45px;
}


.discover-label {
  margin-bottom: 24px;

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}


.discover h2 {
  margin: 0;

  font-size: clamp(
    3.8rem,
    7vw,
    7.5rem
  );

  line-height: 0.88;

  letter-spacing: -0.065em;
}


/* =========================================
   ARCHIVE NOTE
========================================= */

.discover-note {
  width: 175px;

  padding: 15px 16px;

  border: 2px solid #111;

  display: flex;
  flex-direction: column;
  gap: 4px;

  font-family: "Special Elite", monospace;

  font-size: 0.67rem;
  line-height: 1.2;

  letter-spacing: 0.07em;

  text-transform: uppercase;

  transform: rotate(1.5deg);

  opacity: 0.72;

  box-shadow:
    2px 2px 0
    rgba(17, 17, 17, 0.14);
}


.discover-note-title {
  font-size: 0.9rem;
}


.discover-note-line {
  width: 100%;
  height: 1px;

  margin: 6px 0;

  background: #111;
}


/* =========================================
   SEARCH AREA
========================================= */

.search-area {
  margin-top: 25px;

  border-top: 1px solid #111;
}


.search-instruction {
  display: flex;
  justify-content: space-between;

  gap: 20px;

  padding: 11px 0;

  border-bottom: 1px solid #111;

  font-size: 0.62rem;
  font-weight: 700;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}


/* =========================================
   SEARCH INPUT
========================================= */

.search-container {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: stretch;

  width: 100%;

  border-bottom: 2px solid #111;
}


.search-container input {
  min-width: 0;

  padding:
    28px
    25px
    28px
    0;

  border: none;
  outline: none;

  background: transparent;

  color: #111;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(
    1.8rem,
    4vw,
    4rem
  );

  line-height: 1;
}


.search-container input::placeholder {
  color: #777;

  font-style: italic;

  opacity: 0.7;
}


/* Small focus treatment */

.search-container:focus-within {
  border-bottom-width: 3px;
}


/* =========================================
   SEARCH BUTTON
========================================= */

.search-container button {
  min-width: 150px;

  padding: 0 24px;

  border: none;
  border-left: 1px solid #111;

  background: transparent;
  color: #111;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;

  cursor: pointer;

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}


.search-container button span {
  font-size: 1.1rem;

  transition:
    transform 0.2s ease;
}


.search-container button:hover {
  background: #111;
  color: #f5f3ed;

  text-decoration: none;
}


.search-container button:hover span {
  transform: translateX(5px);
}


/* =========================================
   SEARCH FOOTNOTE
========================================= */

.search-footnote {
  display: flex;
  justify-content: space-between;

  gap: 20px;

  padding-top: 10px;

  font-size: 0.58rem;
  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  opacity: 0.55;
}


/* =========================================
   SEARCH — TABLET / MOBILE
========================================= */

@media (max-width: 700px) {

  .discover {
    padding:
      80px
      5vw;
  }


  .discover-heading {
    grid-template-columns: 1fr;

    gap: 30px;

    padding-bottom: 30px;
  }


  .discover h2 {
    font-size: 14vw;
  }


  .discover-note {
    width: 150px;

    transform: rotate(1deg);
  }


  .search-instruction span:last-child {
    display: none;
  }


  .search-container {
    grid-template-columns: 1fr;
  }


  .search-container input {
    padding:
      25px
      0;

    font-size: 2rem;
  }


  .search-container button {
    min-width: 0;

    padding: 16px 0;

    border-left: none;
    border-top: 1px solid #111;

    justify-content: space-between;
  }


  .search-footnote span:last-child {
    display: none;
  }

}


/* =========================================
   ABOUT — RE:CORD
========================================= */

.about {
  display: block;

  padding: 90px 5vw 0;

  border-bottom: 1px solid #111;

  overflow: hidden;
}


/* =========================================
   ABOUT HEADER
========================================= */

.about-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;

  padding-bottom: 14px;

  border-bottom: 1px solid #111;
}


.about-label {
  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}


.about-mark {
  font-family: "Special Elite", monospace;

  font-size: 0.8rem;

  letter-spacing: 0.08em;

  opacity: 0.55;
}


/* =========================================
   ABOUT MAIN
========================================= */

.about-main {
  display: grid;

  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(280px, 0.6fr);

  gap: 7vw;

  align-items: end;

  padding: 70px 0 85px;
}


.about-main h2 {
  margin: 0;

  max-width: 1000px;

  font-size: clamp(
    4rem,
    7vw,
    8rem
  );

  line-height: 0.86;

  letter-spacing: -0.065em;
}


/* =========================================
   ABOUT COPY
========================================= */

.about-copy {
  max-width: 480px;
}


.about-intro {
  margin-bottom: 28px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(
    1.4rem,
    2vw,
    2rem
  );

  line-height: 1.2;

  font-style: italic;
}


.about-copy p:last-child {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 1.05rem;

  line-height: 1.65;
}


/* =========================================
   ABOUT PRINCIPLES
========================================= */

.about-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  margin-left: -5vw;
  margin-right: -5vw;

  padding-left: 5vw;
  padding-right: 5vw;

  background: #111;
  color: #f5f3ed;

  border-top: 1px solid #111;
}


.about-principles > div {
  min-height: 190px;

  padding: 28px 30px 32px 0;
}


.about-principles > div:not(:last-child) {
  margin-right: 30px;

  border-right: 1px solid rgba(245, 243, 237, 0.35);
}


.about-principles span {
  display: block;

  margin-bottom: 35px;

  font-family: "Special Elite", monospace;
  font-size: 0.72rem;

  color: #f5f3ed;

  opacity: 0.6;
}


.about-principles strong {
  display: block;

  margin-bottom: 7px;

  color: #f5f3ed;

  font-size: 0.7rem;
  letter-spacing: 0.14em;
}


.about-principles p {
  font-family: Georgia, "Times New Roman", serif;

  color: #f5f3ed;

  font-size: 0.95rem;
  line-height: 1.4;

  opacity: 0.75;
}


/* =========================================
   ABOUT — TABLET
========================================= */

@media (max-width: 900px) {

  .about-main {
    grid-template-columns: 1fr;

    gap: 45px;
  }


  .about-copy {
    max-width: 600px;
  }

}


/* =========================================
   ABOUT — MOBILE
========================================= */

@media (max-width: 600px) {

  .about {
    padding:
      70px
      5vw
      0;
  }


  .about-main {
    padding:
      50px
      0
      60px;
  }


  .about-main h2 {
    font-size: 14vw;
  }


  .about-principles {
    grid-template-columns: 1fr;
  }


  .about-principles > div {
    min-height: 0;

    padding:
      22px
      0
      25px;

    border-top: 1px solid #111;
  }


  .about-principles > div:not(:last-child) {
    margin-right: 0;

    border-right: none;
  }


  .about-principles span {
    margin-bottom: 18px;
  }

}


/* =========================================
   FOOTER — RE:CORD COLOPHON
========================================= */

.site-footer {
  padding:
    45px
    4vw
    30px;

  background: #f5f3ed;
  color: #111;
}


/* =========================================
   FOOTER TOP
========================================= */

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  gap: 50px;

  padding-bottom: 35px;
}


.footer-logo {
  display: inline-block;

  font-family: "Special Elite", monospace;

  font-size: clamp(
    3.5rem,
    8vw,
    8rem
  );

  font-weight: 400;

  line-height: 0.8;

  letter-spacing: -0.06em;
}


/* =========================================
   FOOTER NAVIGATION
========================================= */

.footer-nav {
  display: flex;

  gap: 28px;

  padding-bottom: 5px;

  font-size: 0.65rem;
  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


.footer-nav a {
  position: relative;
}


.footer-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -3px;

  width: 0;
  height: 1px;

  background: #111;

  transition:
    width 0.2s ease;
}


.footer-nav a:hover::after {
  width: 100%;
}


/* =========================================
   FOOTER BOTTOM
========================================= */

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  gap: 50px;

  padding-top: 16px;

  border-top: 1px solid #111;
}


.footer-description {
  font-size: 0.65rem;
  font-weight: 700;

  line-height: 1.7;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


.footer-colophon {
  display: flex;

  gap: 25px;

  font-family: "Special Elite", monospace;

  font-size: 0.65rem;

  letter-spacing: 0.06em;

  text-transform: uppercase;

  opacity: 0.65;
}


/* =========================================
   FOOTER — MOBILE
========================================= */

@media (max-width: 700px) {

  .site-footer {
    padding:
      40px
      5vw
      28px;
  }


  .footer-top {
    flex-direction: column;

    align-items: flex-start;

    gap: 35px;
  }


  .footer-logo {
    font-size: 18vw;
  }


  .footer-nav {
    width: 100%;

    justify-content: space-between;

    gap: 12px;
  }


  .footer-bottom {
    flex-direction: column;

    align-items: flex-start;

    gap: 25px;
  }


  .footer-colophon {
    flex-wrap: wrap;

    gap:
      5px
      18px;
  }

}


/* =========================================
   RESPONSIVE — TABLET
========================================= */

@media (max-width: 900px) {

  .featured-layout {
    grid-template-columns: 1fr;
  }

  .featured-content {
    max-width: none;
  }

  .featured-content h1 {
    font-size: clamp(4rem, 15vw, 7rem);
  }

  .shuffle-section {
    grid-template-columns: 1fr;
  }

  .shuffle-intro {
    border-right: none;
    border-bottom: 1px solid #111;
  }


}


/* =========================================
   RESPONSIVE — MOBILE
========================================= */

@media (max-width: 600px) {

  .header-top {
    padding-top: 20px;
  }

  .logo {
    font-size: 18vw;
  }

  .main-nav {
    gap: 0;
    justify-content: space-between;

    padding-left: 5vw;
    padding-right: 5vw;

    font-size: 0.62rem;
  }

  .featured {
    padding: 22px 5vw 60px;
  }

  .featured-label span:last-child {
    display: none;
  }

  .featured-layout {
    gap: 40px;
  }

  .featured-content h1 {
    font-size: 18vw;
  }

  .shuffle-intro {
    padding: 70px 5vw;
  }

  .shuffle-intro h2 {
    font-size: 15vw;
  }

  .shuffle-result {
    padding: 35px 5vw;
  }

  .discover {
    padding: 80px 5vw;
  }

  .discover h2 {
    font-size: 14vw;
  }

  .search-container input {
    min-width: 0;
  }

}


/* =========================================
   SELECTION
========================================= */

::selection {
  background: #111;
  color: #f5f3ed;
}

/* =========================================
   SHUFFLED ALBUM CARD
========================================= */

.album-card {
  width: min(100%, 520px);
}

.album-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #111;
}

.album-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-card-info {
  padding-top: 20px;
}

.album-card-artist {
  margin-bottom: 4px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
}

.album-card-info h3 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;

  margin-bottom: 18px;
}

.album-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  padding: 10px 0;

  border-top: 1px solid #111;
  border-bottom: 1px solid #111;

  font-size: 0.65rem;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.album-card-link {
  display: inline-block;

  margin-top: 18px;
  padding-bottom: 3px;

  border-bottom: 1px solid #111;

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* Small animation when a record appears */

.album-card {
  animation: recordReveal 0.4s ease;
}

@keyframes recordReveal {

  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

/* =========================================
   SEARCH RESULTS
========================================= */

.search-results {
  margin-top: 70px;
}

.search-status {
  padding: 30px 0;

  border-top: 1px solid #111;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.search-error {
  font-style: italic;
}


/* Results header */

.search-results-header {
  display: flex;
  justify-content: space-between;

  padding: 12px 0;

  border-top: 1px solid #111;
  border-bottom: 1px solid #111;

  font-size: 0.65rem;
  font-weight: 700;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* =========================================
   RESULT GRID
========================================= */

.search-results-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 55px 25px;

  padding-top: 35px;
}


/* =========================================
   RESULT CARD
========================================= */

.search-result-card {
  min-width: 0;
}

.search-result-artwork {
  position: relative;

  width: 100%;
  aspect-ratio: 1 / 1;

  overflow: hidden;

  border: 1px solid #111;

  background: #e8e6df;
}

.search-result-artwork img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* =========================================
   MISSING COVER
========================================= */

.cover-fallback {
  position: absolute;

  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 12px,
      rgba(0, 0, 0, 0.04) 12px,
      rgba(0, 0, 0, 0.04) 13px
    );
}

.cover-fallback span {
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  font-weight: 900;

  letter-spacing: -0.05em;
}


/* =========================================
   RESULT INFORMATION
========================================= */

.search-result-info {
  padding-top: 16px;
}

.search-result-artist {
  margin-bottom: 4px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 0.95rem;
  font-style: italic;
}

.search-result-info h3 {
  margin-bottom: 15px;

  font-size: clamp(1.5rem, 2.5vw, 2.5rem);

  line-height: 0.95;
  letter-spacing: -0.04em;
}

.search-result-meta {
  display: flex;
  justify-content: space-between;

  padding: 8px 0;

  border-top: 1px solid #111;
  border-bottom: 1px solid #111;

  font-size: 0.6rem;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* =========================================
   VIEW RECORD
========================================= */

.view-record-button {
  margin-top: 15px;

  padding: 0 0 3px;

  border: none;
  border-bottom: 1px solid #111;

  background: transparent;

  cursor: pointer;

  font-size: 0.65rem;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.view-record-button:hover {
  opacity: 0.55;
}


/* =========================================
   SEARCH BUTTON DISABLED
========================================= */

.search-container button:disabled {
  opacity: 0.4;
  cursor: wait;
}


/* =========================================
   SEARCH RESULTS — TABLET
========================================= */

@media (max-width: 900px) {

  .search-results-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* =========================================
   SEARCH RESULTS — MOBILE
========================================= */

@media (max-width: 600px) {

  .search-results {
    margin-top: 50px;
  }

  .search-results-grid {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .search-result-info h3 {
    font-size: 2.2rem;
  }

}

/* =========================================
   RE:CORD — ALBUM DETAIL
========================================= */

.album-detail {
  margin-top: 70px;
}


/* =========================================
   BACK BUTTON
========================================= */

.back-to-results {
  margin-bottom: 35px;

  padding: 0 0 4px;

  border: none;
  border-bottom: 1px solid #111;

  background: transparent;

  cursor: pointer;

  font-size: 0.65rem;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.back-to-results:hover {
  opacity: 0.5;
}


/* =========================================
   ALBUM LAYOUT
========================================= */

.album-detail-layout {
  display: grid;

  grid-template-columns:
    minmax(300px, 0.85fr)
    minmax(0, 1.15fr);

  gap: 6vw;

  align-items: start;
}


/* =========================================
   LARGE ARTWORK
========================================= */

.album-detail-artwork {
  position: sticky;
  top: 30px;

  width: 100%;
  aspect-ratio: 1 / 1;

  border: 1px solid #111;

  overflow: hidden;

  background: #e8e6df;
}

.album-detail-artwork img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* =========================================
   MISSING ARTWORK
========================================= */

.album-detail-fallback {
  position: absolute;

  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 15px,
      rgba(0, 0, 0, 0.04) 15px,
      rgba(0, 0, 0, 0.04) 16px
    );
}

.album-detail-fallback span {
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 900;

  letter-spacing: -0.06em;
}


/* =========================================
   ALBUM INFORMATION
========================================= */

.album-detail-content {
  min-width: 0;
}

.album-detail-artist {
  margin-bottom: 8px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(1.2rem, 2vw, 1.8rem);

  font-style: italic;
}

.album-detail-content h2 {
  margin-bottom: 30px;

  font-size: clamp(4rem, 7vw, 7.5rem);

  line-height: 0.85;

  letter-spacing: -0.065em;
}


/* =========================================
   META
========================================= */

.album-detail-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 12px 30px;

  padding: 12px 0;

  border-top: 1px solid #111;
  border-bottom: 1px solid #111;

  font-size: 0.65rem;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* =========================================
   TRACKLIST
========================================= */

.tracklist {
  margin-top: 55px;
}

.tracklist-header {
  display: flex;
  justify-content: space-between;

  gap: 20px;

  padding-bottom: 10px;

  border-bottom: 2px solid #111;

  font-size: 0.6rem;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* =========================================
   TRACKS
========================================= */

.tracks {
  list-style: none;
}

.track {
  display: grid;

  grid-template-columns:
    45px
    minmax(0, 1fr)
    auto;

  gap: 12px;

  align-items: baseline;

  padding: 13px 0;

  border-bottom: 1px solid #bbb;
}

.track-number {
  font-size: 0.65rem;
  font-weight: 700;

  color: #666;
}

.track-title {
  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 1.05rem;
}

.track-duration {
  font-size: 0.7rem;

  font-variant-numeric: tabular-nums;
}

.track-unavailable {
  display: block;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-style: italic;
}


/* =========================================
   ERROR
========================================= */

.album-error {
  margin-top: 60px;

  padding: 35px 0;

  border-top: 1px solid #111;
}

.album-error p {
  margin-bottom: 25px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 1.2rem;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

  .album-detail-layout {
    grid-template-columns: 1fr;
  }

  .album-detail-artwork {
    position: relative;
    top: auto;

    max-width: 650px;
  }

  .album-detail-content h2 {
    font-size: clamp(4rem, 13vw, 7rem);
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .album-detail {
    margin-top: 50px;
  }

  .album-detail-layout {
    gap: 40px;
  }

  .album-detail-content h2 {
    font-size: 16vw;
  }

  .tracklist {
    margin-top: 40px;
  }

  .track {
    grid-template-columns:
      32px
      minmax(0, 1fr)
      auto;
  }

  .track-title {
    font-size: 1rem;
  }

}

/* =========================================
   SHUFFLE DISCOVERY
========================================= */

.shuffle-discovery {
  margin-top: 20px;
  padding: 12px 0;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
}

.shuffle-discovery span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shuffle-discovery strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  text-transform: capitalize;
}

.shuffle-record-link {
  display: inline-block;
  margin-top: 18px;
  padding: 0 0 3px;
  border: none;
  border-bottom: 1px solid #111;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shuffle-record-link:hover {
  opacity: 0.55;
}

.shuffle-button:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* =========================================
   RE:CORD BRAND FONT
========================================= */

.logo,
.footer-logo,
.cover-fallback span,
.album-detail-fallback span {
  font-family: "Special Elite", monospace;
  font-weight: 400;
}

/* Album artwork fallback */
.album-detail-fallback span,
.cover-fallback span {
  font-size: clamp(2rem, 5vw, 4.5rem);
  letter-spacing: -0.05em;
}

/* Footer branding */
.footer-logo {
  font-family: "Special Elite", monospace;
}

/* =========================================
   ALBUM DETAIL LEFT COLUMN
========================================= */

.album-detail-left {
  min-width: 0;
}


/* =========================================
   CRITICAL RECEPTION
========================================= */

.critical-reception {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 2px solid #111;
}


/* ---------- HEADING ---------- */

.critical-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;

  margin-bottom: 8px;
  padding-bottom: 12px;

  border-bottom: 1px solid #111;
}

.critical-heading h3 {
  margin: 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.critical-kicker {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* ---------- REVIEW CARD ---------- */

.critic-review {
  position: relative;

  padding: 22px 0 24px;

  border-bottom: 1px solid rgba(17, 17, 17, 0.3);
}

.critic-review:last-child {
  border-bottom: 0;
}


/* ---------- PUBLICATION / SCORE ---------- */

.critic-review-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 13px;
}

.critic-publication {
  font-family: "Special Elite", monospace;
  font-size: 1.15rem;
  line-height: 1;
}

.critic-score {
  flex-shrink: 0;

  padding: 5px 7px 3px;

  border: 1px solid #111;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}


/* ---------- REVIEW TEXT ---------- */

.critic-summary {
  max-width: 540px;

  margin: 0 0 15px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.55;
}


/* ---------- REVIEW LINK ---------- */

.critic-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding-bottom: 2px;

  border-bottom: 1px solid #111;

  color: #111;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    gap 0.2s ease,
    opacity 0.2s ease;
}

.critic-link:hover {
  gap: 11px;
  opacity: 0.6;
}


/* ---------- EMPTY STATE ---------- */

.critical-empty {
  padding: 24px 0 8px;
}

.critical-empty p {
  margin: 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;

  opacity: 0.65;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .critical-reception {
    margin-top: 30px;
  }

  .critical-heading {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 7px;
  }

  .critical-heading h3 {
    font-size: 1.8rem;
  }

  .critic-review {
    padding: 20px 0;
  }

  .critic-publication {
    font-size: 1.05rem;
  }

  .critic-summary {
    font-size: 0.92rem;
  }

}


/* =========================================
   REVIEW
========================================= */

.critic-review {
  padding: 20px 0 22px;
  border-bottom: 1px solid #111;
}

.critic-review-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  gap: 20px;
  margin-bottom: 12px;
}

.critic-publication {
  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.critic-score {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.critic-summary {
  max-width: 38rem;
  margin: 0 0 14px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;

  line-height: 1.45;
}

.critic-link {
  display: inline-block;

  padding-bottom: 3px;
  border-bottom: 1px solid #111;

  color: #111;

  font-size: 0.62rem;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.critic-link:hover {
  opacity: 0.55;
}


/* =========================================
   NO REVIEWS
========================================= */

.critical-empty {
  padding: 20px 0;
  border-bottom: 1px solid #111;
}

.critical-empty p {
  max-width: 30rem;
  margin: 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-style: italic;

  line-height: 1.45;
  opacity: 0.7;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

  .critical-reception {
    margin-top: 30px;
  }

}

.album-detail-artwork {
  position: relative;
  top: auto;
}

/* =========================================
   ALBUM PAGE MODE
========================================= */

.album-view-active > :not(.search-results) {
  display: none;
}

.album-view-active {
  padding-top: 0;
}

.album-view-active .search-results {
  margin-top: 0;
}

/* =========================================
   SPINNING HEADER VINYL
========================================= */

.header-top {
  position: relative;
  overflow: hidden;
}

.header-vinyl {
  position: absolute;

  right: -70px;
  top: 50%;

  width: clamp(220px, 20vw, 340px);
  aspect-ratio: 1;

  transform: translateY(-50%);

  pointer-events: none;
}

.header-vinyl img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  animation: record-spin 18s linear infinite;
  transition: filter 0.3s ease;
}

/* Speed up the vinyl when hovering over the masthead */

.header-top:hover .header-vinyl img {
  animation-duration: 4s;
  filter: brightness(1.08);
}

@keyframes record-spin {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }

}


/* Accessibility */

@media (prefers-reduced-motion: reduce) {

  .header-vinyl img {
    animation: none;
  }

}


/* Mobile */

@media (max-width: 700px) {

  .header-vinyl {
    width: 100px;
    right: -20px;
  }

}

/* =========================================
   HEADER ARCHIVE STAMP
========================================= */

.header-stamp {
  position: absolute;

  left: clamp(30px, 4vw, 75px);
  top: 50%;

  transform: translateY(-50%) rotate(-2deg);

  width: 150px;
  padding: 12px 14px;

  border: 2px solid #111;

  display: flex;
  flex-direction: column;
  gap: 3px;

  font-family: "Special Elite", monospace;
  font-size: 0.72rem;
  line-height: 1.15;
  letter-spacing: 0.08em;

  text-transform: uppercase;

  opacity: 0.72;

  pointer-events: none;

  box-shadow:
  1px 1px 0 rgba(17, 17, 17, 0.18),
  -1px 0 0 rgba(17, 17, 17, 0.08);
}

.stamp-brand {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.stamp-archive {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.stamp-line {
  display: block;

  width: 100%;
  height: 1px;

  background: #111;

  margin: 5px 0;
}


/* Mobile */

@media (max-width: 700px) {

  .header-stamp {
    display: none;
  }

}

/* =========================================
   FEATURED — ARCHIVE DETAILS
========================================= */

.featured-label {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  padding-bottom: 14px;
  margin-bottom: 36px;

  border-bottom: 1px solid #111;
}

.featured-index {
  display: flex;
  align-items: center;
  gap: 16px;
}

.featured-number {
  font-family: "Special Elite", monospace;
  font-size: 2.4rem;
  line-height: 1;
}

.featured-index > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.featured-type {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.14em;
}

.featured-catalog {
  font-family: "Special Elite", monospace;
  font-size: 0.72rem;

  letter-spacing: 0.06em;
  opacity: 0.65;
}

.featured-status {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.14em;
}


/* Mobile */

@media (max-width: 600px) {

  .featured-label {
    margin-bottom: 24px;
  }

  .featured-number {
    font-size: 1.8rem;
  }

  .featured-status {
    font-size: 0.62rem;
  }

}

/* =========================================
   FEATURED RECORD SLEEVE
========================================= */

.record-sleeve {
  position: relative;

  width: 100%;
  max-width: 520px;

  isolation: isolate;

  /* Subtle physical depth beneath the sleeve */
  filter:
    drop-shadow(3px 5px 4px rgba(17, 17, 17, 0.10));
}


/* Vinyl behind the sleeve */

.featured-vinyl {
  position: absolute;

  width: 82%;
  height: auto;

  right: -8%;
  top: 50%;

  transform:
    translateY(-50%)
    translateX(0)
    rotate(-8deg);

  z-index: -1;

  transition:
    transform 0.6s ease;

  pointer-events: none;
}


/* Keep album artwork above vinyl */

.record-sleeve .artwork-placeholder {
  position: relative;
  z-index: 2;

  border: 1px solid rgba(17, 17, 17, 0.85);

  box-shadow:
    2px 2px 0 rgba(17, 17, 17, 0.10),
    5px 7px 14px rgba(17, 17, 17, 0.08);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}


/* =========================================
   RE:CORD CATALOG STICKER
========================================= */

.catalog-sticker {
  position: absolute;

  right: 14px;
  bottom: 14px;

  width: 56px;
  padding: 6px 7px;

  background:
    linear-gradient(
      135deg,
      #f3f0e6 0%,
      #ebe6d8 55%,
      #f1ede2 100%
    );

  color: #111;

  border: 1px solid rgba(17, 17, 17, 0.6);

  display: flex;
  flex-direction: column;

  font-family: "Courier New", Courier, monospace;

  transform: none;

  box-shadow:
    1px 2px 3px rgba(17, 17, 17, 0.12);
}


/* RE:CORD */

.catalog-sticker span {
  color: #111;

  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.45rem;
  font-weight: 700;

  line-height: 1;
  letter-spacing: 0.08em;

  opacity: 0.65;

  transform: none !important;
  font-style: normal;
}


/* Catalogue number */

.catalog-sticker strong {
  color: #111;

  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  font-weight: 400;

  line-height: 1;

  margin-top: 5px;
}


/* =========================================
   FEATURED RECORD INTERACTION
========================================= */

.record-sleeve:hover .featured-vinyl {
  transform:
    translateY(-50%)
    translateX(28%)
    rotate(12deg);
}

.record-sleeve:hover .artwork-placeholder {
  transform:
    rotate(-1deg)
    translateY(-3px);

  box-shadow:
    8px 10px 20px
    rgba(0, 0, 0, 0.16);
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

  .featured-vinyl,
  .record-sleeve .artwork-placeholder {
    transition: none;
  }

}


/* Mobile */

@media (max-width: 700px) {

  .record-sleeve {
    max-width: 88%;
  }

  .featured-vinyl {
    right: -10%;
  }

  .record-sleeve:hover .featured-vinyl {
    transform:
      translateY(-50%)
      translateX(18%)
      rotate(8deg);
  }

}

/* =========================================
   SHUFFLE — RECORD CRATE
========================================= */

.shuffle-crate {
  position: relative;

  width: 100%;
  min-height: 520px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;
}

.shuffle-crate-image {
  display: block;

  width: min(94%, 620px);
  height: auto;

  object-fit: contain;

  transform:
  translateX(-12px)
    rotate(-1deg);

  transition:
    transform 0.4s ease;
}


/* Small physical movement */

.shuffle-crate:hover .shuffle-crate-image {
  transform:
    translateX(-12px)
    translateY(-5px)
    rotate(-1deg);
}


/* Mobile */

@media (max-width: 900px) {

  .shuffle-crate {
    min-height: auto;
  }

  .shuffle-crate-image {
    width: min(100%, 560px);
  }

}


@media (prefers-reduced-motion: reduce) {

  .shuffle-crate-image {
    transition: none;
  }

}

/* =========================================
   SHUFFLE — PULLED RECORD
========================================= */

.shuffle-pull {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* -----------------------------------------
   CRATE + SELECTED RECORD
----------------------------------------- */

.shuffle-pull-visual {
  position: relative;

  width: 100%;
  min-height: 430px;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  overflow: visible;
}


.shuffle-result-crate {
  position: relative;
  z-index: 2;

  display: block;

  width: min(94%, 620px);
  height: auto;

  transform:
    translateX(-12px)
    rotate(-1deg);
}


/* Selected sleeve */

.shuffle-pulled-record {
  position: absolute;

  z-index: 3;

  width: clamp(200px, 46%, 310px);
  aspect-ratio: 1;

  left: 50%;
  bottom: 150px;

  background: #111;

  transform:
    translateX(-50%)
    translateY(140px)
    rotate(-3deg);

  box-shadow:
    8px 10px 20px
    rgba(0, 0, 0, 0.22);

  animation:
    pull-record 0.9s
    cubic-bezier(.16, .8, .25, 1)
    forwards;
}


.shuffle-pulled-record img,
.shuffle-pulled-fallback {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


.shuffle-pulled-fallback {
  align-items: center;
  justify-content: center;

  background: #111;
  color: #f5f3ed;

  border: 1px solid #111;
}


.shuffle-pulled-fallback span {
  font-family: "Special Elite", monospace;
  font-size: 2rem;
}


/* Record rises from crate */

@keyframes pull-record {

  0% {
    transform:
      translateX(-50%)
      translateY(140px)
      rotate(-3deg);

    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform:
      translateX(-50%)
      translateY(-40px)
      rotate(-3deg);

    opacity: 1;
  }

}


/* -----------------------------------------
   ALBUM INFORMATION
----------------------------------------- */

.shuffle-pull-info {
  width: min(94%, 620px);

  padding-top: 28px;
  margin-top: 8px;

  border-top: 1px solid #111;
}


.shuffle-pull-label {
  margin-bottom: 18px;

  font-size: 0.68rem;
  font-weight: 700;

  letter-spacing: 0.16em;
}


.shuffle-pull-artist {
  margin-bottom: 5px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 1rem;
}


.shuffle-pull-info h3 {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(
    2rem,
    3vw,
    3.2rem
  );

  line-height: 0.95;
  font-weight: 400;
}


.shuffle-pull-meta {
  display: flex;
  gap: 18px;

  margin-top: 16px;

  font-size: 0.7rem;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.1em;
}


.shuffle-pull-info .shuffle-discovery {
  margin-top: 22px;
}


.shuffle-pull-info .album-card-link {
  margin-top: 24px;
}


/* -----------------------------------------
   LOADING CRATE
----------------------------------------- */

.shuffle-crate-loading {
  position: relative;
}


.crate-loading-label {
  position: absolute;

  left: 50%;
  bottom: 25px;

  transform: translateX(-50%);

  white-space: nowrap;

  font-size: 0.65rem;
  font-weight: 700;

  letter-spacing: 0.14em;

  opacity: 0.6;
}


/* -----------------------------------------
   MOBILE
----------------------------------------- */

@media (max-width: 900px) {

  .shuffle-pull-visual {
    min-height: 380px;
  }

  .shuffle-pulled-record {
    width: clamp(
      170px,
      40%,
      250px
    );

    bottom: 125px;
  }

}


@media (prefers-reduced-motion: reduce) {

  .shuffle-pulled-record {
    animation: none;

    transform:
      translateX(-50%)
      translateY(0px)
      rotate(-3deg);
  }

}

.featured-album-link {
  border-top: none;
  border-left: none;
  border-right: none;

  background: transparent;
  color: #111;

  cursor: pointer;
}

/* =========================================
   FEATURED ALBUM LINK
========================================= */

.featured-album-link {
  border-top: none;
  border-left: none;
  border-right: none;

  background: transparent;
  color: #111;

  cursor: pointer;
}

/* =========================================
   FEATURED — REAL ALBUM COVER
========================================= */

.featured-cover {
  position: relative;
  overflow: visible;
  background: #111;
}

.featured-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.featured-cover .catalog-sticker {
  z-index: 5;
}

/* =========================================
   MOBILE — HEADER VINYL
========================================= */

@media (max-width: 600px) {

  .header-vinyl {
    right: -35px;
    width: 100px;
  }

}

/* =========================================
   MOBILE — SHUFFLE RESULT
========================================= */

@media (max-width: 600px) {

  /* Hide crate after a record has been selected */

  .shuffle-pull .shuffle-result-crate {
    display: none;
  }

  /* Remove the large crate staging area */

  .shuffle-pull-visual {
    min-height: 0;
    height: auto;
    display: flex;
    justify-content: center;
    overflow: visible;
  }

  /* Display selected record by itself */

  .shuffle-pulled-record {
    position: relative;
    left: auto;
    bottom: auto;

    width: min(82vw, 320px);

    transform: none;

    margin: 20px auto 35px;

    animation: none;
  }

}

/* =========================================
   MOBILE — SHUFFLE LOADING LABEL
========================================= */

@media (max-width: 600px) {

  .shuffle-crate-loading .crate-loading-label {
    left: 50%;
    right: auto;
    bottom: -5px;

    width: max-content;
    max-width: 90%;

    text-align: center;

    transform: translateX(-50%);
  }

}

/* =========================================
   FEATURED RECORD TRANSITION
========================================= */

.featured-cover,
.featured-content {
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}


/* Record begins changing */

.featured-record-changing .featured-cover {
  opacity: 0;
  transform: translateY(8px);
}


.featured-record-changing .featured-content {
  opacity: 0;
  transform: translateY(6px);
}


/* Respect reduced-motion preference */

@media (prefers-reduced-motion: reduce) {

  .featured-cover,
  .featured-content {
    transition: none;
  }

}

/* =========================================
   ALBUM LISTEN LINKS
========================================= */

.album-listen {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  margin-top: 18px;
  padding-bottom: 18px;

  border-bottom: 1px solid rgba(17, 17, 17, 0.35);
}


.album-listen-label {
  flex-shrink: 0;

  font-size: 0.62rem;
  font-weight: 700;

  letter-spacing: 0.14em;
  text-transform: uppercase;

  opacity: 0.55;
}


.album-listen-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;

  gap: 10px 22px;
}


.album-listen-links a {
  color: #111;

  font-size: 0.68rem;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  text-decoration: none;

  border-bottom: 1px solid transparent;

  transition:
    opacity 0.2s ease,
    border-color 0.2s ease;
}


.album-listen-links a:hover {
  opacity: 0.55;
  border-color: #111;
}


/* =========================================
   ALBUM LISTEN — MOBILE
========================================= */

@media (max-width: 600px) {

  .album-listen {
    flex-direction: column;
    align-items: flex-start;

    gap: 12px;
  }


  .album-listen-links {
    justify-content: flex-start;

    gap: 10px 18px;
  }

}

/* =========================================
   LISTEN SERVICE ICONS
========================================= */

.album-listen-links a {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  border: 0;

  text-decoration: none;

  transition:
    transform 0.2s ease;
}


.listen-icon {
  position: absolute;

  width: 30px;
  height: 30px;

  object-fit: contain;

  transition:
    opacity 0.2s ease;
}


/* Black version */

.listen-icon-default {
  opacity: 1;
}


/* Colored version */

.listen-icon-color {
  opacity: 0;
}


/* Hover */

.album-listen-links a:hover {
  transform: translateY(-2px);
}


.album-listen-links a:hover
.listen-icon-default {
  opacity: 0;
}


.album-listen-links a:hover
.listen-icon-color {
  opacity: 1;
}

/* =========================================
   KEEP DIGGING
========================================= */

.keep-digging {
  margin-top: 72px;
  padding-top: 28px;

  border-top: 1px solid rgba(17, 17, 17, 0.8);
}


/* -----------------------------------------
   HEADING
----------------------------------------- */

.keep-digging-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 30px;

  margin-bottom: 30px;
}


.keep-digging-heading > span {
  font-size: 0.62rem;
  font-weight: 700;

  letter-spacing: 0.16em;
  text-transform: uppercase;

  opacity: 0.55;
}


.keep-digging-heading h3 {
  margin: 0;

  font-size: 1.35rem;
  font-weight: 500;

  letter-spacing: -0.02em;
}


/* -----------------------------------------
   RECORD GRID
----------------------------------------- */

.keep-digging-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 28px;
}


/* -----------------------------------------
   RECORD
----------------------------------------- */

.keep-digging-record {
  min-width: 0;
}


/* -----------------------------------------
   COVER
----------------------------------------- */

.keep-digging-cover {
  position: relative;

  display: block;

  width: 100%;
  aspect-ratio: 1 / 1;

  padding: 0;

  overflow: hidden;

  background: #e8e4d8;

  border: 1px solid rgba(17, 17, 17, 0.75);

  cursor: pointer;
}


.keep-digging-cover img {
  position: relative;
  z-index: 2;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}


.keep-digging-cover:hover img {
  transform: scale(1.025);
}


/* -----------------------------------------
   COVER FALLBACK
----------------------------------------- */

.keep-digging-fallback {
  position: absolute;
  inset: 0;

  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e8e4d8;
}


.keep-digging-fallback span {
  font-family:
    "Courier New",
    Courier,
    monospace;

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.16em;

  opacity: 0.45;
}


/* -----------------------------------------
   RECORD INFORMATION
----------------------------------------- */

.keep-digging-info {
  padding-top: 14px;
}


.keep-digging-year {
  display: block;

  margin-bottom: 6px;

  font-size: 0.62rem;
  font-weight: 700;

  letter-spacing: 0.12em;

  opacity: 0.5;
}


.keep-digging-info h4 {
  margin: 0;

  font-size: 1rem;
  font-weight: 600;

  line-height: 1.25;
}


/* -----------------------------------------
   EXPLORE LINK
----------------------------------------- */

.keep-digging-link {
  margin-top: 12px;
  padding: 0;

  background: transparent;

  border: 0;

  font: inherit;

  font-size: 0.65rem;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;

  opacity: 0.65;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}


.keep-digging-link:hover {
  opacity: 1;

  transform: translateX(3px);
}


/* -----------------------------------------
   TABLET
----------------------------------------- */

@media (max-width: 800px) {

  .keep-digging {
    margin-top: 56px;
  }


  .keep-digging-grid {
    gap: 18px;
  }

}


/* -----------------------------------------
   MOBILE
----------------------------------------- */

@media (max-width: 600px) {

  .keep-digging {
    margin-top: 48px;
  }


  .keep-digging-heading {
    display: block;

    margin-bottom: 22px;
  }


  .keep-digging-heading h3 {
    margin-top: 7px;

    font-size: 1.2rem;
  }


  .keep-digging-grid {
    grid-template-columns: 1fr;

    gap: 32px;
  }


  .keep-digging-cover {
    max-width: 360px;
  }

}