/* =========================================================
   Music FM — Universal Search 2026
========================================================= */

.search-2026-page{
    direction:rtl;
    padding-top:24px;
}

.search-2026-page a:focus-visible,
.search-2026-page button:focus-visible,
.search-2026-page input:focus-visible{
    outline:3px solid rgba(20,124,255,.35);
    outline-offset:3px;
}

/* Hero */
.search-2026-hero{
    display:grid;
    grid-template-columns:1fr 330px;
    gap:24px;
    align-items:stretch;
    margin-bottom:18px;
    overflow:hidden;
    border:1px solid rgba(15,35,70,.12);
    border-radius:4px;
    background:
        radial-gradient(circle at 12% 0%,rgba(89,199,255,.22),transparent 34%),
        linear-gradient(135deg,#071832 0%,#0b2e69 100%);
    color:#fff;
    box-shadow:0 14px 36px rgba(15,35,70,.13);
}

.search-2026-hero-content{
    padding:44px;
}

.search-2026-hero-content > span{
    display:inline-flex;
    padding:7px 11px;
    background:#147cff;
    color:#fff;
    font-size:12px;
    font-weight:950;
    line-height:1;
}

.search-2026-hero h1{
    margin:18px 0 12px;
    font-size:62px;
    line-height:.95;
    font-weight:950;
    letter-spacing:-2px;
}

.search-2026-hero p{
    max-width:760px;
    margin:0;
    color:rgba(255,255,255,.82);
    font-size:18px;
    line-height:1.65;
    font-weight:750;
}

.search-2026-form{
    display:grid;
    grid-template-columns:1fr 118px;
    gap:10px;
    margin-top:24px;
    max-width:760px;
}

.search-2026-form input{
    min-height:54px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:3px;
    background:rgba(255,255,255,.94);
    color:#111827;
    padding:0 18px;
    font:inherit;
    font-weight:850;
}

.search-2026-form button{
    min-height:54px;
    border:0;
    border-radius:3px;
    background:#147cff;
    color:#fff;
    font:inherit;
    font-weight:950;
    cursor:pointer;
}

.search-2026-summary{
    display:grid;
    place-items:center;
    align-content:center;
    text-align:center;
    padding:30px;
    background:rgba(3,8,18,.24);
    border-inline-start:1px solid rgba(255,255,255,.10);
}

.search-2026-summary strong{
    color:#59c7ff;
    font-size:58px;
    line-height:1;
    font-weight:950;
}

.search-2026-summary small{
    margin-top:8px;
    color:rgba(255,255,255,.78);
    font-weight:850;
}

/* Empty */
.search-2026-empty{
    overflow:hidden;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#fff;
    padding:30px;
    box-shadow:0 9px 24px rgba(15,35,70,.055);
}

.search-2026-empty > span{
    color:#147cff;
    font-size:12px;
    font-weight:950;
}

.search-2026-empty h2{
    margin:8px 0;
    color:#111827;
    font-size:32px;
    font-weight:950;
}

.search-2026-empty p{
    margin:0;
    color:#667085;
    line-height:1.65;
    font-weight:750;
}

.search-2026-suggestions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:18px;
}

.search-2026-suggestions a{
    min-height:38px;
    display:inline-flex;
    align-items:center;
    padding:0 13px;
    border:1px solid #dfe7f3;
    border-radius:3px;
    background:#f8fbff;
    color:#147cff;
    font-weight:950;
}

/* Tabs */
.search-2026-tabs{
    display:flex;
    gap:8px;
    overflow-x:auto;
    margin:16px 0 18px;
    padding-bottom:4px;
    scrollbar-width:none;
}

.search-2026-tabs::-webkit-scrollbar{
    display:none;
}

.search-2026-tabs a{
    flex:0 0 auto;
    min-height:42px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:0 14px;
    border:1px solid #dfe7f3;
    border-radius:3px;
    background:#fff;
    color:#111827;
    font-weight:950;
}

.search-2026-tabs b{
    min-width:25px;
    height:25px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:#eef6ff;
    color:#147cff;
    font-size:12px;
}

/* Sections */
.search-2026-section{
    margin:0 0 22px;
    overflow:hidden;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#fff;
    box-shadow:0 9px 24px rgba(15,35,70,.055);
}

