/* ===== Jukebox play button ===== */
.jukebox-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 3.3rem;
    padding: 0.45rem 0.7rem;
    border-radius: 0.45rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    background: linear-gradient(180deg, #e5373a 0%, #8e1416 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out,
        background 0.12s ease-out;
}

.jukebox-btn:hover {
    background: linear-gradient(180deg, #f0474b 0%, #96181a 100%);
}

.jukebox-btn--play {
    background: linear-gradient(180deg, #e5373a 0%, #8e1416 100%);
}

.jukebox-btn.jukebox-btn--active,
.jukebox-btn.jukebox-btn--active:hover,
.jukebox-btn.jukebox-btn--active:focus {
    background: radial-gradient(
        circle at 40% 25%,
        #ffe9c2 0%,
        #f8ad3d 40%,
        #d97706 70%,
        #904101 100%
    );
    border-color: rgba(158, 74, 8, 0.8);
    transform: translateY(1px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===== Jukebox background pieces ===== */
.jukebox-card {
    background-color: #fee240;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.jukebox-card-mid {
    background-image: linear-gradient(to bottom, #a01717 0%, #a01717 100%);
    background-position: left 0;
    background-size: 6px 100%;
}

.jukebox-card-right {
    background-image: linear-gradient(to bottom, #a01717 0%, #a01717 100%);
    background-position: right 0;
    background-size: 6px 100%;
}

.jb-card-centered {
    text-align: center;
}

/* ===== Track table tweaks ===== */
.eric-tracktable td:last-child,
.eric-tracktable th:last-child {
    padding-right: 0.5rem;
    /* always give Artist some air */
}

.eric-tracktable {
    border-collapse: separate;
    border-spacing: 0;
}

.jb-piece-right.jukebox-card-right {
    padding-right: 1rem;
    /* or .75rem */
}

/* Reserve divider space so layout doesn't jump when toggling */
.jb-piece-mid {
    border-right: 6px solid transparent;
}

/* When playing (JS adds .jukebox-card-mid):
   show the divider and keep breathing room on both sides */
.jukebox-card-mid {
    border-right: 6px solid #a01717;
    padding-right: 0.5rem; /* space before divider */
}

.jukebox-card-right {
    padding-left: 0.5rem; /* space after divider */
}

/* Sticky tracklist header */
/* .eric-tracktable thead th {
    position: sticky;
    top: 0;
    z-index: 20; /* keep it above rows */
background: #f1f5f9; /* matches bg-slate-100 */

/* optional: subtle divider while stuck */
.eric-tracktable thead th::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

/* ===== Tracklist header color ===== */
.eric-tracktable thead {
    background-color: #374151; /* Tailwind slate-700 */
}

.eric-tracktable thead th {
    color: #ffffff;
    font-weight: 600; /* slightly bolder for legibility */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
