/* Music FM — Song App Reference Style */

.song-page-app{
    direction:rtl;
    padding-bottom:120px;
}

.song-app-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 286px;
    gap:24px;
    align-items:start;
}

.song-app-main{
    display:grid;
    gap:24px;
}

.song-app-side{
    display:grid;
    gap:24px;
}

.song-player-card,
.song-section-card,
.song-comments-card,
.song-side-box,
.song-artist-panel{
    background:#fff;
    border:1px solid #dfe7f3;
    border-radius:6px;
    box-shadow:0 10px 28px rgba(15,35,70,.045);
}

.song-player-card{
    display:grid;
    grid-template-columns:330px minmax(0,1fr);
    gap:34px;
    align-items:center;
    padding:26px;
}

.song-cover-large img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:5px;
    box-shadow:0 14px 35px rgba(15,35,70,.16);
}

.song-player-info{
    min-width:0;
}

.song-badge{
    display:inline-flex;
    min-height:34px;
    align-items:center;
    padding:0 12px;
    border-radius:4px;
    background:#147cff;
    color:#fff;
    font-weight:950;
    font-size:13px;
    margin-bottom:18px;
}

.song-player-info h1{
    margin:0 0 8px;
    color:#101828;
    font-size:56px;
    line-height:1.03;
    font-weight:950;
    letter-spacing:-1.2px;
}

.song-artist-main{
    display:block;
    margin:0 0 22px;
    color:#24364f;
    font-size:20px;
    font-weight:900;
    text-decoration:none;
}

a.song-artist-main:hover{
    color:#147cff;
}

.song-meta-inline{
    display:flex;
    flex-wrap:wrap;
    gap:22px;
    margin-bottom:22px;
    color:#344054;
    font-size:14px;
    font-weight:800;
}

.song-meta-inline span{
    position:relative;
}

.song-meta-inline span:not(:last-child)::after{
    content:"";
    position:absolute;
    left:-12px;
    top:50%;
    width:1px;
    height:14px;
    background:#dfe7f3;
    transform:translateY(-50%);
}

.song-main-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.song-main-actions button,
.song-main-actions a{
    min-height:46px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:0 18px;
    border-radius:5px;
    border:1px solid #d8e3f2;
    background:#fff;
    color:#101828;
    font-family:inherit;
    font-weight:950;
    cursor:pointer;
    text-decoration:none;
    transition:.18s ease;
}

.song-main-actions .primary{
    background:#147cff;
    color:#fff;
    border-color:#147cff;
    box-shadow:0 12px 24px rgba(20,124,255,.18);
}

.song-main-actions button:hover,
.song-main-actions a:hover{
    transform:translateY(-1px);
    border-color:#bdd7ff;
}

.song-wave{
    grid-column:1/-1;
    min-height:60px;
    display:grid;
    grid-template-columns:46px 1fr 0 46px;
    align-items:center;
    gap:12px;
    padding:0 16px;
    border-radius:5px;
    background:#f3f7fc;
    color:#101828;
    font-size:13px;
    font-weight:850;
}

