/* Requested shows (أعمال نعمل على توفيرها): Roya-designed cards, request sheet, Studio table. Logic: public/js/requested-shows.js */
.rq-card { cursor: pointer; }
.rq-card .rp-key { pointer-events: none; }
.rq-count { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: rgba(7,8,12,0.72); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.rq-count svg { width: 13px; height: 13px; }
.rq-count b { font-weight: 800; }

.rq-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,0.78); backdrop-filter: blur(6px); }
.rq-card-sheet { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 18px; background: #0b0c12; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 40px 90px -30px #000; }
.rq-card-sheet > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 0 16px; }
.rq-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--text-3); font-size: var(--fs-s); }
.rq-kicker svg { width: 15px; height: 15px; color: var(--red-2, #ff5a63); }
.rq-body { padding: 8px 22px 24px; }
.rq-body h2 { margin: 6px 0 2px; font-size: 1.6rem; line-height: 1.25; font-weight: 900; }
.rq-alt { margin: 0; color: var(--text-3); font-size: var(--fs-s); }
.rq-meta { margin: 8px 0 0; color: var(--text-2); font-size: var(--fs-s); }
.rq-line { margin: 14px 0 0; color: var(--text); font-size: 1.02rem; line-height: 1.7; }
.rq-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.rq-go.done, .rq-go:disabled { background: rgba(34,197,94,0.16); color: #b7f5cd; box-shadow: none; border: 1px solid rgba(34,197,94,0.45); opacity: 1; }
.rq-foot { min-height: 20px; margin: 10px 0 0; color: var(--text-2); font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.rq-note { margin: 12px 0 0; color: var(--text-3); font-size: var(--fs-s); line-height: 1.6; }

.rq-admin .pr-count { color: var(--text); }

@media (max-width: 640px) {
  .rq-modal { padding: 12px; align-items: end; }
  .rq-card-sheet { border-radius: 18px 18px 0 0; }
  .rq-body { padding: 8px 18px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .rq-actions .btn { width: 100%; justify-content: center; }
}

/* Roya-designed poster files (public/media/posters/req-*.jpg): the picture carries the title, so no text overlay. */
.rq-card.rq-has-art .poster { overflow: hidden; }
.rq-card .rq-poster { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Title always visible on picture cards: bottom gradient + text, also when the image is loading or missing */
.rq-card .rq-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(5,6,9,0.92) 0%, rgba(5,6,9,0.45) 38%, transparent 62%); }
.rq-card .rq-title { position: absolute; z-index: 2; inset-inline: 12px; bottom: 14px; display: grid; gap: 3px; color: #fff; text-align: start; }
.rq-card .rq-title b { font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem); font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; text-shadow: 0 2px 10px rgba(0,0,0,0.7); }
.rq-card .rq-title span { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.8); overflow-wrap: anywhere; }
.rq-card.rq-has-art .poster { background: linear-gradient(160deg, hsl(var(--h, 200) 45% 22%), #07080c); }

/* Requested titles open as their own title page */
.rq-modal { align-items: stretch; }
.rq-card-sheet.rq-page { width: 100%; max-width: 760px; max-height: none; height: 100%; margin: 0 auto; border-radius: 0; overflow: auto; }
.rq-hero { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #07080c; }
.rq-hero img { width: 100%; height: 100%; object-fit: cover; }
.rq-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #0b0c12 0%, transparent 60%); }
.rq-card-sheet.rq-page .rq-body { padding: 18px 24px 40px; }

/* Paid sports channels: identical to real channel cards; only the LIVE badge becomes a quiet "soon" */
.ccard .badge-live.badge-soon, .sc .badge-live.badge-soon { background: rgba(10,11,15,0.72); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); animation: none; }
.badge-live.badge-soon::before { animation: none; background: #f2b632; box-shadow: none; }
.sc.pm-ch .sc-logo > b { padding-top: 14px; font-size: 13px; font-weight: 700; color: #fff; }

/* Soon channel cards: same tile, chips and rhythm as the live channel cards; no decorative rule, the name sits where the logo sits */
.ccard.pm-ch .ch-stage { background: radial-gradient(130% 100% at 50% 0%, #1d2029 0%, #0e1016 60%, #08090d 100%) !important; }
.ccard.pm-ch .ch-stage::after { display: none !important; }
.ccard.pm-ch .ch-stage .ch-word { inset: 50% 10% auto; font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem); line-height: 1.3; }
.ccard.pm-ch .ch-stage .ch-logo .badge-soon { background: rgba(10,11,15,0.72); color: #f2b632; box-shadow: inset 0 0 0 1px rgba(242,182,50,0.45); }
.ccard.pm-ch .ch-tags .badge-premium { background: rgba(10,11,15,0.72); color: #f2b632; box-shadow: inset 0 0 0 1px rgba(242,182,50,0.45); }
.ccard.pm-ch .prog i { width: 0% !important; }
.sc.pm-ch .sc-logo { background: radial-gradient(130% 100% at 50% 0%, #1d2029 0%, #0e1016 60%, #08090d 100%); }

/* Film request cards: premium chip (top, far side) and the Top 10 numeral */
.rq-card .rq-prem { position: absolute; z-index: 2; top: 10px; inset-inline-end: 10px; display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; color: #e9c46a; background: rgba(10,11,15,0.62); box-shadow: inset 0 0 0 1px rgba(233,196,106,0.38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rq-card .rq-prem svg { width: 11px; height: 11px; }
.rq-card .rq-rank { position: absolute; z-index: 2; top: 34px; inset-inline-start: 12px; font-size: clamp(54px, 34cqi, 84px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: #fff;
  font-variant-numeric: tabular-nums; text-shadow: 0 4px 22px rgba(0,0,0,0.75); direction: ltr; }
.rq-card:has(.rq-rank) .rq-count { top: auto; bottom: 86px; }
/* The card prints its own title, so the lettering baked into the poster is fully covered (no doubled text) */
.rq-card.rq-has-art .rq-scrim { background: linear-gradient(to top, #06070a 0%, #06070a 30%, rgba(6,7,10,0.9) 38%, rgba(6,7,10,0) 58%); }

/* Official trailer on the title page: the trailer's own preview frame, then the rights holder's embedded player */
.rq-hero.rq-trailer { cursor: pointer; }
.rq-hero.rq-trailer.playing::after { display: none; }
.rq-hero.rq-trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rq-play { position: absolute; z-index: 2; inset: 0; margin: auto; width: max-content; height: max-content; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; color: #fff; background: rgba(10,11,15,0.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; transition: transform .2s, background .2s; }
.rq-play:hover, .rq-play:focus-visible { transform: scale(1.04); background: rgba(225,29,42,0.9); }
.rq-play svg { width: 20px; height: 20px; }
.rq-card .rq-hastr { position: absolute; z-index: 2; top: 38px; inset-inline-end: 10px; display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 0 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600;
  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); }
.rq-card .rq-hastr svg { width: 10px; height: 10px; }

/* Cards with an official trailer show that trailer's own preview frame (served by the video host, linked to the embedded player) */
.rq-card .rq-poster.rq-frame { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rq-card:has(.rq-frame) .rq-scrim { background: linear-gradient(to top, #06070a 0%, rgba(6,7,10,0.88) 24%, rgba(6,7,10,0) 55%), linear-gradient(to bottom, rgba(6,7,10,0.55), rgba(6,7,10,0) 26%); }
.rq-card .rq-rank { direction: inherit; } /* keep the numeral on the title's side, clear of the chips */

/* Trailer player, minimal: no control bar; one tap layer pauses and resumes */
.rq-hero.rq-trailer iframe { pointer-events: none; }
.rq-tap { position: absolute; inset: 0; z-index: 3; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.rq-tap span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; background: rgba(10,11,15,0.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); opacity: 0; transition: opacity .2s; }
.rq-tap span svg { width: 26px; height: 26px; }
.rq-tap.paused { background: rgba(6,7,10,0.72); } /* dims the frame (and the host's pause overlay) while paused */
.rq-tap.paused span { opacity: 1; }

/* Film pages open full-screen like the app's other title pages: big picture on top, trailer plays at full size */
.rq-modal.rq-full { padding: 0; background: #07080c; backdrop-filter: none; }
.rq-full .rq-card-sheet.rq-page { max-width: none; background: #07080c; position: relative; }
.rq-full .rq-hero { aspect-ratio: auto; height: min(72vh, 56.25vw); min-height: 240px; }
.rq-full .rq-hero.playing { height: min(100dvh, 56.25vw); background: #000; }
.rq-full .rq-hero::after { background: linear-gradient(to top, #07080c 0%, rgba(7,8,12,0) 45%), linear-gradient(to bottom, rgba(7,8,12,0.6), rgba(7,8,12,0) 22%); pointer-events: none; }
.rq-full .rq-page > header { position: absolute; top: 0; inset-inline: 0; z-index: 5; padding: 16px clamp(16px, 4vw, 48px); background: none; border: 0; }
.rq-full .rq-page > header .icon-btn { background: rgba(10,11,15,0.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); border-radius: 50%; }
.rq-full .rq-card-sheet.rq-page .rq-body { max-width: 980px; margin: -70px auto 0; position: relative; z-index: 4; padding: 0 clamp(16px, 4vw, 48px) 64px; }
.rq-full .rq-hero.playing + header + .rq-body, .rq-full .rq-page:has(.rq-hero.playing) .rq-body { margin-top: 20px; }
.rq-full .rq-body h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem); line-height: 1.2; }
.rq-full .rq-body .rq-line { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); max-width: 60ch; }
.rq-full .rq-actions .btn { min-height: 48px; padding-inline: 26px; }
.rq-fs { position: absolute; z-index: 4; bottom: 16px; inset-inline-end: 16px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; cursor: pointer;
  background: rgba(10,11,15,0.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24); }
.rq-fs svg { width: 20px; height: 20px; }
.rq-hero:fullscreen { height: 100vh !important; width: 100vw; background: #000; }
.rq-hero:fullscreen::after { display: none; }
