/* =====================================
   UPLOAD
===================================== */

.creator-form{

    margin-top:30px;

}

.form-row{

    display:flex;

    gap:20px;

    margin-bottom:20px;

}

.form-group{

    flex:1;

    display:flex;

    flex-direction:column;

}

.form-group label{

    margin-bottom:8px;

    font-size:14px;

    color:#bdbdbd;

}

.form-group input,
.form-group select,
.form-group textarea{

    background:#1e1e1e;

    border:1px solid #333;

    color:#fff;

    border-radius:12px;

    padding:14px;

    font-size:15px;

    transition:.2s;

}

.form-group textarea{

    resize:vertical;

    min-height:130px;

}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{

    outline:none;

    border-color:#d4af37;

    box-shadow:0 0 10px rgba(212,175,55,.25);

}

.creator-form button{

    margin-top:25px;

}

/* =====================================
   SONGS
===================================== */

.creator-song{

    display:flex;

    align-items:center;

    gap:20px;

    padding:15px;

    margin-bottom:15px;

    background:#1b1b1b;

    border:1px solid #2e2e2e;

    border-radius:14px;

}

.creator-song-cover{

    width:70px;

    height:70px;

    min-width:70px;

    max-width:70px;

    object-fit:cover;

    border-radius:10px;

    border:1px solid #444;

}

.creator-song-info{

    flex:1;

}

.creator-song-info h3{

    margin:0 0 6px;

    color:#fff;

    font-size:18px;

}

.creator-song-meta{

    display:flex;

    gap:15px;

    color:#999;

    font-size:14px;

}

.creator-song-actions{

    display:flex;

    gap:10px;

}

.creator-song-actions button{

    width:42px;

    height:42px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    transition:.2s;

}

.creator-song-actions .secondary-btn{

    background:#2f2f2f;

    color:#fff;

}

.creator-song-actions .secondary-btn:hover{

    background:#444;

}

.creator-song-actions .danger-btn{

    background:#b32020;

    color:#fff;

}

.creator-song-actions .danger-btn:hover{

    background:#d53131;

}

.empty{

    text-align:center;

    color:#999;

    padding:40px;

}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width:900px){

    .form-row{
        flex-direction:column;
    }

}

@media (max-width:768px){

    .profile-wrapper{
        display:flex;
        flex-direction:column;
    }

    .profile-sidebar{
        width:100%;
        margin-bottom:20px;
    }

    .profile-body{
        width:100%;
    }

    .creator-song{

        flex-direction:column;

        text-align:center;

    }

    .creator-song-actions{

        width:100%;

        justify-content:center;

    }

}
.creator-song-stats{

    display:flex;

    gap:20px;

    margin-top:10px;

    color:#8f8f8f;

    font-size:13px;

}

.creator-song-stats span{

    display:flex;

    align-items:center;

    gap:6px;

}

.creator-song-stats i{

    color:#d4af37;

}
.creator-song-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:8px;

}

.song-status{

    padding:5px 12px;

    border-radius:50px;

    font-size:12px;

    font-weight:600;

    text-transform:uppercase;

}

.song-status.public{

    background:#1e8e3e;

    color:#fff;

}

.song-status.private{

    background:#b3261e;

    color:#fff;

}

.song-status.unlisted{

    background:#d4af37;

    color:#000;

}

.creator-song-actions{

    position:relative;

}

.song-menu-btn{

    width:42px;

    height:42px;

    border:none;

    border-radius:10px;

    background:#2b2b2b;

    color:#fff;

    cursor:pointer;

    transition:.2s;

}

.song-menu-btn:hover{

    background:#3d3d3d;

}

.song-menu{

    position:absolute;

    right:0;

    top:50px;

    display:none;

    min-width:180px;

    background:#222;

    border:1px solid #3a3a3a;

    border-radius:12px;

    overflow:hidden;

    z-index:1000;

    box-shadow:0 10px 30px rgba(0,0,0,.35);

}

.song-menu.show{

    display:block;

}

.song-menu button{

    width:100%;

    display:flex;

    align-items:center;

    gap:10px;

    background:none;

    border:none;

    color:#fff;

    padding:12px 16px;

    cursor:pointer;

    text-align:left;

}

.song-menu button:hover{

    background:#333;

}