.song-wave i{
    height:30px;
    display:block;
    background:
        repeating-linear-gradient(90deg,#147cff 0 3px,transparent 3px 8px);
    mask:linear-gradient(90deg,#000 0 62%,rgba(0,0,0,.18) 62% 100%);
    border-radius:999px;
    opacity:.95;
}

.song-wave b{display:none}

.song-youtube-note{
    grid-column:1/-1;
    margin:0;
    color:#667085;
    font-size:12.5px;
    line-height:1.6;
    font-weight:750;
}

.song-youtube-note::before{
    content:"ⓘ";
    color:#147cff;
    margin-left:6px;
    font-weight:950;
}

.song-section-card,
.song-comments-card{
    padding:18px;
}

.song-section-card>header,
.song-comments-card>header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:16px;
}

.song-section-card h2,
.song-comments-card h2,
.song-side-box h3,
.song-artist-panel h3{
    margin:0;
    color:#101828;
    font-size:22px;
    line-height:1.2;
    font-weight:950;
}

.song-section-card header a{
    color:#147cff;
    font-size:14px;
    font-weight:900;
    text-decoration:none;
}

.song-horizontal-list{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
}

.song-horizontal-list article{
    min-height:82px;
    display:grid;
    grid-template-columns:36px minmax(0,1fr) 58px;
    gap:10px;
    align-items:center;
    padding:10px;
    border:1px solid #e4ebf5;
    border-radius:5px;
    background:#fff;
}

.song-horizontal-list button{
    width:34px;
    height:34px;
    border:0;
    border-radius:50%;
    background:#eef6ff;
    color:#147cff;
    font-weight:950;
    cursor:pointer;
}

.song-horizontal-list img{
    grid-column:3;
    width:58px;
    height:58px;
    object-fit:cover;
    border-radius:4px;
}

.song-horizontal-list div{
    grid-column:2;
    grid-row:1;
}

.song-horizontal-list strong{
    display:block;
    color:#101828;
    font-size:14px;
    font-weight:950;
}

.song-horizontal-list span{
    display:block;
    margin-top:4px;
    color:#667085;
    font-size:12px;
    font-weight:800;
}

.song-horizontal-list a{
    grid-column:1;
    color:#667085;
    text-decoration:none;
    font-weight:950;
    font-size:18px;
}

.song-cover-row{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:18px;
}

.song-cover-row article{
    min-width:0;
}

.song-cover-row article>a{
    position:relative;
    display:block;
    margin-bottom:10px;
}

.song-cover-row img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:5px;
    box-shadow:0 10px 22px rgba(15,35,70,.10);
}

.song-cover-row button{
    position:absolute;
    right:10px;
    bottom:10px;
    width:36px;
    height:36px;
    border:0;
    border-radius:50%;
    background:#fff;
    color:#147cff;
    font-weight:950;
    cursor:pointer;
    box-shadow:0 8px 18px rgba(15,35,70,.16);
}

.song-cover-row strong{
    display:block;
    color:#101828;
    font-size:14px;
    line-height:1.25;
    font-weight:950;
}

.song-cover-row span{
    display:block;
    margin-top:4px;
    color:#667085;
    font-size:12px;
    font-weight:800;
}

.song-artist-panel{
    overflow:hidden;
    padding:26px 20px;
    text-align:center;
    color:#fff;
    background:
        radial-gradient(circle at 50% 20%,rgba(89,199,255,.20),transparent 38%),
        linear-gradient(180deg,#08295b 0%,#071832 100%);
}

.song-artist-panel h3{
    color:#fff;
    text-align:right;
    margin-bottom:20px;
}

.song-artist-panel img{
    width:142px;
    height:142px;
    object-fit:cover;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.20);
    margin:0 auto 16px;
    box-shadow:0 16px 34px rgba(0,0,0,.28);
}

.song-artist-panel strong{
    display:block;
    color:#fff;
    font-size:22px;
    font-weight:950;
}

.song-artist-panel strong i{
    display:inline-grid;
    place-items:center;
    width:20px;
    height:20px;
    border-radius:50%;
    background:#147cff;
    color:#fff;
    font-style:normal;
    font-size:12px;
}

.song-artist-panel span{
    display:block;
    margin:10px 0 18px;
    color:rgba(255,255,255,.80);
    font-weight:800;
}

.song-artist-panel a{
    min-height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.24);
    border-radius:5px;
    color:#fff;
    font-weight:950;
    text-decoration:none;
}

.song-side-box{
    padding:20px;
}

.song-side-box p{
    margin:0 0 14px;
    color:#475467;
    line-height:1.72;
    font-size:14px;
    font-weight:750;
}

.song-side-box b{
    display:block;
    margin-top:8px;
    color:#101828;
    font-size:14px;
    font-weight:900;
}

.song-side-box ul{
    list-style:none;
    padding:0;
    margin:8px 0 0;
}

