/* framebynadeem: short-form reel player (rail + theater).
   Self-hosted video, no third-party embed. Pairs with reels-player.js.
   Shape rule: video frames are square-cornered (the viewfinder), every
   interactive control is a full pill or a circle. One accent: #e5372b. */

.rl,
.rl-th {
  --rl-ink: #f2f0ec;
  --rl-dim: rgba(242, 240, 236, .62);
  --rl-faint: rgba(242, 240, 236, .4);
  --rl-line: rgba(242, 240, 236, .14);
  --rl-red: #e5372b;
  --rl-mono: ui-monospace, Menlo, Consolas, monospace;
  --rl-sans: Archivo, "Helvetica Neue", Helvetica, sans-serif;
  --rl-ease: cubic-bezier(.2, .8, .2, 1);
}

.rl-i { width: 1em; height: 1em; fill: currentColor; flex: none; display: block }
.rl-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 }

/* ------------------------------------------------------------------ rail */

.rl { position: relative; margin-top: 7vh; color: var(--rl-ink); font-family: var(--rl-sans) }
.rl-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; align-items: start }
.rl-card { position: relative; min-width: 0 }
.rl-card:nth-child(even) { margin-top: 64px }

.rl-frame {
  -webkit-appearance: none; appearance: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit;
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; cursor: pointer;
  background: #0d0d0d; isolation: isolate; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(242, 240, 236, .08);
  transition: transform .5s var(--rl-ease), box-shadow .5s var(--rl-ease);
}
.rl-frame > * { pointer-events: none }
.rl-frame:focus-visible { outline: 2px solid var(--rl-red); outline-offset: 5px }
.rl-frame:active { transform: scale(.985) }

.rl-lqip { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(14px); transform: scale(1.15) }
.rl-fill { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(22px) brightness(.5) saturate(1.1) }
.rl-pic { position: absolute; left: 0; right: 0; top: 50%; width: 100%; aspect-ratio: var(--ar); transform: translateY(-50%); overflow: hidden }
.rl-pic img, .rl-pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block }
.rl-poster { transition: transform 1.1s var(--rl-ease) }
.rl-teaser { opacity: 0; transition: opacity .5s ease }
.rl-card.is-live .rl-teaser { opacity: 1 }

.rl-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(5, 5, 5, .78), rgba(5, 5, 5, 0) 34%), linear-gradient(to bottom, rgba(5, 5, 5, .45), rgba(5, 5, 5, 0) 22%) }

/* viewfinder corners: the logo's brackets, drawn in when a reel comes alive */
.rl-corners { position: absolute; inset: 12px; pointer-events: none; opacity: 0; transform: scale(1.06); transition: opacity .45s ease, transform .6s var(--rl-ease) }
.rl-corners i { position: absolute; width: 16px; height: 16px; border-color: rgba(255, 255, 255, .92); border-style: solid; border-width: 0 }
.rl-corners i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px }
.rl-corners i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px }
.rl-corners i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px }
.rl-corners i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px }

