:root {
  color-scheme: dark;
  --bg: #0b0806;
  --panel: #18120e;
  --panel-2: #211811;
  --text: #fff8f0;
  --muted: #b9a89b;
  --border: rgba(255, 153, 61, 0.22);
  --orange: #ff8a1f;
  --orange-2: #ffad55;
  --orange-soft: #ffd19b;
  --green: #65d699;
  --red: #ff7774;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(255, 138, 31, 0.23), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(255, 173, 85, 0.08), transparent 26%),
    var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
summary {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

a {
  color: var(--orange-2);
}

.motto {
  width: 100%;
  padding: 10px 14px;
  color: #2a1004;
  background: linear-gradient(90deg, var(--orange), var(--orange-2), var(--orange-soft));
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.app {
  width: min(100%, 720px);
  margin: 0 auto;
  padding:
    18px
    max(14px, env(safe-area-inset-right))
    calc(100px + env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
}

.brand,
.panel,
.now-playing,
.search-panel,
.pitch-panel,
.bin,
.footer-card,
.mode-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(
      180deg,
      rgba(31, 23, 17, 0.98),
      rgba(20, 16, 13, 0.98)
    );
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  margin-bottom: 12px;
}

.brand-logo {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  object-fit: contain;
  padding: 5px;
  border: 2px solid rgba(255, 138, 31, 0.8);
  border-radius: 17px;
  background: #fff;
}

.eyebrow {
  color: var(--orange-2);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 5px;
  font-size: clamp(27px, 6vw, 40px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.subtitle {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mode-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 6px;
  margin-bottom: 12px;
}

.mode-button,
.mode-link {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.mode-button.active {
  color: #2a1004;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
}

.mode-button small {
  display: block;
  margin-top: 2px;
  color: var(--orange-2);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-panel,
.panel,
.now-playing,
.pitch-panel,
.bin,
.footer-card {
  padding: 14px;
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 9px;
  color: var(--orange-2);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(130px, 1fr) minmax(130px, 1fr);
  gap: 8px;
}

.control {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: #100d0b;
}

.search-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 9px;
}

.check {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--orange);
}

.search-status {
  min-height: 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.search-results {
  display: grid;
  gap: 7px;
  max-height: 330px;
  margin-top: 9px;
  overflow-y: auto;
}

.search-results[hidden] {
  display: none;
}

.search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(255, 153, 61, 0.17);
  border-radius: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.search-result:hover {
  border-color: rgba(255, 138, 31, 0.55);
  background: rgba(255, 138, 31, 0.08);
}

.search-title {
  display: block;
  font-size: 13px;
  font-weight: 950;
}

.search-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.search-bpm {
  color: var(--orange-2);
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.now-playing {
  padding: 18px;
}

.now-kicker {
  color: var(--orange-2);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.track-title {
  margin: 7px 0 0;
  font-size: clamp(30px, 8vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.producer-link {
  display: inline-block;
  margin-top: 11px;
  color: var(--orange-soft);
  font-size: clamp(19px, 4vw, 27px);
  font-weight: 950;
  line-height: 1.1;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}

.meta-grid {
  display: grid;
  grid-template-columns: minmax(100px, 0.5fr) minmax(0, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.meta-card {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.meta-label {
  color: var(--muted);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-value {
  margin-top: 5px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.bpm-value {
  color: var(--orange-soft);
  font-size: 27px;
}

.actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 13px;
}

.action {
  min-height: 48px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
}

.action.active,
.primary {
  color: #2a1004;
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
}

.transport {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr 0.75fr;
  gap: 8px;
  margin-top: 12px;
}

.transport button {
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 950;
}

.transport .primary {
  color: #2a1004;
}

.progress-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin-top: 15px;
  color: var(--muted);
  font-size: 10px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--orange);
}

.pitch-top,
.volume-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.pitch-value {
  color: var(--orange-2);
  font-size: 18px;
  font-weight: 950;
}

.pitch-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.status {
  min-height: 42px;
  display: grid;
  align-items: center;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
}

.sticky {
  position: fixed;
  z-index: 1000;
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 12px;
  width: min(calc(100% - 24px), 690px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(24, 18, 14, 0.95);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
}

.sticky button {
  min-width: 0;
  min-height: 57px;
  padding: 7px 5px;
  border: 0;
  border-radius: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.12;
}

.sticky .primary {
  color: #2a1004;
}

.bin summary {
  color: var(--orange-2);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.bin-list {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.bin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.bin-title {
  font-size: 12px;
  font-weight: 900;
}

.bin-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.restore {
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  color: #2a1004;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  font-size: 10px;
  font-weight: 950;
}

.footer-card {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.player-art {
  display: none;
}

body.player-mode .search-panel,
body.player-mode .panel,
body.player-mode .bin,
body.player-mode .footer-card {
  display: none;
}

body.player-mode .now-playing {
  min-height: calc(100svh - 190px);
  display: grid;
  align-content: center;
  text-align: center;
}

body.player-mode .player-art {
  width: min(58vw, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 138, 31, 0.7);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 173, 85, 0.15), rgba(7, 5, 4, 0.96) 68%);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.55);
}

.player-art img {
  width: 45%;
  height: 45%;
  object-fit: contain;
}

body.player-mode .meta-grid {
  width: min(100%, 520px);
  margin-right: auto;
  margin-left: auto;
}

body.player-mode .actions {
  width: min(100%, 620px);
  margin-right: auto;
  margin-left: auto;
}

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

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

  .sticky {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mode-panel {
    grid-template-columns: 1fr 1fr;
  }

  .mode-link {
    grid-column: 1 / -1;
  }
}

/* READABILITY PASS START */

/*
  The original clean build had a cascade issue:
  .transport button and .sticky button were overriding the orange
  background applied by .primary, leaving dark text on a dark button.
*/

:root {
  --muted: #d4c7bc;
  --border: rgba(255, 173, 85, 0.30);
}

.subtitle,
.search-meta,
.search-status,
.check,
.pitch-labels,
.bin-meta,
.footer-card {
  color: var(--muted);
}

.mode-button,
.mode-link {
  color: #eadfd6;
  font-size: 12px;
}

.action,
.transport button,
.sticky button,
.restore,
.mode-button,
.mode-link {
  text-shadow: none;
}

.action,
.transport button,
.sticky button {
  color: #fff8f0;
  border-color: rgba(255, 173, 85, 0.28);
  background: #2a2019;
}

.action:hover,
.transport button:hover,
.sticky button:hover,
.mode-button:hover,
.mode-link:hover {
  border-color: rgba(255, 173, 85, 0.58);
  background: #38281e;
  filter: brightness(1.08);
}

.action.active,
.action.primary,
.transport button.primary,
.sticky button.primary,
.mode-button.active {
  color: #1e0c03 !important;
  border-color: transparent !important;
  background:
    linear-gradient(
      135deg,
      var(--orange),
      var(--orange-2)
    ) !important;
  font-weight: 950;
}

#play {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.sticky button {
  font-size: 11px;
}

#random,
#stickyFlower {
  color: #1e0c03 !important;
  background:
    linear-gradient(
      135deg,
      var(--orange),
      var(--orange-2)
    ) !important;
}

#loop.active,
#favorite.active,
#stickyFavorite.active,
#exclude.active {
  color: #1e0c03 !important;
  background:
    linear-gradient(
      135deg,
      var(--orange),
      var(--orange-2)
    ) !important;
}

button:disabled {
  color: #857970 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: #15110e !important;
  opacity: 0.78;
  cursor: not-allowed;
}

.control {
  color: #fff8f0;
  border-color: rgba(255, 173, 85, 0.30);
}

.control::placeholder {
  color: #a99a8f;
}

.meta-label,
.section-title,
.now-kicker,
.eyebrow {
  color: #ffbd78;
}

.producer-link {
  color: #ffcf9d;
}

.status {
  color: #8ce6b0;
  font-size: 12px;
}

/* READABILITY PASS END */


/* SHARED METRICS DASHBOARD START */

.metrics-app {
  width: min(100%, 1120px);
}

.metrics-nav {
  grid-template-columns: 1fr 1fr;
}

.metrics-summary {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.metrics-card,
.metrics-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(
      180deg,
      rgba(31, 23, 17, 0.98),
      rgba(20, 16, 13, 0.98)
    );
  box-shadow: var(--shadow);
}

.metrics-card {
  padding: 14px;
}

.metrics-card span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metrics-card strong {
  display: block;
  margin-top: 9px;
  color: var(--orange-soft);
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1;
}

.metrics-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.metrics-panel {
  padding: 15px;
}

.metrics-panel h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 17px;
  letter-spacing: -0.025em;
}

.metrics-wide {
  grid-column: 1 / -1;
}

.metrics-row {
  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border-top: 1px solid rgba(255, 173, 85, 0.13);
  color: var(--text);
  text-decoration: none;
}

.metrics-row:first-child {
  border-top: 0;
}

.metrics-row:hover {
  background: rgba(255, 138, 31, 0.07);
}

.metrics-rank {
  min-width: 28px;
  color: var(--orange-2);
  font-size: 11px;
  font-weight: 950;
}

.metrics-main {
  min-width: 0;
}

.metrics-main strong,
.metrics-main small {
  display: block;
}

.metrics-main strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metrics-main small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metrics-number {
  color: var(--orange-soft);
  font-size: 18px;
  font-weight: 950;
}

.metrics-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .metrics-summary,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metrics-wide {
    grid-column: auto;
  }
}

/* SHARED METRICS DASHBOARD END */

/* PLAYER MODE PITCH START */

/* Keep Player Mode visual, but provide a compact vinyl pitch control. */
body.player-mode .now-playing {
  min-height: calc(100svh - 335px);
}

body.player-mode .pitch-panel {
  display: block;
  width: min(100%, 620px);
  margin-right: auto;
  margin-left: auto;
  padding: 13px 15px;
  box-shadow: none;
}

body.player-mode .pitch-panel .section-title {
  margin-bottom: 5px;
}

body.player-mode .pitch-panel .pitch-value {
  font-size: 17px;
}

/* Keep Player Mode focused: show pitch, hide volume and status details. */
body.player-mode .pitch-panel .volume-row,
body.player-mode .pitch-panel #volume,
body.player-mode .pitch-panel #status {
  display: none;
}

@media (max-width: 650px) {
  body.player-mode .now-playing {
    min-height: calc(100svh - 360px);
  }

  body.player-mode .pitch-panel {
    padding: 12px;
  }
}

/* PLAYER MODE PITCH END */

/* SHARED TAG WALL START */

.tag-wall {
  padding: 15px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(
      180deg,
      rgba(31, 23, 17, 0.98),
      rgba(20, 16, 13, 0.98)
    );
  box-shadow: var(--shadow);
}

.tag-wall-title {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.tag-wall-intro {
  margin: 7px 0 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.tag-wall-form {
  display: grid;
  grid-template-columns:
    minmax(130px, 0.42fr)
    minmax(0, 1fr)
    auto;
  gap: 8px;
  align-items: end;
}

.tag-wall-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tag-wall-textarea {
  min-height: 72px;
  resize: vertical;
}

.tag-wall-submit {
  min-height: 46px;
  padding: 0 15px;
  border: 0;
  border-radius: 11px;
  color: #1e0c03;
  background:
    linear-gradient(
      135deg,
      var(--orange),
      var(--orange-2)
    );
  font-size: 11px;
  font-weight: 950;
}

.tag-wall-submit:disabled {
  opacity: 0.58;
}

.tag-wall-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tag-wall-status {
  min-height: 17px;
  margin-top: 8px;
  color: var(--green);
  font-size: 10px;
  line-height: 1.4;
}

.tag-wall-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  margin-top: 11px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tag-wall-message,
.tag-wall-empty {
  padding: 11px 12px;
  border: 1px solid rgba(255, 173, 85, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.026);
}

.tag-wall-message-text {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.tag-wall-message-meta {
  margin-top: 7px;
  color: var(--orange-2);
  font-size: 9px;
  line-height: 1.35;
}

.tag-wall-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.tag-wall-report {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

body.player-mode .tag-wall {
  display: none;
}

@media (max-width: 650px) {
  .tag-wall-form {
    grid-template-columns: 1fr;
  }

  .tag-wall-submit {
    width: 100%;
  }
}

/* SHARED TAG WALL END */



/* BUILD-A-BREAK INTAKE START */

.intake-app {
  width: min(100%, 980px);
}

.intake-panel {
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(
      180deg,
      rgba(31, 23, 17, 0.98),
      rgba(20, 16, 13, 0.98)
    );
  box-shadow: var(--shadow);
}

.intake-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  letter-spacing: -0.03em;
}

.intake-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.intake-gate,
.intake-status {
  min-height: 42px;
  display: grid;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  line-height: 1.45;
}

.intake-status.success {
  color: var(--green);
}

.intake-status.error {
  color: var(--red);
}

.intake-auth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 12px;
}

.intake-primary,
.intake-secondary {
  min-height: 45px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 950;
}

.intake-primary {
  border: 0;
  color: #1e0c03;
  background:
    linear-gradient(
      135deg,
      var(--orange),
      var(--orange-2)
    );
}

.intake-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: #2a2019;
}

.intake-form[hidden] {
  display: none;
}

.intake-form-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 14px;
}

.intake-field {
  display: block;
  min-width: 0;
}

.intake-field.full {
  grid-column: 1 / -1;
}

.intake-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intake-textarea {
  min-height: 92px;
  resize: vertical;
}

.intake-producer-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  gap: 8px;
}

.intake-producer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 42px;
  margin-top: 9px;
}

.intake-producer-chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(255, 173, 85, 0.28);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 138, 31, 0.08);
  font-size: 10px;
  font-weight: 900;
}

.intake-producer-chip button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.intake-metadata {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.intake-meta-card {
  padding: 10px;
  border: 1px solid rgba(255, 173, 85, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.024);
}

.intake-meta-card span,
.intake-meta-card strong {
  display: block;
}

.intake-meta-card span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.intake-meta-card strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.35;
}

.intake-progress {
  width: 100%;
  margin-top: 12px;
}

.intake-notice {
  margin-top: 12px;
  padding: 11px;
  border: 1px dashed rgba(255, 173, 85, 0.28);
  border-radius: 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .intake-form-grid,
  .intake-metadata {
    grid-template-columns: 1fr;
  }

  .intake-field.full {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .intake-producer-row {
    grid-template-columns: 1fr;
  }

  .intake-producer-row button {
    width: 100%;
  }
}

/* BUILD-A-BREAK INTAKE END */

/* PRODUCER CREW START */

.producer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 11px;
}

.producer-link {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.producer-separator {
  color: var(--muted);
  font-size: 16px;
  font-weight: 950;
}

body.player-mode .producer-links {
  justify-content: center;
}

.producer-directory-app {
  width: min(100%, 980px);
}

.producer-directory-intro,
.directory-panel {
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(
      180deg,
      rgba(31, 23, 17, 0.98),
      rgba(20, 16, 13, 0.98)
    );
  box-shadow: var(--shadow);
}

.producer-directory-intro h2,
.directory-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  letter-spacing: -0.03em;
}

.producer-directory-intro p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.directory-search {
  margin-top: 12px;
}

.producer-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.producer-card {
  display: block;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 173, 85, 0.19);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.026);
  text-decoration: none;
}

.producer-card:hover {
  border-color: rgba(255, 173, 85, 0.56);
  background: rgba(255, 138, 31, 0.08);
}

.producer-card strong,
.producer-card span {
  display: block;
}

.producer-card strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.25;
}

