/**
 * Single song Styles
 * Styles for single-melodica_song.php template
 *
 * @package Melodica
 */

/* ========================================
   Comments Section Styles - Single song
   ======================================== */
.single-song-comments-section {
    margin-top: 2rem;
    /* padding: 2rem; */
    background: var(--color-gray-800);
    /* استفاده از متغیر خودتون */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.single-song-comments-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    /* margin-top: 1.5rem; */
    font-size: 1.25rem;
}

.single-song-existing-comments {
    margin-bottom: 2rem;
}

.single-song-comment-item {
    background: var(--color-gray-700);
    /* بک‌گراند با متغیر خودتون */
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-gray-600);
}

/* استایل کامنت کاربران عادی */
.single-song-comment-item.user-comment {
    background: var(--color-primary-violet);
    /* border: 1px solid var(--color-gray-600); */
    border-radius: 20px;
    padding: 2rem;
    padding-top: 1rem;
    margin-bottom: 1rem;
}

/* استایل ریپلای ادمین - indent و بک‌گراند متفاوت */
.single-song-comment-item.admin-reply {
    background: var(--color-primary-violet);
    /* border: 1px solid var(--color-gray-500); */
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1rem;
    /* margin-right: 2rem; */
    width: calc(100% - 5rem);
}

.single-song-comment-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.single-song-comment-avatar img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.single-song-comment-avatar {
    position: relative;
}

.admin-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-purple);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    z-index: 10;
}

.admin-label {
    background: var(--color-purple);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 0.5rem;
    font-weight: 500;
}

.single-song-comment-content {
    flex: 1;
    margin-top: 0.75rem;
    /* فاصله از آواتار و نام */
}

.single-song-comment-author-date {
    display: flex;
    flex-direction: row;
    /* آواتار راست، نام/تاریخ چپ */
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
}

.single-song-comment-author-date-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.single-song-comment-author {
    font-weight: 600;
    color: var(--color-white);
    font-size: 0.95rem;
    line-height: 1.2;
    margin: 0;
}

.single-song-comment-date {
    font-size: 0.8rem;
    color: var(--color-gray-300);
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

.single-song-comment-text {
    color: var(--color-gray-200);
    line-height: 1.6;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
    margin-top: 0.9rem;
}

.single-song-comment-form-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    margin-top: 4.5rem;
    font-size: 1.25rem;
}

.single-song-comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.single-song-info-group {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    width: 100%;

}

.single-song-form-group {
    display: flex;
    flex-direction: column;
    width: 30%;
}

.single-song-form-group-textarea {
    width: 100% !important;
}

.single-song-comment-form-button {
    width: 10%;
}

.single-song-form-group textarea,
.single-song-form-group input {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--color-primary-violet);
    color: var(--text-secondary);
}

.single-song-form-group input {
    height: 60px;
}

.single-song-form-group button {
    height: 60px;
}

/* تغییر رنگ placeholder */
.single-song-form-group textarea::placeholder,
.single-song-form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 1;
    text-align: right;
}

.single-song-form-group textarea::-webkit-input-placeholder,
.single-song-form-group input::-webkit-input-placeholder {
    color: var(--text-secondary);
    opacity: 1;
    text-align: right;
}

