/* ASCP palette on Bootstrap 5 color modes. Dark is the default. */

:root,
[data-bs-theme="dark"] {
  --bs-primary: #3d7ab8;
  --bs-primary-rgb: 61, 122, 184;
  --bs-success: #3d8b3d;
  --bs-success-rgb: 61, 139, 61;
  --bs-danger: #c44e4a;
  --bs-danger-rgb: 196, 78, 74;
  --bs-warning: #c8850a;
  --bs-warning-rgb: 200, 133, 10;
  --bs-body-color: #dee2e6;
  --bs-body-color-rgb: 222, 226, 230;
  --bs-body-bg: #272b30;
  --bs-body-bg-rgb: 39, 43, 48;
  --bs-secondary-color: #d6dbe1;
  --bs-secondary-bg: #3a3f44;
  --bs-tertiary-bg: #32383e;
  --bs-emphasis-color: #f8f9fa;
  --bs-heading-color: #f8f9fa;
  --bs-link-color: #6ea8fe;
  --bs-link-hover-color: #9ec5fe;
  --bs-border-color: #495057;
  --bs-card-bg: #32383e;
  --bs-card-border-color: #495057;
  --bs-list-group-bg: #32383e;
  --bs-list-group-border-color: #495057;
  --bs-primary-text-emphasis: #6ea8fe;
  --bs-success-text-emphasis: #7dcea0;
  --bs-danger-text-emphasis: #f5a8a5;
  --bs-warning-text-emphasis: #ffd966;
  color-scheme: dark;
}

[data-bs-theme="light"] {
  --bs-body-color: #212529;
  --bs-body-color-rgb: 33, 37, 41;
  --bs-body-bg: #e8eef6;
  --bs-body-bg-rgb: 232, 238, 246;
  --bs-secondary-color: #4a5158;
  --bs-secondary-bg: #ffffff;
  --bs-tertiary-bg: #ffffff;
  --bs-emphasis-color: #12202a;
  --bs-heading-color: #12202a;
  --bs-link-color: #3d7ab8;
  --bs-link-hover-color: #326697;
  --bs-border-color: #d3dee4;
  --bs-card-bg: #ffffff;
  --bs-card-border-color: #d3dee4;
  --bs-list-group-bg: #ffffff;
  --bs-list-group-border-color: #d3dee4;
  --bs-primary-text-emphasis: #3d7ab8;
  --bs-success-text-emphasis: #1c9a48;
  --bs-danger-text-emphasis: #c4323c;
  --bs-warning-text-emphasis: #9a6b10;
  color-scheme: light;
}

.btn-primary {
  --bs-btn-bg: #3d7ab8;
  --bs-btn-border-color: #3d7ab8;
  --bs-btn-hover-bg: #326697;
  --bs-btn-hover-border-color: #2f5f8f;
  --bs-btn-active-bg: #326697;
  --bs-btn-active-border-color: #2f5f8f;
  --bs-btn-disabled-bg: #3d7ab8;
  --bs-btn-disabled-border-color: #3d7ab8;
}

body {
  min-height: 100vh;
  background-color: #272b30;
  background-image:
    radial-gradient(980px 520px at 100% -8%, rgba(110, 168, 254, 0.38), transparent 62%),
    radial-gradient(760px 460px at -8% 108%, rgba(61, 122, 184, 0.5), transparent 58%);
  background-attachment: fixed;
}

[data-bs-theme="light"] body {
  background-color: #e8eef6;
  background-image:
    radial-gradient(980px 520px at 100% -8%, rgba(61, 122, 184, 0.32), transparent 62%),
    radial-gradient(760px 460px at -8% 108%, rgba(110, 168, 254, 0.24), transparent 58%);
}

.navbar {
  background-color: var(--bs-card-bg);
}

.brand-logo {
  height: 2.75rem;
  width: auto;
  max-width: 16rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
}

.icon-btn svg,
.player-icon,
.menu-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex: none;
}

.menu-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-bs-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-bs-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

#play-toggle .icon-pause {
  display: none;
}

#play-toggle.is-playing .icon-play {
  display: none;
}

#play-toggle.is-playing .icon-pause {
  display: block;
}

.day-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.2rem;
  text-decoration: none;
}

a.day-cell.is-selected {
  background: var(--bs-primary);
  color: #fff;
  font-weight: 650;
}

.day-cell.is-today {
  color: var(--bs-body-color);
  font-weight: 650;
  box-shadow: inset 0 0 0 2px var(--bs-primary);
}

.hour-item,
.song-item {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
}

.song-item {
  width: 100%;
}

.is-current {
  background: color-mix(in srgb, var(--bs-primary) 16%, var(--bs-card-bg));
  outline: 1px solid var(--bs-primary);
}

audio.player-element {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#seek.form-range {
  width: auto;
  flex: 1 1 8rem;
  min-width: 8rem;
}

.volume-range {
  width: 6rem;
}
