.song-page-alert {
    border-radius: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 0.82rem;
}
.song-page-alert.is-success {
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
}
.song-page-alert.is-error {
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

.song-page-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.song-inline-form {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.song-page-select {
    background: rgba(0, 0, 0, 0.35);
    color: #f4f4f5;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.8rem;
    outline: none;
    min-width: 160px;
}
.song-page-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #e4e4e7;
    padding: 10px 16px;
    font-size: 0.78rem;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}
.song-page-chip:hover {
    background: rgba(139, 92, 246, 0.14);
    color: #ffffff;
}
.song-page-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    max-width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 10px 14px;
}
.song-page-share i {
    color: #a78bfa;
}
.song-page-share input {
    background: transparent;
    border: none;
    outline: none;
    color: #e4e4e7;
    font-size: 0.78rem;
    width: 100%;
}

.song-page-comments-card,
.song-page-section-card {
    padding: 24px;
}
.comments-title-row span {
    background: rgba(139, 92, 246, 0.18);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    color: #c084fc;
}
.song-page-login-note {
    font-size: 0.82rem;
    color: #d4d4d8;
    margin-bottom: 16px;
}
.song-page-login-note a {
    color: #c084fc;
}
.song-page-comment-form {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
}
.song-page-comment-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #8b5cf6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
}
.song-page-comment-avatar.small {
    width: 38px;
    height: 38px;
    font-size: 0.76rem;
}
.song-page-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.song-page-comment-box {
    flex: 1;
    background: rgba(30, 30, 38, 0.5);
    border-radius: 20px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.08);
}
.song-page-comment-box textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    resize: vertical;
    min-height: 74px;
    color: #fff;
    font-size: 0.83rem;
    font-family: inherit;
}
.song-page-comment-box textarea::placeholder {
    color: #71717a;
}
.song-page-comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.7rem;
    color: #a1a1aa;
}
.btn-submit {
    background: #8b5cf6;
    border: none;
    border-radius: 999px;
    padding: 7px 16px;
    color: #fff;
    font-size: 0.74rem;
    cursor: pointer;
}
.song-page-comment-content {
    flex: 1;
}
.song-page-comment-user {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 5px;
}
.song-page-comment-user span {
    font-size: 0.66rem;
    color: #71717a;
}
.song-page-comment-text {
    font-size: 0.82rem;
    line-height: 1.55;
    color: #e4e4e7;
}


.artist-songs-block .song-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.song-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.song-item:hover {
    background: rgba(139, 92, 246, 0.1);
}
.song-item .song-info {
    min-width: 0;
}
.song-item .song-info h4 {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-item .song-info p {
    font-size: 0.65rem;
    color: #71717a;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-item .song-number {
    color: #8b5cf6;
    width: 28px;
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .song-page-comment-form {
        flex-direction: column;
    }
    .song-page-comment-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .song-page-inline-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .song-page-share,
    .song-page-select,
    .song-page-chip {
        width: 100%;
        justify-content: center;
    }
    .song-inline-form,
    .song-inline-form-playlist {
        width: 100%;
    }
}

.song-page-load-more {
    color: #8b5cf6;
}

.song-related-pagination {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}
.song-related-pagination-nav {
    letter-spacing: -0.04em;
}

#relatedSongsSection .song-related-pagination {
    margin-top: 16px;
}
#relatedSongsSection .song-related-pagination-inner {
    gap: 6px;
    padding: 7px 9px;
}
#relatedSongsSection .song-related-pagination-link {
    min-width: 28px;
    height: 28px;
    font-size: 0.7rem;
}

@media (max-width: 560px) {
    .song-related-pagination-inner {
        gap: 6px;
        padding: 7px 8px;
    }
    .song-related-pagination-link {
        min-width: 28px;
        height: 28px;
        padding: 0 8px;
        font-size: 0.7rem;
    }
}

.song-title-play-btn {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

.song-title-play-btn:hover {
    color: #cbb4ff;
}

/* ── Song page: hide description (moved to collapsible info card) ─────── */
.song-page-description { display: none; }

/* ── Song page action row v2 ─────────────────────────────────────────────── */
.song-page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Icon group sits next to the Play button */
.song-page-icon-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icon buttons — match Play button height (44px) */
.song-pg-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    font-size: 0.92rem !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    background: rgba(255,255,255,0.07) !important;
    color: #d4d4d8 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s !important;
    padding: 0 !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}
.song-pg-icon:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.45) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

