@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

/* Language Switcher Styling */
.lang-switch-wrap {
    display: flex;
    align-items: center;
}

.lang-switch-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none !important;
}

.lang-switch-btn:hover {
    background: #ff355e;
    border-color: #ff355e;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 53, 94, 0.35);
}

.lang-switch-btn i {
    font-size: 15px;
}

/* RTL Global Rules */
html[dir="rtl"] body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    text-align: right;
}

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

html[dir="rtl"] .sidebar-menu li a i {
    margin-right: 0;
    margin-left: 10px;
}

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

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

html[dir="rtl"] .float-left {
    float: right !important;
}

html[dir="rtl"] .float-right {
    float: left !important;
}

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

html[dir="rtl"] .icon-angle-right {
    transform: rotate(180deg);
    display: inline-block;
}

/* Canaan TV Live Stream Hero Section */
.canaan-live-hero-card {
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.95) 0%, rgba(22, 27, 34, 0.98) 100%), url('../img/demo/b1.jpg') center/cover no-repeat;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.canaan-live-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #f59e0b, #ff355e);
}

.live-indicator-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #f87171;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}

.live-indicator-badge .pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ef4444;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.canaan-brand-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.canaan-brand-slogan {
    font-size: 1.25rem;
    color: #ff355e;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
    background: rgba(255, 53, 94, 0.12);
    padding: 4px 14px;
    border-radius: 8px;
    border-right: 3px solid #ff355e;
}

.canaan-player-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 53, 94, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.video-js.vjs-canaan-theme {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
}

.video-js.vjs-canaan-theme .vjs-big-play-button {
    background-color: rgba(220, 38, 38, 0.9) !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    line-height: 76px !important;
    margin-top: -40px !important;
    margin-left: -40px !important;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.7);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.video-js.vjs-canaan-theme:hover .vjs-big-play-button {
    background-color: #ff355e !important;
    transform: scale(1.12);
}

.canaan-live-meta {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

