/* HWND base styles - modernised from the original test.css */
* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 10px;
  padding: 0;
  background-color: #333333;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

a {
  color: #ff9000;
  text-decoration: none;
}

a:visited,
a:active {
  color: #ff9000;
}

a:hover,
a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.top-nav {
  min-height: 30px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 6px;
  font-size: 16px;
}

#banner {
  height: 62px;
  background-color: #000000;
  background-image: url("image/HWNDdespair4.jpg");
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid #ff9000;
}

.page-layout {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 112px;
  gap: 7px;
  margin-top: 7px;
  align-items: start;
}

#leftcontent,
#centercontent,
#rightcontent {
  background-color: #000000;
  border: 1px solid #ff9000;
}

#leftcontent,
#rightcontent {
  text-align: center;
}

#leftcontent {
  padding: 15px 5px 16px;
  font-size: 14px;
}

#leftcontent a,
#rightcontent a {
  display: block;
}

#centercontent {
  min-height: 136px;
  padding: 0 10px 10px;
  text-align: center;
}

h1 {
  margin: 0 0 10px;
  padding-top: 10px;
  color: #ffffff;
  font-size: 18px;
  text-align: center;
}

p {
  margin: 0 0 10px;
  color: #ffffff;
}

.tagline {
  text-align: center;
}

.stats {
  margin-top: 24px;
  font-size: 10px;
  text-align: center;
}

#rightcontent {
  padding: 15px 5px 16px;
  font-size: 10px;
}

.quick-links-title {
  margin-bottom: 2px;
  font-size: 10px;
}

/* Retained for older pages that still use tables while they are modernised. */
table {
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
}

.legacy-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

td {
  color: #ffffff;
  text-align: left;
}

a img {
  border: 1px solid #ff9000;
}

tr.whitetext { color: #ffffff; font-size: 10pt; }
tr.whitetext2 { color: #ffffff; font-size: 12pt; }
tr.whitetext3 { color: #ffffff; font-size: 8pt; }

/* First-stage mobile treatment: preserve the content, stack the columns. */
@media (max-width: 700px) {
  body {
    margin: 8px;
  }

  .top-nav {
    justify-content: center;
    font-size: 14px;
  }

  #banner {
    background-size: contain;
  }

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

  #centercontent {
    grid-row: 1;
  }

  #leftcontent {
    grid-row: 2;
  }

  #rightcontent {
    grid-row: 3;
  }

  #leftcontent a,
  #rightcontent a {
    padding: 3px 0;
  }
}

/* Archive landing page */
.archive-years {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 20px 0;
}

.archive-years img {
  display: block;
  max-width: 100%;
  height: auto;
}

.archive-genres {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 15px;
  margin: 20px 0;
}

.archive-count {
  margin-top: 22px;
}

.archive-disclaimer {
  margin-top: 20px;
  font-size: 10px;
}

.archive-search {
  margin-top: 12px;
  color: #ffffff;
}

.archive-search label {
  display: block;
  margin-bottom: 3px;
}

.archive-search input {
  max-width: 100%;
  border: 1px solid #ff9000;
  background-color: #333333;
  color: #ff9000;
  font: inherit;
}

.archive-search button {
  margin-top: 4px;
  border: 1px solid #ff9000;
  background-color: #333333;
  color: #ff9000;
  font: inherit;
  cursor: pointer;
}

.archive-search button:hover,
.archive-search button:focus-visible {
  color: #ffffff;
}

/* Reusable image grid - used by Mixes and later Tracklists. */
.mix-djs {
  display: grid;
  grid-template-columns: repeat(5, 60px);
  justify-content: center;
  gap: 6px;
  margin: 20px 0;
}

.mix-djs img {
  display: block;
  width: 60px;
  height: auto;
}


/* Flyer archive and flyer walls */
.flyer-archive-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto 10px;
}

.flyer-wall-links {
  margin: 14px 0;
}

.flyer-wall-wrap {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}

.flyer-wall {
  width: max-content;
  margin: 0 auto;
  text-align: center;
  line-height: 1;
}

.flyer-wall a {
  display: inline-block;
  margin: 1px;
  vertical-align: middle;
}

.flyer-wall img {
  display: block;
}


/* History hub: keep the original desktop image size, but contain it on phones. */
@media (max-width: 700px) {
  .history-image img {
    max-width: 100%;
    height: auto;
  }
}

/* Rave Timeline: preserve the original dense archive layout while containing legacy media on narrow screens. */
.timeline-content {
  min-width: 0;
}

.timeline-content table {
  max-width: 100%;
}

.timeline-content img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  .timeline-content table[width="576"],
  .timeline-content table[width="700"] {
    width: 100%;
  }
}

/* Rave Timeline mobile fix: keep the legacy timeline inside one phone-width column. */
@media (max-width: 700px) {
  .page-layout,
  #centercontent,
  .timeline-content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .timeline-content table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
  }

  .timeline-content td,
  .timeline-content p {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* Archive result pagination */
.archive-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin: 15px 0;
  font-size: 16px;
}