/* Fix Autocomplete Styles */
.single-song-form-group input:-webkit-autofill,
.single-song-form-group input:-webkit-autofill:hover,
.single-song-form-group input:-webkit-autofill:focus,
.single-song-form-group input:-webkit-autofill:active,
.single-song-form-group textarea:-webkit-autofill,
.single-song-form-group textarea:-webkit-autofill:hover,
.single-song-form-group textarea:-webkit-autofill:focus,
.single-song-form-group textarea:-webkit-autofill:active {
    -webkit-text-fill-color: #FFFFFF !important;
    -webkit-box-shadow: 0 0 0px 1000px #02091B inset !important;
    box-shadow: 0 0 0px 1000px #02091B inset !important;
    background-color: #02091B !important;
    background-clip: content-box !important;
    direction: rtl !important;
    text-align: right !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Force RTL direction for all inputs */
.single-song-form-group input,
.single-song-form-group textarea {
    direction: rtl !important;
    text-align: right !important;
}

.single-song-form-group textarea::-moz-placeholder,
.single-song-form-group input::-moz-placeholder {
    color: var(--text-secondary);
    opacity: 1;
    text-align: right;
}

.single-song-form-group textarea:-ms-input-placeholder,
.single-song-form-group input:-ms-input-placeholder {
    color: var(--text-secondary);
    opacity: 1;
    text-align: right;
}

.single-song-form-group textarea:focus,
.single-song-form-group input:focus {
    outline: none;
    border-color: var(--color-purple);
    text-align: right;
}

.single-song-form-group textarea {
    min-height: 166px;
    resize: vertical;
}

.single-song-comment-form button {
    background: var(--color-purple);
    color: var(--color-white);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.single-song-comment-form button:hover {
    background: #7c00c4;
}

/* Responsive Design for Comments */
@media (max-width: 768px) {
    .single-song-comments-section {
        /* padding: 1rem; */
        /* margin-top: 1rem; */
    }

    .single-song-comment-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .single-song-comment-avatar {
        align-self: flex-start;
    }

    .single-song-comment-form button {
        align-self: stretch;
    }

    /* در موبایل فیلدها عمودی */
    .single-song-info-group {
        flex-direction: column;
        gap: 1rem;
    }

    /* responsive برای کامنت‌ها */
    .single-song-comment-item {
        padding: 0.75rem;
    }

    .single-song-comment-item.user-comment,
    .single-song-comment-item.admin-reply {
        margin-bottom: 0.75rem;
    }

    .single-song-comment-item.admin-reply {
        margin-right: 1rem;
        /* indent کمتر در موبایل */
        width: calc(100% - 3rem);
    }

    .single-song-comment-author-date {
        gap: 0.5rem;
    }

    .single-song-comment-avatar {
        width: 40px;
        height: 40px;
    }

    .single-song-comment-avatar img {
        width: 40px;
        height: 40px;
    }

    .single-song-comment-content {
        margin-top: 0.5rem;
    }

    .admin-label {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
}

.song-single {
    width: 100%;
}

.cover-info-song {
    width: 100%;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.cover-song {
    width: 20%;
    flex-shrink: 0;
}

.song-cover-image-song,
.song-cover-placeholder-song {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.song-cover-image-song img,
.song-cover-placeholder-song img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-songs-song {
    width: 80%;
    flex: 1;
}

.info-song {
    /* background: var(--color-gray-900); */
    /* padding: 20px; */
    border-radius: 8px;
    margin-bottom: 20px;
}

.title-icons-song {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.title-song h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    line-height: 1.2;
    display: block !important;
}

.icons-song {
    display: flex;
    gap: 10px;
    align-items: center;
}

.moro-icon-song {
    cursor: pointer;
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    background: var(--color-primary-violet);
    padding: 7px 7px 0px 7px;
    border-radius: 9px;
}

.share-icon-song {
    cursor: pointer;
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    background: var(--color-primary-violet);
    padding: 7px 7px 0px 7px;
    border-radius: 9px;
}

/* ========================================
   Dropdown Container Styles
   ======================================== */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.share-dropdown-menu {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    background: var(--color-primary-deep);
    border-radius: 8px;
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dropdown-container:hover .share-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.share-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: none;
    border: none;
    width: 100%;
    text-align: right;
    cursor: pointer;
}

.share-dropdown-item:hover {
    background: var(--overlay-purple-20);
    color: var(--text-primary);
    text-decoration: none;
}

.share-dropdown-item svg {
    flex-shrink: 0;
}

/* ========================================
   More Options Dropdown (سه نقطه)
   ======================================== */
.moro-dropdown-menu {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    background: var(--color-primary-deep);
    border-radius: 8px;
    padding: 8px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dropdown-container:hover .moro-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.moro-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.moro-dropdown-item:hover {
    background: var(--overlay-purple-20);
    color: var(--text-primary);
    text-decoration: none;
}

.moro-dropdown-item svg {
    flex-shrink: 0;
}

.songs-palylist-song {
    /* background: var(--color-gray-900); */
    /* padding: 20px; */
    border-radius: 8px;
}




.for-this-artist-song {
    width: 100%;
    margin: 40px 0;
    /* padding: 20px; */
    /* background: var(--color-gray-900); */
    /* border-radius: 12px; */
}

.comments-song {
    width: 100%;
    padding: 20px;
    background: var(--color-gray-900);
    border-radius: 12px;
}

/* Artist and Time Section */
.artist-time-song {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    gap: 20px;
}

.artist-name-song p {
    margin: 0;
    font-size: 0.9rem;
}

.artist-name-song a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.artist-name-song a:hover {
    color: var(--color-gray-300);
}

.time-song p {
    margin: 0;
    color: var(--color-gray-300);
    font-size: 0.9rem;
}

/* song Details */
.song-details-song {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--color-gray-900);
    border-radius: 8px;
}

.song-genre-song,
.song-tracks-song {
    display: flex;
    align-items: center;
    gap: 8px;
}

.song-details-song .label {
    color: var(--color-gray-700);
    font-size: 0.9rem;
    font-weight: 500;
}

.song-details-song .value {
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Content song */
.content-song p {
    color: var(--color-gray-300);
}

/* Button song */
.button-song {
    margin-top: 20px;
    text-align: right;
}

.buy-song {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--color-purple);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 180px;
    align-content: center;
    justify-content: center;
}

.buy-song:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-purple-30);
    color: var(--color-white);
    text-decoration: none;
}

.icon-buy-song {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-buy-song {
    font-size: 15px;
    font-weight: 300;
}

/* Download Cover Button */
.download-cover-song {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--color-primary-violet);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.download-cover-song:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-purple-30);
    color: var(--color-white);
    text-decoration: none;
}

.icon-download-song {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-download-song {
    font-size: 15px;
    font-weight: 300;
}

/* دکمه پخش موزیک */
.play-music-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--color-purple);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 180px;
    align-content: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.play-music-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-purple-30);
    color: var(--color-white);
    text-decoration: none;
}