.artist-banner-preview{

    width:100%;

    height:220px;

    margin-bottom:20px;

    border-radius:16px;

    overflow:hidden;

    background:#1d1d1d;

}

.artist-banner-preview img{

    width:100%;

    height:100%;

    object-fit:cover;

}

.artist-profile{

max-width:1200px;

margin:auto;

padding:40px;

}

.artist-banner{

height:300px;

border-radius:20px;

overflow:hidden;

margin-bottom:80px;

background:#222;

}

.artist-banner img{

width:100%;

height:100%;

object-fit:cover;

}

.artist-avatar{

width:180px;

height:180px;

margin:-120px auto 20px;

border-radius:50%;

overflow:hidden;

border:6px solid #121212;

background:#222;

}

.artist-avatar img{

width:100%;

height:100%;

object-fit:cover;

}

.artist-profile h1{

text-align:center;

font-size:38px;

margin-bottom:20px;

color:#fff;

}

.artist-bio{

max-width:800px;

margin:auto;

text-align:center;

color:#bbb;

line-height:1.8;

}

.artist-socials{

display:flex;

justify-content:center;

gap:20px;

margin-top:35px;

flex-wrap:wrap;

}

.artist-socials a{

padding:12px 22px;

background:#1f1f1f;

border-radius:10px;

text-decoration:none;

color:#fff;

transition:.2s;

}

.artist-socials a:hover{

background:#d4af37;

color:#111;

}
/* =====================================
   CREATOR STUDIO 2.0
===================================== */
.creator-dashboard{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.creator-hero-panel{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:30px;
    border-radius:24px;
    background:linear-gradient(135deg,rgba(29,185,84,.18),rgba(255,255,255,.04));
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 18px 50px rgba(0,0,0,.22);
}

.creator-kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:10px;
    color:#1db954;
    font-size:13px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.creator-hero-panel h2,
.creator-page-head h2{
    margin:0 0 10px;
    font-size:34px;
}

.creator-hero-panel p,
.creator-page-head p{
    max-width:720px;
    color:#aeb4bf;
    line-height:1.6;
}

.creator-hero-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.creator-stat-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(140px,1fr));
    gap:16px;
}

.creator-stat-card{
    padding:22px;
    border-radius:18px;
    background:#17191f;
    border:1px solid rgba(255,255,255,.08);
}

.creator-stat-card span{
    display:block;
    margin-bottom:10px;
    color:#9da3ae;
    font-size:13px;
}

.creator-stat-card strong{
    display:block;
    font-size:32px;
    color:#fff;
}

.creator-grid-modern{
    grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
}

.creator-recent-box,
.creator-form-card{
    padding:24px;
    border-radius:22px;
    background:#17191f;
    border:1px solid rgba(255,255,255,.08);
}

.creator-recent-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.creator-mini-song{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    border-radius:14px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.06);
}

.creator-mini-song img{
    width:52px;
    height:52px;
    border-radius:10px;
    object-fit:cover;
    background:#222;
}

.creator-mini-song div{
    flex:1;
    min-width:0;
}

.creator-mini-song strong,
.creator-mini-song span{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.creator-mini-song span,
.creator-mini-song em{
    color:#9da3ae;
    font-size:13px;
    font-style:normal;
}

.creator-page-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:24px;
}

.creator-back-btn{
    margin-bottom:22px;
}

.creator-toolbar{
    display:flex;
    gap:12px;
    margin-bottom:18px;
}

.creator-toolbar input,
.creator-toolbar select{
    border:none;
    border-radius:14px;
    background:#1d2027;
    color:#fff;
    padding:14px 16px;
}

.creator-toolbar input{
    flex:1;
}

.creator-song{
    background:#17191f;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    transition:.2s ease;
}

.creator-song:hover{
    background:#1d2027;
    transform:translateY(-2px);
}

.featured-pin{
    color:#1db954;
    margin-left:8px;
    font-size:14px;
}

.edit-song-modal-content{
    width:min(760px,94vw);
    max-height:88vh;
    overflow:auto;
}

.edit-song-actions{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    margin-top:18px;
}

.upload-drop small{
    color:#848b96;
    margin-top:8px;
}

.mini-form-btn{
    margin-top:10px !important;
    width:max-content;
    padding:10px 14px;
}