.search-2026-head{
    min-height:64px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:15px 18px;
    border-bottom:1px solid #e4ebf5;
    background:linear-gradient(180deg,#fff 0%,#f6f9fd 100%);
}

.search-2026-head span{
    display:block;
    color:#147cff;
    font-size:11px;
    line-height:1;
    font-weight:950;
    letter-spacing:.5px;
}

.search-2026-head h2{
    margin:4px 0 0;
    color:#111827;
    font-size:22px;
    line-height:1;
    font-weight:950;
}

.search-2026-head a{
    color:#147cff;
    font-size:13px;
    font-weight:950;
}

/* Song rows */
.search-2026-song-list{
    display:grid;
}

.search-2026-song{
    display:grid;
    grid-template-columns:44px 58px 1fr 38px 54px;
    align-items:center;
    gap:13px;
    min-height:82px;
    padding:13px 18px;
    border-bottom:1px solid #e4ebf5;
    transition:background .18s ease;
}

.search-2026-song:hover{
    background:rgba(20,124,255,.045);
}

.search-2026-song > b{
    color:#147cff;
    font-size:18px;
    font-weight:950;
}

.search-2026-song img{
    width:58px;
    height:58px;
    object-fit:cover;
    border-radius:3px;
    background:#071832;
}

.search-2026-song strong{
    display:block;
    color:#111827;
    font-size:16px;
    line-height:1.25;
    font-weight:950;
}

.search-2026-song small{
    display:block;
    margin-top:5px;
    color:#667085;
    font-size:13px;
    font-weight:800;
}

.search-2026-song button{
    width:38px;
    height:38px;
    border:1px solid #cbd5e1;
    border-radius:3px;
    background:#fff;
    color:#147cff;
    font-weight:950;
    cursor:pointer;
}

.search-2026-song > a{
    min-height:36px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 12px;
    border-radius:3px;
    background:#147cff;
    color:#fff;
    font-size:13px;
    font-weight:950;
}

/* Cards */
.search-2026-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    padding:16px;
}

.search-2026-card{
    display:block;
    overflow:hidden;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#fff;
    color:#111827;
    transition:transform .18s ease, box-shadow .18s ease;
}

.search-2026-card:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(15,35,70,.08);
}

.search-2026-card img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:0;
    background:#071832;
}

.search-2026-card strong{
    display:block;
    padding:12px 13px 3px;
    color:#111827;
    font-size:17px;
    line-height:1.25;
    font-weight:950;
}

.search-2026-card small{
    display:block;
    padding:0 13px 13px;
    color:#667085;
    font-weight:800;
}

/* News */
.search-2026-news-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    padding:16px;
}

.search-2026-news-grid a{
    overflow:hidden;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#fff;
    color:#111827;
    transition:transform .18s ease, box-shadow .18s ease;
}

.search-2026-news-grid a:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(15,35,70,.08);
}

.search-2026-news-grid img{
    width:100%;
    height:170px;
    object-fit:cover;
    border-radius:0;
}

.search-2026-news-grid div{
    padding:14px;
}

.search-2026-news-grid small{
    display:block;
    margin-bottom:8px;
    color:#667085;
    font-weight:800;
}

.search-2026-news-grid strong{
    display:block;
    color:#111827;
    font-size:18px;
    line-height:1.25;
    font-weight:950;
}

.search-2026-news-grid p{
    margin:9px 0 0;
    color:#475467;
    line-height:1.5;
    font-weight:750;
}

.search-2026-none{
    padding:20px;
    color:#667085;
    font-weight:850;
}

/* Mobile */
@media(max-width:1100px){
    .search-2026-hero{
        grid-template-columns:1fr;
    }

    .search-2026-summary{
        grid-template-columns:1fr;
        min-height:120px;
        border-inline-start:0;
        border-top:1px solid rgba(255,255,255,.10);
    }

    .search-2026-grid,
    .search-2026-news-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:720px){
    .search-2026-page{
        padding-top:16px;
    }

    .search-2026-hero{
        margin-inline:-9px;
        border-radius:0 0 4px 4px;
    }

    .search-2026-hero-content{
        padding:28px 22px;
    }

    .search-2026-hero h1{
        font-size:40px;
        letter-spacing:-1px;
    }

    .search-2026-hero p{
        font-size:16px;
    }

    .search-2026-form{
        grid-template-columns:1fr;
    }

    .search-2026-form input,
    .search-2026-form button{
        min-height:50px;
    }

    .search-2026-grid,
    .search-2026-news-grid{
        grid-template-columns:1fr;
        gap:12px;
        padding:12px;
    }

    .search-2026-song{
        grid-template-columns:34px 52px 1fr 34px;
        gap:10px;
        padding:12px 13px;
    }

    .search-2026-song img{
        width:52px;
        height:52px;
    }

    .search-2026-song > a{
        grid-column:1 / -1;
        width:100%;
    }

    .search-2026-song button{
        width:34px;
        height:34px;
    }
}