/* Favorite */
.song-pg-icon.favorite-btn { font-size: 0 !important; overflow: hidden; }
.song-pg-icon.favorite-btn::before { content: '♡'; font-size: 1.1rem; line-height: 1; }
.song-pg-icon.favorite-btn.is-active::before { content: '♥'; }
.song-pg-icon.favorite-btn.is-active {
    background: rgba(239, 68, 68, 0.16) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #f87171 !important;
}

/* ── Song Info Collapsible Card ─────────────────────────────────────────── */
.song-info-collapsible {
    padding: 0;
    overflow: hidden;
}

.song-info-details > summary { list-style: none; }
.song-info-details > summary::-webkit-details-marker { display: none; }

.song-info-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 22px;
    cursor: pointer;
    user-select: none;
    border-radius: inherit;
    transition: background 0.18s;
}
.song-info-summary:hover {
    background: rgba(255,255,255,0.028);
}

.song-info-summary-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #a1a1aa;
    letter-spacing: 0.06em;
}
.song-info-summary-label i {
    color: #8b5cf6;
    font-size: 0.78rem;
}

.song-info-toggle {
    font-size: 0.72rem;
    color: #71717a;
}
.song-info-toggle i {
    font-size: 0.62rem;
    margin-left: 3px;
    transition: transform 0.22s;
}

.song-info-when-open  { display: none; }
.song-info-when-closed { display: inline-flex; align-items: center; }

.song-info-details[open] .song-info-when-open   { display: inline-flex; align-items: center; }
.song-info-details[open] .song-info-when-closed { display: none; }
.song-info-details[open] .song-info-toggle i    { transform: rotate(180deg); }

.song-info-body {
    padding: 2px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: song-info-fadein 0.2s ease;
}
@keyframes song-info-fadein {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* SEO description — subtle, secondary */
.song-info-seo-desc {
    font-size: 0.8rem;
    line-height: 1.68;
    color: #a1a1aa;
    font-weight: 400;
    border-left: 2px solid rgba(139, 92, 246, 0.3);
    padding-left: 11px;
    margin: 0;
}

/* Meta table */
.song-info-meta {
    display: grid;
    gap: 0;
}
.song-info-meta div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.055);
    font-size: 0.78rem;
}
.song-info-meta div:last-child { border-bottom: none; }
.song-info-meta span {
    color: #71717a;
    font-weight: 400;
    font-size: 0.74rem;
    flex-shrink: 0;
}
.song-info-meta strong {
    color: #d4d4d8;
    font-weight: 500;
    text-align: right;
}
.song-info-meta a {
    color: #c084fc;
    text-decoration: none;
    transition: color 0.15s;
}
.song-info-meta a:hover { color: #fff; }

/* GEO / AEO grid */
.song-info-ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.song-info-ai-block {
    background: rgba(255,255,255,0.028);
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 12px;
    padding: 13px 15px;
}
.song-info-ai-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #8b5cf6;
    letter-spacing: 0.07em;
    margin: 0 0 7px;
}
.song-info-ai-block p,
.song-info-faq-item p {
    font-size: 0.78rem;
    line-height: 1.62;
    color: #a1a1aa;
    margin: 0;
}

/* FAQ */
.song-info-faq {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.song-info-faq > .song-info-ai-label {
    margin-bottom: 2px;
}
.song-info-faq-item {
    background: rgba(255,255,255,0.022);
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 10px;
    overflow: hidden;
}
.song-info-faq-item > summary {
    list-style: none;
    padding: 10px 13px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #d4d4d8;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}
.song-info-faq-item > summary::-webkit-details-marker { display: none; }
.song-info-faq-item > summary:hover { color: #fff; }
.song-info-faq-item > p {
    padding: 0 13px 11px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 560px) {
    .song-info-ai-grid { grid-template-columns: 1fr; }
    .song-info-summary { padding: 13px 18px; }
    .song-info-body    { padding: 2px 18px 18px; }
}

/* ── Recommendation sections ─────────────────────────────────────────── */
.rec-section-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rec-section-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: #a78bfa;
    line-height: 1.5;
    text-transform: none !important;
}
.rec-section-type i {
    font-size: 0.63rem;
}
.rec-section-type--album    { color: #60a5fa; }
.rec-section-type--category { color: #34d399; }

.rec-section-name {
    margin: 0;
    font-size: 1rem !important;
    font-weight: 600;
    color: #f4f4f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 48ch;
}