.big-submit-btn{
    width:max-content;
}

.creator-album-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:16px;
}

.creator-album-card{
    min-height:160px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:20px;
    border-radius:18px;
    background:#17191f;
    border:1px solid rgba(255,255,255,.08);
}

.creator-album-card i{
    font-size:42px;
    color:#1db954;
    margin-bottom:auto;
}

.creator-album-card h3{
    margin:20px 0 6px;
}

.creator-album-card p{
    color:#9da3ae;
}

.small-empty{
    padding:20px;
}

@media(max-width:900px){
    .creator-hero-panel,
    .creator-page-head{
        flex-direction:column;
        align-items:flex-start;
    }

    .creator-hero-actions{
        justify-content:flex-start;
        width:100%;
    }

    .creator-hero-actions .primary-btn,
    .creator-hero-actions .secondary-btn,
    .creator-inline-action{
        width:100%;
        margin-right:0;
    }

    .creator-stat-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .creator-toolbar{
        flex-direction:column;
    }

    .creator-song{
        align-items:stretch;
        text-align:left;
    }

    .creator-song-header{
        align-items:flex-start;
        gap:10px;
    }

    .creator-song-actions{
        justify-content:flex-end;
    }

    .song-menu{
        right:0;
        left:auto;
    }

    .big-submit-btn{
        width:100%;
    }
}

@media(max-width:520px){
    .creator-stat-grid{
        grid-template-columns:1fr;
    }

    .creator-hero-panel,
    .creator-recent-box,
    .creator-form-card{
        padding:18px;
        border-radius:18px;
    }

    .creator-hero-panel h2,
    .creator-page-head h2{
        font-size:26px;
    }
}

/* ==========================================
   CREATOR ARTIST PROFILE 2.0
========================================== */

.creator-link-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:12px 18px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    color:#fff;
    text-decoration:none;
    border:1px solid rgba(255,255,255,.12);
    transition:.25s;
}

.creator-link-btn:hover{
    background:rgba(29,185,84,.16);
    border-color:rgba(29,185,84,.55);
    transform:translateY(-2px);
}

.creator-link-btn.disabled{
    opacity:.45;
    pointer-events:none;
}

.artist-profile-editor{
    overflow:hidden;
}

.artist-editor-preview{
    position:relative;
    margin:-30px -30px 30px;
    background:#101116;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.artist-banner-preview{
    height:260px;
    border-radius:0;
    overflow:hidden;
    background:linear-gradient(135deg,#111318,#1db95433);
}

.artist-banner-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.artist-preview-user{
    display:flex;
    align-items:flex-end;
    gap:22px;
    padding:0 30px 28px;
    margin-top:-58px;
}

.artist-avatar-preview{
    width:128px;
    height:128px;
    border-radius:50%;
    padding:5px;
    background:#17191f;
    flex-shrink:0;
    box-shadow:0 18px 40px rgba(0,0,0,.35);
}

.artist-avatar-preview img{
    width:100%;
    height:100%;
    border-radius:50%;
    object-fit:cover;
    display:block;
    background:#222;
}

.artist-preview-user h3{
    font-size:32px;
    margin-bottom:8px;
}

.artist-preview-user p{
    color:#bfc5cf;
    line-height:1.5;
    max-width:720px;
}

.creator-mini-title{
    display:flex;
    align-items:center;
    gap:10px;
    color:#fff;
    font-size:18px;
    font-weight:800;
    margin:8px 0 20px;
}

.creator-form-actions{
    margin-top:18px;
}

.big-submit-btn i{
    margin-right:8px;
}

#artistProfileUrl{
    color:#9da3ae;
    cursor:copy;
}

@media(max-width:900px){
    .creator-page-head{
        gap:16px;
    }

    .creator-link-btn{
        width:100%;
        justify-content:center;
    }

    .artist-editor-preview{
        margin:-20px -20px 24px;
    }

    .artist-banner-preview{
        height:190px;
    }

    .artist-preview-user{
        align-items:center;
        padding:0 20px 24px;
        margin-top:-44px;
    }

    .artist-avatar-preview{
        width:96px;
        height:96px;
    }

    .artist-preview-user h3{
        font-size:24px;
    }

    .artist-preview-user p{
        font-size:14px;
    }
}

