/*
 * AlsebailTV Recorded Live
 * Public archive + single episode
 */

:root{
    --rtv-bg:#07191f;
    --rtv-bg2:#0a252d;
    --rtv-card:#ffffff;
    --rtv-text:#0a1d22;
    --rtv-muted:#64747a;
    --rtv-line:#dfe7e8;
    --rtv-gold:#c49a49;
    --rtv-gold-light:#e5c77f;
    --rtv-green:#123a3c;
    --rtv-white:#ffffff;
    --rtv-page:#f4f6f5;
    --rtv-radius:24px;
    --rtv-shadow:0 18px 50px rgba(4,26,32,.10);
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body.alsebailtv-recorded-page,
body.alsebailtv-recorded-single{
    margin:0;
    background:var(--rtv-page);
    color:var(--rtv-text);
    font-family:
        Tahoma,
        Arial,
        "Segoe UI",
        sans-serif;
    direction:rtl;
}

.rtv-wrap{
    width:min(1180px,calc(100% - 40px));
    margin-inline:auto;
}


/* HEADER */

.rtv-header{
    background:#fff;
    position:relative;
    z-index:20;
    border-bottom:1px solid rgba(0,0,0,.06);
}

.rtv-topline{
    height:4px;
    background:
        linear-gradient(
            90deg,
            #8d682c,
            var(--rtv-gold-light),
            #9b7433
        );
}

.rtv-header-inner{
    min-height:88px;
    display:flex;
    align-items:center;
    gap:32px;
}

.rtv-brand{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:var(--rtv-text);
    margin-left:auto;
}

.rtv-brand-mark{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--rtv-bg);
    color:var(--rtv-gold-light);
    font-size:18px;
}

.rtv-brand-copy{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.rtv-brand-copy strong{
    font-size:17px;
}

.rtv-brand-copy small{
    color:#748085;
    font-size:12px;
}

.rtv-nav{
    display:flex;
    align-items:center;
    gap:7px;
}

.rtv-nav a{
    padding:10px 13px;
    border-radius:10px;
    color:#34484e;
    text-decoration:none;
    font-size:14px;
    transition:.2s ease;
}

.rtv-nav a:hover,
.rtv-nav a.is-active{
    background:#eef3f2;
    color:#082b32;
}

.rtv-nav a.is-active{
    font-weight:700;
}

.rtv-official{
    text-decoration:none;
    color:#fff;
    background:var(--rtv-bg);
    padding:12px 17px;
    border-radius:12px;
    font-size:13px;
}


/* HERO */

.rtv-hero{
    position:relative;
    overflow:hidden;
    color:#fff;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(196,154,73,.22),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #06171d 0%,
            #092832 60%,
            #0c3034 100%
        );
}

.rtv-hero::after{
    content:"";
    position:absolute;
    inset:0;
    opacity:.13;
    background-image:
        linear-gradient(
            rgba(255,255,255,.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.08) 1px,
            transparent 1px
        );
    background-size:42px 42px;
    pointer-events:none;
}

.rtv-hero-inner{
    min-height:430px;
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:70px;
    padding-block:70px;
}

.rtv-hero-copy{
    max-width:720px;
}

.rtv-eyebrow{
    display:inline-flex;
    align-items:center;
    color:var(--rtv-gold-light);
    font-size:13px;
    font-weight:700;
    margin-bottom:18px;
}

.rtv-hero h1{
    margin:0 0 18px;
    font-size:clamp(44px,7vw,76px);
    line-height:1;
    letter-spacing:-2px;
}

.rtv-hero p{
    margin:0;
    max-width:680px;
    color:#d6e0e1;
    font-size:18px;
    line-height:2;
}

.rtv-hero-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:32px;
}

.rtv-primary,
.rtv-secondary{
    min-height:48px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:0 21px;
    border-radius:12px;
    text-decoration:none;
    font-size:14px;
    font-weight:700;
}

.rtv-primary{
    color:#13262a;
    background:
        linear-gradient(
            135deg,
            #ecd18c,
            #bc8d38
        );
}

.rtv-secondary{
    color:#fff;
    border:1px solid rgba(255,255,255,.22);
    background:rgba(255,255,255,.06);
}

.rtv-hero-stat{
    width:220px;
    min-width:220px;
    min-height:220px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.13);
    border-radius:50%;
    background:rgba(255,255,255,.04);
    box-shadow:
        inset 0 0 60px rgba(255,255,255,.03);
}

.rtv-hero-stat span{
    color:#b9c8ca;
    font-size:13px;
}

.rtv-hero-stat strong{
    color:var(--rtv-gold-light);
    font-size:66px;
    line-height:1.15;
}

.rtv-hero-stat small{
    color:#d9e0e1;
}


/* LIBRARY */

.rtv-library{
    padding:70px 0 90px;
}

.rtv-section-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;
    margin-bottom:28px;
}

.rtv-section-kicker{
    color:#a27731;
    font-size:12px;
    font-weight:700;
}

.rtv-section-head h2{
    margin:8px 0 0;
    font-size:30px;
}

.rtv-count{
    background:#fff;
    border:1px solid var(--rtv-line);
    border-radius:30px;
    padding:9px 16px;
    color:#65767b;
    font-size:13px;
}