.song-side-box li{
    min-height:36px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid #e4ebf5;
    color:#344054;
    font-weight:800;
}

.song-side-box li:last-child{
    border-bottom:0;
}

.song-side-box li b{
    margin:0;
}

.song-side-box.share div{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.song-side-box.share a,
.song-side-box.tags a{
    min-height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 12px;
    border-radius:999px;
    background:#eef6ff;
    color:#147cff;
    font-size:13px;
    font-weight:900;
    text-decoration:none;
}

.song-side-box.tags div{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.song-comments-card header b{
    color:#147cff;
}

.song-comments-card select{
    height:36px;
    border:1px solid #dfe7f3;
    border-radius:5px;
    background:#f8fbff;
    font-family:inherit;
    font-weight:850;
    color:#101828;
    padding:0 10px;
}

.song-comment-box{
    min-height:48px;
    display:grid;
    grid-template-columns:1fr 44px;
    gap:8px;
    margin-bottom:14px;
}

.song-comment-box input{
    border:1px solid #dfe7f3;
    border-radius:5px;
    padding:0 14px;
    font-family:inherit;
    font-weight:850;
    outline:none;
}

.song-comment-box button{
    border:1px solid #dfe7f3;
    border-radius:5px;
    background:#fff;
    cursor:pointer;
}

.song-comments-list{
    display:grid;
    gap:12px;
}

.song-comments-list article{
    display:grid;
    grid-template-columns:46px 1fr;
    gap:12px;
    padding:12px;
    border:1px solid #e4ebf5;
    border-radius:5px;
}

.song-comments-list img{
    width:46px;
    height:46px;
    object-fit:cover;
    border-radius:50%;
}

.song-comments-list strong{
    color:#101828;
    font-weight:950;
}

.song-comments-list span{
    color:#98a2b3;
    font-size:12px;
    font-weight:800;
    margin-right:8px;
}

.song-comments-list p{
    margin:6px 0;
    color:#344054;
    font-weight:750;
}

.song-comments-list small{
    color:#147cff;
    font-weight:850;
}

@media(max-width:1160px){
    .song-app-grid{
        grid-template-columns:1fr;
    }

    .song-app-side{
        grid-template-columns:repeat(2,1fr);
    }

    .song-artist-panel{
        grid-row:span 2;
    }
}

@media(max-width:920px){
    .song-player-card{
        grid-template-columns:1fr;
    }

    .song-cover-large{
        max-width:360px;
        width:100%;
        margin:auto;
    }

    .song-horizontal-list{
        grid-template-columns:repeat(2,1fr);
    }

    .song-cover-row{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:720px){
    .song-page-app{
        padding-bottom:100px;
    }

    .song-player-card,
    .song-section-card,
    .song-comments-card,
    .song-side-box,
    .song-artist-panel{
        border-radius:5px;
    }

    .song-player-card{
        padding:16px;
        gap:18px;
    }

    .song-player-info h1{
        font-size:36px;
    }

    .song-main-actions button,
    .song-main-actions a{
        width:100%;
    }

    .song-wave{
        grid-template-columns:40px 1fr 42px;
    }

    .song-wave b{display:none}

    .song-app-side{
        grid-template-columns:1fr;
    }

    .song-horizontal-list,
    .song-cover-row{
        grid-template-columns:1fr;
    }

    .song-cover-row{
        display:flex;
        overflow:auto;
        padding-bottom:6px;
        scroll-snap-type:x mandatory;
    }

    .song-cover-row article{
        min-width:145px;
        scroll-snap-align:start;
    }
}


/* Song actions — like + playlist */
.song-main-actions button.is-loading,
.song-main-actions a.is-loading,
.song-mini-like.is-loading{
    opacity:.65;
    pointer-events:none;
}

.song-main-actions button.is-liked,
.song-mini-like.is-liked{
    color:#e11d48;
    border-color:#fecdd3;
    background:#fff1f3;
}

.song-mini-like{
    grid-column:1;
    border:0;
    background:transparent;
    color:#667085;
    cursor:pointer;
    font-weight:950;
    font-size:18px;
}

.song-toast{
    position:fixed;
    right:24px;
    bottom:104px;
    z-index:9999999;
    max-width:min(360px,calc(100vw - 48px));
    min-height:46px;
    display:flex;
    align-items:center;
    padding:0 16px;
    border-radius:6px;
    background:#071832;
    color:#fff;
    font-weight:900;
    box-shadow:0 18px 46px rgba(7,24,50,.24);
    opacity:0;
    visibility:hidden;
    transform:translateY(12px);
    transition:.22s ease;
}

.song-toast.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.song-toast.success{
    background:#071832;
}

.song-toast.error{
    background:#b42318;
}

@media(max-width:720px){
    .song-toast{
        right:12px;
        bottom:92px;
        max-width:calc(100vw - 24px);
    }
}


/* =========================================================
   Music FM — Song Page Finished Polish
========================================================= */

.song-player-card,
.song-section-card,
.song-comments-card,
.song-side-box,
.song-artist-panel{
    animation:mfSongCardIn .34s ease both;
}

@keyframes mfSongCardIn{
    from{opacity:0;transform:translateY(8px)}
    to{opacity:1;transform:translateY(0)}
}

.song-player-card{
    position:relative;
    overflow:hidden;
}

.song-player-card::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(circle at 20% 0%,rgba(20,124,255,.08),transparent 26%),
        linear-gradient(180deg,rgba(255,255,255,.0),rgba(20,124,255,.025));
}

.song-player-card > *{
    position:relative;
    z-index:1;
}

.song-cover-large img{
    transition:transform .28s ease, box-shadow .28s ease;
}

.song-cover-large:hover img{
    transform:translateY(-2px) scale(1.01);
    box-shadow:0 18px 42px rgba(15,35,70,.20);
}

.song-page-live-strip{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
    margin-top:2px;
}

.song-page-live-strip article{
    min-height:72px;
    display:grid;
    align-content:center;
    gap:5px;
    padding:12px;
    border:1px solid #e4ebf5;
    border-radius:5px;
    background:#fff;
}

.song-page-live-strip b{
    color:#147cff;
    font-size:22px;
    line-height:1;
    font-weight:950;
}

.song-page-live-strip span{
    color:#667085;
    font-size:12px;
    font-weight:850;
}

.song-comment-box{
    grid-template-columns:1fr 74px;
}

.song-comment-box button{
    background:#147cff;
    color:#fff;
    border-color:#147cff;
    font-family:inherit;
    font-weight:950;
}

.song-comments-list article{
    transition:border-color .18s ease, background .18s ease, transform .18s ease;
}

.song-comments-list article:hover{
    border-color:#bdd7ff;
    background:#fbfdff;
    transform:translateY(-1px);
}

@media(max-width:720px){
    .song-page-live-strip{
        grid-template-columns:repeat(2,1fr);
    }
}


/* Title + liked-state final fix */
.song-main-actions button.is-liked,
.song-main-actions a.is-liked{
    background:#fff1f3 !important;
    color:#e11d48 !important;
    border-color:#fecdd3 !important;
}

.song-main-actions button.is-liked::after{
    content:"";
}


/* Final source fix */
.song-wave{display:none !important}

.song-page-live-strip{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin-top:4px;
}

.song-page-live-strip article{
    min-height:76px;
    display:grid;
    align-content:center;
    gap:5px;
    padding:14px;
    border:1px solid #e4ebf5;
    border-radius:5px;
    background:#fff;
    box-shadow:0 8px 18px rgba(15,35,70,.035);
}

.song-page-live-strip b{
    color:#147cff;
    font-size:23px;
    line-height:1;
    font-weight:950;
}

.song-page-live-strip span{
    color:#667085;
    font-size:12px;
    font-weight:900;
}

@media(max-width:720px){
    .song-page-live-strip{grid-template-columns:repeat(2,1fr)}
}
