/*
Theme Name: EgyBest WP
Theme URI: 
Author: Musti
Author URI: /
Description: EgyBest clone theme for WordPress
Version: 1.0
*/

@font-face {
    font-family: 'DroidArabicKufiBold';
    src: url('/assets/DroidArabicKufiBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'DroidArabicKufiRegular';
    src: url('/assets/DroidArabicKufiRegular.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}


@font-face {
    font-family: 'DroidArabic';
    src: url('/assets/DroidArabic.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

a {
    text-decoration: none;
}

body {
    margin: auto;
    max-width: 1320px;
    background: #ecf0f0;
    font-size: .9em;
    color: #222;
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 10px;
}

.cat_grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    padding-left: 5px;
    max-height: 100px;
}

.cat_element {
    font-family: DroidArabicKufiRegular, Arial, Helvetica, sans-serif;
    color: red;
    background-color: white;
    text-align: center;
    text-decoration: none;
    margin: 5px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-radius: 5px;
    width: 125px;
}

.cat_element:hover {
    background-color: red;
    color: white;
}

.main_viewport {
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 4;
}


.welcome_msg {
    font-family: DroidArabicKufiBold, Arial, Helvetica, sans-serif;
    font-size: 22px;
    width: 100%;
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
    color: #222;
}

.fact_tag {
    width: 100%;
    grid-column: span 2;
    text-align: center;
    font-family: DroidArabicKufiRegular, Arial, Helvetica, sans-serif;
    margin-top: 10px;
    margin-bottom: 30px;
    padding-bottom: 30px;
}

.fact_tag a {
    text-decoration: none;
    color: #06c;

}


main {
    display: flex;
    flex-direction: column;
}

.main_content {
    margin-top: 60px !important;
}

.owl-carousel .owl-stage {
    display: flex;
}


.wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


.container {
    margin: auto;
    max-width: 1320px;
    width: 100% !important;
    box-sizing: border-box;
}

.search_panel {
    display: none;
    width: 95%;
    margin-top: 70px;
    z-index: 99999 !important;
    margin-left: auto;
    margin-right: auto;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width:960px) {
    .fullnav {
        display: none !important;
    }

    .mobilenav {
        display: flex !important;
    }

    .small_side_bar {
        display: none !important;
    }

    .wrapper {
        flex-direction: column-reverse;
    }

    .cat_element {
        width: 95%;
        column-gap: 10px;
    }

    .carousel_container {
        max-width: 100% !important;
    }

    .content_header {
        height: unset !important;
        flex-direction: column !important;
        padding: 20px;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .movie_profile{
        flex-direction: column-reverse !important;
    }
    .stream_image img{
        max-height: unset !important;
    }
    .stream_image{
        width: unset !important;
    }
    .stream_image a{
        padding: 12px;
        margin-bottom: 10px;
    }
    table{
        width: 100% !important;
    }
}


@media only screen and (min-width: 931px) and (max-width: 931px) {
    .carousel_container {
        max-width: 895px !important;
    }

}



/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .side_single_element span {
        display: none;
    }

    .small_side_bar {
        flex: 0 !important;
    }

    .carousel_container {
        max-width: 665px;
    }

    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (min-width: 819px) and (max-width:931px) {
    .carousel_container {
        max-width: 571px;
    }

    .welcome_msg {
        font-size: 18px;
    }

    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media only screen and (min-width: 1097px) {
    .carousel_container {
        max-width: 745px;
    }

    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}


@media only screen and (min-width: 1200px) {

    .side_single_element span {
        display: block;
    }

    .carousel_container {
        max-width: 665px;
    }

    .small_side_bar {
        flex: 1 !important;
    }

    .carousel_container {
        max-width: 810px;
    }

    .grid-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media only screen and (min-width: 1137px) and (max-width: 1200px) {
    .carousel_container {
        max-width: 774px;
    }

    .grid-container {
        grid-template-columns: repeat(5, 1fr);
    }
}



header {
    z-index: 30;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    margin: 0;
    background: #f9f9f9;
    border: none;
    box-shadow: 1px 0 2px 1px #ddd;
    box-sizing: border-box;
    color: #06c;
    font-size: 1em;
}

.nav {
    height: 100%;
    display: flex;
    flex-direction: row-reverse;
}

.logo {
    margin: auto;
    width: 17%;
    transform: scale(0.6);
}

.search {
    position: relative;

    width: 90%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}


.search_mobile {
    position: relative;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
    display: none;

}


.search_input_mobile {
    width: 100%;
    height: 30px;
    border-radius: 5px;
    border: 1px solid #c5c5c5;
    font-family: DroidArabicKufiRegular, Arial, Helvetica, sans-serif;
    padding-left: 40px;

}

.search_input {
    width: 100%;
    height: 30px;
    border-radius: 5px;
    border: 1px solid #c5c5c5;
    font-family: DroidArabicKufiRegular, Arial, Helvetica, sans-serif;
    padding-left: 40px;

}

.search_input:focus {
    -webkit-appearance: none;
    box-shadow: inset 0 0 0 0 rgba(0, 0, 0, .05), 0 0 0 0 rgba(255, 255, 255, .025), 0 0 4px 0 #74caee !important;
    -webkit-box-shadow: inset 0 0 0 0 rgba(0, 0, 0, .05), 0 0 0 0 rgba(255, 255, 255, .025), 0 0 4px 0 #74caee !important;
    border: 1px solid #74caee;
    outline: 0;
}


.search_icon {
    cursor: pointer;
    position: absolute;
    left: 10px;
    /* Adjust as needed to position the icon */
    top: 50%;
    /* Vertically center the icon */
    transform: translateY(-50%);
}

.search_icon_mobile {
    cursor: pointer;
    position: absolute;
    left: 10px;
    /* Adjust as needed to position the icon */
    top: 50%;
    /* Vertically center the icon */
    transform: translateY(-50%);
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 999;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    display: none;
}

.suggestions div {
    padding: 10px;
    cursor: pointer;
}

.suggestions div:hover {
    background-color: #f9f9f9;
}




.suggestions_mobile {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 999;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    display: none;
}

.suggestions_mobile div {
    padding: 10px;
    cursor: pointer;
}

.suggestions_mobile div:hover {
    background-color: #f9f9f9;
}


.fullnav {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row-reverse;

}

.mobilenav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    display: none;
}

.logo_area {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.logo_mobile {
    height: 25px;
}

.mobile_menu {
    margin-left: 10px;
    padding-right: 10px;
    color: red;
}

/* Additional CSS for mobile menu */
.sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1;
}

.sidebar.active {
    right: 0;
    margin-top: 60px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-family: DroidArabicKufiRegular, Arial, Helvetica, sans-serif;
    padding-right: 40px;
    position: relative;
    cursor: pointer;
    text-align: right;
    /* Added */
    color: #0066cc;
}

.sidebar ul li svg {
    position: absolute;
    height: 20px;
    width: 20px;
    right: 5px;
    /* Adjust as needed */
    top: 50%;
    transform: translateY(-50%);
}

.sidebar ul li:last-child {
    border-bottom: none;
}



/* Sidebar_Main */

.small_side_bar {
    flex: 1;
    height: fit-content;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    background-color: white;
    margin-right: 5px;
    position: sticky;
    top: 74px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;

    border-radius: 5px;

}

.side_single_element {
    display: flex;
    flex-direction: row;
    align-items: center;
    direction: rtl;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 7px;
    padding-bottom: 7px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;

}

.side_single_element svg {
    width: 20px;
    height: 20px;
}

.side_single_element span {
    font-family: DroidArabicKufiRegular, Arial, Helvetica, sans-serif;
    margin-right: 10px;
    color: #0066cc;
}


.side_single_element:hover span,
.side_single_element:hover svg path {
    fill: red;
    color: red;
}


.content_section {
    background-color: white;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    position: relative;
    display: block;
    margin-bottom: 15px;
}

.section_header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
}

.content_header {
    display: flex;
    height: 58px;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #ddd;
}


.in_content_section {
    background-color: white;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    position: relative;
    display: block;
    margin-bottom: 15px;
    margin-top: 5px;
}


.content_header_item {
    height: 100%;
    display: flex;
    gap: 8px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    direction: rtl;
    text-decoration: none;
}

.content_header_item span {
    font-size: 16px;
    font-weight: 600;
}


.fa-solid {
    color: #0066cc;
    margin-top: 3px;

}



.content_header_item li {
    color: #0066cc;
}

.content_header_item path {
    stroke: #0066cc;
}


.content_header_item span {
    font-family: DroidArabic, Arial, Helvetica, sans-serif;
    color: #0066cc;
}

.section_name {
    font-family: DroidArabicKufiBold, Arial, Helvetica, sans-serif;
}

.more_anchors {
    font-family: DroidArabicKufiRegular, Arial, Helvetica, sans-serif;
    color: #0066cc;
    text-decoration: none;
    font-size: 17px;
}


.single_carousel_item {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.single_carousel_item img {
    width: 100% !important;
    height: 70%;
    object-fit: cover;
}



.arabic-english-span {
    direction: rtl;
    /* Right-to-left direction for Arabic */
    unicode-bidi: embed;
    /* Ensures correct directionality */
    text-align: center !important;
    font-family: DroidArabicKufiRegular, Arial, Helvetica, sans-serif;
    line-height: 1.4;
    padding-top: 5px;
    color: #0066cc;
    padding-bottom: 20px;

}


.nav_buttons div {
    width: 20px;
    height: 20px;
}

.nav_buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;


}

.carousel_container {
    padding-left: 2px;
    position: relative;

}


@media (max-width: 0px) {
    .single_carousel_item img {
        height: 320px !important;
    }

}


.prev_button,
.next_button {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    cursor: pointer;
}

.prev_button {
    left: 0;
    padding-top: 12px;
    padding-bottom: 10px;
    padding-left: 8px;
    padding-right: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 2;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;

}


.next_button {
    right: 0;
    padding-top: 12px;
    padding-bottom: 10px;
    padding-left: 8px;
    padding-right: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 2;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;

}

.prev_button:hover {
    background-color: rgba(255, 255, 255);
}

.next_button:hover {
    background-color: rgba(255, 255, 255);
}




.prev_button svg {
    width: 26px;
    height: 40px;
    fill: #0066cc;
}

.next_button svg {
    width: 26px;
    height: 40px;
    fill: #0066cc;
}

.prev_button span,
.next_button span {
    font-size: 24px;
    /* Adjust the size of the buttons as needed */
}


.rate_star {
    width: 35px;
    height: 35px;
    position: absolute;
    top: 15px;
    right: 10px;
}

.rate_star svg {
    fill: #fc0;
}

.rate_star span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 12px;
}


/* watch */

.movie_profile {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-bottom: 15px;
}

table {
    width: 70%;
    border-collapse: separate;
    border-spacing: 3px;
    margin-right: 8px;
}

td {
    padding: 10px;
    background-color: white;
    text-align: right;
    font-family: DroidArabicKufiRegular, Arial, Helvetica, sans-serif;
    line-height: 25px;

}

tr{
    line-height: 0px;
}
.smallTd{
    width: 125px;
}

.stream_image{
    width: 30%;
    display: flex;
    flex-direction: column;
    margin-top: 3px;
}

.stream_image img{
    height: 100%;
    object-fit: cover;
    max-height: 400px;
}

a{
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.stream_image a{
    border: none;
    cursor: pointer;
    background-color: #10BF46;
    font-family: DroidArabicKufiRegular, Arial, Helvetica, sans-serif;
    color: white;
    border-radius: 4px;
    padding: 5px;
    margin-top: 8px;
    font-size: 14px;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.action_buttons {
    border: none;
    cursor: pointer;
    background-color: #10BF46;
    font-family: DroidArabicKufiRegular, Arial, Helvetica, sans-serif;
    color: white;
    border-radius: 4px;
    padding: 5px;
    margin-top: 8px;
    font-size: 15px;
    display: flex;
    gap: 5px;
    align-items: center;
    direction: rtl;
    justify-content: center;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.action_buttons svg{
    width: 20px;
    height: 20px;
    margin-bottom: 3px;
}

.action_buttons:hover{
    background-color: #10c448;
}

.stream_image svg{
    width: 20px;
    height: 20px;
    margin-bottom: 3px;
}

.stream_image a:hover{
    background-color: #10c448;
}

.flex_td{
    display: flex;
    flex-direction: row;
    align-items: center;
    direction: rtl;
}

img.flag {
    margin-left: 5px;
    height: 20px;
}


.flex_genre{
    display: flex;
    flex-direction: row;
    align-items: center;
    direction: rtl;
}

.flex_td svg{
    width: 25px;
    height: 25px;
    fill: #FFCC00;
}

.watch_page_container {
    padding: 10px;
    direction: rtl;
    font-family: 'DroidArabicKufiRegular';
    font-size: 15px;
}


.actions_container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap:10px;
    align-items: center;
    padding: 20px;
    direction: rtl;
    font-family: 'DroidArabicKufiRegular';
    font-size: 15px;

}

.error_container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.error_container span{
    font-family: DroidArabicKufiRegular, Arial, Helvetica, sans-serif;
}

.error_container h1{
    font-family: Arial, Helvetica, sans-serif;
}



.wrap_class {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.wrap_class span{
    font-family: DroidArabicKufiRegular, Arial, Helvetica, sans-serif;
    direction: rtl;
    margin-top: 20px;
    text-align: center;
}
/* Listing pages (moved from inline <style> in movies.php and friends) */
.more_content {
    display: flex;
    flex-direction: column;
}

.load-more-button {
    width: 100%;
    height: 45px;
    border: none;
    background-color: #00A1CB;
    color: white;
    cursor: pointer;
    font-family: DroidArabicKufiRegular, Arial, Helvetica, sans-serif;
}

.load-more-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.load-more-container {
    margin-top: auto !important;
}

/* Menu items are real links (were JS-clicked divs/lis in the WordPress theme) */
a.side_single_element {
    text-decoration: none;
}

.sidebar ul li a {
    display: block;
    margin: -10px -40px -10px -15px;
    padding: 10px 40px 10px 15px;
    color: inherit;
    text-decoration: none;
}

/* Watch-page buttons: stack full width on small phones so labels stay on one line */
@media only screen and (max-width: 480px) {
    .actions_container {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
    }
}

/* Button labels are spans; don't inherit the 20px top margin meant for the sentence above them */
.wrap_class .action_buttons span {
    margin-top: 0;
}