.rtv-grid{
    display:grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap:24px;
}

.rtv-card{
    overflow:hidden;
    background:#fff;
    border:1px solid #e5ebeb;
    border-radius:var(--rtv-radius);
    box-shadow:var(--rtv-shadow);
    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.rtv-card:hover{
    transform:translateY(-5px);
    box-shadow:0 24px 60px rgba(4,26,32,.15);
}

.rtv-card-media{
    display:block;
    position:relative;
    aspect-ratio:16/9;
    overflow:hidden;
    background:#06191e;
}

.rtv-card-media img,
.rtv-card-media video{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:transform .35s ease;
}

.rtv-card:hover .rtv-card-media img,
.rtv-card:hover .rtv-card-media video{
    transform:scale(1.035);
}

.rtv-placeholder{
    width:100%;
    height:100%;
    display:grid;
    place-items:center;
    background:
        radial-gradient(
            circle at center,
            #17424a,
            #061a20
        );
}

.rtv-placeholder span{
    font-size:50px;
    color:var(--rtv-gold-light);
}

.rtv-card-media::after{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            to top,
            rgba(2,14,18,.5),
            transparent 55%
        );
}

.rtv-play{
    position:absolute;
    z-index:3;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    border-radius:50%;
    color:#102329;
    background:rgba(255,255,255,.94);
    box-shadow:0 12px 35px rgba(0,0,0,.22);
    padding-left:3px;
}

.rtv-card-badge{
    position:absolute;
    z-index:3;
    right:15px;
    bottom:15px;
    padding:7px 11px;
    border-radius:30px;
    background:rgba(5,25,30,.84);
    color:#fff;
    backdrop-filter:blur(10px);
    font-size:11px;
}

.rtv-card-body{
    padding:22px;
}

.rtv-card-date{
    color:#8b989c;
    font-size:12px;
    margin-bottom:9px;
}

.rtv-card h3{
    margin:0;
    font-size:19px;
    line-height:1.65;
}

.rtv-card h3 a{
    color:#0b262d;
    text-decoration:none;
}

.rtv-card p{
    color:#68797e;
    font-size:13px;
    line-height:1.9;
    min-height:50px;
    margin:11px 0 18px;
}

.rtv-watch{
    display:inline-flex;
    gap:7px;
    align-items:center;
    color:#956c28;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
}

.rtv-empty{
    text-align:center;
    padding:70px 25px;
    border:1px dashed #ccd8d9;
    border-radius:24px;
    background:#fff;
}

.rtv-empty-icon{
    width:70px;
    height:70px;
    display:grid;
    place-items:center;
    margin:0 auto 20px;
    border-radius:50%;
    background:#eef4f3;
    color:#0b3037;
    font-size:24px;
}

.rtv-empty h3{
    font-size:23px;
    margin:0 0 10px;
}

.rtv-empty p{
    color:#6c7c81;
}

.rtv-empty a{
    display:inline-block;
    margin-top:15px;
    color:#9a702b;
}


/* BOTTOM CTA */

.rtv-back{
    padding:0 0 75px;
}

.rtv-back-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    padding:38px 42px;
    border-radius:24px;
    color:#fff;
    background:
        linear-gradient(
            135deg,
            #09252c,
            #0c3639
        );
}

.rtv-back span{
    color:var(--rtv-gold-light);
    font-size:12px;
}

.rtv-back h2{
    max-width:650px;
    margin:8px 0 0;
    font-size:24px;
    line-height:1.6;
}

.rtv-back a{
    flex:none;
    color:#17272b;
    background:var(--rtv-gold-light);
    padding:14px 20px;
    border-radius:12px;
    text-decoration:none;
    font-weight:700;
}


/* SINGLE */

.rtv-single-main{
    padding:38px 0 80px;
}

.rtv-breadcrumb{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;
    margin-bottom:28px;
    color:#7c8b8f;
    font-size:12px;
}

.rtv-breadcrumb a{
    color:#566a70;
    text-decoration:none;
}

.rtv-single{
    max-width:1050px;
    margin-inline:auto;
}

.rtv-single-heading{
    margin-bottom:28px;
}

.rtv-single-heading h1{
    max-width:900px;
    margin:4px 0 13px;
    color:#09252c;
    font-size:clamp(30px,5vw,48px);
    line-height:1.4;
}

.rtv-single-meta{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
}

.rtv-single-meta span{
    padding:7px 11px;
    border:1px solid #dde5e5;
    border-radius:30px;
    background:#fff;
    color:#718085;
    font-size:12px;
}

.rtv-player{
    overflow:hidden;
    width:100%;
    border-radius:24px;
    background:#000;
    box-shadow:
        0 25px 65px rgba(2,20,25,.2);
}

.rtv-player video{
    display:block;
    width:100%;
    max-height:72vh;
    aspect-ratio:16/9;
    background:#000;
}

.rtv-player-error{
    padding:80px 20px;
    text-align:center;
    color:#fff;
}

.rtv-description{
    margin-top:28px;
    padding:28px 30px;
    border:1px solid #e0e7e7;
    border-radius:20px;
    background:#fff;
}

