:root {
  color-scheme: dark;
  --header-height: 74px;
  --black: #050505;
  --charcoal: #121212;
  --panel: #181818;
  --line: #303030;
  --white: #f2f2f2;
  --muted: #b9b9b9;
  --cyan: #31e8ff;
  --red: #ff4662;
  --gold: #ffd12a;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--white);
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-height);
  padding: 10px max(18px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(48, 48, 48, 0.78);
  background: rgba(5, 5, 5, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  transition: min-height 180ms ease, padding 180ms ease;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo {
  display: block;
  width: min(180px, 42vw);
  max-height: 54px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 8px rgba(49, 232, 255, 0.38))
    drop-shadow(0 0 12px rgba(255, 70, 98, 0.18));
  transition: width 180ms ease, max-height 180ms ease;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2.7vw, 28px);
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cyan);
}

.sticky-helper-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 25;
  padding: 9px 18px;
  border-bottom: 1px solid rgba(255, 209, 42, 0.35);
  background:
    linear-gradient(90deg, rgba(49, 232, 255, 0.12), rgba(255, 70, 98, 0.08), rgba(255, 209, 42, 0.12)),
    rgba(8, 8, 8, 0.96);
  color: var(--gold);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-shadow:
    0 0 10px rgba(255, 209, 42, 0.42),
    0 0 18px rgba(49, 232, 255, 0.2);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  transition: top 180ms ease;
}

button,
input,
textarea {
  font: inherit;
}

form {
  margin: 0;
}

.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.42), var(--black) 42%),
    radial-gradient(circle at 22% 18%, rgba(49, 232, 255, 0.12), transparent 26%),
    radial-gradient(circle at 74% 8%, rgba(255, 70, 98, 0.1), transparent 24%),
    var(--black);
}

.site-credit-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 58px;
  padding: 14px max(18px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  background: #050505;
  color: var(--muted);
  font-size: 0.82rem;
  position: relative;
  text-align: center;
}

.site-credit-footer p {
  margin: 0;
}

.site-credit-footer a {
  color: var(--gold);
  font-weight: 700;
  text-decoration-color: rgba(255, 209, 42, 0.58);
  text-underline-offset: 3px;
}

.site-credit-footer a:hover {
  color: var(--white);
}

.footer-report-link {
  position: absolute;
  right: max(18px, calc((100vw - 1120px) / 2));
  color: var(--muted) !important;
  font-size: 0.74rem;
  text-decoration-color: rgba(185, 185, 185, 0.48) !important;
  text-transform: uppercase;
}

.footer-report-link:hover {
  color: var(--gold) !important;
}

.search-band {
  display: grid;
  gap: 24px;
  padding: 32px max(18px, calc((100vw - 1120px) / 2)) 30px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.78)),
    url("assets/good-times-karaoke.jpg") right 7vw center / min(26vw, 250px) auto no-repeat;
}

.brand-row,
.summary-row,
.search-row {
  display: flex;
  align-items: center;
}

.brand-row {
  gap: 18px;
}

.brand-mark {
  width: min(320px, 54vw);
  max-height: 150px;
  border-radius: 8px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(49, 232, 255, 0.5))
    drop-shadow(0 0 18px rgba(255, 70, 98, 0.25));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(49, 232, 255, 0.74);
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  font-size: clamp(2rem, 7vw, 4.4rem);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.36);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.search-panel {
  display: grid;
  gap: 10px;
  max-width: 880px;
}

.search-panel label {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.search-row {
  gap: 10px;
  align-items: stretch;
}

.filter-summary {
  margin: 10px 0 0;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 0 12px rgba(255, 209, 42, 0.28);
}

#song-search {
  width: 100%;
  min-height: 60px;
  border: 1px solid rgba(49, 232, 255, 0.72);
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(12, 12, 12, 0.9);
  color: var(--white);
  box-shadow:
    0 0 0 1px rgba(49, 232, 255, 0.14),
    0 0 24px rgba(49, 232, 255, 0.14),
    var(--shadow);
}

#song-search::placeholder {
  color: #8f8f8f;
}

#song-search:focus {
  border-color: var(--cyan);
  outline: 3px solid rgba(49, 232, 255, 0.22);
}

button {
  min-height: 44px;
  border: 1px solid rgba(255, 70, 98, 0.82);
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 70, 98, 0.14);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(255, 70, 98, 0.18);
}

button:hover {
  background: rgba(255, 70, 98, 0.26);
}

