/* =========================================================
   Music FM — History Page Final Corrected
========================================================= */

.mf-history-page{
    direction:rtl;
    padding-top:24px;
    padding-bottom:86px;
}

.mf-history-page *{
    box-sizing:border-box;
}

.mf-history-hero{
    position:relative;
    overflow:hidden;
    min-height:320px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 340px;
    align-items:center;
    gap:28px;
    padding:38px;
    border:1px solid rgba(20,124,255,.18);
    border-radius:4px;
    color:#fff;
    background:
        radial-gradient(circle at 14% 18%,rgba(89,199,255,.20),transparent 34%),
        radial-gradient(circle at 88% 16%,rgba(20,124,255,.20),transparent 36%),
        linear-gradient(135deg,#071832 0%,#08295b 52%,#031126 100%);
    box-shadow:0 18px 46px rgba(15,35,70,.14);
}

.mf-history-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,.25),rgba(3,17,38,.02),rgba(3,17,38,.34));
    pointer-events:none;
}

.mf-history-hero-content,
.mf-history-hero-art{
    position:relative;
    z-index:2;
}

.mf-history-hero-content > span,
.mf-history-final span,
.mf-history-legacy span,
.mf-history-card span{
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:0 14px;
    border-radius:4px;
    background:linear-gradient(135deg,#147cff,#2f8fff);
    color:#fff;
    font-size:13px;
    font-weight:950;
    box-shadow:0 12px 24px rgba(20,124,255,.28);
}

.mf-history-hero h1{
    margin:16px 0 12px;
    color:#fff;
    font-size:58px;
    line-height:1;
    font-weight:950;
    letter-spacing:-1.6px;
}

.mf-history-hero p{
    max-width:760px;
    margin:0;
    color:rgba(255,255,255,.78);
    font-size:17px;
    line-height:1.8;
    font-weight:760;
}

.mf-history-hero-art{
    min-height:230px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.12);
    border-radius:4px;
    background:
        radial-gradient(circle at 50% 48%,rgba(89,199,255,.18),transparent 58%),
        rgba(255,255,255,.08);
    box-shadow:0 22px 48px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.08);
}

.mf-history-evolution{
    display:flex;
    align-items:center;
    gap:13px;
}

.mf-history-evolution i{
    width:66px;
    height:66px;
    display:grid;
    place-items:center;
    border-radius:4px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.13);
    font-size:30px;
    font-style:normal;
    box-shadow:0 14px 30px rgba(0,0,0,.18);
}

.mf-history-evolution b{
    width:34px;
    height:3px;
    border-radius:999px;
    background:linear-gradient(90deg,#59c7ff,#147cff);
    box-shadow:0 0 14px rgba(89,199,255,.45);
}

.mf-history-opening,
.mf-history-side-card,
.mf-history-card,
.mf-history-legacy,
.mf-history-final{
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#fff;
    box-shadow:0 10px 26px rgba(15,35,70,.045);
}

.mf-history-opening{
    margin:18px 0;
    padding:26px;
    background:
        radial-gradient(circle at 10% 30%,rgba(89,199,255,.13),transparent 32%),
        #fff;
}

.mf-history-opening strong{
    display:block;
    color:#111827;
    font-size:30px;
    line-height:1.25;
    font-weight:950;
}

.mf-history-opening p{
    max-width:900px;
    margin:10px 0 0;
    color:#667085;
    font-size:16px;
    line-height:1.85;
    font-weight:800;
}

.mf-history-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    gap:18px;
    align-items:start;
}

.mf-history-main{
    position:relative;
    display:grid;
    gap:18px;
}