.play-music-btn.playing {
    background: var(--color-purple);
    box-shadow: 0 4px 15px var(--shadow-purple-40);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px var(--shadow-purple-40);
    }
    50% {
        box-shadow: 0 4px 25px var(--shadow-purple-60);
    }
}

.icon-play-music {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-play-music {
    font-size: 15px;
    font-weight: 300;
    margin: 0;
}

/* دکمه دانلود موزیک */
.download-music-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--color-primary-violet);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 180px;
    align-content: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.download-music-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-purple-30);
    color: var(--color-white);
    text-decoration: none;
}

.icon-download-music {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-download-music {
    font-size: 15px;
    font-weight: 300;
    margin: 0;
}

/* دکمه موزیک ویدئو */
.music-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 0, 0, 0);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 180px;
    align-content: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}
@media (max-width: 768px) {
    .music-video-btn {
        margin-top: 5px;
    }
}

.music-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-purple-30);
    color: var(--color-white);
    text-decoration: none;
}

.icon-music-video {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-music-video {
    font-size: 15px;
    font-weight: 300;
    margin: 0;
}

/* دکمه مشاهده موزیک ویدئو (بدون بک‌گراند) */
.view-music-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    color: var(--color-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 180px;
    align-content: center;
    justify-content: center;
    cursor: pointer;
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    border: none;
}

@media (max-width: 768px) {
    .view-music-video-btn {
        margin-top: 5px;
    }
}

.view-music-video-btn:hover {
    transform: translateY(-2px);
    border-color: var(--color-purple);
    color: var(--color-white);
    text-decoration: none;
}

.icon-view-music-video {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-view-music-video {
    font-size: 15px;
    font-weight: 300;
    margin: 0;
}

/* ========================================
   Music Video Modal
   ======================================== */

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

html.modal-open {
    overflow: hidden !important;
}

.music-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    overflow: auto;
}

.music-video-modal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Song Video Modal (like artist page) */
.song-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.song-video-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.song-video-modal .modal-content {
    position: relative;
    background: transparent;
    border-radius: 20px;
    padding: 0;
    max-width: 900px;
    width: 100%;
    z-index: 100000;
    animation: slideUp 0.3s ease;
}

.song-video-modal .modal-video-title {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.song-video-modal .modal-video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.song-video-modal .modal-video-wrapper video,
.song-video-modal .modal-video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Video Poster with Play Button */
.song-video-modal .modal-video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.song-video-modal .modal-video-poster.hidden {
    display: none;
}

.song-video-modal .modal-play-button {
    background: var(--color-purple);
    border: none;
    border-radius: 50%;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--shadow-purple-40);
    z-index: 11;
}

.song-video-modal .modal-play-button:hover {
    background: var(--color-purple);
    transform: scale(1.1);
    box-shadow: 0 12px 35px var(--shadow-purple-60);
}

.song-video-modal .modal-play-button svg {
    width: 50px;
    height: 50px;
    fill: white;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.music-video-modal .modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    background: var(--color-primary-deep);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    z-index: 100000;
    max-height: 90vh;
    overflow: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    background: var(--color-purple);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100001;
}

.modal-close-btn:hover {
    background: var(--color-purple);
    opacity: 0.9;
    transform: scale(1.1);
    box-shadow: 0 4px 20px var(--overlay-purple-245-50);
}

.modal-close-btn svg {
    width: 20px;
    height: 20px;
}

.modal-video-container {
    width: 100%;
}

.modal-video-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
}

