@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Montserrat:wght@400;700;900&display=swap");

:root {
  --background: #050505;
  --foreground: #ffffff;
  --muted: #8b8b8b;
  --font-display: "Montserrat", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  display: block !important;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  background: #050505;
  font-family: var(--font-display);
  overflow-x: hidden;
}

a,
button,
input,
select,
textarea {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

::selection {
  background: #ffcc00;
  color: #050505;
}

audio {
  color-scheme: dark;
}

.page {
  width: 100%;
  color: #fff;
  background: #050505;
  padding-bottom: 8.5rem;
}

.heroShell {
  position: relative;
  min-height: 100vh;
  background: #050505;
  overflow: hidden;
}

.heroNav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.4rem 1.5rem;
  background: #ffcc00;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.heroBrand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #050505;
  text-decoration: none;
}

.heroBrandMark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #050505;
  color: #fff;
}

.heroBrandIcon {
  width: 0.9rem;
  height: 0.9rem;
}

.heroBrandText {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.heroMenu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.heroMenuLink {
  color: #050505;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.heroNavActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.heroNavButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border: 1px solid #050505;
  border-radius: 999px;
  background: #050505;
  color: #ffcc00;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.heroNavButton:hover {
  background: #fff2b8;
  color: #050505;
}

.heroBackdrop,
.heroVignette {
  position: absolute;
  inset: 0;
}

.heroBackdrop {
  background-image: url("https://images.unsplash.com/photo-1590602847861-f357a9332bbc?q=80&w=2000&auto=format&fit=crop");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.28;
  transform: scale(1.03);
}

.heroVignette {
  background:
    radial-gradient(circle at center, rgba(5, 5, 5, 0) 10%, rgba(5, 5, 5, 0.92) 85%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.58), rgba(5, 5, 5, 0.68));
}

.heroMain {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
}

.heroContent {
  max-width: 70rem;
  margin: 0 auto;
}

