/* ============================================
   VIP MUSIC - Premium Dedicated Player Page
   Blurred BG + Golden Neon
============================================ */

.player-body {
    background: #0a0a0a;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
}

/* ===== BLURRED ALBUM ART BACKGROUND ===== */
.player-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.player-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px) saturate(1.4) brightness(0.4);
    transform: scale(1.2);
}

.player-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,10,10,0.3) 0%,
        rgba(10,10,10,0.55) 40%,
        rgba(10,10,10,0.92) 100%
    );
}

.player-page-wrapper {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ===== TOP BAR ===== */
.player-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, transparent 100%);
    backdrop-filter: blur(8px);
}

.back-btn, .admin-link-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.25s;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
}

.back-btn:hover, .admin-link-sm:hover {
    background: rgba(201,162,39,0.3);
    color: #e8c547;
}

.now-playing-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #c9a227;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(201,162,39,0.5);
}

/* ===== MAIN PLAYER ===== */
.player-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 24px 24px;
    position: relative;
    z-index: 1;
}

/* ===== ALBUM ART + GOLDEN NEON ===== */
.album-art-container {
    position: relative;
    width: min(300px, 78vw);
    margin: 12px 0 28px;
}

.album-art-glow {
    position: absolute;
    inset: -35px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,39,0.5) 0%, rgba(232,197,71,0.18) 40%, transparent 70%);
    filter: blur(28px);
    z-index: 0;
    animation: neon-pulse 3s ease-in-out infinite;
}

.album-art-glow::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.25) 0%, transparent 60%);
    filter: blur(18px);
}

@keyframes neon-pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.album-art {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 18px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 0 0 2px rgba(201,162,39,0.55),
        0 0 25px rgba(201,162,39,0.4),
        0 0 50px rgba(201,162,39,0.2),
        0 0 90px rgba(201,162,39,0.1),
        0 25px 50px rgba(0,0,0,0.5);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.album-art.playing {
    box-shadow: 
        0 0 0 2px rgba(232,197,71,0.75),
        0 0 30px rgba(201,162,39,0.55),
        0 0 60px rgba(201,162,39,0.3),
        0 0 110px rgba(201,162,39,0.15),
        0 25px 50px rgba(0,0,0,0.5);
    animation: art-float 4s ease-in-out infinite;
}

@keyframes art-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.015); }
}

/* ===== TRACK INFO ===== */
.track-info {
    text-align: center;
    width: 100%;
    margin-bottom: 22px;
}

.track-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(20px, 5.5vw, 26px);
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.track-artist {
    font-size: 14px;
    color: #c9a227;
    margin: 0 0 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 0 16px rgba(201,162,39,0.4);
}

.track-desc {
    font-size: 12.5px;
    color: rgba(255,255,255,0.5);
    max-width: 340px;
    margin: 0 auto;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.track-desc.expanded {
    -webkit-line-clamp: unset;
}

.desc-toggle {
    background: none;
    border: none;
    color: #c9a227;
    font-size: 12px;
    cursor: pointer;
    margin-top: 6px;
    padding: 0;
    font-weight: 500;
}

.desc-toggle:hover { text-decoration: underline; }

/* ===== PROGRESS ===== */
.progress-section {
    width: 100%;
    margin-bottom: 22px;
}

.progress-bar-full {
    height: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin-bottom: 8px;
    transition: height 0.15s;
}

.progress-bar-full:hover { height: 6px; }

.progress-fill-full {
    height: 100%;
    background: linear-gradient(90deg, #c9a227, #f0d060);
    border-radius: 4px;
    width: 0%;
    box-shadow: 0 0 12px rgba(201,162,39,0.55);
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(201,162,39,0.7), 0 2px 6px rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.progress-bar-full:hover .progress-handle { opacity: 1; }

.time-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-variant-numeric: tabular-nums;
}

/* ===== CONTROLS ===== */
.controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    width: 100%;
}

.ctrl-btn-lg {
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.ctrl-btn-lg:hover {
    color: #e8c547;
    background: rgba(201,162,39,0.15);
}

.ctrl-btn-lg:active { transform: scale(0.92); }
.ctrl-btn-lg.active { color: #c9a227; }

.play-btn-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #e8c547, #c9a227);
    color: #0a0a0a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 0 5px rgba(201,162,39,0.2),
        0 8px 32px rgba(201,162,39,0.5);
    transition: all 0.25s;
    -webkit-tap-highlight-color: transparent;
}

.play-btn-lg:hover {
    transform: scale(1.07);
    box-shadow: 
        0 0 0 7px rgba(201,162,39,0.25),
        0 12px 40px rgba(201,162,39,0.6);
}

.play-btn-lg:active { transform: scale(0.96); }

/* ===== ACTIONS ===== */
.actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 16px;
}

.action-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 24px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.action-btn:hover {
    color: #c9a227;
    background: rgba(201,162,39,0.12);
}

.action-btn.liked { color: #e74c3c; }
.action-btn.liked svg { fill: #e74c3c; stroke: #e74c3c; }

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ===== UP NEXT ===== */
.up-next {
    padding: 0 18px 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.up-next h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    color: #c9a227;
    margin: 18px 0 14px;
    font-weight: 600;
}

.up-next-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.up-next-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
}

.up-next-item:hover {
    background: rgba(201,162,39,0.12);
}

.up-next-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.up-next-info { flex: 1; min-width: 0; }

.up-next-title {
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-next-artist {
    font-size: 11.5px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

.up-next-play {
    color: #c9a227;
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.up-next-item:hover .up-next-play { opacity: 1; }

.no-related {
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    text-align: center;
    padding: 24px 10px;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .player-page-wrapper {
        max-width: 520px;
        padding-top: 16px;
    }
    .album-art-container { width: 340px; }
}

@media (max-width: 380px) {
    .controls-row { gap: 8px; }
    .play-btn-lg { width: 64px; height: 64px; }
    .actions-row { gap: 16px; }
}
