/* ============ like row under player (site grammar: neutral dark + gold) ============ */
.song-like-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.song-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: 1px solid rgba(201, 164, 92, 0.3);
    color: #C9A45C;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.55rem 1.3rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.song-like-btn:hover {
    border-color: rgba(201, 164, 92, 0.6);
    background: rgba(201, 164, 92, 0.08);
    transform: translateY(-1px);
}

.song-like-btn.liked {
    border-color: rgba(201, 164, 92, 0.6);
    background: rgba(201, 164, 92, 0.12);
    color: #d4b06a;
}

.song-like-btn.liked .like-heart {
    color: #d95577;
    text-shadow: 0 0 10px rgba(217, 85, 119, 0.4);
}

.song-like-btn .like-heart {
    font-size: 1.05rem;
    line-height: 1;
}

.song-rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #888;
    font-size: 0.88rem;
}

.song-stats {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #888;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 164, 92, 0.12);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.stat-item:hover {
    color: #d4b06a;
    border-color: rgba(201, 164, 92, 0.35);
}

.stat-icon {
    width: 15px;
    height: 15px;
    color: #C9A45C;
}

.download-btn.downloading {
    pointer-events: none;
    opacity: 0.75;
}

.download-btn.downloading .download-icon {
    animation: bounceDown 0.6s ease infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.song-rating-summary .rating-star {
    color: #C9A45C;
    font-size: 1.05rem;
}

.view-comments-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    box-sizing: border-box;
    text-align: center;
}

/* ============ download button ============ */
.download-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.9rem 1.4rem;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(201, 164, 92, 0.14) 0%, rgba(139, 30, 45, 0.1) 100%);
    border: 1px solid rgba(201, 164, 92, 0.35);
    color: #d4b06a;
    font-family: inherit;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 164, 92, 0.7);
    box-shadow: 0 8px 30px rgba(201, 164, 92, 0.2), inset 0 0 20px rgba(201, 164, 92, 0.05);
    color: #e9d5a8;
}

.download-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.download-btn:hover .download-icon {
    transform: translateY(2px);
}

.download-label {
    flex: 1;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.download-ext {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #C9A45C;
    background: rgba(201, 164, 92, 0.12);
    border: 1px solid rgba(201, 164, 92, 0.3);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    flex-shrink: 0;
}

.download-shine {
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 240, 210, 0.18), transparent);
    transform: skewX(-20deg);
    animation: downloadShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes downloadShine {
    0%, 55% { left: -80%; }
    75%, 100% { left: 130%; }
}

@media (max-width: 600px) {
    .download-btn {
        padding: 0.8rem 1.1rem;
    }
}

/* ============ comments section ============ */
.comments-section {
    margin-top: 4rem;
}

.comments-section .open-comment-modal {
    margin: 1.5rem 0 2.5rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comment-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 164, 92, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.3s ease;
}

.comment-item:hover {
    border-color: rgba(201, 164, 92, 0.25);
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(201, 164, 92, 0.12);
    border: 1px solid rgba(201, 164, 92, 0.3);
    color: #C9A45C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.comment-name {
    color: #E8E8E8;
    font-size: 0.95rem;
    font-weight: 600;
}

.comment-rating {
    color: #C9A45C;
    font-size: 0.8rem;
    background: rgba(201, 164, 92, 0.1);
    border: 1px solid rgba(201, 164, 92, 0.25);
    border-radius: 4px;
    padding: 0.1rem 0.6rem;
}

.comment-reply-tag {
    color: #b08a4f;
    font-size: 0.76rem;
    background: rgba(201, 164, 92, 0.06);
    border-radius: 4px;
    padding: 0.1rem 0.5rem;
}

.comment-date {
    margin-inline-start: auto;
    color: #666;
    font-size: 0.78rem;
}

