/* TVStoreLive v1.6.2 – right-to-left layout (Arabic).
 *
 * Loaded after main.css on right-to-left pages only (<html dir="rtl">, see inc/setup.php), so the
 * other seven languages are unaffected. Flex and grid layouts follow the direction by themselves;
 * this file mirrors what main.css positions with left/right, and sets the Arabic font.
 * Decorative device illustrations (hero TV and phone, 4K screen, device set, TV guide) keep their
 * composition on purpose.
 */

/* Arabic font: Cairo (SIL Open Font License 1.1, assets/fonts/OFL-Cairo.txt), Arabic glyphs only.
   Latin words (TVStoreLive, app names, prices) keep Poppins. */
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cairo-400-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cairo-600-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/cairo-800-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

html[dir="rtl"] {
	--font: "Poppins", "Cairo", "Poppins Fallback", Tahoma, "Segoe UI", system-ui, sans-serif;
}
html[dir="rtl"] body { line-height: 1.75; }

/* Arabic letters are joined: letter-spacing breaks the joins and Arabic has no capitals. */
html[dir="rtl"] body * { letter-spacing: 0 !important; }
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .plan-badge,
html[dir="rtl"] .compare-table thead th,
html[dir="rtl"] .poster-badge,
html[dir="rtl"] .cm-label,
html[dir="rtl"] .footer-title,
html[dir="rtl"] .guide-now,
html[dir="rtl"] .hd-live,
html[dir="rtl"] .dev-live,
html[dir="rtl"] .guide-live { text-transform: none; }
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 { line-height: 1.45; }

/* Skip link: hidden above the page instead of far to the left (no horizontal scroll in RTL). */
html[dir="rtl"] .skip-link { left: auto; right: 8px; transform: translateY(-300%); }
html[dir="rtl"] .skip-link:focus { left: auto; right: 8px; transform: none; }

/* Arrows point the reading direction. */
html[dir="rtl"] .link-arrow .icon,
html[dir="rtl"] .icon-arrow { transform: scaleX(-1); }
html[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(4px); }

/* Text and lists. */
html[dir="rtl"] .breadcrumbs li + li::before { margin-right: 0; margin-left: 6px; }
html[dir="rtl"] .compare-table th,
html[dir="rtl"] .compare-table td { text-align: right; }
html[dir="rtl"] .entry-content ul,
html[dir="rtl"] .entry-content ol { padding-left: 0; padding-right: 1.4em; }
html[dir="rtl"] .entry-content blockquote { padding: 4px 20px 4px 0; border-left: 0; border-right: 4px solid var(--brand); }
html[dir="rtl"] .connect-list { padding-left: 0; padding-right: 18px; }
html[dir="rtl"] .fee-note { border-left-width: 1px; border-right-width: 4px; }
html[dir="rtl"] .lang-note { border-left: 1px solid var(--line); border-right: 3px solid var(--brand); }
html[dir="rtl"] .footer-note { text-align: left; }

/* Numbered steps. */
html[dir="rtl"] .step-num { left: auto; right: 18px; }
html[dir="rtl"] .guide-steps li { padding: 14px 60px 14px 16px; }
html[dir="rtl"] .guide-steps li::before { left: auto; right: 14px; }
html[dir="rtl"] .cta-step-num { left: auto; right: 30px; }

/* Badges, menus, floating elements. */
html[dir="rtl"] .poster-badge { left: auto; right: 10px; }
html[dir="rtl"] .lang-menu-list { right: auto; left: 0; }
html[dir="rtl"] .wa-float { right: auto; left: 18px; }
html[dir="rtl"] .lang-bar { padding: 10px 18px 10px 12px; }
html[dir="rtl"] .screen-bar em { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .featured-dots { right: auto; left: 24px; }

/* Channel Management Link illustration: switches turn on towards the left. */
html[dir="rtl"] .cm-toggles i::after { left: auto; right: 3px; }
html[dir="rtl"] .cm-toggles li.on i::after { transform: translateX(-16px); }

/* Decorative cards and posters that overhang one side. */
html[dir="rtl"] .float-card-a { left: auto; right: -24px; }
html[dir="rtl"] .float-card-b { right: auto; left: -12px; }
html[dir="rtl"] .genre-art { right: auto; left: -10px; }
html[dir="rtl"] .teaser-art { right: auto; left: -14px; }
html[dir="rtl"] .teaser-art > * { margin-left: 0; margin-right: -18px; }
html[dir="rtl"] .movie-side { right: auto; left: -24px; }

@media (max-width: 960px) {
	html[dir="rtl"] .hero-devices { padding-right: 0; padding-left: 8%; }
	html[dir="rtl"] .movie-side { right: auto; left: 12px; }
	html[dir="rtl"] .vpn-card { text-align: right; }
}

@media (max-width: 640px) {
	html[dir="rtl"] .footer-note { text-align: right; }
	html[dir="rtl"] .float-card-a { left: auto; right: 8px; }
	html[dir="rtl"] .float-card-b { right: auto; left: 8px; }
	html[dir="rtl"] .guide-steps li { padding-left: 16px; padding-right: 54px; }
	html[dir="rtl"] .lang-bar { left: 84px; right: 16px; }
	html[dir="rtl"] .featured-dots { left: auto; right: 20px; }
}

/* v1.6.2.2: family hero mirrored – scene on the left, dark side for the text on the right. */
html[dir="rtl"] .hero-family .hero-media { left: 0; right: auto; }
html[dir="rtl"] .hero-family .hero-media img,
html[dir="rtl"] .hero-family .hero-video { object-position: 38% 30%; }
html[dir="rtl"] .hero-family .hero-media::after {
	background:
		radial-gradient(520px 340px at 30% 78%, rgba(255, 170, 90, .10), transparent 70%),
		linear-gradient(270deg, #050506 0%, rgba(5, 5, 6, .86) 14%, rgba(5, 5, 6, .38) 38%, rgba(5, 5, 6, .05) 62%, rgba(5, 5, 6, 0) 100%),
		linear-gradient(180deg, rgba(5, 5, 6, .5) 0%, rgba(5, 5, 6, 0) 24%, rgba(5, 5, 6, 0) 66%, var(--bg) 100%);
}
html[dir="rtl"] .hero-family .hero-poster { transform-origin: 38% 38%; }
@media (max-width: 960px) {
	html[dir="rtl"] .hero-family .hero-media::after {
		background: linear-gradient(180deg, rgba(5, 5, 6, .35) 0%, rgba(5, 5, 6, 0) 26%, rgba(5, 5, 6, .15) 62%, #050506 100%);
	}
	html[dir="rtl"] .hero-family .hero-media img { object-position: 52% 30%; }
}