.rtv-description p{
    margin:9px 0 0;
    color:#51666c;
    line-height:2;
    font-size:15px;
}

.rtv-single-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:24px;
}

.rtv-single-actions .rtv-secondary{
    color:#163139;
    background:#fff;
    border-color:#d8e1e2;
}


/* FOOTER */

.rtv-footer{
    padding:27px 0;
    background:#06191f;
    color:#aebdc0;
    text-align:center;
    font-size:13px;
}

.rtv-footer strong{
    color:#fff;
}


/* RESPONSIVE */

@media (max-width:980px){

    .rtv-header-inner{
        flex-wrap:wrap;
        padding-block:16px;
        gap:12px;
    }

    .rtv-brand{
        width:calc(100% - 145px);
    }

    .rtv-nav{
        order:3;
        width:100%;
        overflow:auto;
        padding-top:5px;
    }

    .rtv-nav a{
        white-space:nowrap;
    }

    .rtv-hero-inner{
        min-height:auto;
        padding-block:60px;
    }

    .rtv-hero-stat{
        width:180px;
        min-width:180px;
        min-height:180px;
    }

    .rtv-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}


@media (max-width:700px){

    .rtv-wrap{
        width:min(100% - 26px,1180px);
    }

    .rtv-header-inner{
        min-height:auto;
    }

    .rtv-brand{
        width:100%;
        margin-left:0;
    }

    .rtv-official{
        display:none;
    }

    .rtv-nav{
        justify-content:flex-start;
    }

    .rtv-hero-inner{
        display:block;
        padding-block:48px;
    }

    .rtv-hero h1{
        font-size:46px;
        letter-spacing:-1px;
    }

    .rtv-hero p{
        font-size:15px;
    }

    .rtv-hero-stat{
        width:150px;
        min-width:150px;
        min-height:150px;
        margin-top:38px;
    }

    .rtv-hero-stat strong{
        font-size:48px;
    }

    .rtv-library{
        padding:50px 0 65px;
    }

    .rtv-section-head{
        align-items:flex-start;
    }

    .rtv-section-head h2{
        font-size:25px;
    }

    .rtv-grid{
        grid-template-columns:1fr;
    }

    .rtv-back-inner{
        display:block;
        padding:30px 24px;
    }

    .rtv-back a{
        display:inline-flex;
        margin-top:22px;
    }

    .rtv-single-main{
        padding-top:24px;
    }

    .rtv-single-heading h1{
        font-size:31px;
    }

    .rtv-player{
        border-radius:15px;
    }

    .rtv-description{
        padding:22px;
    }
}

/* =========================================================
 * ALSEBAILTV_HOME_RECORDED_STYLES_V1
 * ========================================================= */

.tv-home-recorded{
    direction:rtl;
    padding:76px 20px 84px;
    background:
        radial-gradient(
            circle at 90% 0,
            rgba(196,154,73,.10),
            transparent 25%
        ),
        #f5f7f6;
    color:#0b252c;
}

.tv-home-recorded-inner{
    width:min(1180px,100%);
    margin-inline:auto;
}

.tv-home-recorded-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:30px;
    margin-bottom:30px;
}

.tv-home-recorded-kicker{
    display:inline-block;
    color:#a2762f;
    font-size:12px;
    font-weight:700;
    margin-bottom:7px;
}

.tv-home-recorded-heading h2{
    margin:0;
    color:#08252c;
    font-size:34px;
    line-height:1.35;
}

.tv-home-recorded-heading p{
    max-width:650px;
    margin:9px 0 0;
    color:#697a7f;
    font-size:14px;
    line-height:1.9;
}

.tv-home-recorded-all{
    flex:none;
    display:inline-flex;
    align-items:center;
    gap:9px;
    min-height:45px;
    padding:0 17px;
    border:1px solid #d8e1e1;
    border-radius:12px;
    background:#fff;
    color:#123038;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    box-shadow:0 8px 24px rgba(4,27,33,.05);
}

.tv-home-recorded-grid{
    display:grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap:23px;
}

.tv-home-recorded-card{
    overflow:hidden;
    border:1px solid #e2e9e9;
    border-radius:22px;
    background:#fff;
    box-shadow:0 17px 45px rgba(5,30,36,.09);
    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.tv-home-recorded-card:hover{
    transform:translateY(-5px);
    box-shadow:0 23px 58px rgba(5,30,36,.14);
}

.tv-home-recorded-media{
    position:relative;
    display:block;
    overflow:hidden;
    aspect-ratio:16/9;
    background:#061a20;
}

.tv-home-recorded-media::after{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            to top,
            rgba(1,13,17,.48),
            transparent 60%
        );
    pointer-events:none;
}

.tv-home-recorded-media img,
.tv-home-recorded-media video{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .35s ease;
}

.tv-home-recorded-card:hover
.tv-home-recorded-media img,
.tv-home-recorded-card:hover
.tv-home-recorded-media video{
    transform:scale(1.035);
}

.tv-home-recorded-placeholder{
    width:100%;
    height:100%;
    display:grid;
    place-items:center;
    background:
        radial-gradient(
            circle at center,
            #17454d,
            #06191f 72%
        );
}

.tv-home-recorded-placeholder span{
    color:#e2c57c;
    font-size:50px;
}

