/* Oley 2.2 — Reels landing feed (TikTok style). Brand: black #080808, panel #111111, blue #2678FF, white text. */
.reels { --rl-blue: #2678FF; --rl-bg: #080808; --rl-panel: #111111; position: relative; height: calc(100dvh - var(--nav-h) - var(--safe-b)); background: var(--rl-bg); color: #fff; overflow: hidden; }
.reels [hidden] { display: none !important; }
.rl-top { position: absolute; z-index: 6; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: linear-gradient(rgba(0,0,0,.6), transparent); pointer-events: none; }
.rl-top > * { pointer-events: auto; }
.rl-top .cin-logo { font-size: 24px; }
.rl-top .cin-logo .dot { color: var(--rl-blue); }
.rl-top .cin-logo .az { background: none; color: var(--rl-blue); }
.rl-tab { font-weight: 700; font-size: 14px; padding: 7px 12px; border-radius: 999px; color: rgba(255,255,255,.85); }
.rl-tab:hover { background: rgba(255,255,255,.1); color: #fff; }
.rl-top .icon-btn { color: #fff; }
.rl-snd { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; }
.rl-snd .ico { width: 22px; height: 22px; }
.rl-scroll { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.rl-scroll::-webkit-scrollbar { display: none; }
.rl { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; display: grid; place-items: center; background: #000; }
.rl-loading, .rl-empty { text-align: center; padding: 20px; background: var(--rl-bg); }
.rl-empty div { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 320px; color: #A7A7AE; }
.rl-empty .ico { width: 54px; height: 54px; color: var(--rl-blue); }
.rl-empty h3 { color: #fff; font-size: 17px; line-height: 1.4; }
.rl-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; border: 0; }
.rl-yt { pointer-events: none; transform: scale(1.02); }
.rl-catch { position: absolute; inset: 0; z-index: 1; }
.rl-ytposter { z-index: 1; pointer-events: none; }
.rl-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.25) 34%, rgba(0,0,0,0) 52%); pointer-events: none; }

/* right rail */
.rl-rail { position: absolute; z-index: 3; right: 8px; bottom: 26px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.rl-film-av { position: relative; width: 50px; height: 50px; margin-bottom: 8px; border-radius: 50%; border: 2px solid #fff; background: var(--rl-panel); box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.rl-film-av img, .rl-film-av span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.rl-film-av i { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--rl-blue); color: #fff; }
.rl-film-av i .ico { width: 12px; height: 12px; stroke-width: 2.4; }
.rl-film-av:active { transform: scale(.94); }
.rl-act { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.rl-act .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.rl-act .ico { width: 32px; height: 32px; fill: rgba(255,255,255,.95); stroke: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.rl-act:active .ic { transform: scale(.88); }
.rl-act.on .ico { fill: #FF2D55; }
.rl-act.save.on .ico { fill: #FFC531; }
.rl-act.on .ic { animation: rlbump .35s var(--ease, ease); }
@keyframes rlbump { 40% { transform: scale(1.25); } }

/* bottom-left film info */
.rl-info { position: absolute; z-index: 3; left: 14px; right: 78px; bottom: 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-shadow: 0 1px 6px rgba(0,0,0,.55); }
.rl-title { font-size: 18px; font-weight: 800; line-height: 1.2; color: #fff; }
a.rl-title:hover { text-decoration: underline; }
.rl-meta { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rl-age { font-size: 11px; padding: 1px 6px; border: 1px solid rgba(255,255,255,.6); border-radius: 4px; }
.rl-clip { font-size: 13px; color: rgba(255,255,255,.9); display: inline-flex; align-items: center; gap: 5px; }
.rl-clip .ico { width: 15px; height: 15px; }
.rl-desc { font-size: 14px; line-height: 1.42; color: rgba(255,255,255,.92); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; max-width: 520px; }
.rl-desc.open { -webkit-line-clamp: unset; display: block; max-height: 38dvh; overflow-y: auto; }
.rl-btns { display: flex; gap: 8px; margin-top: 4px; }
.reels .btn.rl-watch { background: var(--rl-blue); color: #fff; box-shadow: 0 10px 26px -10px rgba(38,120,255,.9); border: 0; }
.reels .btn.rl-morebtn { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px); border: 0; }

/* progress line */
.rl-prog { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 14px; display: flex; align-items: flex-end; cursor: pointer; }
.rl-prog i { display: block; height: 2px; width: 0; background: #fff; transition: width .25s linear; box-shadow: 0 0 6px rgba(255,255,255,.6); }
.rl-prog:hover i { height: 4px; }

.rl-heart { position: absolute; z-index: 4; color: #FF2D55; opacity: 0; pointer-events: none; }
.rl-heart .ico { width: 110px; height: 110px; fill: currentColor; stroke: none; filter: drop-shadow(0 8px 30px rgba(255,45,85,.6)); }
.rl-heart.pop { animation: rlpop .8s var(--ease, ease); }
@keyframes rlpop { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.1); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.2) translateY(-30px); } }
.rl-tap { position: absolute; z-index: 2; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.4); pointer-events: none; }
.rl-tap .ico { fill: #fff; stroke: none; width: 34px; height: 34px; }
.rl-ad .rl-adtag { top: 64px; right: 14px; }
.rl-arrows { display: none; }

/* desktop: centred 9:16 column, rail beside the video, arrows on the right edge */
@media (min-width: 1024px) {
  .reels { height: 100dvh; }
  .rl { background: transparent; overflow: visible; }
  .rl-v, .rl-shade, .rl-catch { left: 50%; right: auto; width: min(calc(100% - 140px), calc((100dvh - 40px) * 9 / 16)); height: calc(100dvh - 40px); top: 20px; transform: translateX(-50%); border-radius: 14px; }
  .rl-yt { transform: translateX(-50%); }
  .rl-info { left: calc(50% - min(calc(100% - 140px), calc((100dvh - 40px) * 9 / 16)) / 2 + 16px); right: auto; width: calc(min(calc(100% - 140px), calc((100dvh - 40px) * 9 / 16)) - 32px); bottom: 40px; }
  .rl-rail { right: auto; left: calc(50% + min(calc(100% - 140px), calc((100dvh - 40px) * 9 / 16)) / 2 + 14px); bottom: 34px; }
  .rl-act .ic { background: rgba(255,255,255,.1); width: 50px; height: 50px; }
  .rl-act .ico { width: 26px; height: 26px; filter: none; }
  .rl-prog { left: calc(50% - min(calc(100% - 140px), calc((100dvh - 40px) * 9 / 16)) / 2); right: auto; width: min(calc(100% - 140px), calc((100dvh - 40px) * 9 / 16)); bottom: 20px; }
  .rl-top { background: none; padding: 16px 24px; }
  .rl-arrows { display: flex; flex-direction: column; gap: 10px; position: absolute; z-index: 6; right: 24px; top: 50%; transform: translateY(-50%); }
  .rl-arrows button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
  .rl-arrows button:hover { background: rgba(255,255,255,.2); }
}

/* comments sheet */
.sheet.rcs-sheet { padding: 0; max-width: 600px; height: 72dvh; display: flex; background: var(--rl-panel, #111); }
.rcs { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.rcs-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.rcs-head b { font-size: 15px; }
.rcs-list { flex: 1; overflow-y: auto; padding: 8px 14px; overscroll-behavior: contain; }
.rcs-list .spinner { margin: 30px auto; }
.rcs-empty { text-align: center; padding: 40px 10px; color: #A7A7AE; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rcs-empty .ico { width: 44px; height: 44px; fill: rgba(255,255,255,.15); stroke: none; }
.rcm { display: grid; grid-template-columns: 34px 1fr 34px; gap: 10px; padding: 10px 0; align-items: start; }
.rcm.reply { grid-template-columns: 26px 1fr 30px; padding: 8px 0; }
.rcm.reply .avatar { width: 26px; height: 26px; }
.rcm.flash { animation: rcflash 1.6s ease; border-radius: 10px; }
@keyframes rcflash { 0%, 40% { background: rgba(38,120,255,.18); } 100% { background: transparent; } }
.rcm-name { font-size: 13px; font-weight: 700; color: #B9B9C2; display: flex; align-items: center; gap: 4px; }
.rcm-name .verified { width: 14px; height: 14px; }
.rcm-to { font-weight: 600; color: #8C8C96; }
.rcm-text { font-size: 14.5px; line-height: 1.4; margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.rcm-foot { display: flex; align-items: center; gap: 14px; margin-top: 5px; font-size: 12.5px; color: #8C8C96; }
.rcm-foot button { color: #A7A7AE; font-weight: 700; font-size: 12.5px; display: inline-flex; }
.rcm-foot button .ico { width: 18px; height: 18px; }
.rcm-more { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: #A7A7AE; display: flex; align-items: center; gap: 6px; }
.rcm-more::before { content: ''; width: 22px; height: 1px; background: rgba(255,255,255,.2); }
.rcm-more.center { margin: 10px auto; }
.rcm-more.center::before { display: none; }
.rcm-replies { margin-top: 2px; }
.rcm-like { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #8C8C96; font-size: 11.5px; padding-top: 6px; }
.rcm-like .ico { width: 18px; height: 18px; }
.rcm-like.on { color: #FF2D55; }
.rcm-like.on .ico { fill: currentColor; }
.rcs-form { padding: 10px 14px calc(12px + var(--safe-b)); border-top: 1px solid rgba(255,255,255,.07); background: var(--rl-panel, #111); }
.rcs-row { display: flex; align-items: center; gap: 8px; }
.rcs-row .input { flex: 1; min-width: 0; height: 42px; border-radius: 999px; padding: 0 16px; outline: 0; font-size: 16px; }
.rcs-row .btn.primary { background: #2678FF; }
.rcs-replying { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: #A7A7AE; padding: 0 4px 8px; }
.rcs-replying .ico { width: 16px; height: 16px; }

/* share sheet */
.rsh .rcs-head { padding: 4px 0 12px; border: 0; }
.rsh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rsh-grid > * { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #DDD; text-align: center; padding: 6px 2px; border-radius: 12px; }
.rsh-grid > *:hover { background: rgba(255,255,255,.05); }
.rsh-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.rsh-ic .ico { width: 26px; height: 26px; }
.rsh-ic svg[style] { width: 52px; height: 52px; }
.rsh-list { display: flex; flex-direction: column; margin-top: 14px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 6px; }
.rsh-list button { display: flex; align-items: center; gap: 12px; padding: 13px 4px; font-weight: 600; font-size: 15px; text-align: left; }
.rsh-list button .ico { width: 22px; height: 22px; color: #A7A7AE; }
.rsh-list button.on .ico { color: #FFC531; fill: currentColor; }
.rrep h3 { margin-bottom: 10px; }
.rrep-opt { display: flex; align-items: center; gap: 10px; padding: 11px 2px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.06); }
.rrep textarea { margin: 12px 0 4px; width: 100%; height: auto; padding: 12px 14px; outline: 0; font-size: 15px; resize: vertical; }

/* Oley.az watermark — white, translucent, bottom-left corner of the clip (own videos only) */
.rl-wm { position: absolute; z-index: 2; left: 14px; bottom: 8px; font-family: var(--k-display, "Big Shoulders Display", Impact, sans-serif); font-weight: 800; font-size: 17px; letter-spacing: .06em; color: rgba(255,255,255,.55); text-shadow: 0 1px 6px rgba(0,0,0,.35); pointer-events: none; user-select: none; }
.rl:has(.rl-wm) .rl-info { bottom: 38px; }
@media (min-width: 1024px) {
  .rl-wm { left: calc(50% - min(calc(100% - 140px), calc((100dvh - 40px) * 9 / 16)) / 2 + 16px); bottom: 30px; }
  .rl:has(.rl-wm) .rl-info { bottom: 58px; }
}
.rl-err { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 22px; border-radius: 16px; background: rgba(0,0,0,.65); color: #fff; font-weight: 600; text-align: center; }
.rl-err .ico { width: 30px; height: 30px; }
.rl-err .btn { background: #2678FF; color: #fff; border: 0; }
.rl:has(.rl-err:not([hidden])) .rl-tap { display: none !important; }
