body {
    /*font-family: 'Roboto Mono', monospace;*/
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #383940;
}

/* Arabic / right-to-left layout */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .site-navbar-inner,
html[dir="rtl"] .site-navbar-collapse,
html[dir="rtl"] .site-account-area,
html[dir="rtl"] .site-language-menu .dropdown-item,
html[dir="rtl"] .site-footer-brand,
html[dir="rtl"] .site-footer-bottom,
html[dir="rtl"] .site-language-suggestion,
html[dir="rtl"] .account-language-form {
    direction: rtl;
}

html[dir="rtl"] .dropdown-menu-end {
    right: auto;
    left: 0;
    text-align: right;
}

html[dir="rtl"] .site-brand {
    margin-right: 0;
    margin-left: clamp(24px, 3vw, 54px);
}

html[dir="rtl"] .site-nav-links {
    margin-right: 0 !important;
    margin-left: auto !important;
}

html[dir="rtl"] .site-account-area {
    margin-right: 14px;
    margin-left: 0;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] .form-control,
html[dir="rtl"] .form-select {
    text-align: right;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[name="phone"],
html[dir="rtl"] code,
html[dir="rtl"] pre,
html[dir="rtl"] .site-footer-email {
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}

html[dir="rtl"] video,
html[dir="rtl"] .custom-video-shell,
html[dir="rtl"] .custom-video-ui,
html[dir="rtl"] .custom-video-controls,
html[dir="rtl"] .custom-video-progress-shell,
html[dir="rtl"] .live-player-shell,
html[dir="rtl"] .watch-player-shell {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] img,
html[dir="rtl"] video,
html[dir="rtl"] iframe {
    transform: none;
}

html[dir="rtl"] .cinema-back-link span,
html[dir="rtl"] .team-member-arrow,
html[dir="rtl"] [data-inline-video-back] svg {
    transform: scaleX(-1);
}

html[dir="rtl"] .text-start {
    text-align: right !important;
}

html[dir="rtl"] .text-end {
    text-align: left !important;
}

html[dir="rtl"] .videos-sidebar {
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

html[dir="rtl"] .videos-sidebar-link.active {
    box-shadow: inset -3px 0 var(--videos-accent);
}

html[dir="rtl"] .videos-sidebar-label,
html[dir="rtl"] .videos-sidebar-community p {
    letter-spacing: 0;
}

@media (max-width: 767.98px) {
    html[dir="rtl"] .videos-sidebar {
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    html[dir="rtl"] .videos-sidebar-link.active {
        box-shadow: inset 0 -2px var(--videos-accent);
    }
}

@media (max-width: 1199.98px) {
    html[dir="rtl"] .site-brand {
        margin-left: 0;
    }

    html[dir="rtl"] .site-nav-links {
        margin-left: 0 !important;
    }

    html[dir="rtl"] .site-nav-links .nav-link {
        text-align: right;
    }

    html[dir="rtl"] .site-nav-links .nav-link::after {
        right: 2px;
        left: auto;
    }

    html[dir="rtl"] .site-account-area {
        margin-right: 0;
    }
}

/* Language navigation */
.site-language-picker {
    flex: 0 0 auto;
}

.site-language-button {
    display: inline-flex;
    min-width: 68px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #f4f4f5;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #1c1d21;
}

.site-language-button:hover,
.site-language-button:focus,
.site-language-button[aria-expanded="true"] {
    color: #fff;
    border-color: rgba(255, 193, 7, 0.55);
    background: #24252a;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.site-language-button strong {
    font-size: 0.72rem;
}

.site-language-menu {
    min-width: 190px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #18191d;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

.site-language-menu form {
    margin: 0;
}

.site-language-menu .dropdown-item {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 12px;
    color: #d9d9dc;
    border: 0;
    border-radius: 6px;
    background: transparent;
}

.site-language-menu .dropdown-item:hover,
.site-language-menu .dropdown-item:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.site-language-menu .dropdown-item.active {
    color: #111216;
    background: #ffc107;
}

.site-language-menu .dropdown-item small {
    color: inherit;
    font-size: 0.65rem;
    font-weight: 800;
}

.site-language-suggestion {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px max(20px, calc((100vw - 1480px) / 2));
    color: #f8f8f9;
    border-bottom: 1px solid rgba(255, 193, 7, 0.35);
    background: #202126;
}

.site-language-suggestion > div:first-child {
    min-width: 0;
}

.site-language-suggestion strong,
.site-language-suggestion span {
    display: block;
}

.site-language-suggestion strong {
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.site-language-suggestion span {
    color: #aeb0b6;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.78rem;
}

.site-language-suggestion-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.site-language-suggestion-actions form {
    margin: 0;
}

.site-language-suggestion-primary,
.site-language-suggestion-secondary {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 6px;
}

.site-language-suggestion-primary {
    color: #111216;
    background: #ffc107;
}

.site-language-suggestion-secondary {
    color: #e6e6e8;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
}

.account-language-card:hover {
    transform: none;
}

.account-language-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 20px;
}

.account-language-form .form-select {
    min-height: 44px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background-color: #292a2f;
}

.account-language-form .btn {
    min-height: 44px;
    border-radius: 7px;
    font-size: 0.74rem;
    font-weight: 800;
}

.auth-country-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    color: #fff;
    background: #24252a;
}

.auth-country-display span {
    color: #ffc107;
    font-size: 0.72rem;
    font-weight: 800;
}

.account-country-card:hover {
    transform: none;
}

.account-overview-card .account-country-name {
    display: block;
    margin: 18px 0 12px;
    color: #fff;
    font-size: 1.15rem;
}

.account-spoken-languages-card {
    grid-column: 1 / -1;
    min-height: 0;
}

.account-spoken-languages-card:hover {
    transform: none;
}

.account-spoken-languages-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
}

.account-spoken-languages-heading h2 {
    margin: 0 0 9px;
}

.account-spoken-languages-heading p {
    max-width: 700px;
    margin: 0;
}

.account-spoken-languages-heading > strong {
    flex: 0 0 auto;
    padding: 7px 10px;
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.28);
    border-radius: 6px;
    background: rgba(255, 193, 7, 0.07);
    font-size: 0.64rem;
    text-transform: uppercase;
}

.account-spoken-languages-form {
    margin-top: 24px;
}

.account-spoken-languages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.account-spoken-language-option {
    display: flex;
    min-width: 0;
    min-height: 64px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: #222328;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.account-spoken-language-option:hover,
.account-spoken-language-option:focus-within {
    border-color: rgba(255, 193, 7, 0.38);
    background: #26272c;
}

.account-spoken-language-option.is-required {
    cursor: default;
    border-color: rgba(255, 193, 7, 0.28);
    background: rgba(255, 193, 7, 0.06);
}

.account-spoken-language-option input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #ffc107;
}

.account-spoken-language-option input:disabled {
    cursor: default;
    opacity: 1;
}

.account-spoken-language-option span,
.account-spoken-language-option strong,
.account-spoken-language-option small {
    display: block;
    min-width: 0;
}

.account-spoken-language-option strong {
    color: #f2f2f4;
    font-size: 0.8rem;
}

.account-spoken-language-option small {
    margin-top: 3px;
    color: #b99738;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.63rem;
    line-height: 1.35;
}

.account-spoken-languages-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-spoken-languages-footer p {
    max-width: 650px;
    margin: 0;
    font-size: 0.75rem;
}

.account-spoken-languages-footer .btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding-inline: 18px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 7px;
}

@media (max-width: 1199.98px) {
    .site-account-area {
        align-items: stretch;
        flex-direction: column;
    }

    .site-language-button,
    .site-language-menu,
    .site-login-button,
    .site-signup-button {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .site-language-suggestion {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 15px 18px;
    }

    .site-language-suggestion-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-language-suggestion-actions button {
        width: 100%;
        height: 100%;
    }

    .account-language-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-spoken-languages-heading,
    .account-spoken-languages-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .account-spoken-languages-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-spoken-languages-footer .btn {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .account-spoken-languages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    #navbarMain {
        max-height: calc(100vh - 64px);
        padding-top: 12px;
        padding-bottom: 12px;
        overflow-y: auto;
    }
}

.home-page,
.playverse-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

