/* Arabic pages (ar/), loaded after styles.css (and scroll-search.css on the home page).
   Right-to-left layout and the Arabic font. Everything else comes from styles.css unchanged.
   Latin text (Raymo, Google Play, emails, the English search examples) stays in Inter and
   Space Grotesk; Arabic letters fall through to Noto Sans Arabic, close to Android's own
   Arabic font, which the app's Arabic screens use. */

:root {
  --font-display: "Space Grotesk", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Letter spacing breaks Arabic letters apart, and Arabic needs more room between lines. */
[dir="rtl"] * { letter-spacing: normal !important; }
[dir="rtl"] .brand { letter-spacing: -0.03em !important; }
h1, h2, h3 { line-height: 1.3; }
h1, .hero h1 { line-height: 1.3; }
body { line-height: 1.75; }
.eyebrow { text-transform: none; font-size: .875rem; }

/* Base and nav */
.skip-link { left: auto; right: 16px; }
@media (min-width: 921px) {
  .nav-links .btn { margin-left: 0; margin-right: 10px; }
}
/* The Arabic labels are longer: tighter on tablets so the row fits */
@media (min-width: 921px) and (max-width: 960px) {
  .nav-links a:not(.btn) { padding: 8px 6px; font-size: .875rem; }
  .nav-links .btn { margin-right: 6px; padding: 9px 12px; font-size: .9rem; }
}

/* Hero */
.watch-link { padding: 6px 6px 6px 18px; }
@media (max-width: 520px) {
  .float-chip { padding: 8px 10px 8px 13px; }
}
@media (min-width: 960px) {
  .hero-grid { text-align: right; }
  .hero .lead { margin-left: auto; margin-right: 0; }
}

/* Search: the example searches stay in English, as on the screens shown */
.ss-title { text-align: right; line-height: 1.3; }
.ss-body > div { padding-left: 0; padding-right: calc(.875rem * 1.5 + 16px); }
.ss-count { margin: 12px 22px 0 0 !important; }
@media (min-width: 861px) and (max-height: 760px) {
  .ss-count { margin-top: 8px !important; }
}
@media (max-width: 860px), (max-height: 479px) {
  .ss-body > div { padding-right: 0; }
  .ss-count { margin-right: 22px !important; margin-left: 0 !important; }
}

/* Albums: wide tiles have their text on the right */
.tile--wide .tile-text { padding: 36px 36px 36px 8px; }
@media (max-width: 1000px) {
  .tile--details .tile-text { padding: 28px 28px 0; }
}
@media (max-width: 640px) {
  .tile--wide .tile-text { padding: 26px 24px 0; }
}

/* Video dialog */
.film-close { right: auto; left: 0; }

/* Legal pages */
.legal-wrap ul, .legal-wrap ol { padding-left: 0; padding-right: 24px; }
.legal-wrap th, .legal-wrap td { text-align: right; }
@media (max-width: 600px) {
  .legal-summary ul { padding-left: 0; padding-right: 20px; }
}
/* Addresses, emails and links in Latin letters keep their own order inside Arabic text */
.ltr { direction: ltr; unicode-bidi: isolate; }

/* The film button stays on one line */
.watch-link, .watch-len { white-space: nowrap; }
