/* Setlist page: play a full-show recording from any song (song play buttons, the Watch/Listen
   hint line, and the player's song bar). Loaded only when the show has song times.
   Script: public/js/show-chapters.js. */

/* The "play from here" button beside each timed song (Poster + Stats views). */
.ts-chip {
    display: inline-flex; align-items: center; gap: .1rem;
    margin-left: .5rem; padding: .05rem .45rem .05rem .25rem;
    font-size: .75rem; font-weight: 600; line-height: 1.4;
    font-variant-numeric: tabular-nums;
    color: #8a8f94; background: transparent;
    border: 1px solid #dcdfe2; border-radius: 999px;
    cursor: pointer; white-space: nowrap; vertical-align: middle;
    transition: color .12s, border-color .12s, background-color .12s;
}
.ts-chip i { font-size: .95rem; color: #c8102e; }
.ts-chip:hover, .ts-chip:focus-visible { color: #fff; background: #c8102e; border-color: #c8102e; outline: none; }
.ts-chip:hover i, .ts-chip:focus-visible i { color: #fff; }
/* Icon-only (Poster view): a small round play button, the time lives in the tooltip. */
.ts-chip--icon { width: 1.45rem; height: 1.45rem; padding: 0; justify-content: center; gap: 0; }
.ts-chip--icon i { font-size: 1rem; margin-left: .1rem; }
/* In the poster the chip sits at the right end of the row. */
.setlist-poster__song .ts-chip { margin-left: auto; align-self: center; flex: 0 0 auto; }

/* Watch This Show (small row): the hint pointing up at the setlist's play buttons. */
.ts-hint {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: .25rem;
    margin-top: .5rem; font-size: .85rem; color: #c8102e; text-decoration: none; line-height: 1.35;
}
.ts-hint:hover { text-decoration: underline; }
.ts-hint__btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.15rem; height: 1.15rem; border: 1px solid #dcdfe2; border-radius: 50%; font-size: .8rem;
}
.ts-hint__btn i { margin-left: .08rem; }

/* The lightbox's song bar. */
/* The video + song bar (+ the open song list) must fit the window, or the bottom of the
   list ends up below the screen. The video is 16:9, so its width is capped from the height
   left over: 10.5rem covers the close button, the song bar and the padding, and the open
   list (.has-list) takes up to 30vh more. If it still doesn't fit, the overlay scrolls. */
.ts-lightbox { align-items: flex-start; overflow-y: auto; }
.ts-dialog { margin: auto; max-width: none; width: min(960px, 100%, calc((100dvh - 10.5rem) * 16 / 9)); padding-top: 2.75rem; }
.ts-dialog.has-list { width: min(960px, 100%, calc((100dvh - 10.5rem - 30vh) * 16 / 9)); }
.ts-dialog .vlp-lightbox__close { top: 0; }
.ts-bar {
    display: flex; align-items: center; gap: .6rem; margin-top: .6rem;
    padding: .5rem .6rem; background: #17191c; color: #fff; border-radius: 6px;
}
.ts-bar__step {
    flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font-size: 1.2rem;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.ts-bar__step:hover:not(:disabled) { background: #c8102e; border-color: #c8102e; }
.ts-bar__step:disabled { opacity: .3; cursor: default; }
.ts-bar__now { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.ts-bar__kicker { font-size: .65rem; text-transform: uppercase; letter-spacing: 2px; color: #ff6b7f; font-weight: 700; }
.ts-bar__song { font-family: "Bebas Neue", sans-serif; font-size: 1.45rem; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-bar__pos { font-size: .75rem; color: #aab0b6; font-variant-numeric: tabular-nums; }
.ts-bar__toggle {
    flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff;
    border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; cursor: pointer;
}
.ts-bar__toggle[aria-expanded="true"], .ts-bar__toggle:hover { background: #fff; color: #17191c; }
.ts-bar__list {
    position: relative; list-style: none; margin: .4rem 0 0; padding: .3rem; max-height: 30vh; overflow-y: auto;
    background: #17191c; border-radius: 6px;
    /* Two columns that read down, like a setlist (rows set from the song count in JS). */
    display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; column-gap: .5rem;
}
.ts-bar__list[hidden] { display: none; }
.ts-bar__list button {
    display: flex; gap: .45rem; align-items: baseline; width: 100%; padding: .25rem .45rem;
    background: transparent; border: 0; color: #d6d9dc; text-align: left; font-size: .85rem; border-radius: 4px; cursor: pointer;
}
.ts-bar__list button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ts-bar__list button.is-current { background: #c8102e; color: #fff; }
.ts-bar__list .is-missing { display: flex; gap: .45rem; align-items: baseline; padding: .25rem .45rem; font-size: .85rem; color: #6c737a; }
.ts-bar__list .is-missing .ts-bar__t { font-style: italic; }
.ts-bar__list button.is-medley .ts-bar__name { padding-left: .7rem; font-size: .8rem; }
.ts-bar__n { flex: 0 0 1.3rem; text-align: right; opacity: .6; font-variant-numeric: tabular-nums; }
.ts-bar__name { flex: 1 1 auto; }
.ts-bar__t { opacity: .7; font-size: .75rem; font-variant-numeric: tabular-nums; }

@media (max-width: 575.98px) {
    .ts-bar { flex-wrap: wrap; }
    .ts-bar__now { order: -1; flex-basis: 100%; }
    .ts-bar__toggle { margin-left: auto; }
    .ts-bar__list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none !important; max-height: 32vh; }
}
