/* RTL布局支持 - 维吾尔语 */

html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .header-content {
    flex-direction: row-reverse;
}

html[dir="rtl"] .main-nav {
    flex-direction: row-reverse;
}

html[dir="rtl"] .header-right {
    flex-direction: row-reverse;
}

html[dir="rtl"] .search-form {
    flex-direction: row-reverse;
}

html[dir="rtl"] .video-thumb .tag-vip {
    right: auto;
    left: 8px;
}

html[dir="rtl"] .video-thumb .tag-new {
    left: auto;
    right: 8px;
}

html[dir="rtl"] .more-link {
    flex-direction: row-reverse;
}

html[dir="rtl"] .more-link i {
    transform: scaleX(-1);
}

html[dir="rtl"] .section-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-content {
    direction: rtl;
}

html[dir="rtl"] .footer-links {
    text-align: left;
}

html[dir="rtl"] .sidebar-menu a {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-menu a {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-menu a.active {
    border-right: none;
    border-left: 3px solid var(--primary);
}

html[dir="rtl"] .form-check {
    flex-direction: row-reverse;
}

html[dir="rtl"] .card-recharge {
    flex-direction: row-reverse;
}

html[dir="rtl"] .episodes {
    flex-direction: row-reverse;
}

html[dir="rtl"] .video-meta {
    flex-direction: row-reverse;
}

html[dir="rtl"] .filter-bar {
    flex-direction: row-reverse;
}

html[dir="rtl"] .form-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .stats-grid {
    direction: rtl;
}

html[dir="rtl"] .vip-grid {
    direction: rtl;
}

html[dir="rtl"] .history-list {
    direction: rtl;
}

html[dir="rtl"] .related-grid {
    direction: rtl;
}

/* 维吾尔语字体 */
html[lang="ug"] {
    font-family: 'UKIJ Tuz Tom', 'Microsoft Uighur', 'Scheherazade', Arial, sans-serif;
}

html[lang="ug"] .logo h1 {
    font-family: 'UKIJ Tuz Tom', 'Microsoft Uighur', sans-serif;
}

html[lang="ug"] .video-card h3 {
    font-family: 'UKIJ Tuz Tom', 'Microsoft Uighur', sans-serif;
}

html[lang="ug"] .banner-slide h2 {
    font-family: 'UKIJ Tuz Tom', 'Microsoft Uighur', sans-serif;
}

/* 表单输入框RTL */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] input::placeholder,
html[dir="rtl"] textarea::placeholder {
    text-align: right;
}

/* 按钮和徽章 */
html[dir="rtl"] .badge {
    margin-left: 5px;
    margin-right: 0;
}

/* 分页 */
html[dir="rtl"] .pagination {
    direction: ltr;
}

/* 表格 */
html[dir="rtl"] table {
    direction: rtl;
}

html[dir="rtl"] th,
html[dir="rtl"] td {
    text-align: right;
}
