html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar-account {
  flex-shrink: 0;
}

.navbar-user {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
  max-width: 16rem;
}

.navbar-user-avatar {
  align-items: center;
  background: #6558d3;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

@media (max-width: 575.98px) {
  .navbar-account {
    align-items: stretch !important;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
  }

  .navbar-account .btn {
    width: 100%;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}




.timeline-wrapper {
    width: 1000px;
}

.toolbar {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    margin-bottom: 8px;
    max-width: 100%;
    width: 1000px;
}

.toolbar-song-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toolbar-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

#currentTime {
    font-variant-numeric: tabular-nums;
    justify-self: end;
}

@media (max-width: 600px) {
    .toolbar {
        gap: 8px;
        grid-template-columns: 1fr;
    }

    .toolbar-song-title,
    #currentTime {
        justify-self: center;
    }
}

#timeline {
    cursor: grab;
    display: block;
    touch-action: none;
    width: 100%;
    height: 70px;
}

#timeline.is-dragging {
    cursor: grabbing;
}

#markerButtons {
    position: relative;
    width: 100%;
    height: 34px;
    overflow: visible;
    background: #eeeeee;
    border: 1px solid #cccccc;
    border-top: none;
}

.marker-button {
    position: absolute;
    top: 5px;
    transform: translateX(-50%);
    min-width: 38px;
    height: 26px;
    padding: 0 8px;
    border: none;
    border-radius: 5px;
    background: #d9534f;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    z-index: 1;
}

.song-series-editor {
    margin-top: 12px;
    max-width: 1000px;
}

#songSerieRows {
    width: 100%;
}

.song-serie-row {
    margin-top: 8px;
}

.song-serie-row-header {
    align-items: center;
    display: flex;
    font-weight: 600;
    margin-bottom: 4px;
}

.song-master-serie-selector {
    background: #eeeeee;
    border: 1px solid #cccccc;
    border-bottom: none;
    padding: 5px 8px;
}

.song-serie-selector {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.song-serie-marker-track {
    background: #eeeeee;
    border: 1px solid #cccccc;
    height: 36px;
    overflow: visible;
    position: relative;
    width: 100%;
}

.song-serie-marker {
    background: #198754;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    height: 26px;
    min-width: 38px;
    padding: 0 8px;
    position: absolute;
    top: 5px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.song-serie-marker.is-hidden {
    background: #777777;
    opacity: 0.65;
    text-decoration: line-through;
}

.song-serie-marker:disabled {
    cursor: wait;
    opacity: 0.45;
}

.song-serie-error {
    color: #b52b27;
    margin-top: 8px;
}

    .marker-button:hover {
        background: #b52b27;
    }

.marker-controls {
    display: block;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    padding: 4px;
    top: 31px;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 2;
}

.marker-controls-main {
    align-items: center;
    display: flex;
    gap: 4px;
}

.marker-position {
    color: #333;
    font-size: 12px;
}

.marker-control {
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    height: 26px;
    padding: 0 7px;
}

.marker-control-delete {
    background: #d9534f;
    border-color: #d9534f;
    color: #fff;
}

.marker-control-save {
    background: #198754;
    border-color: #198754;
    color: #fff;
    display: block;
    font-weight: 600;
    margin-top: 4px;
    width: 100%;
}
.song-slideshow {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  width: 100%;
}

.song-slideshow img {
  background: #111;
  border-radius: 0.5rem;
  display: block;
  height: min(60vh, 640px);
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.song-slideshow-empty {
  color: #777;
  margin: 1rem 0;
  text-align: center;
}

.song-series-panel {
  margin-top: 2rem;
  max-width: 1000px;
}

.song-serie-form {
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.song-serie-form fieldset {
  margin: 0;
}

.song-serie-mark-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.song-serie-mark-list label {
  align-items: center;
  background: #f3f3f3;
  border-radius: 0.35rem;
  cursor: pointer;
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
}

.song-series-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.song-serie-card {
  align-items: flex-start;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.song-serie-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.song-serie-card ol {
  margin-bottom: 0;
}
