body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #15110f;
  color: #f4eee8;
  display: grid;
  place-items: center;
  min-height: 100vh;
  margin: 0;
}

.card {
  width: min(860px, calc(100vw - 32px));
  background: #241c18;
  border: 1px solid #3a2d26;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.muted {
  color: #b9aaa0;
  margin-bottom: 20px;
}

audio {
  width: 100%;
  margin: 12px 0 22px;
}

.station-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 16px 0 14px;
}

.station-button {
  display: block;
  background: #3a2d26;
  color: #f4eee8;
  border: 1px solid #594438;
  border-radius: 14px;
  padding: 12px 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.station-button:hover {
  background: #4a392f;
}

.station-button.active {
  background: #6b4a37;
  border-color: #b57a55;
}

.panel {
  background: #181210;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #3a2d26;
  margin-top: 14px;
}

.label {
  font-size: 13px;
  color: #b9aaa0;
  margin-bottom: 6px;
}

#song {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
  word-break: break-word;
}

#status {
  margin-top: 10px;
  font-size: 12px;
  color: #8f8178;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

button {
  background: #3a2d26;
  color: #f4eee8;
  border: 1px solid #594438;
  border-radius: 999px;
  padding: 7px 11px;
  cursor: pointer;
  font-size: 12px;
}

button:hover {
  background: #4a392f;
}

ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

li {
  margin: 8px 0;
  line-height: 1.35;
  word-break: break-word;
}

.time {
  color: #8f8178;
  font-size: 12px;
  margin-left: 4px;
}

.empty {
  color: #8f8178;
  margin-top: 10px;
  font-size: 14px;
}

.details-panel summary {
  cursor: pointer;
  font-weight: 650;
  color: #f4eee8;
  list-style: none;
  user-select: none;
}

.details-panel summary::-webkit-details-marker {
  display: none;
}

.details-panel summary::after {
  content: "Show";
  float: right;
  color: #b9aaa0;
  font-size: 12px;
  font-weight: 500;
}

.details-panel[open] summary::after {
  content: "Hide";
}

.song-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.song-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 760px;
}

.song-table th,
.song-table td {
  border-bottom: 1px solid #3a2d26;
  padding: 8px 7px;
  text-align: left;
  vertical-align: top;
}

.song-table th {
  color: #b9aaa0;
  font-weight: 650;
}

.song-table td {
  color: #f4eee8;
}

.song-table .song-path {
  color: #8f8178;
  max-width: 320px;
  word-break: break-all;
}

.song-table .nowrap {
  white-space: nowrap;
}

.playlist-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.playlist-total-info {
  color: #b9aaa0;
  font-size: 12px;
  font-weight: 500;
  margin-left: auto;
  text-align: right;
}

.details-panel summary::after {
  margin-left: 12px;
}