.modal-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.modal-video-wrapper video,
.modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Modal Responsive */
@media (max-width: 768px) {
    /* Hide time-ring on mobile */
    .song-art .time-ring {
        display: none !important;
    }
    
    .music-video-modal .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }

    .modal-video-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .modal-close-btn {
        width: 38px;
        height: 38px;
        top: 10px;
        left: 10px;
    }

    .modal-close-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* No Songs Message */
.single-song-no-songs-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-gray-500);
    font-size: 1.1rem;
    background: var(--color-gray-900);
    border-radius: 8px;
    margin: 20px 0;
}

/* Top of the Week Section - song Songs */
.song-songs-section {
    margin: 2rem 0rem;
}

/* Artist Songs Section - Single song Page */
.artist-songs-section {
    margin: 6rem 0rem;
}

@media (max-width: 768px) {
    .artist-songs-section {
        margin: 0rem 0rem !important;
    }
}

.single-song-section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.single-song-section-title {
    font-size: 18px !important;
    /* font-family: 'Anjoman', sans-serif !important; */
    color: var(--text-secondary) !important;
}

.single-song-section-icon {
    border: 2px solid white;
    box-shadow: 0 0 10px 4px var(--color-purple) inset, 0 0 10px 2px var(--color-purple);
    border-radius: 50%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.song-artists-section .filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.song-artists-section .filter-tab {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(82, 81, 81, 0.226);
    background: transparent;
    color: var(--text-primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Anjoman', sans-serif !important;
}

.song-artists-section .filter-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(82, 81, 81, 0.226);
    font-family: 'Anjoman', sans-serif !important;
}

.song-artists-section .filter-tab:hover {
    background: var(--border-color);
    color: white;
    font-family: 'Anjoman', sans-serif !important;
}

.single-song-artists-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.5rem;
}

.single-song-artist-card {
    position: relative !important;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    background-color: var(--color-primary-violet);
    padding: 30px 0px;
    border-radius: 16px;
}

.single-song-artist-card:hover {
    transform: translateY(-5px);
}

.single-song-artist-card .single-song-artist-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--border-color);
}

.single-song-artist-card .single-song-artist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-song-artist-play-button {
    position: absolute !important;
    bottom: 109px !important;
    left: 32px !important;
    width: 35px !important;
    height: 35px !important;
    background: var(--color-primary-violet) !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    z-index: 10 !important;
}

.single-song-artist-play-button:hover {
    background: var(--border-color-purple);
    transform: scale(1.1);
}

.single-song-artist-card .single-song-artist-info {
    text-align: center;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
}

