/* ==========================================================================
   AUDIO CONTROLS & SEEK BAR WITH HOVER TOOLTIP
   ========================================================================== */

/* Track titles & heart button */
.track-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 2px;
}

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

.track-titles h1 {
    font-size: 1.25rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
    color: #fff;
}

.track-titles p {
    font-size: 0.85rem;
    color: var(--dim);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.heart-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s var(--ease-spring), background 0.2s, border-color 0.2s;
    color: var(--dim);
}

.heart-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--border-hover);
    color: #fff;
    transform: scale(1.08);
}

.heart-btn:active {
    transform: scale(0.9);
}

.heart-btn.saved {
    background: rgba(255, 65, 108, 0.22);
    border-color: #ff416c;
    color: #ff416c;
}

/* ==========================================================================
   Seek Bar with Hover Timestamp Tooltip
   ========================================================================== */
.seek-section {
    position: relative;
    margin: 6px 0 2px;
}

/* Hover Timestamp Tooltip */
.seek-tooltip {
    position: absolute;
    top: -28px;
    left: 0;
    transform: translateX(-50%);
    background: rgba(14, 20, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.seek-tooltip.visible {
    opacity: 1;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.18);
    outline: none;
    cursor: pointer;
    transition: background 0.15s, height 0.15s;
}

.seek-section:hover input[type="range"] {
    height: 7px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 14px var(--c1), 0 2px 6px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: transform 0.15s var(--ease-spring);
}

input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.3);
}

.time-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--dim);
    margin-top: 5px;
}

.gapless-pill {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(0, 230, 118, 0.18);
    color: var(--c1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gapless-pill.show { opacity: 1; }

/* ==========================================================================
   Main Playback Controls Row & Master Button
   ========================================================================== */
.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px;
    margin: 4px 0;
}

.sub-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--dim);
    padding: 10px;
    border-radius: 14px;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s, background 0.2s, color 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    transform: scale(1.08);
}

.sub-btn:active {
    transform: scale(0.92);
}

.sub-btn.active {
    color: var(--c1);
    opacity: 1;
    background: rgba(0, 230, 118, 0.14);
}

.sub-badge {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--c1);
}

.main-btn {
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 var(--rim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: transform 0.2s var(--ease-spring), background 0.2s, box-shadow 0.2s;
}

.main-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: var(--border-hover);
    transform: scale(1.06);
}

.main-btn:active {
    transform: scale(0.92);
}

.main-btn.sm {
    width: 48px;
    height: 48px;
}

/* Master Play Button with Glowing Dual Rings */
.main-btn.lg {
    position: relative;
    width: 66px;
    height: 66px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), inset 0 1.5px 0 #fff;
}

.main-btn.lg::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(0, 230, 118, calc(var(--beat-bass, 0) * 0.4));
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.main-btn.lg:hover::before {
    opacity: 1;
}

.main-btn.lg:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.24));
    transform: scale(1.08);
    box-shadow: 0 10px 32px rgba(0, 230, 118, 0.35), inset 0 1.5px 0 #fff;
}

/* Player Utility Bar */
.player-util-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    margin-top: 3px;
}

.vol-control {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 110px;
    flex: 1;
    margin: 0 8px;
}

.vol-control input[type="range"] {
    height: 4px;
}

/* SVG Icon Helper */
.ico-svg {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
}

.ico-svg.sm {
    width: 16px;
    height: 16px;
}

/* Up Next Queue Drawer */
.queue-drawer {
    position: absolute;
    inset: 0;
    z-index: 25;
    background: rgba(7, 12, 20, 0.96);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    transform: translateY(105%);
    transition: transform 0.32s var(--ease-out);
}

.queue-drawer.open {
    transform: translateY(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}