.rl-rec { position: absolute; left: 22px; top: 22px; display: flex; align-items: center; gap: 7px; font: 500 9.5px/1 var(--rl-mono); letter-spacing: .24em; color: #fff; opacity: 0; transition: opacity .35s ease }
.rl-rec i { width: 6px; height: 6px; border-radius: 50%; background: var(--rl-red); animation: rlRec 1.6s infinite }
.rl-dur { position: absolute; left: 24px; bottom: 22px; display: flex; align-items: center; gap: 6px; font: 500 10.5px/1 var(--rl-mono); letter-spacing: .14em; color: #fff; font-size: 10.5px }
.rl-dur .rl-i { width: 11px; height: 11px }
.rl-go { position: absolute; right: 22px; bottom: 18px; padding: 8px 13px; border-radius: 999px; background: #f2f0ec; color: #0a0a0a; font: 700 11px/1 var(--rl-sans); letter-spacing: .06em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .45s var(--rl-ease) }

.rl-card.is-live .rl-corners, .rl-frame:focus-visible .rl-corners { opacity: 1; transform: scale(1) }
.rl-card.is-live .rl-rec { opacity: 1 }
.rl-card.is-live .rl-go, .rl-frame:focus-visible .rl-go { opacity: 1; transform: none }
@media (hover: hover) and (pointer: fine) {
  .rl-frame:hover { transform: translateY(-6px); box-shadow: 0 44px 80px -36px rgba(0, 0, 0, 1), inset 0 0 0 1px rgba(242, 240, 236, .14) }
  .rl-frame:hover .rl-poster { transform: scale(1.045) }
  .rl-frame:hover .rl-corners { opacity: 1; transform: scale(1) }
  .rl-frame:hover .rl-go { opacity: 1; transform: none }
}

/* the Instagram-style footer under each reel */
.rl-meta { padding: 14px 2px 0 }
.rl-who { display: flex; align-items: center; gap: 10px; min-width: 0 }
.rl-av { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; background: #fff; box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 3.5px rgba(229, 55, 43, .9) }
.rl-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 }
.rl-id b { font: 700 13.5px/1.1 var(--rl-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.rl-id small { font: 500 10px/1 var(--rl-mono); letter-spacing: .06em; color: var(--rl-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.rl-ig { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rl-line); color: var(--rl-ink); transition: background .25s ease, border-color .25s ease, color .25s ease }
.rl-ig .rl-i { width: 17px; height: 17px }
.rl-ig:hover, .rl-ig:focus-visible { background: var(--rl-ink); border-color: var(--rl-ink); color: #0a0a0a; outline: none }
.rl-kind { margin: 12px 0 0; font: 700 14px/1.3 var(--rl-sans); letter-spacing: -.01em; color: var(--rl-ink); text-wrap: balance }
.rl-stats { margin-top: 9px; display: flex; align-items: center; gap: 13px; flex-wrap: wrap; font: 500 10.5px/1 var(--rl-mono); letter-spacing: .1em; color: var(--rl-faint); text-transform: uppercase }
.rl-stats span { display: inline-flex; align-items: center; gap: 5px }
.rl-stats .rl-i { width: 13px; height: 13px }
.rl-plen { display: inline-flex; align-items: center; gap: 6px }
.rl-plen .rl-i { width: 12px !important; height: 12px !important }

/* rail navigation: hidden while all five reels fit on one row */
.rl-railwrap { position: relative }
.rl-edge, .rl-foot, .rl-ctrl, .rl-dots { display: none }
.rl-foot { margin-top: 22px; align-items: center; justify-content: space-between; gap: 14px 16px; flex-wrap: wrap }

.rl-guide { margin: 0; display: inline-flex; align-items: center; gap: 8px; font: 500 10.5px/1.4 var(--rl-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--rl-dim); transition: opacity .6s ease }
.rl-guide-fine { display: none }
@media (hover: hover) and (pointer: fine) { .rl-guide-touch { display: none } .rl-guide-fine { display: inline } }
.rl-guide-i { width: 14px !important; height: 14px !important; color: var(--rl-red); animation: rlSide 1.5s var(--rl-ease) infinite }
.rl.is-scrolled .rl-guide { opacity: 0 }

.rl-arrow { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(242, 240, 236, .26); background: transparent; color: var(--rl-ink); cursor: pointer; transition: background .25s ease, border-color .25s ease, opacity .25s ease }
.rl-arrow .rl-i { width: 18px; height: 18px }
.rl-arrow:hover:not(:disabled), .rl-arrow:focus-visible { background: var(--rl-red); border-color: var(--rl-red); outline: none }
.rl-arrow:active:not(:disabled) { transform: scale(.94) }
.rl-arrow:disabled { opacity: .3; cursor: default }

/* edge arrows: solid, on the middle of the videos (--rl-fh = frame height) */
.rl-edge { position: absolute; z-index: 2; top: calc(var(--rl-fh, 380px) / 2); width: 54px; height: 54px; margin-top: -27px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--rl-ink); color: #0a0a0a; cursor: pointer; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .95), 0 0 0 6px rgba(10, 10, 10, .38); transition: opacity .3s ease, transform .4s var(--rl-ease), background .25s ease, color .25s ease; -webkit-tap-highlight-color: transparent }
.rl-edge.is-prev { left: -16px }
.rl-edge.is-next { right: -16px }
.rl-edge .rl-i { width: 22px; height: 22px }
.rl-edge:hover, .rl-edge:focus-visible { background: var(--rl-red); color: #fff; outline: none }
.rl-edge:focus-visible { box-shadow: 0 0 0 3px #0a0a0a, 0 0 0 5px var(--rl-red) }
.rl-edge:active { transform: scale(.92) }
.rl-edge:disabled { opacity: 0; transform: scale(.8); pointer-events: none }

/* fades over the edges where more reels are waiting */
.rl-railwrap::before, .rl-railwrap::after { content: ""; position: absolute; top: 0; z-index: 1; width: 6vw; height: 100%; pointer-events: none; opacity: 0; transition: opacity .4s ease }
.rl-railwrap::before { left: -6vw; background: linear-gradient(to right, #0a0a0a 10%, rgba(10, 10, 10, 0)) }
.rl-railwrap::after { right: -6vw; background: linear-gradient(to left, #0a0a0a 10%, rgba(10, 10, 10, 0)) }

/* position bar (phones): one dash per reel, the current one drawn long */
.rl-dots { align-items: center; gap: 2px; margin-left: -6px }
.rl-dot { width: 28px; height: 32px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent }
.rl-dot i { display: block; width: 100%; height: 3px; border-radius: 2px; background: rgba(242, 240, 236, .26); transform: scaleX(.4); transition: transform .45s var(--rl-ease), background .3s ease }
.rl-dot[aria-current="true"] i { transform: none; background: var(--rl-ink) }
.rl-dot:focus-visible { outline: none }
.rl-dot:focus-visible i { background: var(--rl-red) }

@keyframes rlSide { 0%, 100% { transform: translateX(-2px) } 50% { transform: translateX(3px) } }

/* entrance: each reel rises in turn when the rail first comes on screen */
@media (prefers-reduced-motion: no-preference) {
  .rl.is-armed .rl-card { opacity: 0; transform: translateY(46px); clip-path: inset(18% 0 0 0) }
  .rl.is-armed.is-in .rl-card { opacity: 1; transform: none; clip-path: inset(0 0 0 0); transition: opacity .8s ease calc(var(--i) * 90ms), transform 1.1s var(--rl-ease) calc(var(--i) * 90ms), clip-path 1.1s var(--rl-ease) calc(var(--i) * 90ms) }
}

@media (max-width: 1180px) {
  .rl-rail { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; gap: 16px; margin: 0 -6vw; padding: 0 6vw 6px; scroll-padding: 0 6vw; scrollbar-width: none; -webkit-overflow-scrolling: touch }
  .rl-rail::-webkit-scrollbar { display: none }
  .rl-card { flex: 0 0 clamp(218px, 29vw, 280px); scroll-snap-align: start }
  .rl-card:nth-child(even) { margin-top: 0 }
  .rl-foot { display: flex }
  .rl-edge { display: grid }
  .rl-railwrap.can-l::before, .rl-railwrap.can-r::after { opacity: 1 }
}
@media (max-width: 640px) {
  .rl { margin-top: 5vh }
  .rl-card { flex-basis: 68vw }
  .rl-edge { display: none }
  .rl-guide { flex-basis: 100% }
  .rl-dots, .rl-ctrl { display: flex }
  .rl-ctrl { gap: 8px }
}
@media (prefers-reduced-motion: reduce) {
  .rl-guide-i { animation: none }
  .rl-dot i, .rl-edge { transition: none }
}

/* --------------------------------------------------------------- theater */

.rl-th { position: fixed; inset: 0; z-index: 130; background: #050505; color: var(--rl-ink); font-family: var(--rl-sans); opacity: 0; visibility: hidden; transition: opacity .32s ease, visibility 0s linear .32s; -webkit-font-smoothing: antialiased }
.rl-th.is-open { opacity: 1; visibility: visible; transition: opacity .32s ease }
.rl-th button { font: inherit; color: inherit }
.rl-th a { color: inherit; text-decoration: none }

.rl-th-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none }
.rl-th-bg img { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(42px) saturate(1.25) brightness(.36); opacity: 0; transition: opacity .8s ease }
.rl-th-bg img.on { opacity: 1 }
.rl-th-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(5, 5, 5, 0), rgba(5, 5, 5, .78)) }

.rl-feed { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none }
.rl-feed::-webkit-scrollbar { display: none }
.rl-slide { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; gap: 34px; padding: 0 120px 0 150px; box-sizing: border-box }

.rl-stage { position: relative; flex: none; aspect-ratio: var(--ar); height: min(88vh, calc((100vw - 690px) / var(--ar))); height: min(88dvh, calc((100vw - 690px) / var(--ar))); background: #000; overflow: hidden; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(242, 240, 236, .07) }
.rl-sposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block }

/* the one shared <video>, moved into whichever slide is active */
.rl-player { position: absolute; inset: 0; outline: none }
.rl-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s ease; background: transparent }
.rl-player.has-frame video { opacity: 1 }
.rl-hit { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent }
.rl-player.is-idle, .rl-player.is-idle .rl-hit { cursor: none }

.rl-load { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; pointer-events: none; opacity: 0; transition: opacity .25s ease }
.rl-load i { position: absolute; width: 14px; height: 14px; border: 0 solid #fff }
.rl-load i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px }
.rl-load i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px }
.rl-load i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px }
.rl-load i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px }
.rl-player[data-state="loading"] .rl-load { opacity: 1; transition-delay: .25s }
.rl-player[data-state="loading"] .rl-load { animation: rlFocus 1.2s var(--rl-ease) infinite }

.rl-flash { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border-radius: 50%; background: rgba(8, 8, 8, .55); color: #fff; pointer-events: none; opacity: 0; transform: scale(.7) }
.rl-flash .rl-i { width: 30px; height: 30px }
.rl-flash.go { animation: rlFlash .6s var(--rl-ease) }
.rl-player.is-paused:not([data-state="ended"]):not([data-state="error"]) .rl-flash { opacity: 1; transform: none; animation: none }

.rl-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 12px; background: linear-gradient(to top, rgba(5, 5, 5, .82), rgba(5, 5, 5, 0)); transition: opacity .35s ease, transform .35s var(--rl-ease) }
.rl-player.is-idle .rl-bar { opacity: 0; transform: translateY(6px); pointer-events: none }
.rl-prog { position: relative; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none }
.rl-track { position: absolute; left: 0; right: 0; height: 5px; overflow: hidden; background: rgba(255, 255, 255, .22); transform: scaleY(.6); transition: transform .2s ease }
.rl-buf, .rl-fillp { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0) }
.rl-buf { background: rgba(255, 255, 255, .34) }
.rl-fillp { background: var(--rl-red) }
.rl-knob { position: absolute; left: 0; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .2s var(--rl-ease) }
.rl-tip { position: absolute; bottom: 20px; left: 0; padding: 5px 7px; border-radius: 999px; background: #f2f0ec; color: #0a0a0a; font: 600 10.5px/1 var(--rl-mono); letter-spacing: .06em; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .2s ease; white-space: nowrap }
.rl-prog:hover .rl-track, .rl-prog.is-drag .rl-track, .rl-prog:focus-visible .rl-track { transform: none }
.rl-prog:hover .rl-knob, .rl-prog.is-drag .rl-knob, .rl-prog:focus-visible .rl-knob { transform: scale(1) }
.rl-prog:hover .rl-tip, .rl-prog.is-drag .rl-tip { opacity: 1 }
.rl-prog:focus-visible .rl-knob { box-shadow: 0 0 0 3px var(--rl-red) }

.rl-row { display: flex; align-items: center; gap: 6px; margin-top: 4px }
.rl-tc { font: 500 11px/1 var(--rl-mono); letter-spacing: .1em; color: rgba(255, 255, 255, .86); font-variant-numeric: tabular-nums; margin-left: 4px }
.rl-sp { flex: 1 }
.rl-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; color: #fff; transition: background .2s ease, color .2s ease }
.rl-btn .rl-i { width: 20px; height: 20px }
.rl-btn:hover, .rl-btn:focus-visible { background: rgba(255, 255, 255, .14); outline: none }
.rl-btn:focus-visible { box-shadow: inset 0 0 0 2px var(--rl-red) }
.rl-btn:active { transform: scale(.94) }
.rl-btn[hidden] { display: none }

.rl-err, .rl-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; background: rgba(5, 5, 5, .74) }
.rl-err[hidden], .rl-end[hidden] { display: none }
.rl-err p, .rl-end p { margin: 0; font: 500 11px/1.6 var(--rl-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--rl-dim) }
.rl-end h3 { margin: 0; font: 900 clamp(20px, 2.2vw, 28px)/1.05 var(--rl-sans); letter-spacing: -.02em; max-width: 16ch }
.rl-end-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center }
.rl-pill { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(242, 240, 236, .32); background: transparent; cursor: pointer; font: 700 12px/1 var(--rl-sans) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--rl-ink); white-space: nowrap; transition: background .25s ease, border-color .25s ease, color .25s ease }
.rl-pill .rl-i { width: 16px; height: 16px }
.rl-pill:hover, .rl-pill:focus-visible { border-color: var(--rl-red); background: var(--rl-red); color: #fff; outline: none }
.rl-pill.is-solid { background: var(--rl-ink); border-color: var(--rl-ink); color: #0a0a0a }
.rl-pill.is-solid:hover, .rl-pill.is-solid:focus-visible { background: var(--rl-red); border-color: var(--rl-red); color: #fff }
.rl-ring { width: 18px; height: 18px; transform: rotate(-90deg) }
.rl-ring circle { fill: none; stroke: currentColor; stroke-width: 3; stroke-dasharray: 50.27; stroke-dashoffset: 50.27 }
.rl-end.is-counting .rl-ring circle { animation: rlRing var(--rl-count, 5s) linear forwards }

/* the post panel beside the video: the "Instagram page" half */
.rl-panel { flex: none; width: 330px; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; gap: 16px; min-height: 0 }
.rl-ph { display: flex; align-items: center; gap: 12px }
.rl-pav { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; box-shadow: 0 0 0 2.5px #0b0b0b, 0 0 0 4px var(--rl-red) }
.rl-pid { display: flex; flex-direction: column; gap: 5px; min-width: 0 }
.rl-pid b { font: 700 16px/1.1 var(--rl-sans) }
.rl-pid span { font: 500 11px/1 var(--rl-mono); letter-spacing: .06em; color: var(--rl-faint) }
.rl-igbtn { justify-content: center; height: 48px !important; font-size: 12.5px !important }
.rl-pkind { margin: 4px 0 0; font: 500 10.5px/1.5 var(--rl-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--rl-dim) }
.rl-capwrap { position: relative; min-height: 0; display: flex; flex-direction: column; gap: 6px }
.rl-cap { margin: 0; font: 400 14px/1.62 var(--rl-sans); color: rgba(242, 240, 236, .8); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden }
.rl-cap a { color: var(--rl-ink); border-bottom: 1px solid rgba(242, 240, 236, .25) }
.rl-cap a:hover { color: var(--rl-red); border-color: var(--rl-red) }
.rl-capwrap.is-open .rl-cap { display: block; -webkit-line-clamp: unset; max-height: 32vh; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(242, 240, 236, .25) transparent }
.rl-more { align-self: flex-start; border: 0; padding: 4px 0; background: none; cursor: pointer; font: 600 11px/1 var(--rl-mono) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--rl-ink) !important; border-bottom: 1px solid rgba(242, 240, 236, .3) }
.rl-more:hover, .rl-more:focus-visible { color: var(--rl-red) !important; outline: none }
.rl-more[hidden] { display: none }
.rl-pstats { display: flex; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid var(--rl-line); font: 500 11px/1 var(--rl-mono); letter-spacing: .1em; color: var(--rl-dim); text-transform: uppercase }
.rl-pstats a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s ease }
.rl-pstats a:hover, .rl-pstats a:focus-visible { color: var(--rl-red); outline: none }
.rl-pstats .rl-i { width: 16px; height: 16px }
.rl-pstats time { margin-left: auto }
.rl-credit { display: flex; align-items: center; gap: 10px; font: 500 10.5px/1.4 var(--rl-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--rl-faint) }
.rl-credit img { width: 22px; height: 22px; border-radius: 50%; flex: none }
.rl-asof { margin: -6px 0 0; font: 500 9.5px/1.5 var(--rl-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(242, 240, 236, .28) }
.rl-acts, .rl-swipe { display: none }

/* chrome around the feed */
.rl-top { position: absolute; top: 18px; right: 22px; display: flex; gap: 8px; z-index: 3 }
.rl-top .rl-btn { width: 48px; height: 48px; background: rgba(10, 10, 10, .5); box-shadow: inset 0 0 0 1px rgba(242, 240, 236, .2) }
.rl-top .rl-btn:hover, .rl-top .rl-btn:focus-visible { background: var(--rl-red); box-shadow: none }
.rl-top .rl-mute-top { display: none }
.rl-brand { position: absolute; top: 26px; left: 28px; z-index: 3; display: flex; align-items: center; gap: 12px; font: 700 12px/1 var(--rl-sans); letter-spacing: .14em; pointer-events: none }
.rl-brand span { position: relative; width: 18px; height: 18px }
.rl-brand span::before, .rl-brand span::after { content: ""; position: absolute; width: 8px; height: 8px; border: 0 solid #fff }
.rl-brand span::before { left: 0; top: 0; border-left-width: 2.5px; border-top-width: 2.5px }
.rl-brand span::after { right: 0; bottom: 0; border-right-width: 2.5px; border-bottom-width: 2.5px }

.rl-nav { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 3 }
.rl-nav .rl-btn { width: 48px; height: 48px; background: rgba(10, 10, 10, .5); box-shadow: inset 0 0 0 1px rgba(242, 240, 236, .2) }
.rl-nav .rl-btn:hover:not(:disabled), .rl-nav .rl-btn:focus-visible { background: var(--rl-red); box-shadow: none }
.rl-nav .rl-btn:disabled { opacity: .28; cursor: default }

.rl-queue { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; z-index: 3 }
.rl-q { position: relative; display: block; width: 44px; aspect-ratio: 9 / 16; padding: 0; border: 0; overflow: hidden; cursor: pointer; background: #111; opacity: .42; transition: opacity .3s ease, transform .4s var(--rl-ease) }
.rl-q img { width: 100%; height: 100%; object-fit: cover; display: block }
.rl-q::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(242, 240, 236, .25) }
.rl-q:hover, .rl-q:focus-visible { opacity: .85; outline: none }
.rl-q:focus-visible::after { box-shadow: inset 0 0 0 2px var(--rl-red) }
.rl-q[aria-current="true"] { opacity: 1; transform: translateX(6px) }
.rl-q[aria-current="true"]::after { box-shadow: inset 0 0 0 2px var(--rl-ink) }
.rl-q[aria-current="true"]::before { content: ""; position: absolute; left: -10px; top: 0; bottom: 0; width: 2px; background: var(--rl-red) }

.rl-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 18px; z-index: 3; font: 500 10px/1 var(--rl-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--rl-faint); pointer-events: none; opacity: 0; transition: opacity .6s ease; white-space: nowrap }
.rl-hint.on { opacity: 1 }
.rl-hint span { display: inline-flex; align-items: center; gap: 7px }
.rl-hint kbd { display: inline-block; min-width: 12px; padding: 5px 7px; border-radius: 999px; border: 1px solid rgba(242, 240, 236, .28); font: 600 10px/1 var(--rl-mono); color: var(--rl-ink); text-align: center }

.rl-toast { position: absolute; left: 50%; top: 24px; transform: translate(-50%, -12px); z-index: 4; padding: 11px 16px; border-radius: 999px; background: var(--rl-ink); color: #0a0a0a; font: 700 11px/1 var(--rl-sans); letter-spacing: .08em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .4s var(--rl-ease) }
.rl-toast.on { opacity: 1; transform: translate(-50%, 0) }
.rl-unmute { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 2 }
.rl-unmute[hidden] { display: none }

.rl-flip { position: fixed; z-index: 131; left: 0; top: 0; transform-origin: 0 0; object-fit: cover; pointer-events: none; will-change: transform; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9) }
.rl-th.is-flipping .rl-slide.is-active .rl-stage { visibility: hidden }

/* medium screens: drop the queue column, keep the panel */
@media (max-width: 1180px) and (min-width: 821px) {
  .rl-queue { display: none }
  .rl-slide { padding: 0 96px 0 40px; gap: 28px }
  .rl-stage { height: min(86vh, calc((100vw - 500px) / var(--ar))); height: min(86dvh, calc((100vw - 500px) / var(--ar))) }
  .rl-panel { width: 300px }
}

/* phones and narrow windows: the full-screen vertical feed, Reels-style */
@media (max-width: 820px) {
  .rl-slide { padding: 0; gap: 0; display: block }
  .rl-slide::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(to top, rgba(5, 5, 5, .9), rgba(5, 5, 5, .5) 45%, rgba(5, 5, 5, 0)); pointer-events: none; z-index: 1 }
  .rl-stage { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; background: transparent; box-shadow: none }
  .rl-sposter, .rl-player video { object-fit: contain }
  .rl-slide.is-portrait-fill .rl-sposter, .rl-slide.is-portrait-fill .rl-player video { object-fit: cover }
  .rl-panel { position: absolute; left: 0; right: 74px; bottom: 0; z-index: 2; width: auto; max-height: none; gap: 10px; padding: 0 16px calc(34px + env(safe-area-inset-bottom)) }
  .rl-ph { gap: 10px }
  .rl-pav { width: 36px; height: 36px }
  .rl-pid b { font-size: 14.5px }
  .rl-igbtn { height: 38px !important; padding: 0 14px !important; font-size: 11px !important; align-self: flex-start }
  .rl-pkind { margin: 0; font-size: 10px }
  .rl-cap { font-size: 13.5px; line-height: 1.5; -webkit-line-clamp: 2 }
  .rl-capwrap.is-open .rl-cap { max-height: 38vh }
  .rl-pstats, .rl-credit, .rl-asof { display: none }
  .rl-acts { position: absolute; right: 10px; bottom: calc(40px + env(safe-area-inset-bottom)); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px }
  .rl-act { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: none; padding: 0; cursor: pointer; color: #fff; font: 600 11px/1 var(--rl-mono) !important; letter-spacing: .04em }
  .rl-act span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(10, 10, 10, .42); box-shadow: inset 0 0 0 1px rgba(242, 240, 236, .16) }
  .rl-act .rl-i { width: 24px; height: 24px }
  .rl-act:active span { transform: scale(.92) }
  .rl-top { top: calc(12px + env(safe-area-inset-top)); right: 12px }
  .rl-top .rl-mute-top { display: grid }
  .rl-brand { top: calc(28px + env(safe-area-inset-top)); left: 16px }
  .rl-nav, .rl-queue, .rl-hint { display: none }
  .rl-bar { z-index: 3; padding: 0; background: none; bottom: env(safe-area-inset-bottom) }
  .rl-player.is-idle .rl-bar { opacity: 1; transform: none; pointer-events: auto }
  .rl-prog { height: 22px; margin: 0 }
  .rl-track { height: 3px; transform: scaleY(.67) }
  .rl-tip { bottom: 26px }
  .rl-row { display: none }
  .rl-player { z-index: 0 }
  .rl-flash { width: 84px; height: 84px; margin: -42px 0 0 -42px }
  .rl-swipe { position: absolute; left: 50%; top: 42%; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translateX(-50%); padding: 16px 20px; border-radius: 999px; background: rgba(10, 10, 10, .6); font: 600 10.5px/1.3 var(--rl-mono); letter-spacing: .14em; text-transform: uppercase; text-align: center; pointer-events: none; opacity: 0; transition: opacity .4s ease }
  .rl-swipe.on { opacity: 1 }
  .rl-swipe .rl-i { width: 22px; height: 22px; animation: rlNudge 1.3s var(--rl-ease) infinite }
  .rl-end { padding-bottom: 30vh }
}

@keyframes rlRec { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
@keyframes rlFocus { 0%, 100% { transform: scale(1); opacity: 1 } 50% { transform: scale(.82); opacity: .55 } }
@keyframes rlFlash { 0% { opacity: 0; transform: scale(.7) } 30% { opacity: 1; transform: scale(1) } 100% { opacity: 0; transform: scale(1.18) } }
@keyframes rlRing { to { stroke-dashoffset: 0 } }
@keyframes rlNudge { 0%, 100% { transform: translateY(4px) } 50% { transform: translateY(-4px) } }

@media (prefers-reduced-motion: reduce) {
  .rl-frame, .rl-poster, .rl-corners, .rl-go, .rl-teaser, .rl-th, .rl-th-bg img, .rl-player video, .rl-bar { transition: none !important }
  .rl-rec i, .rl-swipe .rl-i, .rl-player[data-state="loading"] .rl-load { animation: none !important }
  .rl-feed { scroll-behavior: auto }
}