.producer-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.producer-track-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.producer-track-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 173, 85, 0.17);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.producer-track-row strong,
.producer-track-row small {
  display: block;
}

.producer-track-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.producer-track-open {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  color: #1e0c03;
  background:
    linear-gradient(
      135deg,
      var(--orange),
      var(--orange-2)
    );
  font-size: 10px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

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

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

  .producer-track-row {
    grid-template-columns: 1fr;
  }

  .producer-track-open {
    width: 100%;
  }
}

/* PRODUCER CREW END */

/* SKRATCH NOTATION VIEWER START */

#notationButton {
  border-color: rgba(255, 173, 85, 0.42);
}

.notation-dialog {
  width: min(calc(100% - 24px), 800px);
  max-width: 800px;
  max-height: calc(100svh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 173, 85, 0.42);
  border-radius: 18px;
  color: var(--text);
  background: #16100c;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

.notation-dialog::backdrop {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(5px);
}

.notation-dialog-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  max-height: calc(100svh - 24px);
}

.notation-dialog-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
}

.notation-dialog-header h2 {
  margin: 3px 0 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.notation-current-card {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 7px;
}

.notation-current-card strong {
  color: var(--orange-2);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.notation-current-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.notation-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: #2a2019;
  font-size: 17px;
  font-weight: 950;
}

.notation-image-wrap {
  min-height: 0;
  padding: 10px;
  overflow: auto;
  background: #f4f4f2;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.notation-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 245px);
  margin: 0 auto;
  object-fit: contain;
}

.notation-gallery-controls {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}

.notation-gallery-button {
  min-height: 43px;
  padding: 0 13px;
  border: 1px solid rgba(255, 173, 85, 0.34);
  border-radius: 11px;
  color: var(--text);
  background: #2a2019;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.notation-gallery-button:hover {
  border-color: var(--orange);
  background: rgba(255, 138, 31, 0.12);
}

.notation-card-picker {
  display: block;
  min-width: 0;
}

.notation-card-picker > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.notation-dialog-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px 11px;
  border-top: 1px solid var(--border);
}