.single-song-artist-card .single-song-artist-info .single-song-artist-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
}

.single-song-artist-card .single-song-artist-type {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
}

/* .top-week-section .section-title-wrapper {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    align-content: center !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    margin-bottom: 23px;
}

@media (max-width: 768px) {
    .top-week-section .section-title-wrapper {
        justify-content: start !important;
    }
} */

.song-songs-table {
    background: var(--color-gray-800);
    overflow: hidden;
}

/* Table Header */
.single-song-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 0px;
    gap: 1rem;
    padding: 0.7rem 2rem;
    background: var(--color-primary-violet);
    border-bottom: 1px solid var(--color-gray-600);
    border-radius: 24px;
}

.single-song-header-cell {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.single-song-header-cell.newest {
    text-align: right;
}

@media (max-width: 768px) {

    .single-song-table-header {
        display: grid;
        grid-template-columns: 2fr 2fr 0px;
        gap: 1rem;
        padding: 0.7rem 2rem;
        background: var(--color-primary-violet);
        border-bottom: 1px solid var(--color-gray-600);
        border-radius: 24px;
    }

    .single-song-header-cell.artist {
        display: none;
    }

    .single-song-header-cell.duration {
        display: none;
    }

    .single-song-header-cell.likes {
        display: none;
    }

    .single-song-header-cell.download {
        display: none;
    }




    .single-song-table-row {
        display: grid;
        grid-template-columns: 2fr 2fr 0px !important;
        gap: 1rem;
        padding: 17px 2rem;
        border-bottom: 1px solid var(--color-gray-600);
        transition: all 0.3s ease;
        background: var(--color-primary-violet);
        margin: 17px 0px;
        border-radius: 24px;
    }

    .single-song-table-cell.artist {
        display: none;
    }

    .single-song-table-cell.duration {
        display: none;
    }

    .single-song-table-cell.likes {
        display: none;
    }

    .single-song-table-cell.download {
        display: none;
    }



}


/* Table Rows */
.single-song-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 0px;
    gap: 1rem;
    padding: 17px 2rem;
    border-bottom: 1px solid var(--color-gray-600);
    transition: all 0.3s ease;
    background: var(--color-primary-violet);
    margin: 17px 0px;
    border-radius: 24px;
}

.single-song-table-row:hover {
    /* background: var(--color-gray-700); */
}

/* Playing State - دکمه Play بنفش میشه وقتی در حال پخش */
.single-song-play-btn.playing {
    background: var(--color-purple) !important;
    box-shadow: 0 0 15px var(--overlay-purple-245-50);
    transform: scale(1.05);
}

.single-song-table-row:last-child {
    border-bottom: none;
}

.single-song-table-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
}

.single-song-table-cell.newest {
    justify-content: flex-start;
    gap: 1rem;
}

.track-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 3rem;
}

.song-art {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
    margin-right: -11px;
    padding: 0;
    border-radius: 50% !important;
    transition: all 0.3s ease;
    background: transparent;
    isolation: isolate;
}

.song-art {
    --progress-degrees: 0deg;
}

.song-art:not(.playing) {
    background: transparent;
    border: 2px solid transparent;
}

/* Only the purple ring via .time-ring */
.song-art.playing {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

/* Remove inner white overlay */
.song-art.playing::after {
    display: none;
}

.song-art .time-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--color-purple) 0deg, var(--color-purple) 0deg, transparent 0deg);
    pointer-events: none;
    z-index: 1;
}

.song-art .image-container {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    z-index: 2;
}

.song-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% !important;
}

.single-song-track-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .single-song-track-title {
        font-size: 0.8rem !important;
    }
}

.single-song-table-cell.artist {
    font-weight: 500;
}

.single-song-table-cell.duration {
    font-weight: 500;
}

.single-song-table-cell.likes {
    gap: 0.5rem;
}

.single-song-like-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.single-song-table-cell .song-like-btn,
.single-song-table-cell .single-song-download-btn,
.single-song-table-cell .single-song-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-gray-600);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.single-song-table-cell .song-like-btn.liked {
    color: var(--color-purple);
}

