/* Mirror the complete reference layout for Arabic: RTL page, content, and controls. */
body.short-drama .header { direction: rtl; }
body.short-drama .logo { direction: ltr; }

body.short-drama .hero h1,
body.short-drama .hero p,
body.short-drama .row-header h2,
body.short-drama .row-header p,
body.short-drama .card-info,
body.short-drama .feature-card h3,
body.short-drama .feature-card p,
body.short-drama .download h2,
body.short-drama .download p,
body.short-drama .hero-meta span,
body.short-drama .requirements li,
body.short-drama .footer-links a,
body.short-drama .footer-copy,
body.short-drama [data-dl] {
  direction: rtl;
  unicode-bidi: plaintext;
}

body.short-drama .card-info { text-align: right; }

@media (min-width: 761px) {
  body.short-drama .hero h1,
  body.short-drama .hero p,
  body.short-drama .row-header h2,
  body.short-drama .row-header p { text-align: right; }
  body.short-drama .hero:after {
    background: linear-gradient(to left, rgba(0,0,0,.9), rgba(0,0,0,.25)),
                linear-gradient(to top, var(--bg), transparent 50%);
  }

  /* Match the reference grid so all cards wrap into visible desktop rows. */
  body.short-drama.sd-v2 .row-inner {
    display: grid !important;
    grid-auto-flow: row dense !important;
    grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)) !important;
    grid-auto-columns: auto !important;
    grid-auto-rows: auto !important;
    align-items: start !important;
    gap: 17px !important;
    overflow: visible !important;
    padding: 8px 0 18px !important;
  }

  body.short-drama.sd-v2 .row-inner .card:first-child .card-thumb {
    aspect-ratio: 4 / 3 !important;
  }
}

@media (max-width: 760px) {
  body.short-drama .hero h1,
  body.short-drama .hero p { text-align: center; }

  body.short-drama .row-header h2 { text-align: right !important; }
}