/* ==========================================
   MOBILE SAFE AREA FOR CREATOR FORMS
========================================== */
@media(max-width:900px){
    .creator-form,
    .creator-form-card,
    .artist-profile-editor,
    .creator-dashboard,
    .creator-recent-box{
        padding-bottom:calc(58px + env(safe-area-inset-bottom)) !important;
    }

    .creator-form-actions,
    .big-submit-btn,
    .creator-form button[type="submit"],
    .artist-profile-editor button[type="submit"]{
        margin-bottom:calc(22px + env(safe-area-inset-bottom)) !important;
    }

    .artist-editor-preview{
        margin-bottom:28px !important;
    }
}

/* ==========================================
   MOBILE CREATOR SAVE BUTTON VISIBILITY FIX
========================================== */
@media(max-width:900px){
    :root{
        --sn-mobile-player:104px;
        --sn-mobile-nav:60px;
        --sn-mobile-form-safe:calc(var(--sn-mobile-player) + var(--sn-mobile-nav) + 96px + env(safe-area-inset-bottom));
    }

    .creator-form,
    .creator-form-card,
    .artist-profile-editor,
    .creator-dashboard,
    .creator-recent-box,
    #creatorContent,
    #creatorHome{
        overflow:visible !important;
        max-height:none !important;
        padding-bottom:calc(var(--sn-mobile-form-safe) + 24px) !important;
        margin-bottom:var(--sn-mobile-form-safe) !important;
    }

    .creator-form-actions,
    .artist-profile-editor .creator-form-actions{
        position:sticky !important;
        bottom:calc(var(--sn-mobile-player) + var(--sn-mobile-nav) + 14px + env(safe-area-inset-bottom)) !important;
        z-index:90 !important;
        display:flex !important;
        flex-direction:column;
        gap:10px;
        padding:14px 0 18px !important;
        background:linear-gradient(180deg, rgba(24,24,24,0), #181818 30%, #181818 100%) !important;
    }

    .creator-form-actions .primary-btn,
    .creator-form-actions .secondary-btn,
    .creator-form-actions .danger-btn,
    .big-submit-btn,
    .creator-form button[type="submit"],
    .artist-profile-editor button[type="submit"]{
        width:100% !important;
        display:flex !important;
        justify-content:center !important;
        align-items:center !important;
        min-height:48px !important;
        margin-bottom:0 !important;
    }
}

/* ==========================================
   MOBILE CREATOR SCROLL RESTORE
========================================== */
@media(max-width:900px){
    :root{
        --sn-mobile-player:104px;
        --sn-mobile-nav:60px;
        --sn-mobile-safe-bottom:calc(var(--sn-mobile-player) + var(--sn-mobile-nav) + 92px + env(safe-area-inset-bottom));
    }

    .creator-form,
    .creator-form-card,
    .artist-profile-editor,
    .creator-dashboard,
    .creator-recent-box,
    #creatorContent,
    #creatorHome{
        overflow:visible !important;
        max-height:none !important;
        margin-bottom:0 !important;
        padding-bottom:var(--sn-mobile-safe-bottom) !important;
    }

    .creator-form-actions,
    .artist-profile-editor .creator-form-actions{
        position:static !important;
        bottom:auto !important;
        z-index:auto !important;
        background:transparent !important;
        padding:16px 0 calc(34px + env(safe-area-inset-bottom)) !important;
        margin-top:22px !important;
    }

    .creator-form-actions .primary-btn,
    .creator-form-actions .secondary-btn,
    .creator-form-actions .danger-btn,
    .big-submit-btn,
    .creator-form button[type="submit"],
    .artist-profile-editor button[type="submit"]{
        width:100% !important;
        min-height:48px !important;
        display:flex !important;
        justify-content:center !important;
        align-items:center !important;
    }
}

/* ==========================================
   MOBILE FINAL CREATOR SCROLL FIX
========================================== */
@media(max-width:900px){
    :root{
        --sn-mobile-player:104px;
        --sn-mobile-nav:60px;
        --sn-mobile-bottom-space:calc(var(--sn-mobile-player) + var(--sn-mobile-nav) + 90px + env(safe-area-inset-bottom));
    }

    #creatorContent,
    #creatorHome,
    .creator-dashboard,
    .creator-form,
    .creator-form-card,
    .artist-profile-editor,
    .creator-recent-box{
        height:auto !important;
        max-height:none !important;
        overflow:visible !important;
        margin-bottom:0 !important;
        padding-bottom:var(--sn-mobile-bottom-space) !important;
    }

    .creator-form-actions,
    .artist-profile-editor .creator-form-actions{
        position:static !important;
        bottom:auto !important;
        z-index:auto !important;
        background:transparent !important;
        padding:16px 0 22px !important;
        margin:18px 0 0 !important;
        width:100% !important;
    }
}

