:root {
    --nc-player-height: 76px;
    --nc-player-peek: 26px;
    --nc-player-line: rgba(255,255,255,.16);
    --nc-player-muted: #b8c0bb;
    --nc-player-progress: #58ee8d;
}

#ncap-global-player {
    position: fixed;
    z-index: 99990;
    right: 0;
    bottom: 0;
    left: var(--nc-sidebar-width,240px);
    min-height: 0;
    background: transparent !important;
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
}
#ncap-global-player.has-track { pointer-events: auto; }
#ncap-global-player.is-collapsed { transform: translateY(calc(100% - var(--nc-player-peek))); }

.nc-player {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px,.9fr) minmax(430px,1.8fr) minmax(110px,.55fr);
    align-items: center;
    gap: clamp(10px,1.7vw,26px);
    min-height: var(--nc-player-height);
    padding: 7px clamp(12px,2vw,28px);
    border: 0;
    background: transparent !important;
    box-shadow: none;
    color: #fff;
    text-shadow: 0 1px 5px rgba(0,0,0,.92);
}
.nc-player::before { display: none; }
.nc-player button,.nc-queue-panel button { font: inherit; }
.nc-player button:focus-visible,.nc-queue-panel button:focus-visible,.nc-player input:focus-visible { outline: 2px solid var(--nc-player-progress); outline-offset: 3px; }

.nc-player-drawer-handle {
    position: absolute;
    top: -21px;
    left: 50%;
    display: grid;
    width: 54px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.3);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: transparent !important;
    color: #fff;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.9));
    place-items: center;
    transform: translateX(-50%);
    cursor: pointer;
    touch-action: none;
}

