@font-face {
    font-family: MainFont;
    src: url("../assets/fonts/Bahij_TheSansArabic-Plain.ttf");
    font-display: swap;
}

body {
    background-color: #0e1116;
    padding-top: 100px;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.homepage__bg {
    background-image: url("back.jpg");
}

.Main--Header {
    background: rgba(14, 17, 22, .88);
    backdrop-filter: blur(8px);
}

.Logo--Area h1 {
    margin: 0;
}

.Logo--Area .site-logo {
    color: #fff;
    display: block;
    font-size: 38px;
    font-weight: 900;
    line-height: .9;
}

.Logo--Area .site-logo span {
    color: #ff3d4f;
}

.Logo--Area .site-logo em {
    display: block;
    font-size: 16px;
    font-style: normal;
    line-height: 1.2;
}

.Header--Search {
    border: 0;
    color: #fff;
}

.Slider--Outer {
    height: auto;
    overflow: visible;
}

.Slider--Outer .Blocks--List {
    flex-wrap: nowrap;
    overflow: hidden;
}

.Block--Item {
    list-style: none;
}

.Block--Item a {
    min-height: 100%;
}

.Block--Item a .Poster--Block {
    background: #111;
}

.Block--Item a .Block--Info h3 {
    color: #fff;
    line-height: 1.55;
}

.Two--Items .Posts--List {
    gap: 10px 0;
}

.Two--Items .Small--Box,
.Two--Items ul.Posts--List.SixInRow > .Small--Box {
    flex: 0 0 calc(100% / 4);
    min-width: 0;
}

.Two--Items .Aside--Contents .Small--Box {
    flex: 0 0 calc(100% / 2);
}

.Small--Box a h3.title,
.Small--Box a.recent--block h3.title {
    top: auto;
    bottom: 0;
    min-height: 58px;
    max-height: 96px;
    padding: 42px 10px 10px;
    overflow: hidden;
    line-height: 1.45;
    z-index: 8;
}

.Two--Items {
    margin: 20px 0;
}

.Two--Items .Posts--List > .Block--Item,
.Two--Items .Blocks--List > .Block--Item {
    min-width: 0;
    max-width: none;
}

.Two--Items .Wide--Contents.OneBox {
    flex: 0 0 100%;
    margin: 0;
}

.Single--Container .Content--Wrapper,
.WatchServersMain .Content--Wrapper {
    max-width: 1300px;
}

.MainSingle {
    align-items: flex-start;
}

.MainSingle .left {
    order: 2;
}

.MasterSingleMeta {
    order: 1;
}

.TitleBox {
    display: table;
    margin: 18px 0 10px;
    color: #fff;
    font-size: 23px;
    font-weight: 700;
}

.TitleBox::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    margin-top: 8px;
    border-radius: 4px;
    background: #ff434c;
}

.RightTaxContent {
    padding: 0;
}

.RightTaxContent li strong {
    font-weight: 400;
    color: #e6e6e6;
}

.BTNSDownWatch {
    margin-top: 20px;
}

.BTNSDownWatch a.watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
}

.WatchServersMain {
    margin: 20px 0 30px;
}

.WatchBar {
    margin-bottom: 15px;
}

.watch--area {
    align-items: flex-start;
    direction: ltr;
}

.watch--area > * {
    direction: rtl;
}

.player--iframe {
    min-height: 520px;
    padding-bottom: 0;
}

.player--iframe iframe {
    position: static;
    display: block;
    width: 100%;
    height: 520px;
    border: 0;
}

.watch--servers--list ul {
    margin: 0;
    padding: 0;
}

.watch--servers--list li.server--item {
    list-style: none;
}

.cimaar-current-episode {
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #ffcf22;
    color: #111;
    font-weight: 800;
}

.cimaar-episodes-panel {
    margin-top: 24px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
}

.cimaar-episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}

.cimaar-episode-button {
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.cimaar-episode-button:hover,
.cimaar-episode-button.active {
    background: #ff3d4f;
    color: #fff;
    transform: translateY(-1px);
}

footer {
    margin-top: 30px;
    padding: 20px 0;
}

footer .copyrights {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    text-align: center;
}

@media (max-width: 970px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        padding-top: 120px;
    }

    .Content--Wrapper,
    .Single--Container .Content--Wrapper,
    .WatchServersMain .Content--Wrapper {
        width: 100%;
        max-width: 100%;
        padding-inline: 12px;
        overflow: hidden;
    }

    .Main--Header .Content--Wrapper,
    .News--Bar .Content--Wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .Logo--Area {
        width: 100%;
        text-align: center;
    }

    .Header--Search,
    .Main--Header ul,
    .Left--Anchors,
    .News--Content {
        max-width: 100%;
    }

    .Left--Anchors {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .Left--Anchors a {
        min-width: 0;
        white-space: nowrap;
    }

    .Slider--Outer .Blocks--List {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .Slider--Outer .Block--Item,
    .Slider--Outer .Blocks--List > .Block--Item {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
        min-width: 0;
    }

    .MainSingle {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .MainSingle .left,
    .MasterSingleMeta {
        order: initial;
        width: 100%;
        max-width: 100%;
    }

    .MainSingle .left .image,
    .MainSingle .left img {
        width: 100%;
        max-width: 100%;
    }

    .MainSingle .left img {
        height: auto;
        object-fit: cover;
    }

    .post-title,
    .post-title a {
        max-width: 100%;
        overflow-wrap: anywhere;
        line-height: 1.45;
    }

    .watch--area {
        flex-direction: column;
        direction: rtl;
    }

    .player--iframe,
    .watch--servers--list {
        width: 100%;
        flex: 0 0 auto;
    }

    .player--iframe,
    .player--iframe iframe {
        min-height: 310px;
        height: 310px;
    }

    .Two--Items .Small--Box,
    .Two--Items ul.Posts--List.SixInRow > .Small--Box,
    .Two--Items .Aside--Contents .Small--Box {
        flex: 0 0 50%;
        max-width: 50%;
        min-width: 0;
        padding-inline: 5px;
    }

    .Small--Box a,
    .Small--Box a.recent--block {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 430px) {
    .Slider--Outer .Block--Item,
    .Slider--Outer .Blocks--List > .Block--Item {
        flex-basis: calc(50% - 8px);
        max-width: calc(50% - 8px);
    }

    .Two--Items .Small--Box,
    .Two--Items ul.Posts--List.SixInRow > .Small--Box,
    .Two--Items .Aside--Contents .Small--Box {
        flex-basis: 50%;
        max-width: 50%;
    }

    .Small--Box a h3.title,
    .Small--Box a.recent--block h3.title {
        font-size: 12px;
        min-height: 54px;
        padding: 34px 8px 8px;
    }
}
