.njp-mobile-player {
    position: fixed;
    bottom: calc(var(--mnav-h) + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    height: 58px;
    background: linear-gradient(135deg, #1D1929 0%, #2a2243 100%);
    z-index: 950;
    transform: translate3d(0, calc(100% + var(--mnav-h) + env(safe-area-inset-bottom)), 0);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    will-change: transform;
    pointer-events: none;
    visibility: hidden;
}

.njp-mobile-player.njp-active {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    visibility: visible;
}

.njp-mobile-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 12px;
    max-width: 1360px;
    margin: 0 auto;
    gap: 10px;
}

.njp-mobile-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.njp-mobile-song {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.4s ease;
}

.njp-mobile-artist {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.4s ease;
}

.njp-mobile-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.njp-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #E9540E;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    box-shadow: 0 2px 8px rgba(233, 84, 14, 0.3);
    position: relative;
}

.njp-play-btn:hover {
    background: #E9540E;
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(233, 84, 14, 0.5);
}

.njp-play-btn:active {
    transform: scale(0.92);
    transition-duration: 0.1s;
}

.njp-play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fff;
    margin-left: 2px;
    display: block;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.njp-play-icon.njp-playing {
    border-width: 0;
    width: 10px;
    height: 12px;
    border-left: 3px solid #fff;
    border-right: 3px solid #fff;
    margin-left: 0;
}

.njp-mobile-close {
    color: rgba(255,255,255,0.3);
    font-size: 18px;
    text-decoration: none;
    line-height: 1;
    padding: 6px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.njp-mobile-close:hover {
    color: #fff;
    transform: scale(1.15) rotate(90deg);
}

.njp-eq-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    margin-left: 6px;
}

.njp-eq-bar {
    width: 3px;
    background: #E9540E;
    border-radius: 1.5px;
    height: 4px;
    transition: height 0.2s ease;
}

.njp-eq-bars.njp-animating .njp-eq-bar:nth-child(1) { animation: njp-eq1 0.8s ease-in-out infinite; }
.njp-eq-bars.njp-animating .njp-eq-bar:nth-child(2) { animation: njp-eq2 0.65s ease-in-out infinite 0.12s; }
.njp-eq-bars.njp-animating .njp-eq-bar:nth-child(3) { animation: njp-eq3 0.72s ease-in-out infinite 0.22s; }
.njp-eq-bars.njp-animating .njp-eq-bar:nth-child(4) { animation: njp-eq4 0.88s ease-in-out infinite 0.06s; }

@keyframes njp-eq1 { 0%, 100% { height: 3px; } 50% { height: 12px; } }
@keyframes njp-eq2 { 0%, 100% { height: 5px; } 50% { height: 10px; } }
@keyframes njp-eq3 { 0%, 100% { height: 3px; } 50% { height: 14px; } }
@keyframes njp-eq4 { 0%, 100% { height: 4px; } 50% { height: 11px; } }

.njp-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E9540E;
    margin-right: 6px;
    vertical-align: middle;
}