@media(prefers-reduced-motion: reduce){
    .search-2026-page *,
    .search-2026-page *::before,
    .search-2026-page *::after{
        transition:none !important;
        animation:none !important;
        transform:none !important;
    }
}

/* =========================================================
   Live Search — integrated results panel
========================================================= */
.search-2026-input-wrap{
    position:relative;
    min-width:0;
}

.search-2026-input-wrap input{
    width:100%;
    padding-inline-end:76px;
}

.search-2026-clear{
    position:absolute;
    inset-inline-end:12px;
    top:50%;
    width:30px;
    height:30px;
    border:0 !important;
    border-radius:50% !important;
    transform:translateY(-50%);
    background:#eef4fb !important;
    color:#516073 !important;
    font-size:22px;
    line-height:1;
    cursor:pointer;
}

.search-2026-spinner{
    position:absolute;
    inset-inline-end:50px;
    top:50%;
    width:18px;
    height:18px;
    margin-top:-9px;
    border:2px solid rgba(20,124,255,.18);
    border-top-color:#147cff;
    border-radius:50%;
    animation:searchLiveSpin .7s linear infinite;
}

@keyframes searchLiveSpin{
    to{transform:rotate(360deg)}
}

.search-live-panel{
    position:fixed;
    z-index:999999;
    width:760px;
    max-width:calc(100vw - 24px);
    max-height:min(60vh,560px);
    margin:0;
    overflow:auto;
    border:1px solid #dfe7f3;
    border-top:3px solid #147cff;
    border-radius:4px;
    background:#fff;
    color:#111827;
    box-shadow:0 18px 48px rgba(15,35,70,.20);
}

.search-live-panel[hidden]{
    display:none !important;
}

.search-live-content{
    min-height:90px;
}

.search-live-state{
    padding:25px 20px;
    color:#667085;
    text-align:center;
    font-weight:850;
}

.search-live-state strong{
    display:block;
    margin-bottom:5px;
    color:#111827;
    font-size:17px;
}

.search-live-group{
    border-bottom:1px solid #e7edf5;
}

.search-live-group:last-of-type{
    border-bottom:0;
}

.search-live-group-head{
    min-height:45px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 16px;
    background:#f7faff;
}

.search-live-group-head strong{
    color:#111827;
    font-size:14px;
    font-weight:950;
}

.search-live-group-head span{
    min-width:26px;
    height:26px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:#e8f2ff;
    color:#147cff;
    font-size:12px;
    font-weight:950;
}

.search-live-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.search-live-item{
    display:grid;
    grid-template-columns:46px minmax(0,1fr) auto;
    align-items:center;
    gap:11px;
    min-height:66px;
    padding:9px 15px;
    color:#111827;
    border-top:1px solid #edf1f6;
    border-inline-end:1px solid #edf1f6;
    text-decoration:none;
    transition:background-color .16s ease;
}

.search-live-item:nth-child(2n){
    border-inline-end:0;
}

.search-live-item:hover,
.search-live-item.is-active{
    background:#eef6ff;
}

.search-live-item img{
    width:46px;
    height:46px;
    object-fit:cover;
    border-radius:4px;
    background:#071832;
}

.search-live-copy{
    min-width:0;
}

.search-live-copy strong,
.search-live-copy small{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.search-live-copy strong{
    color:#111827;
    font-size:14px;
    font-weight:950;
}

.search-live-copy small{
    margin-top:4px;
    color:#667085;
    font-size:12px;
    font-weight:800;
}

.search-live-type{
    min-width:54px;
    text-align:left;
    color:#147cff;
    font-size:11px;
    font-weight:950;
}

.search-live-highlight{
    padding:0 1px;
    border-radius:2px;
    background:#dcecff;
    color:#0d5fd7;
}

.search-live-footer{
    position:sticky;
    bottom:0;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:49px;
    padding:8px 14px;
    border-top:1px solid #e4ebf5;
    background:rgba(255,255,255,.97);
    backdrop-filter:blur(10px);
}

.search-live-footer a{
    color:#147cff;
    font-weight:950;
}

@media(max-width:720px){
    .search-live-panel{
        max-width:calc(100vw - 16px);
        max-height:55vh;
        border-radius:4px;
    }

    .search-live-list{
        grid-template-columns:1fr;
    }

    .search-live-item,
    .search-live-item:nth-child(2n){
        grid-template-columns:44px minmax(0,1fr);
        min-height:62px;
        padding:8px 13px;
        border-inline-end:0;
    }

    .search-live-item img{
        width:44px;
        height:44px;
    }

    .search-live-type{
        display:none;
    }
}


/* Live search v2 — recent searches and song actions */
.search-live-item-wrap{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr) 42px;
    align-items:center;
    border-top:1px solid #edf1f6;
}