.tv-home-recorded-play{
    position:absolute;
    z-index:3;
    top:50%;
    left:50%;
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    transform:translate(-50%,-50%);
    padding-left:3px;
    border-radius:50%;
    background:rgba(255,255,255,.95);
    color:#0c272e;
    font-size:17px;
    box-shadow:0 12px 35px rgba(0,0,0,.24);
}

.tv-home-recorded-label{
    position:absolute;
    z-index:3;
    right:14px;
    bottom:14px;
    padding:7px 11px;
    border-radius:30px;
    background:rgba(5,26,31,.86);
    color:#fff;
    font-size:11px;
    backdrop-filter:blur(8px);
}

.tv-home-recorded-body{
    padding:21px 22px 23px;
}

.tv-home-recorded-date{
    margin-bottom:8px;
    color:#8b999d;
    font-size:12px;
}

.tv-home-recorded-body h3{
    margin:0;
    font-size:19px;
    line-height:1.65;
}

.tv-home-recorded-body h3 a{
    color:#09262d;
    text-decoration:none;
}

.tv-home-recorded-body p{
    min-height:50px;
    margin:10px 0 17px;
    color:#68797e;
    font-size:13px;
    line-height:1.9;
}

.tv-home-recorded-watch{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:#956b28;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
}

.alsebailtv-recorded-nav-link{
    white-space:nowrap;
}

@media (max-width:900px){

    .tv-home-recorded-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}

@media (max-width:650px){

    .tv-home-recorded{
        padding:54px 13px 62px;
    }

    .tv-home-recorded-head{
        display:block;
    }

    .tv-home-recorded-heading h2{
        font-size:28px;
    }

    .tv-home-recorded-all{
        margin-top:18px;
    }

    .tv-home-recorded-grid{
        grid-template-columns:1fr;
    }

    .tv-home-recorded-body p{
        min-height:0;
    }

}

/* =========================================================
 * ALSEBAILTV_RECORDED_GRID6_V1
 * Recorded Live - compact professional 6-card grid
 * ========================================================= */

/*
 * الصفحة الرئيسية - البث المسجل
 */

.alsebailtv-home-recorded,
.home-recorded-live,
.recorded-live-home {
    width: 100%;
    max-width: 100%;
}

.alsebailtv-home-recorded-grid,
.home-recorded-grid,
.recorded-live-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch !important;
    width: 100% !important;
}


/*
 * البطاقة
 */

.alsebailtv-home-recorded-card,
.home-recorded-card,
.recorded-live-card {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    overflow: hidden !important;

    background: #0b2023 !important;
    border: 1px solid rgba(198, 164, 92, .20) !important;
    border-radius: 14px !important;

    text-decoration: none !important;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, .16) !important;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease !important;
}

.alsebailtv-home-recorded-card:hover,
.home-recorded-card:hover,
.recorded-live-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(198, 164, 92, .55) !important;

    box-shadow:
        0 13px 28px rgba(0, 0, 0, .25) !important;
}


/*
 * منطقة الصورة
 */

.alsebailtv-home-recorded-thumb,
.home-recorded-thumb,
.recorded-live-thumb {
    position: relative !important;
    display: block !important;

    width: 100% !important;
    aspect-ratio: 16 / 9 !important;

    overflow: hidden !important;
    background: #061417 !important;
}

.alsebailtv-home-recorded-thumb img,
.home-recorded-thumb img,
.recorded-live-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;

    transition: transform .25s ease !important;
}

.alsebailtv-home-recorded-card:hover img,
.home-recorded-card:hover img,
.recorded-live-card:hover img {
    transform: scale(1.035) !important;
}


/*
 * منع مشغل الفيديو الكبير داخل شبكة الرئيسية
 */

.alsebailtv-home-recorded-grid video,
.home-recorded-grid video,
.recorded-live-grid video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    max-height: none !important;
}


/*
 * معلومات البطاقة
 */

.alsebailtv-home-recorded-body,
.home-recorded-body,
.recorded-live-card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;

    padding: 12px 12px 13px !important;
}

.alsebailtv-home-recorded-title,
.home-recorded-title,
.recorded-live-card-title {
    margin: 0 !important;

    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.65 !important;

    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;

    overflow: hidden !important;
    min-height: 46px !important;
}

.alsebailtv-home-recorded-date,
.home-recorded-date,
.recorded-live-card-date {
    margin-top: 8px !important;

    color: rgba(255, 255, 255, .58) !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
}


/*
 * رأس القسم
 */

.alsebailtv-home-recorded-head,
.home-recorded-head,
.recorded-live-head {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 18px !important;

    margin-bottom: 20px !important;
}

.alsebailtv-home-recorded-head h2,
.home-recorded-head h2,
.recorded-live-head h2 {
    margin: 0 !important;
}


/*
 * عرض جميع التسجيلات
 */

.alsebailtv-home-recorded-all,
.home-recorded-all,
.recorded-live-all {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    white-space: nowrap !important;

    padding: 9px 14px !important;

    border: 1px solid rgba(198, 164, 92, .38) !important;
    border-radius: 10px !important;

    color: #e5ca8d !important;
    background: rgba(198, 164, 92, .07) !important;

    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}