.mf-history-main::before{
    content:"";
    position:absolute;
    top:10px;
    bottom:10px;
    right:43px;
    width:3px;
    border-radius:999px;
    background:linear-gradient(180deg,#147cff,#59c7ff);
    opacity:.38;
}

.mf-history-step{
    position:relative;
    display:grid;
    grid-template-columns:88px minmax(0,1fr);
    gap:18px;
    align-items:start;
}

.mf-history-year{
    position:sticky;
    top:100px;
    z-index:2;
    width:86px;
    min-height:46px;
    display:grid;
    place-items:center;
    border-radius:4px;
    background:#f3f8ff;
    color:#147cff;
    border:1px solid #d8e8ff;
    font-size:18px;
    font-weight:950;
    box-shadow:0 8px 18px rgba(15,35,70,.055);
}

.mf-history-step.is-current .mf-history-year{
    background:linear-gradient(135deg,#147cff,#2f8fff);
    color:#fff;
    box-shadow:0 12px 24px rgba(20,124,255,.24);
}

.mf-history-card{
    padding:22px;
}

.mf-history-card h2,
.mf-history-legacy h2,
.mf-history-side-card h2,
.mf-history-final h2{
    margin:12px 0 10px;
    color:#111827;
    font-size:28px;
    line-height:1.18;
    font-weight:950;
}

.mf-history-card p,
.mf-history-legacy p,
.mf-history-side-card p,
.mf-history-final p{
    margin:0 0 10px;
    color:#667085;
    font-size:15px;
    line-height:1.85;
    font-weight:800;
}

.mf-history-active-note{
    margin-top:18px !important;
    color:#147cff !important;
    font-weight:950 !important;
}

.mf-history-list{
    list-style:none;
    padding:0;
    margin:16px 0;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
}

.mf-history-list li{
    min-height:36px;
    display:flex;
    align-items:center;
    gap:9px;
    padding:0 10px;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#f8fbff;
    color:#111827;
    font-size:13px;
    font-weight:900;
}

.mf-history-list li::before{
    content:"";
    width:6px;
    height:6px;
    border-radius:999px;
    background:#147cff;
    box-shadow:0 0 0 4px rgba(20,124,255,.08);
}

.mf-history-shot,
.mf-history-gallery figure{
    margin:18px 0 0;
    padding:12px;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#f8fbff;
}

.mf-history-shot img,
.mf-history-gallery img{
    width:100%;
    display:block;
    border-radius:4px;
    object-fit:cover;
    box-shadow:0 14px 34px rgba(15,35,70,.12);
}

.mf-history-shot figcaption,
.mf-history-gallery figcaption{
    margin-top:10px;
    color:#667085;
    font-size:13px;
    font-weight:900;
}

.mf-history-gallery{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:14px;
    margin-top:18px;
    align-items:start;
}

.mf-history-gallery figure{
    margin:0;
}

.mf-history-gallery.two figure:last-child img{
    aspect-ratio:9/16;
    object-fit:cover;
    object-position:top center;
}

.mf-history-legacy{
    position:relative;
    overflow:hidden;
    padding:30px;
    color:#fff;
    background:
        radial-gradient(circle at 12% 20%,rgba(89,199,255,.18),transparent 34%),
        linear-gradient(135deg,#071832,#08295b 54%,#031126);
}

.mf-history-legacy::before{
    content:"MUSIC FM";
    position:absolute;
    left:24px;
    bottom:-10px;
    color:rgba(255,255,255,.045);
    font-size:88px;
    line-height:1;
    font-weight:950;
    letter-spacing:-4px;
}

.mf-history-legacy > div{
    position:relative;
    z-index:2;
}

.mf-history-legacy h2{
    color:#fff;
    font-size:34px;
}

.mf-history-legacy p{
    color:rgba(255,255,255,.78);
    margin-top:12px;
}

.mf-history-legacy strong{
    display:block;
    margin-top:18px;
    color:#59c7ff;
    font-size:34px;
    font-weight:950;
    letter-spacing:-1px;
}

.mf-history-side{
    display:grid;
    gap:18px;
}

.mf-history-side-card{
    padding:22px;
}

.mf-history-owner-box{
    display:flex;
    align-items:center;
    gap:13px;
    margin:18px 0;
    padding:14px;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#f8fbff;
}

.mf-history-avatar{
    width:54px;
    height:54px;
    display:grid;
    place-items:center;
    border-radius:4px;
    background:linear-gradient(135deg,#147cff,#59c7ff);
    color:#fff;
    font-weight:950;
    box-shadow:0 12px 22px rgba(20,124,255,.20);
}

.mf-history-owner-box strong{
    display:block;
    color:#111827;
    font-size:18px;
    font-weight:950;
}

.mf-history-owner-box span{
    color:#667085;
    font-size:13px;
    line-height:1.6;
    font-weight:800;
}

.mf-history-checks{
    list-style:none;
    padding:0;
    margin:16px 0 0;
    display:grid;
    gap:10px;
}

.mf-history-checks li{
    min-height:36px;
    display:flex;
    align-items:center;
    gap:10px;
    color:#111827;
    font-weight:900;
}

.mf-history-checks li::before{
    content:"";
    width:7px;
    height:7px;
    border-radius:999px;
    background:#147cff;
    box-shadow:0 0 0 5px rgba(20,124,255,.08);
}

.mf-history-roadmap{
    display:grid;
    gap:8px;
    margin-top:16px;
}

.mf-history-roadmap span{
    min-height:38px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 12px;
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#f8fbff;
    color:#667085;
    font-weight:900;
}

.mf-history-roadmap span::after{
    content:"◌";
    color:#98a2b3;
}

.mf-history-roadmap span.done{
    color:#111827;
}

.mf-history-roadmap span.done::after{
    content:"✓";
    color:#147cff;
    font-weight:950;
}

.mf-history-final{
    margin-top:18px;
    padding:30px;
    text-align:center;
    background:
        radial-gradient(circle at 50% 0%,rgba(89,199,255,.16),transparent 36%),
        #fff;
}

.mf-history-final h2{
    font-size:36px;
}

.mf-history-final p{
    max-width:760px;
    margin:10px auto 0;
}

@media(max-width:980px){
    .mf-history-hero,
    .mf-history-layout{
        grid-template-columns:1fr;
    }

    .mf-history-side{
        grid-template-columns:1fr 1fr;
    }

    .mf-history-side-card:first-child{
        grid-column:1/-1;
    }
}

@media(max-width:620px){
    .mf-history-page{
        padding-top:14px;
    }

    .mf-history-hero{
        margin-inline:-9px;
        padding:28px 22px;
        border-radius:0 0 4px 4px;
    }

    .mf-history-hero h1{
        font-size:42px;
    }

    .mf-history-evolution{
        gap:8px;
    }

    .mf-history-evolution i{
        width:54px;
        height:54px;
        font-size:24px;
    }

    .mf-history-evolution b{
        width:22px;
    }

    .mf-history-opening strong{
        font-size:24px;
    }

    .mf-history-main::before{
        right:31px;
    }

    .mf-history-step{
        grid-template-columns:64px minmax(0,1fr);
        gap:12px;
    }

    .mf-history-year{
        width:62px;
        min-height:42px;
        font-size:14px;
    }

    .mf-history-card,
    .mf-history-legacy,
    .mf-history-side-card,
    .mf-history-final{
        padding:18px;
    }

    .mf-history-card h2,
    .mf-history-legacy h2,
    .mf-history-final h2{
        font-size:24px;
    }

    .mf-history-list,
    .mf-history-gallery{
        grid-template-columns:1fr;
    }

    .mf-history-side{
        grid-template-columns:1fr;
    }
}