.njp-state-playing .njp-live-dot {
    animation: njp-pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.live-info .small-title:before,
.now-go .live:before {
    display: none;
}

@keyframes njp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

.big-play-btn {
    transition: background 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
    position: relative;
    cursor: default;
}

.big-play-btn .info-song .more-info {
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.big-play-btn .info-song .more-info:hover {
    color: #E9540E;
}

.big-play-btn.njp-playing {
    background: linear-gradient(135deg, #E9540E 0%, #FAA31C 100%);
    box-shadow: 0 5px 25px rgba(233, 84, 14, 0.4);
}

.big-play-btn.njp-playing .info-song .song,
.big-play-btn.njp-playing .info-song .singer {
    color: #fff;
    transition: color 0.5s ease;
}

.big-play-btn.njp-playing .info-song .more-info {
    color: rgba(255,255,255,0.5);
    transition: color 0.5s ease;
}

.left-btn-part .img {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    cursor: pointer;
}

.left-btn-part .img img {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
    box-shadow: 0 0 0 0 rgba(233, 84, 14, 0);
}

.big-play-btn.njp-playing .left-btn-part .img img {
    animation: njp-vinyl-spin 4s linear infinite;
    filter: drop-shadow(0 0 6px rgba(233, 84, 14, 0.3));
}

@keyframes njp-vinyl-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.left-btn-part .img:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: radial-gradient(circle, #E9540E 40%, #ff8a3c 100%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s ease;
    z-index: 2;
    transform: scale(0.5);
    box-shadow: 0 0 8px rgba(233, 84, 14, 0.4);
}

.big-play-btn.njp-playing .left-btn-part .img:after {
    opacity: 1;
    transform: scale(1);
}

.left-btn-part .img:before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.5s ease, opacity 0.5s ease;
    z-index: 1;
    opacity: 0;
}

.njp-state-loading .left-btn-part .img:before {
    opacity: 1;
    border-color: transparent;
    border-top-color: #E9540E;
    animation: njp-loader-spin 0.7s linear infinite;
}

.njp-state-reconnecting .left-btn-part .img:before {
    opacity: 1;
    border-color: transparent;
    border-top-color: #E9540E;
    border-right-color: rgba(233, 84, 14, 0.25);
    animation: njp-loader-spin 1.1s linear infinite;
}

.big-play-btn.njp-playing .left-btn-part .img:before {
    opacity: 1;
    border-color: rgba(233, 84, 14, 0.15);
    animation: njp-ring-breathe 3s ease-in-out infinite;
}

@keyframes njp-loader-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes njp-ring-breathe {
    0%, 100% { border-color: rgba(233, 84, 14, 0.12); transform: scale(1); }
    50% { border-color: rgba(233, 84, 14, 0.3); transform: scale(1.05); }
}

.njp-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(233, 84, 14, 0.35);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    pointer-events: none;
}

.njp-state-playing .njp-ripple {
    animation: njp-ripple-out 3s cubic-bezier(0, 0.55, 0.45, 1) infinite;
}

.njp-state-playing .njp-ripple:nth-child(2) {
    animation-delay: 1s;
}

.njp-state-playing .njp-ripple:nth-child(3) {
    animation-delay: 2s;
}

@keyframes njp-ripple-out {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.45; border-color: rgba(233, 84, 14, 0.35); }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; border-color: rgba(233, 84, 14, 0); }
}

.njp-header-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #E9540E;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    box-shadow: 0 2px 10px rgba(233, 84, 14, 0.3);
}

.njp-header-toggle:hover {
    background: #ff2b32;
    transform: scale(1.1);
    box-shadow: 0 4px 18px rgba(233, 84, 14, 0.5);
}

.njp-header-toggle:active {
    transform: scale(0.9);
    transition-duration: 0.1s;
}

.njp-ht-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
    display: block;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.njp-state-playing .njp-ht-icon {
    border-width: 0;
    width: 13px;
    height: 18px;
    border-left: 5px solid #fff;
    border-right: 5px solid #fff;
    margin-left: 0;
}

.njp-state-loading .njp-header-toggle {
    animation: njp-ht-load 1s ease-in-out infinite;
}

/* Thin spinning ring removed — loading feedback now comes from the pill shimmer
   (see mobile-menu.css) for the mobile listen button and the button's own
   breathe/pulse animation for the desktop header toggle. */
.njp-state-loading .njp-header-toggle:after,
.njp-state-reconnecting .njp-header-toggle:after {
    content: none;
    display: none;
}

@keyframes njp-ht-load {
    0%, 100% { box-shadow: 0 2px 10px rgba(233, 84, 14, 0.3); }
    50% { box-shadow: 0 4px 24px rgba(233, 84, 14, 0.65); }
}

.njp-header-vol {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    color: #1D1929;
    transition: color 0.3s ease, transform 0.2s ease, background 0.3s ease;
}

