:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
body { margin: 0; background: #111; color: #eee; }

.topbar {
  display: flex; gap: 10px; align-items: center;
  padding: 12px; background: #1b1b1b; position: sticky; top: 0; z-index: 10;
}
.titleInput {
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid #333;
  background: #0f0f0f; color: #fff;
}
.topButtons button {
  padding: 10px 12px; border-radius: 10px; border: 1px solid #333;
  background: #222; color: #fff; cursor: pointer;
}

.layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

.panel { background: #161616; border: 1px solid #2a2a2a; border-radius: 12px; overflow: hidden; }
.panelHeader { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-bottom: 1px solid #2a2a2a; }
.panelHeader input {
  padding: 8px; border-radius: 10px; border: 1px solid #333; background: #0f0f0f; color: #fff;
}
.hint { font-size: 12px; color: #aaa; }

.list { margin: 0; padding: 0; list-style: none; }
.setlist { padding-left: 28px; } /* keep numbers visible for <ol> */

.item {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding: 10px 12px; border-bottom: 1px solid #222;
}
.item:last-child { border-bottom: 0; }
.item .meta { display: flex; flex-direction: column; gap: 2px; }
.item .title { font-weight: 800; }
.item .sub { font-size: 12px; color: #aaa; }

.item button {
  border: 1px solid #333; background: #222; color: #fff;
  border-radius: 10px; padding: 8px 10px; cursor: pointer;
}

.playerBar {
  position: sticky; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto;
  gap: 10px; padding: 12px; background: #1b1b1b; border-top: 1px solid #2a2a2a;
}
.nowPlaying { display: flex; align-items: center; color: #ddd; }
.playerBtns { display: flex; gap: 8px; align-items: center; }
.playerBtns select{
  padding: 10px 12px; border-radius: 10px; border: 1px solid #333;
  background: #0f0f0f; color: #fff;
}
.playerBtns button {
  padding: 10px 12px; border-radius: 10px; border: 1px solid #333;
  background: #222; color: #fff; cursor: pointer;
}
.playerBtns button:disabled { opacity: 0.4; cursor: not-allowed; }

.print-only { display: none; }

/* PRINT */
@media print {
  body { background: #fff; color: #000; }
  .no-print { display: none !important; }
  .print-only { display: block !important; }

  .layout { grid-template-columns: 1fr; padding: 0; }
  .panel { border: none; border-radius: 0; background: transparent; }
  #allSongs { display: none; }

  .print-title {
    text-align: center;
    font-size: 20pt;
    font-weight: 900;
    margin: 12px 0 8px;
  }

  .item { border-bottom: 1px solid #ddd; }
  .item button { display: none; }
  .item .sub { color: #333; }
}