.notation-swipe-hint {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.notation-full-link {
  color: var(--orange-2);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.notation-full-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 650px) {
  .notation-dialog {
    width: calc(100% - 14px);
    max-height: calc(100svh - 14px);
  }

  .notation-dialog-card {
    max-height: calc(100svh - 14px);
  }

  .notation-image {
    max-height: calc(100svh - 300px);
  }

  .notation-gallery-controls {
    grid-template-columns: 1fr 1fr;
  }

  .notation-card-picker {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .notation-gallery-button {
    width: 100%;
  }

  .notation-dialog-footer {
    justify-content: center;
    text-align: center;
  }
}

/* SKRATCH NOTATION VIEWER END */


.sphire-footer[data-sphire-footer="true"] {
  width: min(calc(100% - 24px), 980px);
  margin: 14px auto 90px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--orange-2);
  background: rgba(26, 20, 16, 0.94);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

/* PLAYER MODE VOLUME START */

/* Keep the existing Master Volume control visible directly below Vinyl Pitch. */
body.player-mode .pitch-panel .volume-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px !important;
}

body.player-mode .pitch-panel #volume {
  display: block !important;
  width: 100%;
  margin-top: 8px;
  accent-color: var(--orange);
}

/* Keep the general status message out of focused Player Mode. */
body.player-mode .pitch-panel #status {
  display: none !important;
}

