body {
    margin: 0;
    padding: 0;
    font-family: 'Tahoma', sans-serif;
    min-height: 100vh;
    color: #fff;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.site-header {
    background: rgb(0,43,34);
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* يفصل بين البراندينغ والمنيو */
}

/* البراندينغ */
.branding {
    display: flex;
    align-items: center;
    gap: 12px;
}
.coin {

    animation: flip 8s linear infinite;
    transform-style: preserve-3d;

}
.branding img {
    height: 50px;
    width: 50px;
    object-fit: contain;
}
.site-title {
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
}
.site-sub {
    font-size: 12px;
    opacity: 0.8;
}

/* القائمة */
.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}
.main-menu a {
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
}
.main-menu a:hover {
    background: rgba(255,255,255,0.1);
}

/* زر المنيو (hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.menu-toggle span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* القائمة الرئيسية */
.main-menu {
    position: relative; /* مهم عشان المنيو المنسدلة */
}
.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}
.main-menu a {
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
}
.main-menu a:hover {
    background: rgba(255,255,255,0.1);
}

.videos-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    direction: rtl;
}

.page-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
    color: #333;
}

.search-bar {
    text-align: center;
    margin-bottom: 30px;
}

.search-bar input {
    padding: 12px 20px;
    width: 90%;
    max-width: 600px;
    font-size: 18px;
    border: 2px solid #ccc;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.video-list {
    display: grid;
    gap: 20px;
}

.video-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.video-frame {
    flex: 1;
    min-width: 300px;
    aspect-ratio: 16/9;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    flex: 1;
    padding: 15px;
}

.video-info h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #222;
}

.video-info p {
    margin: 0;
    font-size: 14px;
    color: #555;
}



@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
        z-index: 10001;
        position: relative;
    }
    .menu-toggle span {
        width: 28px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
    }

    .main-menu {
        position: absolute;
        top: 75px; /* ارتفاع الهيدر */
        left: 0px; /* يظهر مباشرة تحت الزر */
        width: 180px; /* أو حسب التصميم */
        z-index: 10000;
    }
    .main-menu ul {
        display: none;
        flex-direction: column;
        background: rgb(0,43,34);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .main-menu ul li a {
        display: block;
        padding: 10px 14px;
        color: #fff;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .main-menu ul li:last-child a {
        border-bottom: none;
    }
    .main-menu ul.show {
        display: flex;
    }
    
.video-card {
        flex-direction: column;
    }

    .video-frame {
        width: 100%;
        min-width: 100%;
    }
    
}