#clear-search {
  min-width: 96px;
}

.browse-panel {
  display: grid;
  gap: 14px;
  max-width: 920px;
}

.browse-group {
  display: grid;
  gap: 8px;
  border-left: 3px solid rgba(49, 232, 255, 0.44);
  padding-left: 10px;
}

.browse-label {
  margin: 0;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.browse-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.browse-button {
  min-height: 36px;
  border-color: rgba(49, 232, 255, 0.48);
  padding: 0 12px;
  background: rgba(49, 232, 255, 0.08);
  color: var(--white);
  font-size: 0.9rem;
  text-transform: none;
  box-shadow: none;
}

.browse-button:hover,
.browse-button:focus-visible,
.browse-button.is-active {
  background: rgba(49, 232, 255, 0.18);
}

.browse-vocal {
  border-left-color: rgba(255, 70, 98, 0.65);
}

.browse-vocal .browse-label {
  color: var(--red);
}

.browse-vocal .browse-button {
  border-color: rgba(255, 70, 98, 0.52);
  background: rgba(255, 70, 98, 0.09);
}

.browse-vocal .browse-button.is-active {
  background: rgba(255, 70, 98, 0.22);
}

.browse-genre {
  border-left-color: rgba(255, 209, 42, 0.68);
}

.browse-genre .browse-label {
  color: var(--gold);
}

.browse-genre .browse-button {
  border-color: rgba(255, 209, 42, 0.52);
  background: rgba(255, 209, 42, 0.08);
}

.browse-genre .browse-button.is-active {
  background: rgba(255, 209, 42, 0.2);
}

.browse-social {
  border-left-color: rgba(49, 232, 255, 0.7);
}

.popular-panel {
  display: grid;
  gap: 12px;
  max-width: 1040px;
}

.dice-panel {
  display: grid;
  gap: 14px;
  max-width: 1040px;
}

.dice-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dice-button {
  width: fit-content;
  min-height: 50px;
  border-color: rgba(255, 209, 42, 0.72);
  background: rgba(255, 209, 42, 0.12);
  color: var(--white);
  gap: 9px;
  box-shadow: 0 0 20px rgba(255, 209, 42, 0.18);
}

.dice-button-inline {
  min-height: 60px;
}

.dice-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  filter:
    drop-shadow(0 0 7px rgba(49, 232, 255, 0.58))
    drop-shadow(0 0 10px rgba(255, 70, 98, 0.35));
}

.dice-button:hover {
  background: rgba(255, 209, 42, 0.22);
}

.dice-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.dice-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.dice-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 18, 0.92);
  box-shadow: var(--shadow);
}

.dice-column h3 {
  margin: 0;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--cyan);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.dice-ladies h3 {
  color: var(--red);
}

.dice-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dice-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.dice-list li:last-child {
  border-bottom: 0;
}

