/* Reels (App\Support\Reels): a full-screen dark feed, one phone-wide column, one video per screen. */
@font-face { font-family: "Kalpurush"; src: url("../../fonts/kalpurush.woff2") format("woff2"); font-display: swap; }
:root { --rl-bg: #0b0a14; --rl-glass: rgba(20, 16, 40, .55); --rl-line: rgba(255, 255, 255, .18); --rl-muted: rgba(255, 255, 255, .78); --rl-red: #ff4d6a;
  --rl-sheet: #ffffff; --rl-ink: #15122b; --rl-soft: #6a6585; --rl-sline: #ece9f6; --rl-accent: #532ceb; --rl-font: Kalpurush, "Noto Sans Bengali", system-ui, sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--rl-bg); color: #fff; font: 16px/1.4 var(--rl-font); -webkit-tap-highlight-color: transparent; }
.rl-app { position: relative; height: 100%; max-width: 460px; margin: 0 auto; overflow: hidden; }
.rl-top { position: absolute; z-index: 6; inset: 0 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 12px; background: linear-gradient(rgba(0,0,0,.6), transparent); display: grid; gap: 8px; }
.rl-row { display: flex; align-items: center; gap: 8px; }
.rl-row b { font-size: 21px; }
.rl-back, .rl-sound { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--rl-glass); border: 0; color: #fff; cursor: pointer; }
.rl-back svg, .rl-sound svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rl-sound { margin-left: auto; }
.rl-sound .w { display: none; }
.rl-sound[aria-pressed="true"] .w { display: inline; }
.rl-sound[aria-pressed="true"] .x { display: none; }
.rl-plus { width: 42px; height: 38px; border-radius: 12px; border: 0; background: #fff; color: var(--rl-ink); font: 700 28px/1 system-ui, sans-serif; cursor: pointer; box-shadow: -3px 0 0 #25f4ee, 3px 0 0 #fe2c55; }
.rl-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.rl-chips::-webkit-scrollbar, .rl-feed::-webkit-scrollbar { display: none; }
.rl-chips a { flex: none; border: 1px solid var(--rl-line); background: var(--rl-glass); color: #fff; padding: 5px 12px; border-radius: 999px; text-decoration: none; font-size: 15px; }
.rl-chips a[aria-current="page"] { background: #fff; color: var(--rl-ink); }
.rl-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.rl-reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: #000 center / cover no-repeat; overflow: hidden; }
.rl-reel video, .rl-reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; background: #000; }
.rl-reel .rl-tap { position: absolute; inset: 0; z-index: 1; }
.rl-reel.iframe .rl-tap { inset: 110px 70px 140px 0; }
.rl-reel::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,.78)); pointer-events: none; z-index: 1; }
.rl-paused { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; }
.rl-paused span { width: 72px; height: 72px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; }
.rl-paused svg { width: 34px; height: 34px; fill: #fff; }
.rl-burst { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 4; font-size: 92px; opacity: 0; transform: scale(.6); transition: .25s; }
.rl-burst.go { opacity: 1; transform: scale(1); }
.rl-rail { position: absolute; right: 8px; bottom: calc(env(safe-area-inset-bottom, 0px) + 110px); display: grid; gap: 14px; z-index: 3; }
.rl-rail button { border: 0; background: none; color: #fff; font: 13px var(--rl-font); display: grid; justify-items: center; gap: 2px; cursor: pointer; padding: 0; text-shadow: 0 1px 3px rgba(0,0,0,.7); position: relative; }
.rl-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--rl-glass); display: grid; place-items: center; font-size: 24px; }
.rl-ic svg { width: 25px; height: 25px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rl-on .rl-ic svg { fill: var(--rl-red); stroke: var(--rl-red); }
.rl-saved .rl-ic svg { fill: #ffd34d; stroke: #ffd34d; }
.rl-pick { position: absolute; right: 54px; top: -4px; display: flex; gap: 2px; background: rgba(20,16,40,.92); padding: 5px; border-radius: 999px; border: 1px solid var(--rl-line); z-index: 5; }
.rl-pick button { width: 42px; height: 42px; font-size: 24px; border-radius: 50%; display: grid; place-items: center; }
.rl-pick button:hover, .rl-pick button:focus-visible { background: rgba(255,255,255,.18); }
.rl-info { position: absolute; left: 0; right: 66px; bottom: 0; padding: 0 12px calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 3; display: grid; gap: 6px; }
.rl-who { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.rl-av { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--rl-accent); display: grid; place-items: center; font-weight: 800; flex: none; }
.rl-badge { font-size: 11px; padding: 1px 7px; border-radius: 6px; font-weight: 700; background: #ffd34d; color: var(--rl-ink); }
.rl-badge.team { background: var(--rl-accent); color: #fff; }
.rl-cap { color: var(--rl-muted); font-size: 15px; overflow-wrap: anywhere; }
.rl-cta { justify-self: start; background: #fff; color: var(--rl-ink); border: 0; font: 600 15px var(--rl-font); padding: 7px 14px; border-radius: 10px; text-decoration: none; }
.rl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); z-index: 4; }
.rl-bar i { display: block; height: 100%; width: 0; background: #fff; }
.rl-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--rl-muted); padding: 24px; }
.rl-toast { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); transform: translateX(-50%); background: rgba(0,0,0,.85); padding: 8px 14px; border-radius: 10px; z-index: 20; opacity: 0; transition: .2s; pointer-events: none; max-width: 90%; text-align: center; }
.rl-toast.on { opacity: 1; }
/* sheets */
.rl-shade { position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 10; }
.rl-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; background: var(--rl-sheet); color: var(--rl-ink); border-radius: 18px 18px 0 0; max-height: 80%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; padding-bottom: env(safe-area-inset-bottom, 0px); color-scheme: light; }
.rl-sh-head { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--rl-sline); font-weight: 700; }
.rl-sh-head button { margin-left: auto; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--rl-soft); cursor: pointer; }
.rl-sh-body { overflow-y: auto; padding: 8px 16px 14px; }
.rl-cm { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 8px 0; }
.rl-cm .rl-av { width: 32px; height: 32px; background: #ebe7fd; }
.rl-cm b { font-size: 14px; }
.rl-cm .t { font-size: 15px; overflow-wrap: anywhere; }
.rl-cm small { color: var(--rl-soft); font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; }
.rl-cm small button { border: 0; background: none; color: var(--rl-soft); font: inherit; padding: 0; cursor: pointer; }
.rl-reply { margin-left: 42px; border-left: 2px solid var(--rl-sline); padding-left: 10px; }
.rl-foot { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--rl-sline); }
.rl-foot input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--rl-sline); border-radius: 22px; padding: 0 14px; font: 16px var(--rl-font); color: var(--rl-ink); background: #f6f5fb; }
.rl-btn { border: 0; background: var(--rl-accent); color: #fff; font: 600 16px var(--rl-font); border-radius: 12px; padding: 0 16px; min-height: 46px; cursor: pointer; text-decoration: none; display: inline-grid; place-items: center; }
.rl-btn.line { background: #f3f1fb; color: var(--rl-ink); }
.rl-btn:disabled { opacity: .45; }
.rl-share { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding: 12px 0; }
.rl-share a, .rl-share button { border: 0; border-radius: 14px; display: grid; justify-items: center; gap: 6px; padding: 12px 4px; background: #f3f1fb; color: var(--rl-ink); font: 15px var(--rl-font); text-decoration: none; cursor: pointer; }
.rl-share i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 800; font-family: system-ui, sans-serif; }
.rl-link { font: 13px system-ui, sans-serif; background: #f3f1fb; padding: 10px; border-radius: 10px; word-break: break-all; user-select: all; }
.rl-list { display: grid; gap: 8px; padding: 6px 0; }
.rl-up { display: grid; gap: 12px; padding: 12px 0; }
.rl-drop { display: grid; place-items: center; gap: 4px; border: 2px dashed var(--rl-sline); border-radius: 16px; padding: 24px 12px; text-align: center; color: var(--rl-soft); cursor: pointer; }
.rl-drop b { color: var(--rl-ink); font-size: 18px; }
.rl-up video { width: 100%; max-height: 240px; border-radius: 12px; background: #000; }
.rl-up input[type=text] { min-height: 46px; border: 1px solid var(--rl-sline); border-radius: 12px; padding: 0 12px; font: 16px var(--rl-font); background: #f6f5fb; color: var(--rl-ink); }
.rl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-tags button { border: 1px solid var(--rl-sline); background: #fff; color: var(--rl-ink); border-radius: 999px; padding: 5px 12px; font: 15px var(--rl-font); cursor: pointer; }
.rl-tags button[aria-pressed="true"] { background: var(--rl-accent); color: #fff; border-color: var(--rl-accent); }
.rl-err { color: #c8323f; font-size: 14px; margin: 0; }
.rl-rule { color: var(--rl-soft); font-size: 13px; margin: 0; }
.rl-prog { height: 8px; border-radius: 9px; background: var(--rl-sline); overflow: hidden; }
.rl-prog i { display: block; height: 100%; width: 0; background: var(--rl-accent); transition: width .2s; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #8f7bff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
