/* =========================================================
   Music FM — Songs Page V3 Complete
========================================================= */

.mf-songs-page{direction:rtl;padding-top:24px;padding-bottom:86px}
.mf-songs-page *{box-sizing:border-box}

.mf-songs-hero{
    position:relative;overflow:hidden;min-height:270px;display:grid;
    grid-template-columns:minmax(0,1fr) 250px;align-items:center;gap:22px;
    padding:34px;border:1px solid rgba(20,124,255,.18);border-radius:4px;color:#fff;
    background:radial-gradient(circle at 16% 12%,rgba(89,199,255,.20),transparent 34%),radial-gradient(circle at 82% 18%,rgba(20,124,255,.18),transparent 36%),linear-gradient(135deg,#071832 0%,#08295b 52%,#031126 100%);
    box-shadow:0 18px 46px rgba(15,35,70,.14)
}
.mf-songs-hero::before{
    content:"";position:absolute;inset:0;
    background:repeating-linear-gradient(90deg,rgba(255,255,255,.018) 0,rgba(255,255,255,.018) 1px,transparent 1px,transparent 112px),linear-gradient(90deg,rgba(3,17,38,.22),rgba(3,17,38,.02),rgba(3,17,38,.34));
    pointer-events:none
}
.mf-songs-hero-content,.mf-songs-hero-side{position:relative;z-index:2}
.mf-songs-hero-content>span{
    display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:4px;
    background:linear-gradient(135deg,#147cff 0%,#2f8fff 100%);color:#fff;font-size:13px;font-weight:950;
    box-shadow:0 12px 24px rgba(20,124,255,.28)
}
.mf-songs-hero h1{margin:14px 0 10px;color:#fff;font-size:48px;line-height:1;font-weight:950;letter-spacing:-1.4px}
.mf-songs-hero p{max-width:720px;margin:0;color:rgba(255,255,255,.78);font-size:16px;line-height:1.7;font-weight:760}

.mf-songs-disclaimer{
    display:inline-flex;align-items:center;gap:8px;margin-top:14px;padding:10px 14px;border-radius:4px;
    background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);
    color:rgba(255,255,255,.88);font-size:13px;font-weight:800;line-height:1.6;
    backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)
}
.mf-songs-disclaimer::before{
    content:"\f05a";
    font-family:"Font Awesome 6 Free";
    font-weight:900;
    color:#59c7ff;
    font-size:15px;
    line-height:1;
}

.mf-songs-search{max-width:620px;display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:10px;margin-top:20px}
.mf-songs-search input{
    width:100%;height:46px;border:1px solid rgba(255,255,255,.18);border-radius:4px;
    background:rgba(255,255,255,.10);color:#fff;padding:0 15px;outline:none;font:inherit;font-weight:850
}
.mf-songs-search input::placeholder{color:rgba(255,255,255,.62)}
.mf-songs-search button{
    height:46px;border:0;border-radius:4px;background:linear-gradient(135deg,#147cff,#2f8fff);
    color:#fff;cursor:pointer;font:inherit;font-weight:950;box-shadow:0 12px 24px rgba(20,124,255,.22)
}

.mf-songs-hero-side{display:grid;gap:10px}
.mf-songs-hero-stat{
    min-height:120px;display:grid;align-content:center;gap:8px;padding:18px;border:1px solid rgba(255,255,255,.14);
    border-radius:4px;background:rgba(255,255,255,.09);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
    box-shadow:0 22px 48px rgba(0,0,0,.16)
}
.mf-songs-hero-stat strong{color:#59c7ff;font-size:38px;line-height:1;font-weight:950}
.mf-songs-hero-stat small{color:rgba(255,255,255,.75);font-weight:900}
.mf-songs-top-list{display:grid;gap:8px}
.mf-songs-top-list button{
    min-height:38px;border:1px solid rgba(255,255,255,.13);border-radius:4px;background:rgba(255,255,255,.08);
    color:#fff;text-align:right;padding:0 10px;font:inherit;font-size:12px;font-weight:900;cursor:pointer;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}

.mf-songs-toolbar{
    display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0;padding:14px;
    border:1px solid #dfe7f3;border-radius:4px;background:#fff;box-shadow:0 10px 26px rgba(15,35,70,.045)
}
.mf-songs-toolbar strong{display:block;color:#111827;font-size:18px;font-weight:950}
.mf-songs-toolbar span{display:block;margin-top:2px;color:#667085;font-size:13px;font-weight:800}
.mf-songs-toolbar nav{display:flex;flex-wrap:wrap;gap:8px}
.mf-songs-toolbar nav a{
    min-height:36px;display:inline-flex;align-items:center;padding:0 13px;border-radius:4px;border:1px solid #dfe7f3;
    background:#f8fbff;color:#111827;text-decoration:none;font-size:13px;font-weight:950
}
.mf-songs-toolbar nav a.active{background:#147cff;border-color:#147cff;color:#fff;box-shadow:0 10px 20px rgba(20,124,255,.16)}

.mf-songs-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.mf-song-card{
    position:relative;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto;
    border:1px solid #dfe7f3;border-radius:4px;background:#fff;box-shadow:0 8px 22px rgba(15,35,70,.050);transition:.18s ease
}
.mf-song-card:hover,.mf-song-card.is-playing{transform:translateY(-2px);box-shadow:0 14px 30px rgba(15,35,70,.095);border-color:rgba(20,124,255,.34)}
.mf-song-card.is-playing::before{
    content:"מתנגן";position:absolute;top:8px;left:8px;z-index:5;padding:5px 8px;border-radius:4px;
    background:#147cff;color:#fff;font-size:11px;font-weight:950
}

.mf-song-cover{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;background:#071832;text-decoration:none}
.mf-song-cover-link{position:absolute;inset:0;display:block;color:inherit;text-decoration:none}
.mf-song-cover::after{content:none}
.mf-song-cover img{width:100%;height:100%;display:block;object-fit:cover;transition:.25s ease}
.mf-song-card:hover .mf-song-cover img{transform:scale(1.035)}
.mf-song-number{
    position:absolute;top:8px;right:8px;z-index:2;min-width:30px;height:26px;display:grid;place-items:center;padding:0 7px;
    border-radius:4px;background:rgba(255,255,255,.92);color:#147cff;font-style:normal;font-size:11px;font-weight:950;
    box-shadow:0 8px 18px rgba(0,0,0,.12)
}
.mf-song-play-float{
    position:absolute;left:8px;bottom:8px;z-index:3;width:36px;height:36px;display:grid;place-items:center;
    border:0;border-radius:4px;background:linear-gradient(135deg,#147cff,#2f8fff);color:#fff;font-size:14px;font-weight:950;
    box-shadow:0 10px 22px rgba(20,124,255,.25);cursor:pointer
}

.mf-song-body{padding:11px 12px 9px}
.mf-song-body h2{margin:0;font-size:16px;line-height:1.25;font-weight:950}
.mf-song-body h2 a{display:block;color:#111827;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mf-song-body p{margin:5px 0 0;color:#667085;font-size:13px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mf-song-artist-link{color:#667085;text-decoration:none;font-weight:900}
.mf-song-artist-link:hover{color:#147cff;text-decoration:underline}

.mf-song-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.mf-song-meta span,.mf-song-like{
    min-height:24px;display:inline-flex;align-items:center;gap:4px;padding:0 7px;border-radius:4px;background:#f3f8ff;
    color:#147cff;font-size:11px;font-weight:950;border:0;font:inherit;cursor:pointer
}
.mf-song-card.is-liked .mf-song-like,.mf-song-like:hover{background:#ffeef1;color:#e11d48}

.mf-song-actions{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:7px;padding:0 12px 12px}
.mf-song-actions button{height:38px;border-radius:4px;font:inherit;font-weight:950;cursor:pointer}
.mf-song-play{border:0;background:linear-gradient(135deg,#147cff,#2f8fff);color:#fff;box-shadow:0 10px 20px rgba(20,124,255,.18)}
.mf-song-more{border:1px solid #dfe7f3;background:#fff;color:#147cff;font-size:22px;line-height:1}

.mf-songs-loader{display:none;align-items:center;justify-content:center;gap:10px;min-height:62px;margin-top:18px;color:#667085;font-weight:900}
.mf-songs-loader.loading{display:flex}
.mf-songs-loader span{width:22px;height:22px;border:3px solid #dfe7f3;border-top-color:#147cff;border-radius:50%;animation:mfSongsSpin .85s linear infinite}
@keyframes mfSongsSpin{to{transform:rotate(360deg)}}

.mf-songs-done{margin-top:18px;padding:14px;border:1px solid #dfe7f3;border-radius:4px;background:#fff;color:#667085;text-align:center;font-weight:900}
.mf-song-menu-pop{position:fixed;z-index:999999;min-width:190px;padding:8px;border:1px solid #dfe7f3;border-radius:4px;background:#fff;box-shadow:0 18px 42px rgba(15,35,70,.16)}
.mf-song-menu-pop button{width:100%;height:38px;display:flex;align-items:center;justify-content:flex-start;border:0;border-radius:4px;background:transparent;color:#111827;padding:0 10px;font:inherit;font-weight:900;cursor:pointer;text-align:right}
.mf-song-menu-pop button:hover{background:#f3f8ff;color:#147cff}

.mf-songs-empty{padding:42px;border:1px solid #dfe7f3;border-radius:4px;background:#fff;text-align:center;box-shadow:0 10px 26px rgba(15,35,70,.055)}
.mf-songs-empty h1,.mf-songs-empty h2{margin:0 0 8px;color:#111827;font-size:34px;font-weight:950}
.mf-songs-empty p{margin:0 0 16px;color:#667085;font-weight:800}
.mf-songs-empty a{min-height:40px;display:inline-flex;align-items:center;padding:0 14px;border-radius:4px;background:#147cff;color:#fff;text-decoration:none;font-weight:950}

@media(max-width:1200px){.mf-songs-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:980px){.mf-songs-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){
    .mf-songs-hero{grid-template-columns:1fr;padding:28px 22px}
    .mf-songs-hero h1{font-size:40px}
    .mf-songs-toolbar{display:grid;gap:12px}
    .mf-songs-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:520px){
    .mf-songs-page{padding-top:14px}
    .mf-songs-hero{margin-inline:-9px;border-radius:0 0 4px 4px}
    .mf-songs-search{grid-template-columns:1fr}
    .mf-songs-grid{grid-template-columns:1fr}
}


/* =========================================================
   Music FM — Songs V4 Fix
   Equal cards + Hebrew font numbers + stable images
========================================================= */

/* מספרים ותאריכים באותו קו טיפוגרפי של האתר */
.mf-songs-page,
.mf-song-card,
.mf-songs-toolbar,
.mf-songs-hero,
.mf-song-body,
.mf-song-body h2,
.mf-song-body p,
.mf-song-actions button,
.mf-song-meta,
.mf-song-number{
    font-family:'Heebo', Arial, sans-serif !important;
}

/* גריד יציב */
.mf-songs-grid{
    align-items:stretch !important;
}

/* כל הקוביות באותו גובה */
.mf-song-card{
    height:100% !important;
    min-height:405px !important;
    display:grid !important;
    grid-template-rows:180px 1fr auto !important;
}

/* תמונה קבועה ולא גורמת לקובייה לגדול */
.mf-song-cover{
    height:180px !important;
    aspect-ratio:auto !important;
}

.mf-song-cover img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center !important;
}

/* אזור תוכן קבוע */
.mf-song-body{
    min-height:126px !important;
    display:flex !important;
    flex-direction:column !important;
}

.mf-song-body h2{
    min-height:42px !important;
    display:-webkit-box !important;
    -webkit-line-clamp:2 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
    white-space:normal !important;
}

.mf-song-body h2 a{
    white-space:normal !important;
}

.mf-song-body p{
    min-height:22px !important;
}

.mf-song-meta{
    margin-top:auto !important;
}

/* מספרים, לייקים ותאריך */
.mf-song-number,
.mf-song-meta span,
.mf-song-like,
.mf-song-like b{
    font-family:'Heebo', Arial, sans-serif !important;
    font-weight:900 !important;
    letter-spacing:0 !important;
    line-height:1 !important;
}

/* כפתורים תמיד למטה */
.mf-song-actions{
    align-self:end !important;
}

/* כפתור הפליי שלא יחתוך את התמונה בצורה מוזרה */
.mf-song-play-float{
    width:34px !important;
    height:34px !important;
}

/* במחשב — קצת יותר קומפקטי */
@media(min-width:981px){
    .mf-songs-grid{
        grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    }
}

/* טאבלט */
@media(max-width:980px){
    .mf-song-card{
        min-height:385px !important;
        grid-template-rows:170px 1fr auto !important;
    }

    .mf-song-cover{
        height:170px !important;
    }
}

/* מובייל */
@media(max-width:520px){
    .mf-song-card{
        min-height:auto !important;
        grid-template-rows:auto 1fr auto !important;
    }

    .mf-song-cover{
        height:auto !important;
        aspect-ratio:1/1 !important;
    }
}


/* =========================================================
   Music FM — Songs page action/icon fixes
========================================================= */

.mf-songs-top-list button,
.mf-song-meta span,
.mf-song-like,
.mf-song-play,
.mf-song-more,
.mf-song-menu-pop button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.mf-songs-top-list button{
    justify-content:flex-start;
}

.mf-songs-top-list button i,
.mf-song-meta i,
.mf-song-like i,
.mf-song-play i,
.mf-song-more i,
.mf-song-menu-pop button i{
    flex:0 0 auto;
    line-height:1;
}

.mf-song-play-float{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
}

.mf-song-play-float i{
    font-size:15px;
    line-height:1;
}

.mf-song-like span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.mf-song-like i{
    color:#e11d48;
    font-size:15px;
}

.mf-song-card.is-liked .mf-song-like,
.mf-song-like.is-liked{
    color:#e11d48;
}

.mf-song-card.is-playing{
    border-color:rgba(20,124,255,.55);
    box-shadow:0 18px 44px rgba(20,124,255,.12);
}

.mf-song-card.is-like-loading .mf-song-like,
.mf-song-like.is-loading{
    opacity:.65;
    pointer-events:none;
}

.mf-song-menu-pop{
    position:absolute;
    z-index:999999;
    min-width:210px;
    padding:8px;
    border:1px solid #dfe7f3;
    border-radius:6px;
    background:#fff;
    box-shadow:0 18px 48px rgba(15,35,70,.16);
}

.mf-song-menu-pop[hidden]{
    display:none !important;
}

.mf-song-menu-pop button{
    width:100%;
    min-height:38px;
    justify-content:flex-start;
    padding:0 12px;
    border:0;
    border-radius:4px;
    background:transparent;
    color:#111827;
    font-family:inherit;
    font-weight:900;
    cursor:pointer;
    text-align:right;
}

.mf-song-menu-pop button:hover{
    background:#eef6ff;
    color:#147cff;
}

.mf-songs-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;
}

.mf-songs-toast.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.mf-songs-toast.error{
    background:#b42318;
}

@media(max-width:720px){
    .mf-songs-toast{
        right:12px;
        bottom:92px;
        max-width:calc(100vw - 24px);
    }

    .mf-song-menu-pop{
        position:fixed !important;
        left:12px !important;
        right:12px !important;
        top:auto !important;
        bottom:92px !important;
        width:auto;
    }
}

/* =========================================================
   Music FM — Final clean action polish
========================================================= */

.mf-songs-top-list button span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.mf-song-cover-link::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,transparent 52%,rgba(3,17,38,.55));
    pointer-events:none;
}

.mf-song-play-float,
.mf-song-play,
.mf-song-like,
.mf-song-more,
.mf-song-menu-pop button{
    -webkit-tap-highlight-color:transparent;
}

.mf-song-like i.fa-solid{
    color:#e11d48;
}

.mf-song-like[aria-pressed="true"]{
    background:#ffeef1;
    color:#e11d48;
}

.mf-song-date{
    color:#667085 !important;
}

.mf-song-menu-pop.is-open{
    display:block;
}

.mf-songs-sentinel{
    width:100%;
    height:1px;
}


/* =========================================================
   Music FM — Font Awesome hard fix
   מונע ריבועים/ג׳יבריש בגלל דריסת font-family
========================================================= */

.mf-songs-page i.fa-solid,
.mf-songs-page i.fa-regular,
.mf-song-menu-pop i.fa-solid,
.mf-song-menu-pop i.fa-regular,
.mf-songs-disclaimer::before{
    font-family:"Font Awesome 6 Free" !important;
    font-style:normal !important;
    font-variant:normal !important;
    text-rendering:auto !important;
    line-height:1 !important;
    speak:never;
}

.mf-songs-page i.fa-solid,
.mf-song-menu-pop i.fa-solid,
.mf-songs-disclaimer::before{
    font-weight:900 !important;
}

.mf-songs-page i.fa-regular,
.mf-song-menu-pop i.fa-regular{
    font-weight:400 !important;
}

.mf-song-play-float i,
.mf-song-play i,
.mf-song-more i,
.mf-song-like i,
.mf-song-views i,
.mf-songs-top-list button i,
.mf-song-menu-pop button i{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    width:1em;
    height:1em;
    color:currentColor;
}

.mf-song-like i{
    color:#e11d48 !important;
}

.mf-song-play,
.mf-song-more,
.mf-song-like,
.mf-song-views,
.mf-songs-top-list button,
.mf-song-menu-pop button{
    gap:8px;
}

.mf-song-play span,
.mf-song-menu-pop button span,
.mf-songs-top-list button span{
    min-width:0;
}

