/* --- Global Styles --- */
* { box-sizing: border-box; }
body { 
    background-color: #121212; 
    color: #fff; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding-bottom: 110px; /* ਪਲੇਅਰ ਲਈ ਜਗ੍ਹਾ */
}

.container { max-width: 800px; margin: auto; padding: 20px; }
h1 { text-align: center; color: #ffc107; font-size: 24px; margin-bottom: 20px; }
.back-btn { display: inline-block; color: #ffc107; text-decoration: none; margin-bottom: 20px; font-weight: bold; }

/* --- Item Cards (List View) --- */
.item-card { 
    background: #1e1e1e; 
    padding: 18px; 
    margin: 10px 0; 
    border-radius: 12px; 
    cursor: pointer; 
    border: 1px solid #333; 
    transition: all 0.3s ease; 
}
.item-card:hover { border-color: #ffc107; background: #252525; }

.content { display: none; gap: 10px; flex-wrap: wrap; justify-content: start; }

/* --- Buttons in List --- */
.btn-play {
    background-color: #ffc107;
    color: #000;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: 0.2s;
}
.btn-play:hover { background-color: #e0a800; transform: translateY(-2px); }

/* --- Premium Player (Bottom Bar) --- */
/* --- Premium Player (Bottom Bar) --- */
.premium-player {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #111 !important;
    z-index: 99999 !important;
    min-height: 90px;
    padding: 10px 15px;
    border-top: 1px solid #333;
    /* ਸ਼ੁਰੂ ਵਿੱਚ ਲੁਕਾਉਣ ਲਈ transform ਵਰਤੋ, display:none ਨਹੀਂ */
    transform: translateY(100%); 
    transition: transform 0.4s ease-in-out;
}

#playerBar {
    display: none; /* ਪਹਿਲਾਂ ਲੁਕਿਆ ਰਹੇਗਾ */
    position: fixed !important;
    bottom: 20px !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 999999 !important; /* ਸਭ ਤੋਂ ਉੱਪਰ ਰੱਖਣ ਲਈ */
}

#playerBar.active {
    display: block !important;
}

.player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.track-info { display: flex; align-items: center; flex: 1; min-width: 0; }
.track-text { margin-left: 10px; overflow: hidden; white-space: nowrap; }
#playingTitle { font-weight: bold; font-size: 14px; color: #fff; }
#playingArtist { color: #aaa; font-size: 12px; display: block; }

/* --- Player Controls --- */
.main-controls { display: flex; align-items: center; gap: 18px; }
.ctrl-btn { background: none; border: none; color: white; cursor: pointer; opacity: 0.7; transition: 0.3s; padding: 5px; }
.ctrl-btn:hover { opacity: 1; transform: scale(1.1); }
.secondary { opacity: 0.4; }
.active-ctrl { color: #1DB954 !important; opacity: 1 !important; }

.play-pause-btn {
    background: #fff;
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,255,255,0.15);
}

/* --- Progress Bar --- */
.progress-wrapper {
    max-width: 900px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #888;
}
.progress-container {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}
.progress-bar {
    height: 100%;
    background: #1DB954; /* Spotify Green */
    width: 0%;
    border-radius: 10px;
    position: relative;
}
.progress-dot {
    position: absolute;
    right: -4px;
    top: -4px;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
}

/* --- Floating Action Buttons (FAB) --- */
.fab-container {
    position: fixed;
    bottom: 95px; /* ਪਲੇਅਰ ਤੋਂ ਥੋੜ੍ਹਾ ਉੱਪਰ */
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1500;
}
.fab {
    background-color: #ffc107;
    color: #000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.4);
    font-size: 18px;
    transition: 0.2s;
}
.fab:hover { transform: scale(1.1); }
.modern-player {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10000;
    display: none; /* JS will show this */
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.player-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Track Info */
.track-details { display: flex; align-items: center; flex: 1; min-width: 0; }
.track-img { 
    width: 45px; height: 45px; background: #333; 
    border-radius: 8px; display: flex; align-items: center; 
    justify-content: center; color: #ffc107; font-size: 20px;
}
.track-info-text { margin-left: 12px; overflow: hidden; }
#playingTitle { 
    color: #fff; font-weight: 600; font-size: 14px; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}
#playingArtist { color: #aaa; font-size: 11px; }

/* Main Buttons */
.player-controls { display: flex; align-items: center; gap: 20px; }
.icon-btn { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; opacity: 0.8; }
.main-play-btn { 
    background: #ffc107; color: #000; width: 42px; height: 42px; 
    border-radius: 50%; border: none; display: flex; align-items: center; 
    justify-content: center; cursor: pointer; font-size: 18px;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

/* Progress Bar */
.progress-wrapper { margin-bottom: 8px; }
.progress-container { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; cursor: pointer; }
.progress-bar { height: 100%; background: #ffc107; width: 0%; border-radius: 2px; position: relative; }
.progress-dot { 
    position: absolute; right: -5px; top: -4px; width: 12px; height: 12px; 
    background: #fff; border-radius: 50%; box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.time-display { color: #888; font-size: 11px; min-width: 65px; text-align: right; }

/* Mobile Optimization */
@media (max-width: 480px) {
    .time-display { display: none; }
    .modern-player { bottom: 10px; left: 10px; right: 10px; padding: 8px 12px; }
}