.archive-pagination span {
  color: #ffffff;
}

/* Tracklist database results */
.tracklist-search {
  margin: 12px 0 18px;
  text-align: center;
  color: #ffffff;
}

.tracklist-search label {
  display: block;
  margin-bottom: 3px;
}

.tracklist-search input {
  max-width: 100%;
  border: 1px solid #ff9000;
  background-color: #333333;
  color: #ff9000;
  font: inherit;
}

.tracklist-search button {
  border: 1px solid #ff9000;
  background-color: #333333;
  color: #ff9000;
  font: inherit;
  cursor: pointer;
}

.tracklist-search button:hover,
.tracklist-search button:focus-visible {
  color: #ffffff;
}

.archive-results-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.archive-results {
  width: 100%;
  max-width: 760px;
  border-collapse: collapse;
  margin: 12px auto;
}

.archive-results th,
.archive-results td {
  padding: 5px 8px;
  border-bottom: 1px solid #555555;
  color: #ffffff;
  text-align: left;
  vertical-align: top;
}

.archive-results th {
  color: #ff9000;
  font-weight: bold;
}

.archive-results td:last-child,
.archive-results th:last-child {
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .archive-results {
    min-width: 560px;
  }
}

/* Modern HWND homepage frame prototype */
.modern-home {
  grid-template-columns: minmax(0, 1fr) 170px;
}

.modern-home #centercontent {
  min-width: 0;
  padding: 12px;
}

.modern-home #rightcontent {
  padding: 12px 8px;
  font-size: 12px;
  text-align: left;
}

.home-search {
  margin: 4px 0 12px;
  padding: 14px;
  border: 1px solid #ff9000;
  text-align: center;
}

.home-search h1 {
  padding-top: 0;
  margin-bottom: 8px;
  font-size: 24px;
}

.home-search form {
  display: flex;
  width: min(680px, 100%);
  margin: 0 auto;
}

.home-search input {
  min-width: 0;
  flex: 1;
  padding: 9px 10px;
  border: 1px solid #ff9000;
  background: #222222;
  color: #ffffff;
  font: inherit;
}

.home-search button {
  padding: 9px 16px;
  border: 1px solid #ff9000;
  background: #ff9000;
  color: #000000;
  font-weight: bold;
  cursor: pointer;
}

.home-search-note {
  margin: 7px 0 0;
  font-size: 11px;
}

.home-sections {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.home-section {
  min-width: 0;
  border: 1px solid #ff9000;
  background: #000000;
  text-align: left;
}

.home-section-art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid #ff9000;
  background: #1c1c1c;
  color: #777777;
  font-size: 11px;
  letter-spacing: 1px;
}

.home-section-copy {
  padding: 10px;
}

.home-section h2 {
  margin: 0 0 6px;
  color: #ff9000;
  font-size: 19px;
}

.home-section p {
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.3;
}

.home-section-link {
  font-weight: bold;
}

.home-stats {
  margin: 14px 0 2px;
  padding-top: 10px;
  border-top: 1px solid #ff9000;
  font-size: 11px;
  text-align: center;
}

.home-quick-links a {
  padding: 3px 0;
}

.home-latest {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #ff9000;
}

.home-latest-title {
  margin: 0 0 6px;
  color: #ff9000;
  font-weight: bold;
}

.home-latest p {
  margin-bottom: 7px;
  font-size: 11px;
}

@media (max-width: 1000px) {
  .home-sections {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .modern-home {
    grid-template-columns: 1fr;
  }

  .modern-home #centercontent,
  .modern-home #rightcontent {
    grid-row: auto;
  }

  .home-search h1 {
    font-size: 21px;
  }

  .home-search form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-sections {
    grid-template-columns: 1fr;
  }

  .home-section {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .home-section-art {
    aspect-ratio: auto;
    min-height: 90px;
    border-right: 1px solid #ff9000;
    border-bottom: 0;
  }

  .home-section p {
    min-height: 0;
  }

  .modern-home #rightcontent {
    text-align: center;
  }

  .home-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 10px;
  }
}


/* Homepage frame v2: single centred column; no right rail. */
.modern-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.modern-home #centercontent {
  width: 100%;
}

.home-quick-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 14px;
  padding: 9px 10px;
  border-top: 1px solid #ff9000;
  border-bottom: 1px solid #ff9000;
  font-size: 11px;
}

.home-quick-strip span {
  color: #ffffff;
  font-weight: bold;
}

.home-stats {
  border-top: 0;
}

@media (max-width: 700px) {
  .home-quick-strip {
    gap: 6px 12px;
  }
}


/* Modern Audio landing frame */
.audio-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.audio-home #centercontent {
  width: 100%;
  padding: 16px;
}

.audio-heading {
  margin-bottom: 14px;
}