/*
 * Desktop متوسط
 */

@media (max-width: 1400px) {

    .alsebailtv-home-recorded-grid,
    .home-recorded-grid,
    .recorded-live-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr)) !important;
    }
}


/*
 * Laptop
 */

@media (max-width: 1180px) {

    .alsebailtv-home-recorded-grid,
    .home-recorded-grid,
    .recorded-live-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }
}


/*
 * Tablet
 */

@media (max-width: 900px) {

    .alsebailtv-home-recorded-grid,
    .home-recorded-grid,
    .recorded-live-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap: 13px !important;
    }
}


/*
 * Mobile
 */

@media (max-width: 640px) {

    .alsebailtv-home-recorded-grid,
    .home-recorded-grid,
    .recorded-live-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 10px !important;
    }

    .alsebailtv-home-recorded-body,
    .home-recorded-body,
    .recorded-live-card-body {
        padding: 9px !important;
    }

    .alsebailtv-home-recorded-title,
    .home-recorded-title,
    .recorded-live-card-title {
        font-size: 12px !important;
        min-height: 40px !important;
    }

    .alsebailtv-home-recorded-head,
    .home-recorded-head,
    .recorded-live-head {
        align-items: center !important;
    }
}


/*
 * Very small phones
 */

@media (max-width: 360px) {

    .alsebailtv-home-recorded-grid,
    .home-recorded-grid,
    .recorded-live-grid {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
 * ALSEBAILTV_RECORDED_REAL_GRID6_V1
 * Actual DOM:
 * tv-home-recorded
 * tv-home-recorded-grid
 * tv-home-recorded-card
 * tv-home-recorded-media
 * ========================================================= */


/* ---------------------------------------------------------
 * SECTION
 * --------------------------------------------------------- */

.tv-home-recorded {
    width: 100% !important;
    margin: 0 !important;
    padding: 56px 0 !important;
    background: #071a1c !important;
    direction: rtl !important;
}

.tv-home-recorded-inner {
    width: min(1520px, calc(100% - 64px)) !important;
    max-width: 1520px !important;
    margin: 0 auto !important;
}


/* ---------------------------------------------------------
 * HEADER
 * --------------------------------------------------------- */

.tv-home-recorded-head {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 30px !important;
    margin-bottom: 28px !important;
}

.tv-home-recorded-heading {
    min-width: 0 !important;
}

.tv-home-recorded-kicker {
    display: inline-block !important;
    margin-bottom: 8px !important;

    color: #c8a85e !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.tv-home-recorded-heading h2 {
    margin: 0 0 8px !important;

    color: #ffffff !important;
    font-size: clamp(26px, 2.2vw, 38px) !important;
    line-height: 1.25 !important;
}

.tv-home-recorded-heading p {
    margin: 0 !important;
    max-width: 720px !important;

    color: rgba(255,255,255,.70) !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}

.tv-home-recorded-all {
    flex: 0 0 auto !important;

    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;

    padding: 10px 15px !important;

    color: #e9d69a !important;
    border: 1px solid rgba(200,168,94,.35) !important;
    border-radius: 10px !important;

    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;

    background: rgba(255,255,255,.025) !important;
}


/* ---------------------------------------------------------
 * REAL 6 CARD GRID
 * --------------------------------------------------------- */

.tv-home-recorded-grid {
    display: grid !important;

    grid-template-columns:
        repeat(6, minmax(0, 1fr)) !important;

    gap: 16px !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    align-items: stretch !important;
}


/* ---------------------------------------------------------
 * CARD
 * --------------------------------------------------------- */

.tv-home-recorded-card {
    display: flex !important;
    flex-direction: column !important;

    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    background: #0c2225 !important;

    border:
        1px solid rgba(200,168,94,.18) !important;

    border-radius: 13px !important;

    box-shadow:
        0 8px 20px rgba(0,0,0,.18) !important;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease !important;
}

.tv-home-recorded-card:hover {
    transform: translateY(-4px) !important;

    border-color:
        rgba(200,168,94,.55) !important;

    box-shadow:
        0 14px 30px rgba(0,0,0,.28) !important;
}


/* ---------------------------------------------------------
 * MEDIA / THUMBNAIL
 * --------------------------------------------------------- */

.tv-home-recorded-media {
    position: relative !important;

    display: block !important;

    width: 100% !important;
    height: auto !important;

    aspect-ratio: 16 / 9 !important;

    overflow: hidden !important;

    background: #061416 !important;

    text-decoration: none !important;
}


/*
 * IMPORTANT:
 * Video is ONLY a silent thumbnail preview.
 * It must NEVER become a large player on homepage.
 */

.tv-home-recorded-media video,
.tv-home-recorded-media img {
    position: absolute !important;

    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: cover !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}


/* Remove native video controls if browser tries to show them */

.tv-home-recorded-media video::-webkit-media-controls {
    display: none !important;
}


/* ---------------------------------------------------------
 * PLAY BUTTON
 * --------------------------------------------------------- */

.tv-home-recorded-play {
    position: absolute !important;

    top: 50% !important;
    left: 50% !important;

    transform:
        translate(-50%, -50%) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 42px !important;
    height: 42px !important;

    border-radius: 50% !important;

    color: #071a1c !important;
    background: rgba(255,255,255,.92) !important;

    font-size: 15px !important;

    box-shadow:
        0 5px 18px rgba(0,0,0,.30) !important;

    z-index: 3 !important;

    pointer-events: none !important;
}


/* ---------------------------------------------------------
 * RECORDED BADGE
 * --------------------------------------------------------- */

.tv-home-recorded-label {
    position: absolute !important;

    top: 9px !important;
    right: 9px !important;

    z-index: 3 !important;

    padding: 5px 8px !important;

    color: #f5e4ad !important;

    background:
        rgba(5,20,22,.86) !important;

    border:
        1px solid rgba(200,168,94,.35) !important;

    border-radius: 7px !important;

    font-size: 10px !important;
    font-weight: 700 !important;

    pointer-events: none !important;
}


/* ---------------------------------------------------------
 * CARD CONTENT
 * --------------------------------------------------------- */

.tv-home-recorded-body {
    display: flex !important;
    flex-direction: column !important;

    flex: 1 1 auto !important;

    padding: 12px !important;
}

.tv-home-recorded-date {
    margin-bottom: 6px !important;

    color: #bcae83 !important;

    font-size: 10px !important;
    line-height: 1.4 !important;
}

.tv-home-recorded-body h3 {
    margin: 0 0 7px !important;

    font-size: 14px !important;
    line-height: 1.55 !important;

    font-weight: 700 !important;
}

.tv-home-recorded-body h3 a {
    color: #ffffff !important;

    text-decoration: none !important;
}

.tv-home-recorded-body p {
    margin: 0 0 11px !important;

    color: rgba(255,255,255,.62) !important;

    font-size: 11px !important;
    line-height: 1.65 !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;

    overflow: hidden !important;
}


/* ---------------------------------------------------------
 * WATCH LINK
 * --------------------------------------------------------- */

.tv-home-recorded-watch {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;

    margin-top: auto !important;

    color: #e1c778 !important;

    font-size: 11px !important;
    font-weight: 700 !important;

    text-decoration: none !important;
}


/* ---------------------------------------------------------
 * RESPONSIVE
 * --------------------------------------------------------- */

/* Medium desktop */
@media (max-width: 1399px) {

    .tv-home-recorded-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr)) !important;
    }
}


