:root {
  color-scheme: dark;
  --ink: #050607;
  --black: #090b0d;
  --steel: #15191d;
  --paper: #f5efe2;
  --muted: #b8b7ae;
  --line: rgba(245, 239, 226, 0.16);
  --red: #e5242a;
  --cyan: #00d5ff;
  --amber: #ffb83d;
  --green: #8fff6f;
  --shadow: rgba(0, 0, 0, 0.45);
  --max: 1320px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--ink); scroll-behavior: smooth; }

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.96), rgba(5, 6, 7, 0.84)),
    linear-gradient(90deg, rgba(229, 36, 42, 0.14), rgba(0, 213, 255, 0.1)),
    #050607;
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(245, 239, 226, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 239, 226, 0.08) 1px, transparent 1px);
  background-size: 5rem 5rem;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
code { color: var(--cyan); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-180%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0.7rem 1rem;
  font-weight: 900;
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(245, 239, 226, 0.12);
  padding: 0 max(1rem, calc((100vw - var(--max)) / 2));
  background: rgba(5, 6, 7, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.nav-tabs,
.nav-tabs a,
.button,
.search-box,
.track-meta,
.track-actions,
.selected-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  min-width: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 239, 226, 0.35);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(229, 36, 42, 0.9), rgba(0, 213, 255, 0.55)),
    var(--steel);
  box-shadow: 0 0 28px rgba(229, 36, 42, 0.24);
}

.brand-mark svg { width: 1.05rem; height: 1.05rem; }

.nav-tabs {
  justify-content: flex-end;
  gap: 0.25rem;
}

.nav-tabs a {
  min-height: 2.35rem;
  gap: 0.42rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.5rem 0.78rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav-tabs a:hover,
.nav-tabs a:focus-visible,
.nav-tabs a.active {
  border-color: rgba(245, 239, 226, 0.18);
  background: rgba(245, 239, 226, 0.08);
  color: white;
  outline: none;
}

.nav-tabs svg,
.button svg,
.search-box svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--cyan);
}

main {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 6.8rem 0 4rem;
}

.voice-hero {
  position: relative;
  min-height: 31rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 30rem);
  align-items: end;
  gap: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 4vw, 2rem);
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.98) 0%, rgba(5, 6, 7, 0.82) 42%, rgba(5, 6, 7, 0.38) 72%, rgba(5, 6, 7, 0.64) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.05), rgba(5, 6, 7, 0.86)),
    url("../assets/uncensored-media-hero.png") center / cover no-repeat;
  box-shadow: 0 28px 80px var(--shadow);
}

.voice-hero > *,
.hero-panel,
.search-box input,
.sort-box select {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--cyan));
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }

h1 {
  max-width: 10ch;
  margin-bottom: 1rem;
  font-size: clamp(4.3rem, 10vw, 8.2rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-lede,
.voice-section p {
  max-width: 42rem;
  margin-bottom: 0;
  color: rgba(245, 239, 226, 0.78);
  font-size: 1.08rem;
}

.hero-panel {
  display: grid;
  gap: 0.75rem;
}

.search-box {
  min-height: 3.2rem;
  gap: 0.7rem;
  border: 1px solid rgba(245, 239, 226, 0.18);
  border-radius: var(--radius);
  padding: 0 0.9rem;
  background: rgba(5, 6, 7, 0.68);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.search-box input,
.sort-box select {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--paper);
  outline: none;
  font-weight: 800;
}

.search-box input::placeholder { color: rgba(245, 239, 226, 0.48); }

.hero-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
}

.button {
  min-height: 3.15rem;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.05rem;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible,
.year-button:hover,
.year-button:focus-visible,
.track-card:hover,
.track-card:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.button-primary svg { color: var(--ink); }

.button-secondary {
  border-color: rgba(245, 239, 226, 0.24);
  background: rgba(245, 239, 226, 0.08);
  color: var(--paper);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.stat-row div {
  min-height: 4.4rem;
  border: 1px solid rgba(245, 239, 226, 0.16);
  border-radius: var(--radius);
  padding: 0.7rem;
  background: rgba(5, 6, 7, 0.58);
}

.stat-row strong,
.stat-row span {
  display: block;
}

.stat-row strong {
  color: white;
  font-size: 1.45rem;
  line-height: 1;
  white-space: nowrap;
}

.stat-row span {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.voice-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 1fr);
  gap: 1rem;
  align-items: end;
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.1rem;
  background:
    linear-gradient(90deg, rgba(229, 36, 42, 0.18), rgba(0, 213, 255, 0.08)),
    rgba(5, 6, 7, 0.48);
}

.library-shell {
  display: grid;
  grid-template-columns: 14rem minmax(22rem, 1fr) minmax(22rem, 0.9fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.year-rail,
.track-list-panel,
.player-panel {
  min-width: 0;
}

.year-rail,
.track-list-panel,
.selected-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(245, 239, 226, 0.06), rgba(245, 239, 226, 0.02)),
    rgba(5, 6, 7, 0.82);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.year-rail {
  position: sticky;
  top: 5.5rem;
  padding: 0.9rem;
}

.rail-head,
.list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rail-head {
  align-items: center;
  border-bottom: 1px solid rgba(245, 239, 226, 0.12);
  padding-bottom: 0.8rem;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rail-head strong { color: var(--cyan); }

.year-filters {
  display: grid;
  gap: 0.55rem;
  max-height: 45rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.year-button {
  width: 100%;
  min-height: 2.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid rgba(245, 239, 226, 0.13);
  border-radius: var(--radius);
  padding: 0.65rem 0.72rem;
  background: rgba(245, 239, 226, 0.06);
  color: var(--paper);
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.year-button small {
  color: var(--muted);
  font-weight: 900;
}

.year-button.active {
  border-color: rgba(255, 184, 61, 0.54);
  background: rgba(255, 184, 61, 0.11);
}

.track-list-panel {
  padding: 1rem;
}

.sort-box {
  min-width: 9rem;
  display: grid;
  gap: 0.35rem;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sort-box select {
  min-height: 3rem;
  border: 1px solid rgba(245, 239, 226, 0.18);
  border-radius: var(--radius);
  padding: 0 0.85rem;
  background: rgba(245, 239, 226, 0.08);
}

.track-list {
  display: grid;
  gap: 1rem;
}

.year-group {
  display: grid;
  gap: 0.72rem;
}

.year-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.6rem 0 0.15rem;
  font-size: 1.05rem;
}

.year-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(245, 239, 226, 0.13);
}

.track-card {
  width: 100%;
  border: 1px solid rgba(245, 239, 226, 0.12);
  border-radius: var(--radius);
  padding: 0.9rem;
  background: rgba(5, 6, 7, 0.5);
  color: inherit;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.track-card.active,
.track-card:hover,
.track-card:focus-visible {
  border-color: rgba(0, 213, 255, 0.44);
  background: rgba(0, 213, 255, 0.07);
}

.track-card h3 {
  margin: 0.55rem 0 0.45rem;
  font-size: 1.08rem;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.track-meta {
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 239, 226, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  background: rgba(245, 239, 226, 0.06);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.pill.year { color: var(--amber); }
.pill.ext { color: var(--cyan); }

.track-actions {
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.text-link svg { width: 0.85rem; height: 0.85rem; }

.player-panel {
  position: sticky;
  top: 5.5rem;
}

.selected-card {
  overflow: hidden;
}

.selected-player {
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(0, 213, 255, 0.12), rgba(229, 36, 42, 0.12)),
    rgba(5, 6, 7, 0.82);
}

.selected-player audio {
  display: block;
  width: 100%;
}

.selected-body {
  padding: 1rem;
}

.selected-body h2 {
  max-width: 14ch;
  margin: 0.7rem 0;
}

.player-status {
  color: rgba(245, 239, 226, 0.68);
  font-size: 0.9rem;
}

.player-status.error {
  color: #ffd0d0;
}

.selected-actions {
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.original-link {
  min-height: 2.75rem;
  padding-inline: 0.25rem;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  color: var(--muted);
  background: rgba(245, 239, 226, 0.05);
}

@media (max-width: 1120px) {
  .library-shell {
    grid-template-columns: 13rem minmax(0, 1fr);
  }

  .player-panel {
    grid-column: 1 / -1;
    position: relative;
    top: auto;
  }
}

@media (max-width: 820px) {
  .topbar {
    min-height: auto;
    display: grid;
    align-items: stretch;
    padding-block: 0.7rem;
  }

  .nav-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .nav-tabs a {
    justify-content: center;
  }

  main {
    width: min(100% - 1rem, var(--max));
    padding-top: 10rem;
  }

  .voice-hero,
  .voice-section,
  .library-shell,
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .voice-hero {
    min-height: 0;
    background-position: 58% center;
  }

  .year-rail {
    position: relative;
    top: auto;
  }
}

@media (max-width: 560px) {
  main { padding-top: 10.2rem; }

  .brand {
    font-size: 0.86rem;
  }

  h1 {
    font-size: 3.3rem;
  }

  .hero-lede,
  .voice-section p {
    max-width: 30ch;
    font-size: 0.96rem;
  }

  .voice-section h2 {
    max-width: 10ch;
  }

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

  .stat-row div:last-child {
    grid-column: 1 / -1;
  }

  .stat-row strong {
    font-size: 1.2rem;
  }

  .button {
    width: 100%;
  }

  .list-toolbar,
  .rail-head {
    align-items: start;
    display: grid;
  }
}

@media (max-width: 380px) {
  .stat-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