.nc-player-track { display: flex; min-width: 0; align-items: center; gap: 10px; }
.nc-player-art-link { display: block; flex: 0 0 52px; width: 52px; height: 52px; }
.nc-player-art { width: 100%; height: 100%; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: #242a26; box-shadow: 0 5px 18px rgba(0,0,0,.42); object-fit: cover; }
.is-playing .nc-player-art { animation: nc-player-spin 14s linear infinite; }
.nc-player-meta { min-width: 0; }
.nc-player-title,.nc-player-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-player-title { font-size: .91rem; font-weight: 780; }
.nc-player-artist { margin-top: 2px; color: var(--nc-player-muted); font-size: .74rem; }

.nc-player-main { display: grid; grid-template-columns: auto minmax(190px,1fr); align-items: center; gap: clamp(12px,1.6vw,24px); min-width: 0; }
.nc-player-controls { display: flex; align-items: center; justify-content: center; gap: clamp(3px,.7vw,9px); }
.nc-player-icon,.nc-player-toggle { position: relative; display: grid; padding: 0; border: 0; background: transparent; color: #e2e7e4; filter: drop-shadow(0 2px 3px rgba(0,0,0,.82)); place-items: center; cursor: pointer; }
.nc-player-icon { width: 31px; height: 31px; border-radius: 50%; }
.nc-player-icon:hover { color: var(--nc-player-progress); transform: translateY(-1px); }
.nc-player-icon svg { width: 18px; height: 18px; fill: currentColor; }
.nc-player-toggle { width: 41px; height: 41px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(0,0,0,.2); color: #fff; transition: transform .16s ease,color .16s ease,border-color .16s ease; }
.nc-player-toggle:hover { border-color: var(--nc-player-progress); color: var(--nc-player-progress); transform: scale(1.06); }
.nc-player-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.nc-shuffle[aria-pressed=true],.nc-repeat:not([data-mode=off]) { color: var(--nc-player-progress); }
.nc-repeat-one { display: none; position: absolute; right: 0; bottom: 0; font-size: .56rem; font-weight: 800; }
.nc-repeat[data-mode=one] .nc-repeat-one { display: block; }

.nc-player-progress { position: relative; display: grid; grid-template-columns: 34px minmax(100px,1fr) 34px; align-items: center; gap: 8px; min-width: 0; color: #d7ddd9; font-size: .67rem; font-variant-numeric: tabular-nums; }
.nc-current-time { text-align: right; }
.nc-waveform { display: flex; height: 38px; min-width: 0; align-items: center; justify-content: space-between; gap: 2px; overflow: hidden; pointer-events: none; }
.nc-wave-bar { flex: 1 1 auto; width: 2px; max-width: 4px; height: var(--wave-height); min-height: 4px; border-radius: 99px; background: rgba(224,231,226,.38); box-shadow: 0 1px 3px rgba(0,0,0,.55); transform-origin: center; transition: background-color .14s ease,opacity .14s ease,transform .14s ease; }
.nc-wave-bar.is-played { background: var(--nc-player-progress); box-shadow: 0 0 8px rgba(88,238,141,.52); }
.is-playing .nc-wave-bar.is-head { animation: nc-wave-head .72s ease-in-out infinite alternate; }
.nc-seek { position: absolute; z-index: 2; top: 0; right: 42px; bottom: 0; left: 42px; width: calc(100% - 84px); height: 38px; margin: auto 0; opacity: 0; cursor: pointer; }

.nc-player-tools { display: flex; min-width: 0; height: 62px; align-items: center; justify-content: flex-end; gap: 10px; }
.nc-volume-stack { display: flex; width: 34px; height: 62px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px; }
.nc-volume { width: 49px; height: 17px; margin: 0 0 1px; accent-color: var(--nc-player-progress); cursor: pointer; transform: rotate(-90deg); transform-origin: center; }
.nc-volume-stack .nc-mute { flex: 0 0 24px; width: 28px; height: 24px; }
.nc-queue-count { position: absolute; top: -2px; right: -5px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--nc-player-progress); color: #07120a; text-shadow: none; font-size: .57rem; font-weight: 800; line-height: 15px; }
.nc-resume { padding: 6px 10px; border: 1px solid rgba(88,238,141,.65); border-radius: 999px; background: transparent; color: #c8ffdb; font-size: .72rem; font-weight: 750; cursor: pointer; }
.nc-resume[hidden] { display: none; }
.nc-audio-ad-badge { position: absolute; top: 4px; right: 10px; padding: 3px 7px; border-radius: 999px; background: #f5b642; color: #171006; text-shadow: none; font-size: .6rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.nc-player.is-audio-ad .nc-player-controls,.nc-player.is-audio-ad .nc-player-progress { opacity: .5; pointer-events: none; }

.nc-queue-panel { position: fixed; z-index: 99995; top: 0; right: 0; bottom: 0; width: min(420px,92vw); padding: 18px 14px 98px; border-left: 1px solid var(--nc-player-line); background: rgba(9,13,11,.95); box-shadow: -24px 0 64px rgba(0,0,0,.42); color: #fff; overflow: auto; transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%); }
.nc-queue-panel.active { transform: translateX(0); }
.nc-queue-grip { display: none; }
.nc-queue-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 5px 18px; }
.nc-queue-header h2 { margin: 2px 0 0; font-size: 1.35rem; }
.nc-queue-eyebrow { color: #79eea2; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nc-queue-list { display: grid; gap: 5px; }
.nc-queue-item { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 8px; border: 1px solid transparent; border-radius: 12px; }
.nc-queue-item:hover { background: rgba(255,255,255,.045); }
.nc-queue-item.active { border-color: rgba(101,238,148,.25); background: rgba(29,185,84,.1); }
.nc-queue-play,.nc-queue-meta { padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.nc-queue-play { position: relative; display: block; width: 48px; height: 48px; }
.nc-queue-art { width: 48px; height: 48px; border-radius: 7px; background: #242a26; object-fit: cover; }
.nc-queue-number { position: absolute; z-index: 1; inset: 0; display: grid; background: rgba(0,0,0,.42); color: #fff; font-size: .76rem; font-weight: 800; place-items: center; opacity: 0; }
.nc-queue-item:hover .nc-queue-number,.nc-queue-item.active .nc-queue-number { opacity: 1; }
.nc-queue-meta { display: grid; min-width: 0; }
.nc-queue-title,.nc-queue-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-queue-title { font-size: .84rem; font-weight: 720; }
.nc-queue-artist { color: var(--nc-player-muted); font-size: .72rem; }
.nc-queue-actions { display: flex; gap: 1px; }
.nc-queue-actions button { display: grid; width: 25px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #aab2ad; place-items: center; cursor: pointer; }
.nc-queue-actions button:hover:not(:disabled) { background: rgba(255,255,255,.09); color: #fff; }
.nc-queue-actions button:disabled { opacity: .22; cursor: default; }
.nc-queue-empty { padding: 42px 20px; color: var(--nc-player-muted); text-align: center; }

@keyframes nc-wave-head { from { opacity: .6; transform: scaleY(.72); } to { opacity: 1; transform: scaleY(1.18); } }
@keyframes nc-player-spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
    .nc-player { grid-template-columns: minmax(170px,.8fr) minmax(360px,1.7fr) 88px; }
    .nc-player-main { gap: 9px; }
    .nc-player-controls .nc-shuffle,.nc-player-controls .nc-repeat { display: none; }
    .nc-waveform { gap: 1px; }
}

@media (max-width: 782px) {
    :root { --nc-player-height: 92px; }
    #ncap-global-player { left: 0; }
    .nc-player { grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; min-height: var(--nc-player-height); padding: 7px 9px; }
    .nc-player-track { grid-column: 1; grid-row: 1; }
    .nc-player-art-link { flex-basis: 43px; width: 43px; height: 43px; }
    .nc-player-main { grid-column: 1/-1; grid-row: 2; grid-template-columns: auto minmax(80px,1fr); gap: 7px; }
    .nc-player-tools { grid-column: 2; grid-row: 1; height: 43px; }
    .nc-volume-stack { display: none; }
    .nc-player-controls { gap: 1px; }
    .nc-player-controls .nc-shuffle,.nc-player-controls .nc-repeat { display: none; }
    .nc-player-toggle { width: 37px; height: 37px; }
    .nc-player-icon { width: 29px; height: 29px; }
    .nc-player-progress { grid-template-columns: 29px minmax(40px,1fr) 29px; gap: 4px; font-size: .6rem; }
    .nc-waveform { height: 29px; }
    .nc-wave-bar:nth-child(2n) { display: none; }
    .nc-seek { right: 33px; left: 33px; width: calc(100% - 66px); height: 29px; }
    .nc-content { padding-bottom: 110px !important; }
}

@media (max-width: 560px) {
    .nc-player-title,.nc-player-artist { max-width: 43vw; }
    .nc-resume { position: absolute; top: -31px; right: 6px; }
    .nc-queue-panel { top: auto; right: 0; bottom: 0; left: 0; width: 100%; height: min(76vh,650px); padding: 10px 10px 108px; border-top: 1px solid var(--nc-player-line); border-left: 0; border-radius: 22px 22px 0 0; transform: translateY(105%); }
    .nc-queue-panel.active { transform: translateY(0); }
    .nc-queue-grip { display: block; width: 42px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: rgba(255,255,255,.28); }
    .nc-queue-item { grid-template-columns: 50px minmax(0,1fr) auto; padding: 7px 4px; }
    .nc-queue-actions button { width: 23px; }
    .nc-audio-ad-badge { top: 2px; right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    #ncap-global-player,.nc-queue-panel,.nc-player-toggle,.nc-wave-bar,.nc-player-art { animation: none !important; transition: none !important; }
}