/* Laptop */
@media (max-width: 1199px) {

    .tv-home-recorded-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }
}


/* Tablet */
@media (max-width: 900px) {

    .tv-home-recorded-inner {
        width:
            min(100% - 36px, 1520px) !important;
    }

    .tv-home-recorded-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }

    .tv-home-recorded-head {
        align-items: flex-start !important;
    }
}


/* Mobile */
@media (max-width: 640px) {

    .tv-home-recorded {
        padding: 38px 0 !important;
    }

    .tv-home-recorded-inner {
        width:
            min(100% - 24px, 1520px) !important;
    }

    .tv-home-recorded-head {
        display: block !important;
    }

    .tv-home-recorded-all {
        margin-top: 15px !important;
    }

    .tv-home-recorded-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 10px !important;
    }

    .tv-home-recorded-body {
        padding: 9px !important;
    }

    .tv-home-recorded-body h3 {
        font-size: 12px !important;
    }

    .tv-home-recorded-body p {
        display: none !important;
    }

    .tv-home-recorded-play {
        width: 36px !important;
        height: 36px !important;
    }
}


/* Very small phones */
@media (max-width: 380px) {

    .tv-home-recorded-grid {
        grid-template-columns:
            repeat(1, minmax(0, 1fr)) !important;
    }
}


/* =========================================================
 * ALSEBAILTV_COMPACT_SECTION_SPACING_V1
 * Final spacing override for:
 * Journey -> Live -> Recorded -> Library
 * ========================================================= */


/* ---------------------------------------------------------
 * LIVE SECTION
 * Keep the live panel compact after Doctor Journey
 * --------------------------------------------------------- */

#live-channel.channel-live {
    margin: 0 !important;
    padding-top: 28px !important;
    padding-bottom: 28px !important;
    min-height: 0 !important;
}

#live-channel .channel-live-inner {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}


/* ---------------------------------------------------------
 * RECORDED LIVE SECTION
 * Remove the oversized empty vertical area
 * --------------------------------------------------------- */

.tv-home-recorded {
    margin: 0 !important;
    padding: 32px 0 34px !important;
    min-height: 0 !important;
    height: auto !important;
}

