@font-face {
    font-family: Cairo;
    src: url('/static/Cairo-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: Cairo;
    src: url('/static/Cairo-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: Cairo;
    src: url('/static/Cairo-ExtraBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: Cairo;
    src: url('/static/Cairo-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: Cairo;
    src: url('/static/Cairo-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: Cairo;
    src: url('/static/Cairo-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: Cairo;
    src: url('/static/Cairo-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: Cairo;
    src: url('/static/Cairo-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap
}

.cairo,
body {
    font-optical-sizing: auto;
    font-variation-settings: "slnt" 0
}

.header,
body {
    background-color: #fff
}

*,
.cairo,
.contact-title,
.pagination,
.related-videos,
.video-info {
    font-family: Cairo, sans-serif
}

.contact-email,
.footer-link,
.page-btn,
.related-video,
.tags-link,
a {
    text-decoration: none
}

.contact-email:hover,
.footer-link:hover,
.tags-link:hover,
a:hover {
    text-decoration: underline
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: right
}

body {
    color: #222;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6
}

.related-videos span {
    font-size: clamp(.5rem, 4vw + 1rem, 1.3rem);
    font-weight: 700;
}

.related-info span {
    font-size: clamp(.5rem, 4vw + 1rem, 1.1rem);
    font-weight: 400
}

h1 {
    font-size: clamp(.5rem, 4vw + 1rem, 1.3rem);
    font-weight: 700
}

h2 {
    font-size: clamp(.5rem, 4vw + 1rem, 1.3rem);
    font-weight: 700
}

h3,
h4 {
    font-weight: 500
}

h3 {
    font-size: 1.75rem
}

h4 {
    font-size: 1.5rem
}

h5,
h6,
p {
    font-weight: 400
}

h5 {
    font-size: 1.25rem
}

.search-input,
h6,
p {
    font-size: 1rem
}

p {
    margin-bottom: 1em
}

a {
    color: #007bff
}

.cairo {
    font-style: normal
}

.divider {
    margin-bottom: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap
}

.logo img {
    max-height: 100px;
    height: auto;
    width: auto
}

.search-container {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-grow: 1;
    max-width: 600px;
    margin-left: auto
}

#searchForm {
    display: flex;
    flex-grow: 1;
    gap: .5rem
}

.search-input {
    flex-grow: 1;
    padding: .5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: 0;
    transition: border .3s
}

.search-input:focus {
    border-color: #007bff
}

#searchForm button {
    padding: .5rem 3rem;
    background-color: #f60;
    border: none;
    border-radius: 25px;
    color: #0d1b2a;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s
}

#searchForm button:hover,
.search-button:hover {
    background-color: #cf5504
}

.site-footer {
    background-color: #f8f8f8;
    color: #444;
    padding: 2rem 1rem;
    font-size: .9rem;
    border-top: 1px solid #ddd
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto
}

.footer-links {
    text-align: center;
    margin-bottom: 1rem;
    flex-wrap: wrap
}

.footer-link {
    color: #06c;
    margin: 0 .5rem;
    display: inline-block
}

.footer-divider {
    color: #888
}

.site-footer p {
    text-align: center;
    line-height: 1.6;
    margin: .5rem 0;
    color: #666
}

.contact-section {
    padding: 2rem 1rem;
    width: 90%;
    margin: 0 auto;
    text-align: center
}

.text-to-left p {
    text-align: left
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #222
}

.contact-info {
    background-color: #f4f4f4;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, .05)
}

.contact-text {
    font-size: 1rem;
    color: #333;
    margin: 0;
    text-align: center
}

.contact-email {
    color: #007bff;
    word-break: break-word
}

@media (max-width:600px) {
    .contact-title {
        font-size: 1.5rem
    }

    .contact-text {
        font-size: .95rem
    }
}

.video-container {
    max-width: 900px;
    margin: 10px auto;
    padding: 1rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: -2px 2px 12px rgba(0, 0, 0, .2)
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 8px;
    background: #000
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    border-radius: 8px
}

.video-info {
    margin-top: 1rem;
    padding: 0 .5rem;
    text-align: right
}

.video-info h1 {
    font-size: 1.8rem;
    margin-bottom: .5rem;
    color: #222
}

.video-info p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6
}

.video-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: .9rem;
    color: #888
}

.video-meta .left,
.video-meta .right {
    flex: 1
}

.related-videos {
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
    min-height: 400px;
}

.related-videos h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #222
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem
}

.related-video {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    transition: transform .2s;
    color: inherit;
    min-height: 200px
}

.related-video:hover {
    transform: translateY(-4px)
}

.related-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.related-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background-color: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: .75rem;
    padding: 2px 6px;
    border-radius: 4px
}

.page-btn,
.related-info h3 {
    color: #333;
    font-size: .95rem
}

.related-info {
    padding: .5rem
}

.related-info h3 {
    margin: 0;
    line-height: 1.3
}

@media (max-width:1024px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width:768px) {
    .header {
        flex-direction: column;
        align-items: stretch
    }

    .logo {
        display: flex;
        justify-content: center;
        align-items: center
    }

    .search-container {
        width: 100%;
        margin-top: 1rem
    }

    #searchForm,
    .video-meta {
        flex-direction: column;
        gap: .5rem
    }

    #searchForm button {
        width: 100%;
        text-align: center
    }

    .search-input {
        width: 100%
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: .5rem
    }

    .footer-divider {
        display: none
    }

    .footer-link {
        margin: 0;
        text-align: center
    }

    .video-container {
        padding: .5rem
    }

    .video-info h1 {
        font-size: 1.4rem
    }

    .video-info p {
        font-size: .95rem
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:480px) {
    .related-grid {
        grid-template-columns: 1fr
    }

    .related-videos h2 {
        font-size: 1.25rem
    }

    .related-info h3 {
        font-size: .85rem
    }
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 4rem 1rem;
    gap: .5rem;
    direction: rtl
}

.page-btn {
    padding: .5rem .9rem;
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: background-color .2s
}

.page-btn:hover {
    background-color: #e0e0e0
}

.page-btn.current {
    background-color: #4caf50;
    color: #fff;
    font-weight: 700;
    cursor: default
}

.page-btn.dots {
    background: 0 0;
    border: none;
    color: #999;
    pointer-events: none
}

.tags-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    direction: rtl
}

.tags-link {
    color: #06c;
    transition: color .3s;
    white-space: nowrap
}

.download-buttons button,
.search-button {
    padding: 8px 0;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    transition: background-color .3s
}

.tags-link:hover {
    color: #004c99
}

.tag-container {
    display: flex;
    justify-content: center;
    margin: 25px 0
}

#tagForm {
    width: 100%;
    display: flex;
    justify-content: center
}

.search-button {
    width: 90%;
    font-weight: 700;
    background-color: #f60;
    color: #0d1b2a;
    border: none;
    border-radius: 6px
}

.download-buttons button {
    width: 100%;
    margin: 5px 0;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px
}

.download-buttons button:hover {
    background-color: #0056b3
}