/* ==========================================
   COVER GENERATOR
========================================== */
.cover-generator-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(320px,420px);
    gap:24px;
    align-items:start;
}

.cover-generator-form{
    min-width:0;
}

.cover-generator-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:18px;
}

.cover-generator-actions button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.creator-help-text{
    color:var(--muted,#9da3ae);
    font-size:14px;
    line-height:1.5;
    margin-top:14px;
}

.cover-preview-card{
    background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
    border:1px solid rgba(255,255,255,.08);
    border-radius:22px;
    padding:18px;
    position:sticky;
    top:20px;
}

#coverGeneratorCanvas{
    width:100%;
    aspect-ratio:1/1;
    display:block;
    border-radius:18px;
    background:#111;
    box-shadow:0 22px 60px rgba(0,0,0,.38);
}

.cover-preview-card .muted{
    margin-top:12px;
    text-align:center;
}

.generated-cover-notice{
    align-items:center;
    gap:12px;
    background:rgba(29,185,84,.12);
    border:1px solid rgba(29,185,84,.35);
    border-radius:14px;
    padding:10px;
    margin:10px 0;
}

.generated-cover-notice img{
    width:54px;
    height:54px;
    object-fit:cover;
    border-radius:10px;
    flex-shrink:0;
}

.generated-cover-notice strong{
    display:block;
    color:#fff;
    margin-bottom:2px;
}

.generated-cover-notice span{
    display:block;
    color:var(--muted,#9da3ae);
    font-size:13px;
    line-height:1.35;
}

.icon-action-btn{
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.1);
    color:#fff;
    cursor:pointer;
    margin-left:auto;
}

.icon-action-btn:hover{
    background:rgba(255,255,255,.18);
}

@media(max-width:900px){
    .cover-generator-layout{
        grid-template-columns:1fr;
    }

    .cover-preview-card{
        position:static;
        order:-1;
    }

    .cover-generator-actions{
        flex-direction:column;
    }

    .cover-generator-actions button{
        width:100%;
        min-height:48px;
    }
}

/* ==========================================
   AI COVER GENERATOR 2.0
========================================== */
.ai-cover-generator-layout .form-group textarea{
    width:100%;
    min-height:110px;
    resize:vertical;
    border:none;
    border-radius:14px;
    background:#202329;
    color:#fff;
    padding:14px 16px;
    line-height:1.5;
    outline:none;
}

.ai-cover-generator-layout .form-group textarea:focus,
.ai-cover-generator-layout .form-group input:focus,
.ai-cover-generator-layout .form-group select:focus{
    box-shadow:0 0 0 2px rgba(29,185,84,.35);
}

.ai-cover-preview-wrap{
    position:relative;
    width:100%;
    aspect-ratio:1/1;
    border-radius:18px;
    overflow:hidden;
    background:#101114;
    box-shadow:0 22px 60px rgba(0,0,0,.38);
}

.ai-cover-preview-wrap #coverGeneratorCanvas,
.ai-cover-preview-wrap .ai-cover-preview{
    width:100%;
    height:100%;
    display:block;
    border-radius:0;
    object-fit:cover;
    box-shadow:none;
}

.ai-cover-preview-card{
    border-color:rgba(29,185,84,.18);
}

.ai-cover-preview-card::before{
    content:"AI";
    position:absolute;
    top:12px;
    left:12px;
    z-index:3;
    background:rgba(29,185,84,.9);
    color:#07110b;
    font-weight:900;
    font-size:12px;
    letter-spacing:.12em;
    padding:6px 9px;
    border-radius:999px;
}

@media(max-width:900px){
    .ai-cover-generator-layout .form-group textarea{
        min-height:96px;
    }

    .ai-cover-preview-card::before{
        top:10px;
        left:10px;
    }
}