.tv-home-recorded-inner {
    margin: 0 auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

.tv-home-recorded-head {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.tv-home-recorded-heading {
    margin: 0 !important;
    padding: 0 !important;
}

.tv-home-recorded-grid {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    align-items: start !important;
}


/* ---------------------------------------------------------
 * CARDS
 * Preserve six-column design and natural card height
 * --------------------------------------------------------- */

.tv-home-recorded-card {
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    align-self: start !important;
}

.tv-home-recorded-media {
    min-height: 0 !important;
}

.tv-home-recorded-body {
    min-height: 0 !important;
}


/* ---------------------------------------------------------
 * LIBRARY TOOLBAR
 * Bring it closer to Recorded Live
 * --------------------------------------------------------- */

.tv-home-recorded + .toolbar,
.toolbar {
    margin-top: 0 !important;
}

.toolbar {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}


/* ---------------------------------------------------------
 * LIBRARY
 * Remove unnecessary top gap
 * --------------------------------------------------------- */

#library.library {
    margin-top: 0 !important;
    padding-top: 30px !important;
}


/* ---------------------------------------------------------
 * DESKTOP
 * Six cards stay intact
 * --------------------------------------------------------- */

@media (min-width: 1450px) {

    .tv-home-recorded-grid {
        grid-template-columns:
            repeat(6, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}


/* ---------------------------------------------------------
 * TABLET / MOBILE
 * --------------------------------------------------------- */

@media (max-width: 767px) {

    #live-channel.channel-live {
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }

    .tv-home-recorded {
        padding: 26px 0 28px !important;
    }

    .tv-home-recorded-head {
        margin-bottom: 16px !important;
    }

    .toolbar {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    #library.library {
        padding-top: 22px !important;
    }
}


/* =========================================================
 * ALSEBAILTV_FINAL_EMPTY_SPACE_FIX_V2
 * Journey -> Live -> Recorded -> Toolbar -> Library
 * Remove inherited fixed/minimum vertical heights
 * ========================================================= */


/* ---------------------------------------------------------
 * LIVE
 * --------------------------------------------------------- */

body #live-channel.channel-live {
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

body #live-channel .channel-live-inner {
    min-height: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* ---------------------------------------------------------
 * RECORDED SECTION
 * --------------------------------------------------------- */

body .tv-home-recorded {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 28px 0 30px !important;

    display: block !important;
}

body .tv-home-recorded-inner {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body .tv-home-recorded-head {
    min-height: 0 !important;
    height: auto !important;

    margin-top: 0 !important;
    margin-bottom: 18px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* ---------------------------------------------------------
 * GRID
 * IMPORTANT:
 * Keep six cards on large desktop.
 * --------------------------------------------------------- */

body .tv-home-recorded-grid {
    display: grid !important;

    grid-template-columns:
        repeat(6, minmax(0, 1fr)) !important;

    gap: 16px !important;

    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    align-items: start !important;
    align-content: start !important;
}


/* ---------------------------------------------------------
 * CARD
 * Do not stretch a single recording to section height.
 * --------------------------------------------------------- */

body .tv-home-recorded-card {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;

    margin: 0 !important;

    align-self: start !important;
}


/* ---------------------------------------------------------
 * MEDIA
 * Natural 16:9 thumbnail only.
 * --------------------------------------------------------- */

body .tv-home-recorded-media {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;

    aspect-ratio: 16 / 9 !important;
}

body .tv-home-recorded-media img,
body .tv-home-recorded-media video {
    width: 100% !important;
    height: 100% !important;

    min-height: 0 !important;
    max-height: none !important;

    object-fit: cover !important;
}


/* ---------------------------------------------------------
 * CARD CONTENT
 * --------------------------------------------------------- */

body .tv-home-recorded-body {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
}

body .tv-home-recorded-body p {
    min-height: 0 !important;
}


/* ---------------------------------------------------------
 * TOOLBAR
 * Pull library navigation directly after recordings.
 * --------------------------------------------------------- */

body .tv-home-recorded + .toolbar,
body .toolbar {
    margin-top: 0 !important;
}

body .toolbar {
    min-height: 0 !important;
    height: auto !important;

    padding-top: 14px !important;
    padding-bottom: 14px !important;
}


/* ---------------------------------------------------------
 * LIBRARY
 * --------------------------------------------------------- */

body #library.library {
    min-height: 0 !important;
    height: auto !important;

    margin-top: 0 !important;
    padding-top: 24px !important;
}

body #library .library-intro {
    min-height: 0 !important;
    height: auto !important;

    margin-top: 0 !important;
    margin-bottom: 22px !important;
}


/* ---------------------------------------------------------
 * DESKTOP BREAKPOINTS
 * --------------------------------------------------------- */

@media (min-width: 1450px) {

    body .tv-home-recorded-grid {
        grid-template-columns:
            repeat(6, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1200px) and (max-width: 1449px) {

    body .tv-home-recorded-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 901px) and (max-width: 1199px) {

    body .tv-home-recorded-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 641px) and (max-width: 900px) {

    body .tv-home-recorded-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 381px) and (max-width: 640px) {

    body .tv-home-recorded-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 380px) {

    body .tv-home-recorded-grid {
        grid-template-columns:
            1fr !important;
    }
}


/* =========================================================
 * ALSEBAILTV_RECORDED_HARD_COLLAPSE_V1
 * Definitive layout normalization for home recorded section
 * ========================================================= */


/* SECTION ROOT */

html body main #recorded-live.tv-home-recorded {
    display: block !important;

    width: 100% !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;

    padding-top: 24px !important;
    padding-right: 0 !important;
    padding-bottom: 24px !important;
    padding-left: 0 !important;

    overflow: visible !important;
}


/* INNER CONTAINER */

html body main #recorded-live
.tv-home-recorded-inner {

    display: block !important;

    width: min(1520px, calc(100% - 64px)) !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 auto !important;
    padding: 0 !important;

    overflow: visible !important;
}


/* HEADER */

html body main #recorded-live
.tv-home-recorded-head {

    display: flex !important;

    align-items: flex-end !important;
    justify-content: space-between !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 0 18px 0 !important;
    padding: 0 !important;
}


/* HEADING */

html body main #recorded-live
.tv-home-recorded-heading {

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* GRID */

html body main #recorded-live
.tv-home-recorded-grid {

    display: grid !important;

    grid-template-columns:
        repeat(6, minmax(0, 1fr)) !important;

    grid-auto-rows: auto !important;

    align-items: start !important;
    align-content: start !important;

    gap: 18px !important;

    width: 100% !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
}


/* CARD */

html body main #recorded-live
.tv-home-recorded-card {

    display: flex !important;
    flex-direction: column !important;

    align-self: start !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* MEDIA */

html body main #recorded-live
.tv-home-recorded-media {

    display: block !important;
    position: relative !important;

    width: 100% !important;

    aspect-ratio: 16 / 9 !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
}


/* VIDEO / IMAGE */

html body main #recorded-live
.tv-home-recorded-media video,

html body main #recorded-live
.tv-home-recorded-media img {

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
}


/* BODY */

html body main #recorded-live
.tv-home-recorded-body {

    display: block !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;

    padding-top: 14px !important;
    padding-right: 14px !important;
    padding-bottom: 14px !important;
    padding-left: 14px !important;
}


/* REMOVE ACCIDENTAL FLEX FILL */

html body main #recorded-live
.tv-home-recorded-watch {

    margin-top: 10px !important;
}


/* TOOLBAR MUST FOLLOW IMMEDIATELY */

html body main #recorded-live + .toolbar {

    margin-top: 0 !important;

    height: auto !important;
    min-height: 0 !important;

    clear: both !important;
}


/* LIBRARY */

html body main #library.library {

    margin-top: 0 !important;

    height: auto !important;
    min-height: 0 !important;

    padding-top: 24px !important;
}


/* ---------------------------------------------------------
 * RESPONSIVE GRID
 * --------------------------------------------------------- */

@media (max-width: 1500px) {

    html body main #recorded-live
    .tv-home-recorded-grid {

        grid-template-columns:
            repeat(5, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 1250px) {

    html body main #recorded-live
    .tv-home-recorded-grid {

        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 980px) {

    html body main #recorded-live
    .tv-home-recorded-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 700px) {

    html body main #recorded-live.tv-home-recorded {

        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    html body main #recorded-live
    .tv-home-recorded-inner {

        width: calc(100% - 32px) !important;
    }

    html body main #recorded-live
    .tv-home-recorded-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 12px !important;
    }
}


/* =========================================================
 * ALSEBAILTV_LIBRARY_GAP_FINAL_V1
 *
 * Final targeted normalization:
 * Toolbar -> Library heading -> MBC content
 *
 * This affects ONLY the home visual library.
 * ========================================================= */


/* ---------------------------------------------------------
 * MAIN LIBRARY CONTAINER
 * --------------------------------------------------------- */

html body main > #library.library {

    display: block !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 22px !important;

    overflow: visible !important;
}


/* ---------------------------------------------------------
 * LIBRARY INTRO
 *
 * "المكتبة المرئية"
 * "39 مادة مرئية · 7 مجموعات"
 * --------------------------------------------------------- */

html body main > #library.library > .library-intro {

    display: flex !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin-top: 0 !important;
    margin-bottom: 14px !important;

    padding-top: 0 !important;
    padding-bottom: 12px !important;
}


/* ---------------------------------------------------------
 * SHELVES WRAPPER
 *
 * This is the direct parent of MBC and all library shelves.
 * It must NOT reserve any artificial vertical space.
 * --------------------------------------------------------- */

html body main > #library.library > #shelves {

    display: block !important;

    position: static !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    inset: auto !important;
    transform: none !important;

    overflow: visible !important;
}


/* ---------------------------------------------------------
 * FIRST SHELF: MBC
 *
 * Start immediately after library intro.
 * --------------------------------------------------------- */

html body main > #library.library > #shelves > #mbc {

    position: static !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin-top: 0 !important;

    padding-top: 0 !important;

    transform: none !important;
}


/* ---------------------------------------------------------
 * MBC INTRO CARD
 * --------------------------------------------------------- */

html body main > #library.library
> #shelves
> #mbc
> .mbc-intro {

    margin-top: 0 !important;

    transform: none !important;
}


/* ---------------------------------------------------------
 * DESKTOP
 * Keep the library visually compact.
 * --------------------------------------------------------- */

@media (min-width: 761px) {

    html body main > #library.library {

        padding-top: 22px !important;

    }

    html body main > #library.library > .library-intro {

        margin-bottom: 14px !important;
        padding-bottom: 12px !important;

    }

}


/* ---------------------------------------------------------
 * MOBILE
 * --------------------------------------------------------- */

@media (max-width: 760px) {

    html body main > #library.library {

        padding-top: 18px !important;

    }

    html body main > #library.library > .library-intro {

        margin-bottom: 12px !important;
        padding-bottom: 10px !important;

    }

}

