/* Hostplay Player Pro — Widgets & Player CSS */
:root { --hppro-accent: #f97316; }

/* ── Artwork ──────────────────────────────────────────────────────────────── */
.hppro-artwork {
    display: block;
    margin: 0 auto;
    line-height: 0;
}

.hppro-artwork img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: opacity .3s;
    background: #1a1a1a;
}

.hppro-artwork img[src=""] { opacity: 0; }

/* ── Title Widget ─────────────────────────────────────────────────────────── */
.hppro-title-widget { line-height: 1.4; }

.hppro-live-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--hppro-accent);
    margin: 0 0 6px;
}

.hppro-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hppro-accent);
    animation: hppro-pulse 2s ease-in-out infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes hppro-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

.hppro-song-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.2;
}

.hppro-song-artist {
    font-size: 13px;
    opacity: .65;
    margin: 0;
}

/* ── History Widget ───────────────────────────────────────────────────────── */
.hppro-history-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 12px;
    opacity: .7;
}

.hppro-history-widget {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hppro-history-empty {
    opacity: .5;
    font-size: 13px;
    margin: 0;
}

.hppro-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(128,128,128,.06);
    transition: background .15s;
}

.hppro-history-item:hover { background: rgba(128,128,128,.12); }

.hppro-history-item__cover {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(128,128,128,.15);
}

.hppro-history-item__cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(128,128,128,.4);
}

.hppro-history-item__info { min-width: 0; flex: 1; }

.hppro-history-item__title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 2px;
}

.hppro-history-item__artist {
    font-size: 11px;
    opacity: .55;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.hppro-history-item__time {
    font-size: 10px;
    opacity: .4;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Floating Player ──────────────────────────────────────────────────────── */
#hppro-player {
    position: fixed;
    left: 0; right: 0;
    z-index: 99999;
    background: rgba(10,10,10,.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform .3s ease;
}

#hppro-player.hppro-player--bottom {
    bottom: 0;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 -8px 32px rgba(0,0,0,.4);
}

#hppro-player.hppro-player--top {
    top: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

.hppro-player__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.hppro-player__cover {
    width: 44px; height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #1a1a1a;
    transition: opacity .3s;
}

.hppro-player__cover[src=""] { opacity: 0; }

.hppro-player__info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
}

.hppro-player__title {
    color: #fff; font-size: 13px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hppro-player__artist {
    color: rgba(255,255,255,.55); font-size: 11px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hppro-player__controls {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

/* Botões — reset WordPress */
#hppro-player button, #hppro-player .hppro-btn {
    all: unset; box-sizing: border-box !important;
    cursor: pointer !important; display: inline-flex !important;
    align-items: center !important; justify-content: center !important;
    padding: 0 !important; margin: 0 !important; border: none !important;
    transition: transform .15s, opacity .15s !important;
}

#hppro-player .hppro-btn--play {
    width: 40px !important; height: 40px !important;
    background: var(--hppro-accent) !important;
    border-radius: 50% !important; color: #fff !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.3) !important;
    flex-shrink: 0 !important;
    transition: background .3s, transform .15s !important;
}

#hppro-player .hppro-btn--play:hover { transform: scale(1.05) !important; }

#hppro-player .hppro-btn--vol {
    width: 32px !important; height: 32px !important;
    color: rgba(255,255,255,.5) !important; background: none !important;
    flex-shrink: 0 !important;
}

#hppro-player .hppro-btn--vol:hover { color: #fff !important; transform: none !important; }

/* Volume popup */
.hppro-vol-wrap { position: relative; }

.hppro-vol-popup {
    position: absolute; bottom: calc(100% + 10px); left: 50%;
    transform: translateX(-50%) scaleY(0); transform-origin: bottom center;
    background: rgba(15,15,15,.95); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
    padding: 12px 10px; display: flex; flex-direction: column;
    align-items: center; gap: 8px; width: 40px;
    opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
}

.hppro-vol-popup::after {
    content: ''; position: absolute; bottom: -6px; left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(15,15,15,.95); border-bottom: none;
}

.hppro-vol-popup.hppro-vol-popup--open {
    transform: translateX(-50%) scaleY(1);
    opacity: 1; pointer-events: all;
}

.hppro-vol-popup__pct {
    color: rgba(255,255,255,.6); font-size: 10px; font-weight: 700;
    user-select: none;
}

.hppro-vol-popup__slider {
    -webkit-appearance: slider-vertical; appearance: slider-vertical;
    width: 4px; height: 90px; cursor: pointer; outline: none; border: none;
    background: transparent; writing-mode: vertical-lr; direction: rtl;
}

.hppro-vol-popup__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--hppro-accent, #f97316); cursor: pointer; margin-left: -5px;
}

.hppro-vol-popup__slider::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--hppro-accent, #f97316); border: none; cursor: pointer;
}

@keyframes hppro-spin { to { stroke-dashoffset: -100; } }

body.hppro-player-bottom { padding-bottom: 80px !important; }
body.hppro-player-top    { padding-top: 70px !important; }