.heroKicker,
.sectionKicker,
.panelKicker,
.resultsKicker,
.metricLabel,
.trackDetailLabel,
.emptyKicker {
  margin: 0;
  font-family: var(--font-mono), monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.heroKicker {
  color: #ffcc00;
}

.heroTitle {
  margin: 0.8rem 0 0;
  font-size: clamp(4.4rem, 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 900;
}

.heroAccent {
  color: #ffcc00;
}

.heroSubtitle {
  max-width: 35rem;
  margin: 1.4rem auto 0;
  color: #b6b6b6;
  font-size: 0.98rem;
  line-height: 1.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.heroStats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

.heroStat {
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: #0a0a0a;
}

.heroStatValue {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.heroStatLabel {
  margin-top: 0.18rem;
  color: #8e8e8e;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.heroPrimary,
.heroSecondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.heroPrimary {
  border: 1px solid #ffcc00;
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 204, 0, 0.18);
}

.heroPrimary:hover {
  background: #ffcc00;
  color: #050505;
  box-shadow: 0 0 28px rgba(255, 204, 0, 0.42);
}

.heroSecondary {
  border: 1px solid #4a4a4a;
  color: #fff;
}

.heroSecondary:hover {
  border-color: #fff;
  background: #fff;
  color: #050505;
}

.scrollCue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  opacity: 0.58;
  transform: translateX(-50%);
}

.scrollLine {
  width: 1px;
  height: 2rem;
  background: #fff;
}

.scrollText {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.spacer {
  width: 100%;
  height: 8rem;
  background: transparent;
}

.archiveSection {
  width: 100%;
  padding: 3rem 1.5rem 6rem;
  background: #fff;
  color: #050505;
}

.archiveInner {
  max-width: 84rem;
  margin: 0 auto;
}

.sectionHeader {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid #e7e7e7;
}

.sectionKicker,
.panelKicker,
.resultsKicker,
.metricLabel,
.trackDetailLabel,
.emptyKicker {
  color: #787878;
}

.sectionTitle {
  margin: 0.5rem 0 0;
  font-size: clamp(2.3rem, 4vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 900;
  text-transform: uppercase;
}

.sectionAccent {
  color: #ffcc00;
}

.sectionMeta {
  margin: 0.75rem 0 0;
  color: #6d6d6d;
  font-size: 0.88rem;
  line-height: 1.7;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.sectionAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  color: #4f4f4f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.sectionAction:hover {
  border-color: #050505;
  color: #050505;
  background: #f6f6f6;
}

.metricGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.metricCard {
  padding: 1.4rem;
  border: 1px solid #ececec;
  border-radius: 1.75rem;
  background: #fafafa;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.metricValue {
  margin: 0.55rem 0 0.28rem;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.metricDetail {
  margin: 0;
  color: #767676;
  font-size: 0.92rem;
  line-height: 1.5;
}

.archiveGrid {
  display: grid;
  grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
  gap: 2.25rem;
  margin-top: 2.6rem;
}

.panel {
  position: sticky;
  top: 2rem;
  align-self: start;
  padding: 1.55rem;
  border: 1px solid #ececec;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.08);
}

.panelHeader,
.libraryHeader,
.trackCardHead,
.fieldLabelRow,
.toggleRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.panelTitle,
.resultsTitle {
  margin: 0.45rem 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.panelText,
.resultsMeta {
  margin: 0.75rem 0 0;
  color: #676767;
  font-size: 0.9rem;
  line-height: 1.65;
}

.modeSwitch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.22rem;
  border-radius: 999px;
  background: #efefef;
}

.modeButton {
  min-width: 5.8rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.modeButtonActive {
  background: #ffcc00;
  color: #050505;
}

.form,
.fieldBlock,
.controlCard,
.toggleList,
.libraryColumn {
  display: grid;
  gap: 0.9rem;
}

.archiveGrid > .libraryColumn:only-child {
  grid-column: 1 / -1;
}

.form {
  margin-top: 1.4rem;
}

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

.fieldBlockWide {
  grid-column: 1 / -1;
}

.fieldLabel {
  font-size: 0.92rem;
  font-weight: 700;
}

.fieldHint {
  color: #8a8a8a;
  font-size: 0.8rem;
}

.textArea,
.textInput,
.selectInput {
  width: 100%;
  border: 1px solid #e4e4e4;
  border-radius: 1.3rem;
  background: #f6f6f6;
  color: #050505;
  font: inherit;
  outline: none;
}

.textArea,
.textInput {
  padding: 1rem 1.05rem;
}

.textArea {
  min-height: 12rem;
  resize: vertical;
}

.textArea::placeholder,
.textInput::placeholder {
  color: #9b9b9b;
}

.textArea:focus,
.textInput:focus,
.selectInput:focus {
  border-color: #ffcc00;
  box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.18);
}

.controlCard {
  padding: 1rem 1.05rem;
  border: 1px solid #e4e4e4;
  border-radius: 1.3rem;
  background: #f6f6f6;
}

.selectInput {
  padding: 0;
  border: 0;
  background: transparent;
}

.selectInput option {
  color: #050505;
}

.toggleRow {
  align-items: center;
  color: #4f4f4f;
}

.toggleRow input {
  width: 1rem;
  height: 1rem;
  accent-color: #ffcc00;
}

.noticeBox {
  padding: 1rem 1.05rem;
  border-radius: 1.3rem;
  border: 1px solid #ececec;
  line-height: 1.6;
}

.noticeBox p {
  margin: 0;
}

.noticeInfo {
  background: #f6f6f6;
  color: #3d3d3d;
}

.noticeError {
  background: #fff2f4;
  border-color: #ffd6dc;
  color: #8c2438;
}

.actionRow,
.trackActionRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.primaryButton,
.secondaryButton,
.ghostButton,
.primaryLink,
.secondaryLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.primaryButton,
.primaryLink {
  border: 1px solid #050505;
  background: #050505;
  color: #ffcc00;
}

.secondaryButton,
.secondaryLink {
  border: 1px solid #050505;
  background: #fff;
  color: #050505;
}

.ghostButton {
  border: 1px solid #d7d7d7;
  background: #f4f4f4;
  color: #4d4d4d;
}

.primaryButton:hover,
.secondaryButton:hover,
.ghostButton:hover,
.primaryLink:hover,
.secondaryLink:hover {
  transform: translateY(-1px);
}

.primaryButton:disabled,
.secondaryButton:disabled {
  opacity: 0.66;
  cursor: not-allowed;
}

.activeTrackAction {
  background: #ffcc00;
  color: #050505;
  border-color: #ffcc00;
}

.trackActionMuted {
  display: inline-flex;
  align-items: center;
  padding: 0.92rem 0;
  color: #8c8c8c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.libraryHeader {
  align-items: end;
}

.trackGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1.5rem;
}

.trackCard {
  display: grid;
  gap: 0.9rem;
}

.trackVisual {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  background: #f3f3f3;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.trackImage {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.trackCard:hover .trackImage {
  transform: scale(1.08) rotate(1deg);
}

.trackFallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #5d5d5d;
  font-family: var(--font-mono), monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.trackOverlayButton,
.trackOverlayMuted {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 220ms ease;
}

.trackOverlayButton {
  border: 0;
  padding: 0;
  cursor: pointer;
}

.trackCard:hover .trackOverlayButton,
.trackCard:hover .trackOverlayMuted {
  opacity: 1;
}

.playButton,
.playButtonDisabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.playButton {
  background: #ffcc00;
  color: #050505;
  box-shadow: 0 0 28px rgba(255, 204, 0, 0.5);
}

.playButtonDisabled {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #0f0f0f;
  color: #fff;
}

.statusPill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-mono), monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.statusComplete {
  background: #0f0f0f;
  color: #fff;
}

.statusStreaming {
  background: #0f0f0f;
  color: #ffcc00;
}

.statusQueued {
  background: #ffcc00;
  color: #050505;
}

.statusError {
  background: #7b2941;
  color: #fff;
}

.statusNeutral {
  background: #1c1c1c;
  color: #fff;
}

.trackBody {
  display: grid;
  gap: 0.8rem;
  padding: 0 0.15rem;
}

.trackTitle {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

.emptyState {
  padding: 3rem 1.5rem;
  border: 1px dashed #d9d9d9;
  text-align: center;
}

.emptyText {
  max-width: 34rem;
  margin: 0.8rem auto 0;
  color: #6d6d6d;
  line-height: 1.8;
}

.bottomPlayer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.28);
}

.bottomPlayerInner {
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  max-width: 84rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.bottomPlayerMetaBlock {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.bottomPlayerArt {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.9rem;
  background: #111;
  flex: 0 0 auto;
}

.bottomPlayerArtImage {
  object-fit: cover;
}

.bottomPlayerPlaceholderArt {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #ffcc00;
  font-family: var(--font-mono), monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.bottomPlayerTextBlock {
  min-width: 0;
}

.bottomPlayerKicker {
  margin: 0;
  color: #ffcc00;
  font-family: var(--font-mono), monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.bottomPlayerTitle {
  margin: 0.28rem 0 0;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottomPlayerMeta {
  margin: 0.35rem 0 0;
  color: #8f8f8f;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottomPlayerAudio {
  width: 100%;
  min-width: 0;
}

.bottomPlayerEmpty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  color: #fff;
}

.bottomPlayerEmptyText {
  margin: 0;
  color: #9a9a9a;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .archiveGrid {
    grid-template-columns: 1fr;
  }

  .panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .metricGrid,
  .formGrid {
    grid-template-columns: 1fr;
  }

  .sectionHeader,
  .panelHeader,
  .libraryHeader,
  .trackCardHead {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .trackGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 420px) {
  .trackGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .heroNav {
    justify-content: center;
    text-align: center;
  }

  .heroSubtitle {
    letter-spacing: 0.08em;
  }

  .heroActions {
    flex-direction: column;
    align-items: stretch;
  }

  .heroPrimary,
  .heroSecondary,
  .sectionAction,
  .primaryButton,
  .secondaryButton,
  .ghostButton,
  .primaryLink,
  .secondaryLink {
    width: 100%;
  }

  .heroStat {
    width: 5.5rem;
    height: 5.5rem;
  }

  .bottomPlayerInner {
    grid-template-columns: 1fr;
  }

  .bottomPlayerEmpty {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .heroMain {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .archiveSection {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .heroTitle {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  .spacer {
    height: 4.5rem;
  }

  .heroMenu {
    gap: 0.8rem;
  }

  .heroMenuLink {
    font-size: 0.64rem;
  }

  .page {
    padding-bottom: 11rem;
  }

  .bottomPlayerInner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .bottomPlayerArt {
    width: 3.8rem;
    height: 3.8rem;
  }
}