/* PLAYER MODE VOLUME END */

/* PAUSED FEATURES HIDE START */

/*
  Build-A-Break and the public Tag Wall are intentionally paused.
  Admin/review tooling is not hidden.
*/
#beatBox,
a[href="/build-a-break.html"],
a[href^="/build-a-break.html?"],
a[href="/tag-wall.html"],
a[href^="/tag-wall.html?"],
.tag-wall,
#dsTagWall,
.ds-tag-wall {
  display: none !important;
}

/* Four visible transport actions: Previous, Restart, Play, Next. */
.transport {
  grid-template-columns:
    minmax(0, 0.78fr)
    minmax(0, 0.78fr)
    minmax(0, 1.28fr)
    minmax(0, 0.78fr);
}

#restart {
  border-color: rgba(255, 173, 85, 0.42);
}

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

/* PAUSED FEATURES HIDE END */

/* HOME CORE SEARCH START */

.home-core-search {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 18px;
  align-items: start;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255, 151, 48, 0.62);
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(58, 31, 15, 0.96),
      rgba(20, 15, 12, 0.99)
    );
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

.home-core-search__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 151, 48, 0.45);
  border-radius: 14px;
  color: #ffb15a;
  background: rgba(255, 138, 31, 0.08);
  font-size: 31px;
  font-weight: 900;
}

