/* UX pass B (2026-11-28): Films, Series, Kids, title pages, request pages, player, account, legal. Loaded last; fixes only. */

/* ---------- 1. Subscribe page: three equal plan cards, one clear action ---------- */
.subscribe { max-width: 1160px; padding-bottom: var(--sp-6, 32px); }
.sub-hero { padding: clamp(32px, 5vw, 64px) var(--gutter) 0; gap: 16px; }
.sub-hero h1 { max-width: 22ch; font-weight: 800; text-wrap: balance; }
.sub-hero p { font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.08rem); line-height: 1.7; text-wrap: balance; }
.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 20px; max-width: 1060px; padding: clamp(36px, 4.5vw, 56px) var(--gutter) 28px; }
.plan { gap: 0; padding: 30px 24px 24px; border-radius: 20px; }
.plan h3 { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.5; color: var(--text-2); }
.plan.pop h3 { color: #fff; }
.plan-price { margin-top: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--line); gap: 8px; flex-wrap: wrap; }
.plan-price b { font-size: clamp(2.5rem, 2.1rem + 1.2vw, 3.1rem); line-height: 1.1; color: #fff; }
.plan-price span { font-size: 0.875rem; color: var(--text-2); }
.plan-feats { margin: 22px 0 26px; gap: 12px; font-size: 0.9rem; line-height: 1.6; color: var(--text); }
.plan-feats li { gap: 10px; }
.plan-feats svg { width: 16px; height: 16px; margin-top: 4px; }
.plan .btn { min-height: 50px; font-weight: 700; }
.plan .btn:disabled { opacity: 0.6; cursor: default; }
.plan.pop { background: #12141c; border-color: rgba(225, 29, 42, 0.6); }
/* the two labels are calm glass pills that sit on the card's top edge; a card with a label keeps the same inner layout as the others */
.plan-tag, .plan-save { position: absolute; top: -13px; inset-inline-start: 22px; display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 1; background: #0d0e14; color: #fff; box-shadow: inset 0 0 0 1px rgba(225, 29, 42, 0.6); }
.plan-save { color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 50%, transparent); }
.sub-note { padding: 4px var(--gutter) 48px; line-height: 1.7; }
@media (max-width: 900px) { .plans { gap: 14px; } .plan { padding: 28px 18px 20px; } .plan-tag, .plan-save { inset-inline-start: 16px; } }
@media (max-width: 719px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; gap: 30px; }
  .plan { padding: 28px 22px 22px; }
  .plan-tag, .plan-save { inset-inline-start: 22px; }
}

/* ---------- 2. Request cards and request pages ---------- */
/* trailer frames often carry their own lettering: a firmer floor under the printed title so the two never read as doubled text */
.rq-card:has(.rq-frame) .rq-scrim { background: linear-gradient(to top, #06070a 0%, rgba(6,7,10,0.95) 28%, rgba(6,7,10,0.6) 44%, rgba(6,7,10,0) 64%), linear-gradient(to bottom, rgba(6,7,10,0.55), rgba(6,7,10,0) 26%); }
/* the request counter is the same glass pill as the other chips */
.rq-card .rq-count { min-height: 22px; padding: 0 9px; gap: 4px; border: 0; font-size: 10.5px; font-weight: 600; line-height: 1; background: rgba(10,11,15,0.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rq-card .rq-count svg { width: 11px; height: 11px; }
.rq-card .rq-count b { font-weight: 700; }
/* Top 10 cards: the counter joins the chip column instead of floating over the picture */
.rq-card:has(.rq-rank) .rq-count { inset-inline: auto 10px; top: 38px; bottom: auto; }
.rq-card:has(.rq-rank):has(.rq-hastr) .rq-count { top: 66px; }
/* the other-language name lines up with the rest of the page */
:root[dir="rtl"] .rq-alt { text-align: right; }
.rq-body h2 { overflow-wrap: anywhere; }
/* small request sheet (series, kids, channels): as tall as its content, centred; a bottom sheet on phones */
.rq-modal:not(.rq-full) { align-items: center; }
.rq-modal:not(.rq-full) .rq-card-sheet.rq-page { height: auto; max-height: calc(100dvh - 32px); border-radius: 18px; }
.rq-modal:not(.rq-full) .rq-page > header { padding: 14px 14px 0 22px; }
:root[dir="rtl"] .rq-modal:not(.rq-full) .rq-page > header { padding: 14px 22px 0 14px; }
.rq-page > header .icon-btn { width: 44px; height: 44px; flex: none; }
@media (max-width: 640px) {
  .rq-modal:not(.rq-full) { align-items: end; padding: 0; }
  .rq-modal:not(.rq-full) .rq-card-sheet.rq-page { max-height: 92dvh; border-radius: 20px 20px 0 0; }
  .rq-modal:not(.rq-full) .rq-card-sheet.rq-page .rq-body { padding: 10px 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .rq-full .rq-card-sheet.rq-page .rq-body { margin-top: -44px; }
}

/* ---------- 3. "Roya AI" tag beside a rail title: the same calm glass pill as the other badges ---------- */
.rail-title .ai-tag { min-height: 22px; padding: 0 9px; gap: 5px; font-size: 10.5px; font-weight: 600; line-height: 1; letter-spacing: 0; color: #fff; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); vertical-align: middle; }
.rail-title .ai-tag svg { width: 11px; height: 11px; color: var(--red-2, #ff5a63); }

/* ---------- 4. Search / Roya AI palette ---------- */
.pal-input input { text-overflow: ellipsis; }
.pal-input input::placeholder { text-overflow: ellipsis; }
.pal-tag.ly { display: none; } /* the section title already says where the channel is from */
.pal-tag { display: inline-flex; align-items: center; min-height: 20px; line-height: 1; }

/* ---------- 5. Title page ---------- */
/* age label reads "7+" in both languages (the data stores "+7") */
:root[dir="ltr"] .tp-age { direction: rtl; unicode-bidi: isolate; }

/* ---------- 6. Kids: collection tiles on phones were too short for icon + two-line name (icon was cut off) ---------- */
@media (max-width: 599px) { .kc-tile.has-cover { aspect-ratio: auto; min-height: 136px; } }
/* request film page: the kicker stays readable over a bright picture */
.rq-full .rq-kicker { min-height: 32px; padding: 0 12px; border-radius: 999px; color: #fff; background: rgba(10,11,15,0.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