.audio-heading h1 {
  margin-bottom: 4px;
  padding-top: 0;
  font-size: 28px;
}

.audio-heading p {
  margin: 0;
  text-align: center;
  font-size: 12px;
}

.audio-search-panel {
  max-width: 850px;
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid #ff9000;
}

.audio-search-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.audio-search-panel input {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #ff9000;
  background: #202020;
  color: #ffffff;
  font: inherit;
}

.audio-search-panel button {
  padding: 0 24px;
  border: 1px solid #ff9000;
  border-left: 0;
  background: #ff9000;
  color: #000000;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.audio-years {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.audio-year {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid #ff9000;
  background: #1c1c1c;
  text-align: left;
}

.audio-year-art {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 130px;
  color: #777777;
  font-size: 11px;
  letter-spacing: 1px;
}

.audio-year-label {
  padding: 10px 12px;
  border-top: 1px solid #ff9000;
  background: #000000;
}

.audio-year-label strong {
  display: block;
  color: #ff9000;
  font-size: 23px;
}

.audio-year-label span {
  display: block;
  margin-top: 2px;
  color: #ffffff;
  font-size: 10px;
}

.audio-year.is-live:hover,
.audio-year.is-live:focus-within {
  border-color: #ffffff;
}

.audio-year.is-live a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.audio-year.is-pending {
  opacity: 0.55;
}

.audio-bottom {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #ff9000;
  text-align: center;
  font-size: 11px;
}

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

@media (max-width: 700px) {
  .audio-home #centercontent {
    padding: 12px;
  }

  .audio-heading h1 {
    font-size: 23px;
  }

  .audio-search-panel {
    padding: 10px;
  }

  .audio-search-panel button {
    padding: 0 14px;
  }

  .audio-years {
    grid-template-columns: 1fr 1fr;
  }

  .audio-year {
    min-height: 135px;
  }

  .audio-year-art {
    min-height: 82px;
  }

  .audio-year-label strong {
    font-size: 20px;
  }
}


/* Audio layout experiments v2 */
.audio-search-panel.audio-search-open {
  border: 0;
  padding: 4px 0 10px;
}

.audio-quick-strip {
  margin-top: 18px;
}

.audio-years.seven-years {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.seven-years .audio-year {
  min-height: 180px;
}

.seven-years .audio-year-art {
  min-height: 120px;
}

.seven-years .audio-year-label {
  text-align: center;
  padding: 9px 5px;
}

.seven-years .audio-year-label strong {
  font-size: 21px;
}

.audio-year-nav {
  cursor: pointer;
  appearance: none;
  width: 100%;
  padding: 0;
  color: #ff9000;
  font: inherit;
}

.audio-year-nav .audio-year-art {
  font-size: 58px;
  color: #ff9000;
}

.audio-year-nav .audio-year-label {
  text-align: center;
}

.audio-year-nav:hover,
.audio-year-nav:focus-visible {
  border-color: #ffffff;
  color: #ffffff;
}

.audio-year-nav:hover .audio-year-art,
.audio-year-nav:focus-visible .audio-year-art {
  color: #ffffff;
}

.audio-year-window-note {
  margin: 9px 0 0;
  text-align: center;
  font-size: 10px;
  color: #aaaaaa;
}

@media (max-width: 1100px) {
  .audio-years.seven-years {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .audio-years.seven-years {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audio-years.five-window {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .five-window .audio-year {
    min-height: 105px;
  }

  .five-window .audio-year-art {
    min-height: 62px;
  }

  .five-window .audio-year-label {
    padding: 7px 2px;
    text-align: center;
  }

  .five-window .audio-year-label strong {
    font-size: 15px;
  }

  .five-window .audio-year-label span {
    display: none;
  }

  .five-window .audio-year-nav .audio-year-art {
    font-size: 34px;
  }
}


/* Modern Audio Archive results test */
.archive-modern-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.archive-modern-layout #centercontent {
  min-width: 0;
  width: 100%;
  padding: 12px;
}

.archive-modern-heading h1 {
  margin-bottom: 2px;
  font-size: 24px;
}

.archive-modern-heading p {
  margin-bottom: 10px;
  color: #ff9000;
  font-size: 16px;
  font-weight: bold;
}

.archive-main-search.archive-search-open {
  margin: 10px auto 14px;
  padding: 0;
  border: 0;
  text-align: center;
}

.archive-main-search label {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 11px;
}

.archive-main-search-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 850px;
  margin: 0 auto;
}

.archive-main-search-row input[type="search"] {
  min-width: 0;
  flex: 1 1 auto;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ff9000;
  background: #222222;
  color: #ffffff;
  font: inherit;
}

.archive-main-search-row button {
  min-width: 110px;
  border: 1px solid #ff9000;
  background: #ff9000;
  color: #000000;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.archive-main-search-row > a {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #ff9000;
  border-left: 0;
}

.archive-search-summary,
.archive-message {
  margin: 10px 0;
  text-align: center;
}

.archive-modern-layout .archive-results {
  max-width: none;
}

.archive-play {
  border: 1px solid #ff9000;
  background: #222222;
  color: #ff9000;
  font: inherit;
  cursor: pointer;
}

.archive-play:hover,
.archive-play:focus-visible {
  color: #ffffff;
  border-color: #ffffff;
}

.archive-player {
  max-width: 760px;
  margin: 14px auto 4px;
  text-align: center;
}

.archive-player p {
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 16px;
}

.archive-play.is-playing {
  color: #66bfff;
  border-color: #66bfff;
}

.archive-player p.is-playing {
  color: #66bfff;
}

.archive-player audio {
  width: 100%;
  max-width: 620px;
}

.archive-quick-strip {
  margin-top: 18px;
}

@media (max-width: 700px) {
  .archive-modern-layout #centercontent {
    padding: 10px;
  }

  .archive-modern-heading h1 {
    font-size: 21px;
  }

  .archive-main-search-row {
    flex-wrap: wrap;
  }

  .archive-main-search-row input[type="search"] {
    flex-basis: calc(100% - 92px);
  }

  .archive-main-search-row button {
    min-width: 92px;
  }

  .archive-main-search-row > a {
    width: 100%;
    justify-content: center;
    min-height: 30px;
    border-left: 1px solid #ff9000;
    border-top: 0;
  }
}


/* Modern Tracklists results - aligned with the approved Archive V4 shell. */
.tracklist-modern-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.tracklist-modern-layout #centercontent {
  min-width: 0;
  width: 100%;
  padding: 12px;
}