.comment-text {
    color: #aaa;
    font-size: 0.92rem;
    line-height: 1.9;
    word-break: break-word;
    white-space: pre-wrap;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.comment-like,
.comment-reply-btn {
    background: none;
    border: none;
    color: #888;
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.25s ease, background 0.25s ease;
}

.comment-like:hover,
.comment-reply-btn:hover {
    color: #C9A45C;
    background: rgba(201, 164, 92, 0.08);
}

.comment-like.liked {
    color: #d95577;
}

.comment-like.liked .cl-heart {
    color: #d95577;
    text-shadow: 0 0 10px rgba(217, 85, 119, 0.4);
}

.comment-replies {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-inline-start: 2px solid rgba(201, 164, 92, 0.18);
    padding-inline-start: 1rem;
}

.comment-reply {
    background: rgba(255, 255, 255, 0.015);
}

.comment-reply .comment-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

.load-more-btn {
    margin: 2rem auto 0;
    display: inline-flex;
}

.comments-loader {
    text-align: center;
    color: #888;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(201, 164, 92, 0.25);
    border-top-color: #C9A45C;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 0.4rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.comments-empty {
    text-align: center;
    color: #666;
    padding: 2.5rem 0;
}

/* ============ comment modal (matches site: #0B0B0D neutral + gold) ============ */
.comment-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.comment-modal.active {
    display: flex;
}

.comment-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.comment-modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #0B0B0D;
    border: 1px solid rgba(201, 164, 92, 0.18);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
    animation: modalIn 0.28s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.comment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #C9A45C;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(201, 164, 92, 0.12);
}

.comment-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.2rem;
    transition: color 0.25s ease;
}

.comment-modal-close:hover {
    color: #C9A45C;
}

.comment-modal .form-group {
    margin-bottom: 1.25rem;
}

.comment-modal label {
    display: block;
    color: #C9A45C;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.comment-modal .req {
    color: #EF5350;
}

.comment-modal .form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 164, 92, 0.2);
    border-radius: 8px;
    color: #E8E8E8;
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.25s ease;
}

.comment-modal .form-input:focus {
    outline: none;
    border-color: #C9A45C;
}

.comment-modal .hint {
    display: block;
    color: #555;
    font-size: 0.75rem;
    margin-top: 0.4rem;
}

.comment-modal .hint.content-warning {
    color: #c9a45c;
    opacity: 0.85;
}

.comment-modal .field-error {
    display: block;
    color: #EF5350;
    font-size: 0.78rem;
    margin-top: 0.3rem;
    min-height: 1em;
}

.comment-modal .form-char-count {
    display: block;
    text-align: left;
    color: #555;
    font-size: 0.72rem;
    margin-top: 0.3rem;
}

/* rating slider */
.rating-slider-wrap {
    padding: 0.5rem 0.25rem 0;
}

.rating-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #5B1018, #C9A45C);
    outline: none;
    cursor: pointer;
}

.rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #C9A45C;
    border: 2px solid #0B0B0D;
    box-shadow: 0 0 12px rgba(201, 164, 92, 0.5);
    cursor: grab;
}

.rating-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #C9A45C;
    border: 2px solid #0B0B0D;
    box-shadow: 0 0 12px rgba(201, 164, 92, 0.5);
    cursor: grab;
}

.rating-slider-scale {
    display: flex;
    justify-content: space-between;
    color: #555;
    font-size: 0.7rem;
    margin-top: 0.45rem;
}

.comment-modal-actions {
    margin-top: 1.5rem;
}

.comment-modal-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ============ scrollbars (site-wide, slim gold) ============ */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 164, 92, 0.35) transparent;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 164, 92, 0.35);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 164, 92, 0.6);
}

.comment-modal-box::-webkit-scrollbar {
    width: 6px;
}

.comment-modal-box::-webkit-scrollbar-thumb {
    background: rgba(201, 164, 92, 0.3);
}

/* ============ responsive ============ */
@media (max-width: 600px) {
    .song-like-row {
        flex-direction: column;
        align-items: stretch;
    }

    .song-rating-summary {
        justify-content: center;
    }

    .comment-date {
        width: 100%;
        margin-inline-start: 0;
    }
}