body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  background: #fff;
  color: #111;
  margin: 18px;
}

a { color: #00f; text-decoration: underline; }
a:visited { color: #551a8b; }

.page-shell {
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.nav.bottom { margin-top: 18px; }
.spacer { flex: 1; }

.intro h1 {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 8px 0;
}

.intro p { margin: 20px 0; max-width: 720px; }
.intro .meta { color: #444; }

.gallery {
  margin-top: 14px;
  column-width: 450px;
  column-gap: 18px;
}

.gallery a {
  display: block;
  break-inside: avoid;
  margin: 0 0 18px;
}

.gallery img,
.image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0;
  border: 0;
}

body.music-page {
  margin-bottom: 76px;
}

.music-intro .divider {
  display: inline-block;
  margin: 0 6px;
}

.keyboard-help span {
  color: #111;
}

.music-table-wrap {
  width: 100%;
}

.music-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.music-table th,
.music-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

.music-table th {
  text-align: left;
  font-weight: bold;
}

.music-table .col-date {
  width: 150px;
  white-space: nowrap;
}

.music-table .col-duration {
  width: 95px;
  white-space: nowrap;
}

.music-table .col-action {
  width: 100px;
  white-space: nowrap;
}

.sort-header {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: bold;
  padding: 0;
}

.sort-header .sort-indicator {
  display: inline-block;
  min-width: 10px;
}

.music-row {
  cursor: pointer;
}

.music-row:hover td {
  background: #f4f4f4;
}

.music-row.active td {
  background: #111;
  color: #fff;
}

.music-row.active a,
.music-row.active a:visited {
  color: #fff;
}

.loading-row,
.empty-row {
  color: #444;
}

.track-title {
  word-break: break-word;
}

.play-marker {
  display: inline-block;
  width: 16px;
}

.track-title-text {
  display: inline;
}

.player-shell {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: #000;
  color: #fff;
  border-top: 1px solid #222;
  z-index: 1000;
}

.player-inner {
  box-sizing: border-box;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
}

.player-btn,
.player-download {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  font: inherit;
  height: 24px;
  line-height: 22px;
  padding: 0 8px;
  text-decoration: none;
  cursor: pointer;
}

.player-download:visited {
  color: #fff;
}

.player-download.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.player-track-meta {
  min-width: 0;
  flex: 1;
}

.player-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.player-time {
  width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.player-seek {
  flex: 1.1;
  min-width: 120px;
}

@media (max-width: 720px) {
  body.music-page {
    margin-bottom: 98px;
  }

  .music-table th,
  .music-table td {
    padding: 8px 6px;
  }

  .music-table .col-date {
    width: 88px;
  }

  .music-table .col-duration {
    width: 56px;
  }

  .music-table .col-action {
    width: 68px;
  }

  .play-marker {
    width: 12px;
  }

  .player-shell {
    height: 62px;
  }

  .player-inner {
    height: 62px;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 6px 18px;
  }

  .player-track-meta {
    width: calc(100% - 52px);
    order: 1;
  }

  .player-btn {
    order: 0;
  }

  .player-time,
  .player-seek,
  .player-download {
    order: 2;
  }
}