.tracklist-modern-heading h1 {
  margin-bottom: 8px;
  font-size: 24px;
}

.tracklist-results-search {
  margin: 8px auto 12px;
  text-align: center;
}

.tracklist-results-search label {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 11px;
}

.tracklist-results-search-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 850px;
  margin: 0 auto;
}

.tracklist-results-search-row input[type="search"] {
  min-width: 0;
  flex: 1 1 auto;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ff9000;
  background: #222222;
  color: #ffffff;
  font: inherit;
}

.tracklist-results-search-row button {
  min-width: 110px;
  border: 1px solid #ff9000;
  background: #ff9000;
  color: #000000;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.tracklist-results-search-row > a {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #ff9000;
  border-left: 0;
}

.tracklist-search-summary,
.tracklist-message {
  margin: 10px 0;
  text-align: center;
}

.tracklist-modern-layout .archive-results {
  max-width: none;
}

.tracklist-results th:first-child,
.tracklist-results td:first-child {
  width: 72px;
  text-align: center;
  white-space: nowrap;
}

.tracklist-results th:last-child,
.tracklist-results td:last-child {
  width: 90px;
  text-align: left;
}

.tracklist-view-link {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid #ff9000;
}

.tracklist-view-link:hover,
.tracklist-view-link:focus-visible {
  border-color: #ffffff;
  text-decoration: none;
}

.tracklist-quick-strip {
  margin-top: 18px;
}

@media (max-width: 700px) {
  .tracklist-modern-layout #centercontent {
    padding: 10px;
  }

  .tracklist-modern-heading h1 {
    font-size: 21px;
  }

  .tracklist-results-search-row {
    flex-wrap: wrap;
  }

  .tracklist-results-search-row input[type="search"] {
    flex-basis: calc(100% - 92px);
  }

  .tracklist-results-search-row button {
    min-width: 92px;
  }

  .tracklist-results-search-row > a {
    width: 100%;
    justify-content: center;
    min-height: 30px;
    border-left: 1px solid #ff9000;
    border-top: 0;
  }

  .tracklist-results {
    min-width: 520px;
  }
}


/* Tracklists results v2: keep the HWND shell wide, but make this compact dataset fit its content. */
.tracklist-modern-layout .archive-results-wrap {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.tracklist-modern-layout .archive-pagination {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.tracklist-results {
  width: 100%;
  table-layout: fixed;
}

.tracklist-results th:nth-child(1),
.tracklist-results td:nth-child(1) {
  width: 76px;
}

.tracklist-results th:nth-child(2),
.tracklist-results td:nth-child(2) {
  width: 25%;
}

.tracklist-results th:nth-child(3),
.tracklist-results td:nth-child(3) {
  width: auto;
}

.tracklist-results th:nth-child(4),
.tracklist-results td:nth-child(4) {
  width: 82px;
}

@media (max-width: 700px) {
  .tracklist-modern-layout .archive-results-wrap,
  .tracklist-modern-layout .archive-pagination {
    max-width: none;
  }

  .tracklist-results {
    table-layout: auto;
  }
}


/* Tracklist viewer v1 - presentation only; listing/file handling remains unchanged. */
.tracklist-view-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.tracklist-view-layout #centercontent {
  min-width: 0;
  width: 100%;
  padding: 12px;
}

.tracklist-view-heading h1 {
  margin-bottom: 8px;
  font-size: 24px;
}

.tracklist-view-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 0 auto 16px;
  text-align: center;
}