.dice-song-title,
.dice-song-artist {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dice-song-title {
  color: var(--white);
  font-weight: 700;
}

.dice-song-artist {
  color: var(--muted);
}

.popular-band {
  display: grid;
  gap: 30px;
  padding: 0 max(18px, calc((100vw - 1120px) / 2)) 48px;
}

.popular-heading h2 {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.helper-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.inline-action-link {
  display: inline-flex;
  margin-left: 12px;
  color: var(--gold);
  font-weight: 700;
  text-decoration-color: rgba(255, 209, 42, 0.58);
  text-underline-offset: 3px;
}

.inline-action-link:hover {
  color: var(--white);
}

.issue-shell {
  display: flex;
  flex-direction: column;
}

.issue-band {
  display: grid;
  gap: 24px;
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 32px max(18px, 4vw) 26px;
}

.issue-logo-link {
  justify-self: center;
}

.issue-logo {
  display: block;
  width: min(330px, 76vw);
  filter:
    drop-shadow(0 0 12px rgba(49, 232, 255, 0.5))
    drop-shadow(0 0 18px rgba(255, 70, 98, 0.25));
}

.issue-heading {
  display: grid;
  gap: 10px;
  text-align: center;
}

.issue-heading .helper-copy {
  margin: 0 auto;
}

.issue-form {
  display: grid;
  gap: 18px;
  width: 100%;
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field label {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(49, 232, 255, 0.72);
  border-radius: 8px;
  background: rgba(12, 12, 12, 0.9);
  color: var(--white);
  box-shadow:
    0 0 0 1px rgba(49, 232, 255, 0.14),
    0 0 24px rgba(49, 232, 255, 0.14),
    var(--shadow);
}

.form-field input {
  min-height: 60px;
  padding: 0 18px;
}

.form-field textarea {
  min-height: 180px;
  padding: 16px 18px;
  line-height: 1.45;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8f8f8f;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--cyan);
  outline: 3px solid rgba(49, 232, 255, 0.22);
}

.issue-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.issue-actions button {
  min-width: 128px;
  min-height: 54px;
}

.secondary-link,
.site-footer a {
  color: var(--gold);
  font-weight: 700;
  text-decoration-color: rgba(255, 209, 42, 0.58);
  text-underline-offset: 3px;
}

.secondary-link:hover,
.site-footer a:hover {
  color: var(--white);
}

.site-footer {
  margin-top: auto;
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.results-band {
  padding: 30px max(18px, calc((100vw - 1120px) / 2)) 48px;
}

.summary-row {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.result-count {
  min-width: 136px;
  margin: 0;
  color: var(--gold);
  font-weight: 700;
  text-align: right;
  text-shadow: 0 0 14px rgba(255, 209, 42, 0.35);
}

.table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 18, 0.92);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 480px;
  table-layout: fixed;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow-wrap: anywhere;
  vertical-align: top;
  word-break: normal;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101010;
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(49, 232, 255, 0.08);
}

td:first-child {
  color: #ffffff;
  font-weight: 700;
}

.title-column {
  width: 56%;
}

.artist-column {
  width: 44%;
}

.compact-table th,
.compact-table td {
  padding: 12px 14px;
}

.empty-state {
  margin: 0;
  padding: 28px;
  color: var(--muted);
  font-weight: 700;
}

.request-song-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  border: 1px solid rgba(255, 70, 98, 0.82);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 70, 98, 0.16);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(255, 70, 98, 0.2);
}

.request-song-button:hover {
  background: rgba(255, 70, 98, 0.3);
}

.load-more-button {
  margin-top: 18px;
  border-color: rgba(49, 232, 255, 0.72);
  background: rgba(49, 232, 255, 0.1);
}

.load-more-button:hover {
  background: rgba(49, 232, 255, 0.2);
}

mark {
  border-radius: 4px;
  padding: 0 2px;
  background: rgba(255, 209, 42, 0.35);
  color: inherit;
}

@media (min-width: 761px) {
  body:not(.is-scrolled) {
    --header-height: 196px;
  }

  body:not(.is-scrolled) .site-logo {
    width: 172px;
    max-height: 172px;
  }

  body.is-scrolled {
    --header-height: 74px;
  }
}

@media (max-width: 760px) {
  body {
    --header-height: 116px;
  }

  .site-header {
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding-top: 9px;
    padding-bottom: 10px;
  }

  .site-logo {
    width: min(150px, 62vw);
    max-height: 42px;
  }

  .site-nav {
    justify-content: center;
    gap: 8px 14px;
  }

  .site-nav a {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .sticky-helper-bar {
    padding: 8px 14px;
    font-size: 0.86rem;
  }

  .search-band {
    padding-top: 24px;
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.96)),
      url("assets/good-times-karaoke.jpg") right 18px top 18px / 112px auto no-repeat;
  }

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

  .brand-mark {
    width: min(260px, 72vw);
    max-height: 118px;
  }

  .search-row,
  .summary-row {
    align-items: stretch;
    flex-direction: column;
  }

  #clear-search,
  .dice-button-inline,
  .result-count {
    width: 100%;
    text-align: left;
  }

  table {
    min-width: 100%;
  }

  th,
  td {
    padding: 11px 8px;
  }

  .title-column {
    width: 54%;
  }

  .artist-column {
    width: 46%;
  }

  th {
    font-size: 0.68rem;
  }

  td:nth-child(1),
  td:nth-child(2) {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .dice-results,
  .dice-list li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .dice-button {
    width: 100%;
  }

  .dice-list li {
    padding: 12px 10px;
  }

  .inline-action-link {
    display: flex;
    margin: 10px 0 0;
  }

  .issue-band {
    padding-top: 22px;
  }

  .issue-heading {
    text-align: left;
  }

  .issue-heading .helper-copy {
    margin: 0;
  }

  .issue-actions,
  .issue-actions button,
  .secondary-link {
    width: 100%;
  }

  .site-credit-footer {
    align-items: center;
    flex-direction: column;
    gap: 7px;
    padding-bottom: 18px;
  }

  .footer-report-link {
    position: static;
  }

}
