/**
 * ============================================
 * استایل صفحات خاص - song, artist, playlist
 * ============================================
 */

/* صفحه آهنگ */
.song-detail {
    background: var(--card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-width: 550px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.06);
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.cover-section {
    background-color: #1a1a3e;
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cover-section::before {
    content: '';
    position: absolute;
    inset: -20px;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.3) saturate(1.5);
    z-index: 0;
}
.cover-section img {
    position: relative;
    z-index: 2;
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 35px rgba(0,0,0,0.6);
    border: 3px solid rgba(255,255,255,0.1);
}
.cover-section.playing img {
    animation: coverSpin 12s linear infinite;
    border-color: var(--primary);
}
.cover-section.paused img { animation-play-state: paused; }

@keyframes coverSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.play-btn-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--card);
    position: relative;
}

.play-btn-main {
    width: 70px; height: 70px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 8px 30px rgba(108,92,231,0.5);
    position: relative;
    z-index: 2;
    animation: playPulse 2s ease-in-out infinite;
}

.play-btn-section::before {
    content: '';
    position: absolute;
    width: 85px; height: 85px;
    border-radius: 50%;
    background: rgba(108,92,231,0.15);
    animation: ringPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes playPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 30px rgba(108,92,231,0.5); }
    50% { transform: scale(1.08); box-shadow: 0 12px 40px rgba(253,121,168,0.7); }
}
@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 0; }
}

.info-section { padding: 25px 30px 30px; text-align: center; }
.info-section h1 { font-size: 24px; margin-bottom: 8px; color: #fff; font-weight: 800; }
.info-section .artist { font-size: 16px; color: #999; margin-bottom: 15px; }
.info-section .artist a { color: var(--primary); text-decoration: none; }
.info-section .description { color: #888; line-height: 1.8; margin-bottom: 20px; font-size: 14px; }

.meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.meta-item {
    background: rgba(255,255,255,0.06);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    color: #bbb;
    border: 1px solid rgba(255,255,255,0.08);
}

.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(108,92,231,0.3);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(108,92,231,0.5); }

.playlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    color: #ccc;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    transition: all 0.3s;
}
.playlist-btn:hover { background: rgba(108,92,231,0.15); border-color: var(--primary); color: #fff; }

/* صفحه پلی‌لیست */
.hero-admin {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    height: 280px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}
.hero-admin::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}
.hero-admin .hero-info {
    position: relative;
    z-index: 2;
    padding: 20px 25px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 15px;
}
.hero-admin .hero-cover {
    width: 110px; height: 110px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.15);
}
.hero-admin .hero-text h1 {
    font-size: 16px;
    color: #fff;
    display: inline-block;
    padding: 4px 18px;
    backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.hero-user {
    background: var(--card);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.06);
}

/* لیست آهنگ */
.song-list { display: flex; flex-direction: column; gap: 8px; }

.song-item {
    background: var(--card);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.25s;
    cursor: pointer;
    position: relative;
}
.song-item:hover { background: #222240; transform: translateX(-3px); }
.song-item.playing {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(108,92,231,0.15);
}
.song-item.playing::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 0 14px 14px 0;
}

/* خواننده */
.artist-hero {
    background: var(--card);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.06);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .songs-grid { grid-template-columns: 1fr; gap: 15px; }
    .card-cover { height: 180px; }
    .card-cover img { max-width: 70%; max-height: 70%; }
    .cover-section { height: 220px; }
    .cover-section img { width: 140px; height: 140px; }
    .play-btn-main { width: 54px; height: 54px; font-size: 20px; }
    .hero-admin { height: 200px; }
    .hero-admin .hero-cover { width: 70px; height: 70px; }
    .song-item { padding: 10px 12px; gap: 10px; }
}




/* ============================================
   منوی کشویی توضیحات آهنگ
   ============================================ */
.desc-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    align-items: flex-end;
}
.desc-drawer-overlay.active { display: flex; }

.desc-drawer {
    background: var(--card);
    border-radius: 20px 20px 0 0;
    padding: 20px 25px 30px;
    max-height: 60vh;
    overflow-y: auto;
    width: 100%;
    color: #bbb;
    font-size: 14px;
    line-height: 2;
    animation: slideUp 0.3s ease;
    border-top: 2px solid var(--primary);
}

.desc-drawer-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin: 0 auto 15px;
}

.desc-drawer-close {
    display: block;
    margin: 15px auto 0;
    padding: 8px 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}







.lyrics-wrapper {
    position: relative;
    margin: 20px 0;
    padding: 1.5px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124,111,247,0.4), rgba(253,121,168,0.4), rgba(124,111,247,0.4));
    background-size: 200% 200%;
    animation: frameGlow 4s ease-in-out infinite;
}

.lyrics-inner {
    background: var(--card);
    border-radius: 13px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.lyrics-inner .lyrics-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(124,111,247,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.lyrics-wrapper.playing .lyrics-inner .lyrics-glow {
    opacity: 1;
}

.lyrics-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    margin: 0 0 12px 0;
    position: relative;
    z-index: 1;
    text-align: center;
}

.lyrics-title .fa-circle {
    opacity: 0.3;
}

.lyrics-wrapper.playing .lyrics-title .fa-circle {
    animation: livePulse 1.5s ease-in-out infinite;
}

.lyrics-wrapper:not(.playing) .lyrics-title .fa-circle {
    animation: none;
    opacity: 0.3;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes frameGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#lyricsLines {
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

#lyricsLines div {
    position: relative;
    z-index: 1;
}

#lyricsLines::-webkit-scrollbar {
    width: 4px;
}

#lyricsLines::-webkit-scrollbar-track {
    background: transparent;
}

#lyricsLines::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

#lyricsLines::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}