.tracklist-view-meta strong {
  color: #ff9000;
}

.tracklist-view-meta span + span::before {
  content: "·";
  margin-right: 14px;
  color: #ffffff;
}

.tracklist-view-content {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid #555555;
  background: #050505;
  color: #ffffff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.6;
  text-align: left;
}

.tracklist-view-message,
.tracklist-view-original,
.tracklist-view-back {
  text-align: center;
}

.tracklist-view-original {
  max-width: 760px;
  margin: 0 auto;
}

.tracklist-view-back {
  margin: 16px 0 4px;
}

.tracklist-view-quick-strip {
  margin-top: 18px;
}

@media (max-width: 700px) {
  .tracklist-view-layout #centercontent {
    padding: 10px;
  }

  .tracklist-view-heading h1 {
    font-size: 21px;
  }

  .tracklist-view-meta {
    display: block;
    line-height: 1.5;
  }

  .tracklist-view-meta strong,
  .tracklist-view-meta span {
    display: block;
  }

  .tracklist-view-meta span + span::before {
    content: none;
  }

  .tracklist-view-content {
    padding: 10px;
    line-height: 1.5;
  }
}


/* Modern Tracklists landing - uses the approved Modern HWND shell above. */
.tracklist-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.tracklist-home #centercontent {
  min-width: 0;
  width: 100%;
  padding: 12px;
}

.tracklist-heading h1 {
  margin-bottom: 10px;
  font-size: 24px;
}

.tracklist-main-search {
  max-width: 850px;
  margin: 0 auto 14px;
  text-align: center;
}

.tracklist-main-search label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
}

.tracklist-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.tracklist-search-row input {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ff9000;
  background: #202020;
  color: #ffffff;
  font: inherit;
}

.tracklist-search-row button {
  padding: 0 22px;
  border: 1px solid #ff9000;
  border-left: 0;
  background: #ff9000;
  color: #000000;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.tracklist-browse {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #ff9000;
}

.tracklist-browse h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
}

.tracklist-djs {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}

.tracklist-djs a {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ff9000;
  background: #000000;
  text-align: center;
}

.tracklist-djs a:hover,
.tracklist-djs a:focus-visible {
  text-decoration: none;
}

.tracklist-djs img {
  display: block;
  width: 100%;
  aspect-ratio: 1.08 / 1;
  object-fit: cover;
  border: 0;
  border-bottom: 1px solid #ff9000;
}

.tracklist-djs span {
  display: flex;
  min-height: 25px;
  padding: 2px;
  align-items: center;
  justify-content: center;
  color: #ff9000;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.05;
}

.tracklist-compact {
  text-align: center;
}

.tracklist-text-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 15px;
  font-size: 11px;
}

.tracklist-home .home-quick-strip {
  margin-top: 12px;
}

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

@media (max-width: 700px) {
  .tracklist-home #centercontent {
    padding: 10px;
  }

  .tracklist-heading h1 {
    font-size: 21px;
  }

  .tracklist-search-row button {
    padding: 0 14px;
  }

  .tracklist-djs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .tracklist-djs span {
    min-height: 24px;
    font-size: 9px;
  }
}

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


/* Tracklists v3 calming pass */
.tracklist-dj-browse {
  border-top: 0;
  padding-top: 0;
}

/* One clean frame around each DJ tile; no line between photo and name. */
.tracklist-djs img {
  border-bottom: 0;
}


