

#songInput {
  min-width: 300px;
  padding: 3px 6px;
}

#chart {
  width: 100%;
  height: calc(100vh - 125px); /* a hair taller now that slider is lower */
}

/* meta only used for error messages now */
#meta {
  min-height: 1.2em;
  padding: 4px 16px 8px;
  color: #b00;
}

/* put this as the VERY last rule in styles.css */
#pageTitle {
  display: block;      /* guarantee it’s a block-level element   */
  width: 100%;         /* span the header’s full width           */
  margin: 0;           /* no side offsets                        */
  text-align: center;  /* <— this alone centers the text         */
}


body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top, #111827 0%, #020617 55%, #000000 100%);
  color: #e5e7eb;
}

header {
  padding: 16px 24px 8px;
  background: transparent;
}

/* Page title centered at top */
#pageTitle {
  display: block;
  width: 100%;
  margin: 24px 0 0;
  text-align: center;
  font-size: 32px;
  font-weight: 600;
}

/* Main layout: stack controls + chart vertically */
main {
  display: flex;
  flex-direction: column;
  align-items: center;   /* center controls + chart horizontally */
}

/* Controls: fixed offset above the chart */
main .controls {
  margin-top: 32px;      /* space below the title */
  margin-bottom: -5px;   /* consistent space ABOVE the chart */
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Chart: takes full width but respects the controls spacing */
#chart {
  width: 100%;
  max-width: 1200px;     /* optional, for a nice centered layout */
}

/* fixed, not-full-width search bar */
main .controls .ts-wrapper {
  width: 360px;        /* tweak this number to taste */
  max-width: 100%;
}



/* While searching, hide the selected item text so the field looks empty */
.ts-wrapper.searching .ts-control .item {
  display: none;
}

#subtitle {
  max-width: 900px;
  margin: 8px auto 24px;
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
  text-align: center;
}

#subtitle a {
  color: #c4b5fd;
  text-decoration: underline;
}