.search-live-item-wrap .search-live-item{
    border-top:0;
}

.search-live-play{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    margin-inline-end:8px;
    border:1px solid rgba(20,124,255,.20);
    border-radius:50%;
    background:#eef6ff;
    color:#147cff;
    cursor:pointer;
    transition:transform .16s ease, background-color .16s ease;
}

.search-live-play:hover{
    transform:scale(1.07);
    background:#147cff;
    color:#fff;
}

.search-live-recent header{
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 15px;
    border-bottom:1px solid #e7edf5;
    background:#f7faff;
}

.search-live-recent header strong{
    color:#111827;
    font-size:14px;
    font-weight:950;
}

.search-live-recent header button{
    border:0;
    background:transparent;
    color:#147cff;
    font:inherit;
    font-size:12px;
    font-weight:950;
    cursor:pointer;
}

.search-live-recent-list{
    display:grid;
}

.search-live-recent-row{
    min-height:48px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 36px;
    align-items:center;
    border-bottom:1px solid #edf1f6;
}

.search-live-recent-query{
    min-width:0;
    min-height:48px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 15px;
    border:0;
    background:#fff;
    color:#111827;
    font:inherit;
    font-weight:850;
    text-align:start;
    cursor:pointer;
}

.search-live-recent-query i{
    color:#8a96a8;
}

.search-live-recent-remove{
    width:30px;
    height:30px;
    border:0;
    border-radius:50%;
    background:transparent;
    color:#8a96a8;
    font-size:20px;
    cursor:pointer;
}

.search-live-recent-query:hover,
.search-live-recent-remove:hover{
    background:#eef6ff;
    color:#147cff;
}

@media(max-width:720px){
    .search-live-item-wrap{
        grid-template-columns:minmax(0,1fr) 40px;
    }

    .search-live-play{
        width:32px;
        height:32px;
        margin-inline-end:5px;
    }
}


/* Anchored live-search panel: does not resize the hero */
.search-2026-hero,
.search-2026-hero-content{
    position:relative;
}

body.search-live-open{
    overflow-x:hidden;
}

.search-live-item img.is-fallback{
    object-fit:contain;
    padding:7px;
    background:#071832;
}


/* =========================================================
   Search polish — compact, calm, predictable
========================================================= */
.search-2026-no-results{
    padding:42px 24px;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#fff;
    text-align:center;
    box-shadow:0 9px 24px rgba(15,35,70,.055);
}
.search-2026-no-results > span{
    display:inline-block;
    margin-bottom:8px;
    color:#147cff;
    font-size:11px;
    font-weight:950;
    letter-spacing:.45px;
    text-transform:uppercase;
}
.search-2026-no-results h2{
    margin:0;
    color:#111827;
    font-size:28px;
    line-height:1.25;
    font-weight:950;
}
.search-2026-no-results p{
    margin:9px 0 18px;
    color:#667085;
    font-weight:750;
}
.search-2026-no-results button{
    min-height:42px;
    padding:0 18px;
    border:0;
    border-radius:3px;
    background:#147cff;
    color:#fff;
    font:inherit;
    font-weight:950;
    cursor:pointer;
}
.search-2026-tabs a{
    scroll-margin-top:96px;
}
.search-2026-section{
    scroll-margin-top:96px;
}
.search-live-panel{
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
}
.search-live-item-wrap:focus-within{
    background:#eef6ff;
}
.search-live-play:focus-visible,
.search-live-recent button:focus-visible{
    outline:3px solid rgba(20,124,255,.28);
    outline-offset:2px;
}
.search-live-state{
    line-height:1.55;
}
@media(max-width:720px){
    .search-2026-summary{
        min-height:auto;
        grid-template-columns:auto auto;
        justify-content:center;
        gap:8px;
        padding:14px 18px;
    }
    .search-2026-summary strong{
        font-size:28px;
    }
    .search-2026-summary small{
        margin-top:0;
        font-size:12px;
    }
    .search-2026-no-results{
        padding:34px 18px;
    }
    .search-2026-no-results h2{
        font-size:23px;
    }
    .search-live-panel{
        max-height:calc(100dvh - 112px) !important;
    }
    .search-live-footer{
        padding-bottom:max(8px, env(safe-area-inset-bottom));
    }
}