.home-core-search__copy {
  min-width: 0;
}

.home-core-search__eyebrow {
  color: #ffb15a;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.home-core-search h2 {
  margin: 5px 0 0;
  color: #fff8ef;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.home-core-search p {
  max-width: 720px;
  margin: 9px 0 0;
  color: #d4c7bc;
  font-size: 14px;
  line-height: 1.5;
}

.home-core-search__form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.home-core-search__input,
.home-core-search__button {
  min-height: 52px;
  border-radius: 12px;
  font: inherit;
}

.home-core-search__input {
  width: 100%;
  padding: 0 16px;
  border: 1px solid rgba(255, 173, 85, 0.38);
  outline: none;
  color: #fff8ef;
  background: #100d0b;
  font-size: 15px;
}

.home-core-search__input::placeholder {
  color: #95877b;
}

.home-core-search__input:focus {
  border-color: #ff9a39;
  box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.14);
}

.home-core-search__button {
  padding: 0 22px;
  border: 0;
  color: #1e0c03;
  background: linear-gradient(135deg, #ff861c, #ffb15a);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.home-core-search__links {
  grid-column: 1 / -1;
}

.home-core-search__links a {
  color: #ffb15a;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.home-core-search__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 620px) {
  .home-core-search {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .home-core-search__icon {
    width: 46px;
    height: 46px;
  }

  .home-core-search__form {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .home-core-search__links {
    grid-column: 1;
  }

  .home-core-search__button {
    width: 100%;
  }
}

/* HOME CORE SEARCH END */