.njp-header-vol:hover {
    color: #E9540E;
    transform: scale(1.1);
    background: rgba(233, 84, 14, 0.08);
}

.njp-state-playing .njp-header-vol {
    color: #fff;
}

.njp-header-vol.njp-muted {
    color: rgba(255,255,255,0.2);
}

.njp-state-playing .njp-header-toggle {
    box-shadow: 0 4px 20px rgba(233, 84, 14, 0.45);
    animation: njp-ht-breathe 3s ease-in-out infinite;
}

@keyframes njp-ht-breathe {
    0%, 100% { box-shadow: 0 4px 20px rgba(233, 84, 14, 0.45); }
    50% { box-shadow: 0 6px 28px rgba(233, 84, 14, 0.25); }
}

.listen-mobile {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E9540E 0%, #FAA31C 100%);
    color: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(233, 84, 14, 0.35);
    transition: background 0.3s ease, box-shadow 0.4s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    font-size: 0;
    padding: 0;
    flex: 0 0 auto;
}
/* kill the legacy main.css ::before triangle so we don't see two play icons */
.listen-mobile::before { content: none !important; display: none !important; }

.listen-mobile-play,
.listen-mobile-pause {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .18s ease, transform .22s cubic-bezier(.4,0,.2,1);
}
.listen-mobile-play svg,
.listen-mobile-pause svg {
    width: 16px;
    height: 16px;
    display: block;
}
.listen-mobile-play  { transform: translateX(1px); }
.listen-mobile-pause { opacity: 0; transform: scale(0.6); }

.listen-mobile:hover  { transform: scale(1.05); box-shadow: 0 4px 14px rgba(233, 84, 14, 0.5); }
.listen-mobile:active { transform: scale(0.94); }

.listen-mobile.njp-playing {
    background: linear-gradient(135deg, #1D1929 0%, #2a2243 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    animation: njp-mobile-glow 2.5s ease-in-out infinite;
}
.listen-mobile.njp-playing .listen-mobile-play  { opacity: 0; transform: scale(0.6); }
.listen-mobile.njp-playing .listen-mobile-pause { opacity: 1; transform: none; }

@keyframes njp-mobile-glow {
    0%, 100% { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
    50% { box-shadow: 0 2px 18px rgba(233, 84, 14, 0.35); }
}

.njp-mute-btn {
    transition: opacity 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.njp-mute-btn:hover {
    transform: scale(1.12);
}

.njp-mute-btn.njp-muted {
    opacity: 0.3;
}

/* loader spinner rings removed — users were seeing a thin white line
   spinning around the play button until audio started. The button's
   own breathe animation is enough feedback. */
.njp-state-loading .njp-play-btn:before,
.njp-state-reconnecting .njp-play-btn:before { content: none; display: none; }

@keyframes njp-btn-load {
    0%, 100% { box-shadow: 0 2px 8px rgba(233, 84, 14, 0.3); }
    50% { box-shadow: 0 4px 22px rgba(233, 84, 14, 0.65); }
}

@keyframes njp-btn-reconnect {
    0%, 100% { box-shadow: 0 2px 8px rgba(233, 84, 14, 0.2); opacity: 1; }
    50% { box-shadow: 0 4px 18px rgba(233, 84, 14, 0.45); opacity: 0.7; }
}

.njp-state-reconnecting .njp-mobile-song:after {
    content: " ...";
    animation: njp-dots 1.5s steps(4) infinite;
}

@keyframes njp-dots {
    0% { content: ""; }
    25% { content: " ."; }
    50% { content: " .."; }
    75% { content: " ..."; }
}

.njp-next-show {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-top: 10px;
    font-weight: 500;
}

@media screen and (min-width: 651px) {
    .njp-mobile-player {
        display: none !important;
    }
}

@media screen and (max-width: 650px) {
    .njp-mobile-player.njp-active ~ footer {
        padding-bottom: 58px;
    }
}