/* Modern History landing page */
.history-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.history-home #centercontent { width: 100%; padding: 16px; }
.history-heading { margin-bottom: 14px; text-align: center; }
.history-heading h1 { margin-bottom: 4px; padding-top: 0; font-size: 28px; }
.history-heading p { margin-bottom: 0; font-size: 13px; }
.history-hero { margin: 0 auto 16px; text-align: center; }
.history-hero img {
  display: block; max-width: 100%; height: auto; margin: 0 auto;
  border: 1px solid #ff9000;
}
.history-sections {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.history-sections > a {
  min-width: 0; padding: 14px 12px; border: 1px solid #ff9000;
  background: #111111; text-align: left;
}
.history-sections > a:hover,
.history-sections > a:focus-visible { background: #1c1c1c; text-decoration: none; }
.history-sections strong, .history-sections span { display: block; }
.history-sections strong {
  margin-bottom: 5px; color: #ff9000; font-size: 16px;
}
.history-sections span {
  color: #ffffff; font-size: 12px; line-height: 1.35;
}
@media (max-width: 900px) {
  .history-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .history-home #centercontent { padding: 12px; }
  .history-heading h1 { font-size: 24px; }
  .history-sections { grid-template-columns: 1fr; }
}

/* Modern FAQ page */
.faq-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.faq-home #centercontent { width: 100%; padding: 16px; }
.faq-heading { margin-bottom: 14px; text-align: center; }
.faq-heading h1 { margin-bottom: 0; padding-top: 0; font-size: 28px; }
.faq-list { max-width: 940px; margin: 0 auto; }
.faq-list p {
  margin: 0; padding: 12px 0; border-bottom: 1px solid #333333;
  text-align: left !important; line-height: 1.5;
}
.faq-list p:first-child { border-top: 1px solid #333333; }
.faq-list i b { color: #ff9000; font-style: normal; }
.faq-home .home-quick-strip { margin-top: 16px; }

@media (max-width: 700px) {
  .faq-home #centercontent { padding: 12px; }
  .faq-heading h1 { font-size: 24px; }
  .faq-list p { padding: 11px 0; }
}

/* Modern Documentaries page */
.documentaries-home { grid-template-columns: minmax(0, 1fr); max-width: 1180px; margin-left: auto; margin-right: auto; }
.documentaries-home #centercontent { width: 100%; padding: 16px; }
.documentaries-heading { margin-bottom: 14px; text-align: center; }
.documentaries-heading h1 { margin-bottom: 0; padding-top: 0; font-size: 28px; }
.documentaries-home .legacy-table-wrap { max-width: 760px; margin: 0 auto; }
.documentaries-home table { width: 100%; }
.documentaries-home td { padding: 7px 10px; vertical-align: middle; }
.documentaries-home td:first-child { width: 68px; text-align: center; }
.documentaries-home td img { display: block; margin: 0 auto; }
.documentaries-home #centercontent > p { margin: 14px 0 0; text-align: center; }
.documentaries-home .home-quick-strip { margin-top: 16px; }
@media (max-width: 700px) {
  .documentaries-home #centercontent { padding: 12px; }
  .documentaries-heading h1 { font-size: 24px; }
  .documentaries-home td { padding: 7px 6px; }
}

/* Modern historical video-list pages */
.video-archive-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.video-archive-home #centercontent { width: 100%; padding: 16px; }
.video-archive-heading { margin-bottom: 14px; text-align: center; }
.video-archive-heading h1 { margin-bottom: 5px; padding-top: 0; font-size: 28px; }
.video-archive-heading p { margin: 0; }
.video-archive-list { max-width: 760px; margin: 0 auto; border-top: 1px solid #333333; }
.video-archive-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  border-bottom: 1px solid #333333;
}
.video-archive-play { text-align: center; }
.video-archive-play img { display: block; margin: 0 auto; }
.video-archive-title { text-align: left; }
.video-archive-credit { margin: 18px auto 0; text-align: center; }
.video-archive-credit strong { display: block; margin-bottom: 5px; font-size: 11px; }
.video-archive-back { margin: 14px 0 0; text-align: center; }
.video-archive-home .home-quick-strip { margin-top: 16px; }

@media (max-width: 700px) {
  .video-archive-home #centercontent { padding: 12px; }
  .video-archive-heading h1 { font-size: 24px; }
  .video-archive-row { grid-template-columns: 58px minmax(0, 1fr); gap: 8px; }
}

/* Modern video landing page */
.video-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.video-home #centercontent { width: 100%; padding: 16px; }
.video-home-heading { text-align: center; margin-bottom: 14px; }
.video-home-heading h1 { margin: 0; padding: 0; font-size: 28px; }
.video-home-list { max-width: 760px; margin: 0 auto; border-top: 1px solid #333333; }
.video-home-card {
  display: block;
  padding: 16px 12px;
  border-bottom: 1px solid #333333;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
}
.video-home .home-quick-strip { margin-top: 18px; }
@media (max-width: 700px) {
  .video-home #centercontent { padding: 12px; }
  .video-home-heading h1 { font-size: 24px; }
  .video-home-card { padding: 14px 8px; font-size: 17px; }
}

/* Modern disclaimer pages */
.disclaimer-page {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.disclaimer-page #centercontent { width: 100%; padding: 16px; }
.disclaimer-heading { text-align: center; margin-bottom: 14px; }
.disclaimer-heading h1 { margin: 0; padding: 0; font-size: 28px; }
.disclaimer-copy {
  max-width: 820px;
  margin: 0 auto;
  padding: 4px 0;
  line-height: 1.55;
}
.disclaimer-copy p { margin: 0; padding: 12px 4px; border-bottom: 1px solid #333333; }
.disclaimer-copy p:first-child { border-top: 1px solid #333333; }
.disclaimer-page .home-quick-strip { margin-top: 18px; }
@media (max-width: 700px) {
  .disclaimer-page #centercontent { padding: 12px; }
  .disclaimer-heading h1 { font-size: 24px; }
}

/* Modern Acid House section */
.acid-page {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.acid-page #centercontent { width: 100%; padding: 16px; }
.acid-page-heading { text-align: center; margin-bottom: 14px; }
.acid-page-heading h1 { margin: 0; padding: 0; font-size: 28px; }
.acid-legacy-content { max-width: 900px; margin: 0 auto; line-height: 1.5; overflow-wrap: anywhere; }
.acid-legacy-content table { width: 100%; max-width: 100%; }
.acid-legacy-content img { max-width: 100%; height: auto; }
.acid-page .home-quick-strip { margin-top: 18px; }
@media (max-width: 700px) {
  .acid-page #centercontent { padding: 12px; }
  .acid-page-heading h1 { font-size: 24px; }
  .acid-legacy-content table, .acid-legacy-content tbody, .acid-legacy-content tr, .acid-legacy-content td {
    display: block;
    width: 100%;
  }
}

/* Divider lines for repeated Acid House content rows */
.acid-video-content tr + tr > td,
.acid-mixes-content tr + tr > td,
.acid-flyer-content tr + tr > td {
  border-top: 1px solid #333333;
}

/* Modern History inner pages */
.history-inner-page { grid-template-columns:minmax(0,1fr); max-width:1180px; margin-left:auto; margin-right:auto; }
.history-inner-page #centercontent { width:100%; padding:16px; }
.history-inner-heading { text-align:center; margin-bottom:14px; }
.history-inner-heading h1 { margin:0; padding:0; font-size:28px; }
.history-inner-content { max-width:900px; margin:0 auto; line-height:1.5; overflow-wrap:anywhere; }
.history-inner-content table { width:100%; max-width:100%; }
.history-inner-content img { max-width:100%; height:auto; }
.history-inner-content tr + tr > td { border-top:1px solid #333333; }
.history-inner-page .home-quick-strip { margin-top:18px; }
@media (max-width:700px) {
  .history-inner-page #centercontent { padding:12px; }
  .history-inner-heading h1 { font-size:24px; }
  .history-inner-content table,.history-inner-content tbody,.history-inner-content tr,.history-inner-content td { display:block; width:100%; }
}

/* Rave Quotes: clean divider between quote blocks */
.quotes-content p {
  margin: 0;
  padding: 14px 4px;
  border-bottom: 1px solid #333333;
}
.quotes-content p:empty {
  display: none;
}

/* Modern legacy inner-content pages */
.legacy-inner-page { grid-template-columns:minmax(0,1fr); max-width:1180px; margin-left:auto; margin-right:auto; }
.legacy-inner-page #centercontent { width:100%; padding:16px; }
.legacy-inner-heading { text-align:center; margin-bottom:14px; }
.legacy-inner-heading h1 { margin:0; padding:0; font-size:28px; }
.legacy-inner-content { max-width:900px; margin:0 auto; line-height:1.5; overflow-wrap:anywhere; }
.legacy-inner-content table { width:100%; max-width:100%; }
.legacy-inner-content img { max-width:100%; height:auto; }
.legacy-inner-content tr + tr > td { border-top:1px solid #333333; }
.legacy-inner-page .home-quick-strip { margin-top:18px; }

/* Techno Archive: specifically prevent the old fixed-width table causing mobile horizontal scroll */
.technoarc-content { overflow-x:hidden; }
.technoarc-content table { table-layout:auto; }
.technoarc-content td { max-width:100%; overflow-wrap:anywhere; word-break:normal; }

@media (max-width:700px) {
 .legacy-inner-page #centercontent { padding:12px; }
 .legacy-inner-heading h1 { font-size:24px; }
 .legacy-inner-content table,.legacy-inner-content tbody,.legacy-inner-content tr,.legacy-inner-content td { display:block; width:100%; }
 .legacy-inner-content td { padding:8px 2px; }
}

/* Canonical heading consistency — 29 Sep 2026 audit */
.history-heading h1,
.video-archive-heading h1,
.video-home-heading h1,
.disclaimer-heading h1,
.acid-page-heading h1,
.history-inner-heading h1,
.legacy-inner-heading h1,
.tracklist-page h1,
.tracklist-heading h1 {
  font-size: 28px;
}

@media (max-width: 700px) {
  .history-heading h1,
  .video-archive-heading h1,
  .video-home-heading h1,
  .disclaimer-heading h1,
  .acid-page-heading h1,
  .history-inner-heading h1,
  .legacy-inner-heading h1,
  .tracklist-page h1,
  .tracklist-heading h1 {
    font-size: 24px;
  }
}

/* Canonical cleanup batch #2: legacy inline presentation moved into CSS */
.faq-home #centercontent table {
  max-width: 100%;
}
.faq-home #centercontent td {
  vertical-align: top;
}
.faq-home #centercontent img {
  max-width: 100%;
  height: auto;
}

.acid-video-content table {
  width: 100%;
  max-width: 100%;
}
.acid-video-content td {
  vertical-align: top;
}
.acid-video-content img {
  max-width: 100%;
  height: auto;
}

/* Acid Video mobile list: collapse legacy five-cell rows into a clean stacked record */
@media (max-width: 700px) {
  .acid-video-list,
  .acid-video-list tbody {
    display: block;
    width: 100%;
  }
  .acid-video-list tr {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 4px 10px;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #333333;
  }
  .acid-video-list td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .acid-video-list td:empty {
    display: none;
  }
  .acid-video-list td:nth-child(2) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .acid-video-list td:nth-child(3),
  .acid-video-list td:nth-child(4) {
    grid-column: 2;
  }
  .acid-video-list img {
    max-width: 58px;
    height: auto;
  }
}

/* Acid Video rollback: preserve the original list layout on mobile.
   Overrides the experimental grid treatment from the previous test. */
@media (max-width: 700px) {
  .acid-video-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .acid-video-list,
  .acid-video-list tbody,
  .acid-video-list tr,
  .acid-video-list td {
    display: revert;
    width: revert;
    max-width: none;
  }
  .acid-video-list tr {
    padding: 0;
    border-bottom: 0;
  }
  .acid-video-list td {
    padding: revert;
    border: revert;
  }
  .acid-video-list td:empty {
    display: table-cell;
  }
  .acid-video-list img {
    max-width: 100%;
    height: auto;
  }
}

/* Acid Video final row treatment:
   one divider per complete record; no borders on individual cells. */
.acid-video-content tr > td {
  border-top: 0;
  border-bottom: 0;
}
.acid-video-content tr + tr > td {
  border-top: 1px solid #333333;
}
.acid-video-content td {
  vertical-align: middle;
}

@media (max-width: 700px) {
  .acid-video-content tr {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #333333;
  }
  .acid-video-content tr + tr > td,
  .acid-video-content tr > td {
    border: 0;
  }
  .acid-video-content td {
    display: block;
    width: 100%;
    padding: 4px 2px;
  }
  .acid-video-content tr:empty {
    display: none;
  }
}


/* Shared DJ-head browser — canonical component for Mixes + Tracklists. */
.dj-browse,
.tracklist-dj-browse {
  margin-top: 11px;
  padding-top: 0;
  border-top: 0;
}

.dj-browse h2,
.tracklist-dj-browse h2,
.mix-browse h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
}

.dj-heads {
  display: grid;
  grid-template-columns: repeat(5, 60px);
  justify-content: center;
  gap: 6px;
  margin: 12px 0 18px;
}

.dj-heads a,
.dj-heads img {
  display: block;
  width: 60px;
}

.dj-heads a {
  border: 1px solid #ff9000;
}

.dj-heads img {
  height: auto;
  border: 0;
}

.dj-heads a:hover,
.dj-heads a:focus-visible {
  border-color: #ffffff;
}

/* Modern Mixes landing — sibling of Tracklists. */
.mix-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.mix-home #centercontent { min-width: 0; width: 100%; padding: 12px; }
.mix-heading h1 { margin-bottom: 10px; font-size: 28px; }
.mix-main-search { max-width: 850px; margin: 0 auto 14px; text-align: center; }
.mix-main-search label { display: block; margin-bottom: 5px; font-size: 11px; }
.mix-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.mix-search-row input { min-width: 0; padding: 10px 12px; border: 1px solid #ff9000; background: #202020; color: #ffffff; font: inherit; }
.mix-search-row button { padding: 0 22px; border: 1px solid #ff9000; border-left: 0; background: #ff9000; color: #000000; font: inherit; font-weight: bold; cursor: pointer; }
.mix-browse { margin-top: 11px; padding-top: 10px; border-top: 1px solid #ff9000; }
.mix-compact { text-align: center; }
.mix-text-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 15px; font-size: 11px; }
.mix-count { margin: 16px 0 4px; text-align: center; }
.mix-disclaimer { text-align: center; font-size: 10px; }
.mix-home .home-quick-strip { margin-top: 12px; }

@media (max-width: 700px) {
  .mix-home #centercontent { padding: 10px; }
  .mix-heading h1 { font-size: 24px; }
  .mix-search-row button { padding: 0 14px; }
  /* Keep the original compact 5-across DJ wall on phones. */
  .dj-heads { grid-template-columns: repeat(5, 52px); gap: 5px; }
  .dj-heads a, .dj-heads img { width: 52px; }
}

@media (max-width: 340px) {
  .dj-heads { grid-template-columns: repeat(5, 48px); gap: 4px; }
  .dj-heads a, .dj-heads img { width: 48px; }
}

/* DJ-head border cleanup v2: image owns the frame, not the link tile. */
.dj-heads a {
  border: 0;
}

.dj-heads img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #ff9000;
}

.dj-heads a:hover img,
.dj-heads a:focus-visible img {
  border-color: #ffffff;
}

/* Do not draw a full-width divider immediately below the DJ wall. */
.tracklist-dj-browse + .tracklist-browse,
.dj-browse + .mix-browse {
  border-top: 0;
}

@media (max-width: 700px) {
  .dj-heads img {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 340px) {
  .dj-heads img {
    width: 48px;
    height: 48px;
  }
}