.table-cell .like-btn:hover,
.single-song-table-cell .single-song-download-btn:hover,
.single-song-table-cell .single-song-play-btn:hover {
    background: var(--color-purple);
    border-color: var(--color-purple);
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--shadow-purple-245-40);
}

.single-song-table-cell .single-song-play-btn {
    background: #9b9b9b4a;
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
}

.table-cell .play-btn:hover {
    background: var(--text-fourth-purple);
    /* opacity: 0.8; */
    box-shadow: none !important;
}

.table-cell .play-btn.playing {
    background: var(--color-purple);
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow-purple-245-40);
}

/* Actions cell */
.table-cell.actions {
    justify-content: center;
    display: none;
}

@media (max-width: 768px) {
    .single-song-table-cell .single-song-play-btn {
        display: block;
    }

    /* Hide duration column on mobile */
    .header-cell.duration,
    .single-song-table-cell.duration {
        display: none;
    }
}

.single-song-more-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--color-gray-600);
    background: transparent;
    display: none;
    /* مخفی در دسکتاپ */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.single-song-more-btn:hover {
    /* background: var(--color-gray-700); */
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {

    /* نمایش دکمه more در تبلت */
    .single-song-more-btn {
        display: flex !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .song-songs-table {
        width: 100%;
        overflow-x: visible;
    }

    .table-header,
    .table-row {
        min-width: 0;
        padding: 1rem 1rem;
    }

    .table-cell.newest {
        gap: 0.5rem;
    }

    .track-number {
        font-size: 1rem;
        min-width: 2rem;
    }

    .song-art {
        width: 48px;
        height: 48px;
        margin-right: 0.5rem;
    }

    .single-song-table-cell .song-like-btn,
    .single-song-table-cell .single-song-download-btn,
    .single-song-table-cell .single-song-play-btn {
        width: 35px;
        height: 35px;
    }

    /* نمایش دکمه more در موبایل و تبلت */
    .single-song-more-btn {
        display: flex !important;
    }

    /* Mobile visibility: فقط «نام اثر» و «پخش‌کننده» بماند */
    .table-header .artist,
    .table-header .duration,
    .table-header .likes,
    .table-header .download {
        display: none !important;
    }

    .table-row .artist,
    .table-row .duration,
    .table-row .likes,
    .table-row .download {
        display: none !important;
    }

    /* ترتیب: نام اثر + پخش‌کننده */
    .table-row {
        grid-template-columns: 1fr 48px;
    }

    .table-header {
        grid-template-columns: 1fr 48px;
    }

    .table-cell.player {
        justify-content: center;
    }

    .table-cell.actions {
        display: none !important;
    }

    .single-song-table-cell .single-song-play-btn {
        width: 42px;
        height: 42px;
        padding: 7px 0px 0px 0px !important;
    }

    /* song Artists Section Mobile */
    .song-artists-section {
        margin: 3rem 0rem;
        overflow: hidden !important;
        width: 215px;
        min-width: 100%;
    }

    .single-song-artists-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 10px;
        width: 100%;
    }

    .song-artists-grid::-webkit-scrollbar {
        display: none;
    }

    .single-song-artist-card {
        flex-shrink: 0;
        width: 156px !important;
        min-width: 156px !important;
        padding: 20px 0px;
    }

    .single-song-artist-card .single-song-artist-image {
        width: 120px;
        height: 120px;
    }

    .single-song-artist-play-button {
        bottom: 91px !important;
        left: 18px !important;
        width: 30px;
        height: 30px;
        background: white !important;
    }

    .single-song-artist-card .single-song-artist-info .single-song-artist-name {
        font-size: 0.9rem;
    }

    /* Mobile Responsive for song Info */
    .cover-info-song {
        flex-direction: column;
        gap: 2rem;
    }

    .cover-song {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .info-songs-song {
        width: 100%;
    }

    .title-icons-song {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .icons-song {
        align-self: flex-end;
    }

    .artist-time-song {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .content-song {
        margin: 1.5rem 0;
    }

    .content-song h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .content-song p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .button-song {
        margin: 1.5rem 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .buy-song {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    /* Comments Mobile Responsive */
    .single-song-comments-section {
        margin: 2rem 0;
        /* padding: 1rem; */
    }

    .single-song-comments-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .single-song-comment-item {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .single-song-comment-author-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .single-song-comment-author-date-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .single-song-comment-form-section {
        margin-top: 2rem;
    }

    .single-song-info-group {
        flex-direction: column;
        gap: 1rem;
    }

    .single-song-form-group {
        width: 100%;
    }

    .single-song-comment-form-button {
        width: 100%;
        padding: 1rem;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .cover-info-song {
        gap: 2rem;
    }

    .cover-song {
        width: 40%;
        max-width: 250px;
    }

    .info-songs-song {
        width: 60%;
    }

    .title-icons-song {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .artist-time-song {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .single-song-info-group {
        flex-direction: row;
        gap: 1rem;
    }

    .single-song-form-group {
        flex: 1;
    }

    .single-song-comment-form-button {
        width: auto;
        min-width: 150px;
    }
}

/* Tablet Responsive for Table */
@media (max-width: 1024px) and (min-width: 769px) {

    /* Tablet visibility: فقط «جدیدترین‌ها»، «پخش‌کننده» و «سه نقطه» بماند */
    .table-header .artist,
    .table-header .duration,
    .table-header .likes,
    .table-header .download {
        display: none;
    }

    .table-row .artist,
    .table-row .duration,
    .table-row .likes,
    .table-row .download {
        display: none;
    }

    /* نمایش دکمه more در تبلت */
    .single-song-more-btn {
        display: flex !important;
    }

    /* ترتیب: شماره/عکس/عنوان + پخش + سه‌نقطه */
    .table-row {
        grid-template-columns: 1fr 48px 40px;
    }

    .table-header {
        grid-template-columns: 1fr 166px;
    }

    .table-cell.player {
        justify-content: center;
    }

    .table-cell.actions {
        justify-content: flex-end;
        display: block;
    }
}

/* ========================================
   Sticky Music Player Styles
   ======================================== */
.sticky-music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to top, #030C24, rgba(3, 12, 36, 0.98));
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--overlay-purple-30);
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.sticky-music-player.hidden {
    transform: translateY(100%);
}

.sticky-player-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: grid;
    grid-template-columns: 300px 1fr 200px;
    gap: 30px;
    align-items: center;
}

/* Song Info */
.sticky-player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sticky-player-cover {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.sticky-player-details {
    flex: 1;
    min-width: 0;
}

.sticky-player-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .sticky-player-title {
        display: none !important;
    }

    .sticky-player-artist {
        display: none !important;
    }
}

.sticky-player-artist {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Player Controls */
.sticky-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.sticky-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sticky-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.sticky-play-pause-btn {
    width: 50px;
    height: 50px;
    background: var(--color-purple);
}

.sticky-play-pause-btn:hover {
    background: var(--color-purple);
    opacity: 0.9;
    box-shadow: 0 4px 15px var(--shadow-purple-40);
}

/* Progress Bar */
.sticky-player-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-progress-time {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.sticky-progress-bar-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sticky-progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.sticky-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-purple), #B2EBFA);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.sticky-progress-bar-container:hover .sticky-progress-fill {
    background: linear-gradient(90deg, var(--color-purple), #8fd4e8);
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sticky-music-player {
        height: 80px;
    }

    .sticky-player-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        padding: 7px 5px 8px 5px;
    }

    .sticky-player-info {
        grid-row: 1;
        gap: 12px;
    }

    .sticky-player-cover {
        width: 45px;
        height: 45px;
    }

    .sticky-player-controls {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 12px;
        gap: 15px;
    }

    .sticky-control-btn {
        width: 35px;
        height: 35px;
    }

    .sticky-play-pause-btn {
        width: 45px;
        height: 45px;
    }

    .sticky-player-progress {
        grid-row: 2;
        margin-top: -5px;
    }

    .sticky-progress-time {
        font-size: 10px;
        min-width: 35px;
    }
}