html:has(body.rl-site), body.rl-site { overflow: hidden; overscroll-behavior: none; background: #05070d; }
body.rl-site .toast-wrap { bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }

.rl {
  --rl-w: min(100vw, 520px, calc((100dvh - 32px) * .58));
  --rl-h: calc(100dvh - 32px);
  --rl-accent: var(--brand, #0057FF);
  --rl-like: #ff3b5c;
  position: fixed; inset: 0; z-index: 120; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 20% -10%, color-mix(in srgb, var(--brand, #0057FF) 22%, transparent), transparent 60%), radial-gradient(900px 600px at 110% 110%, rgba(86, 104, 255, .18), transparent 60%), #05070d;
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.rl .ic { width: 22px; height: 22px; }
.rl-stage { position: relative; width: var(--rl-w); height: var(--rl-h); border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); isolation: isolate; }
.rl-modes { position: absolute; z-index: 7; left: 50%; top: 70px; transform: translateX(-50%); display: flex; padding: 3px; gap: 2px; border-radius: 99px; background: rgba(0, 0, 0, .38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rl-modes button { white-space: nowrap; flex: none; height: 28px; padding: 0 12px; border: 0; border-radius: 99px; display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .78); background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.rl .rl-modes .ic { width: 14px; height: 14px; }
.rl-modes button.on { background: rgba(255, 255, 255, .92); color: #0b0f19; }
.rl-new { background: #ff3b5c; color: #fff; animation: rl-pulse 1.6s ease-in-out infinite; }
@keyframes rl-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 59, 92, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 92, .55); } }
.rl-sound { position: absolute; z-index: 7; right: 17px; top: 72px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .38); border: 0; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, transform .15s; }
.rl-sound[hidden] { display: none; }
.rl-sound:hover { background: rgba(0, 0, 0, .55); }
.rl-sound:active { transform: scale(.92); }
.rl .rl-sound .ic { width: 17px; height: 17px; }
.rl-sound .rl-ic-off, .rl-sound.off .rl-ic-on, .rl-sound.blocked .rl-ic-on { display: none; }
.rl-sound.off .rl-ic-off, .rl-sound.blocked .rl-ic-off { display: block; }
.rl-sound.blocked::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: rl-ring 1.6s ease-out infinite; }
@keyframes rl-ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.rl-feed { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; outline: none; }
.rl-feed::-webkit-scrollbar { display: none; }

.rl-top { position: absolute; z-index: 6; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 22px 14px 30px; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent); }
.rl-top > * { pointer-events: auto; }
.rl-tabs { flex: 1; display: flex; justify-content: center; gap: 4px; }
.rl-tabs button { height: 34px; padding: 0 14px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .82); background: rgba(255, 255, 255, .12); border: 0; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, color .2s, transform .15s; }
.rl-tabs button .ic { width: 15px; height: 15px; }
.rl-tabs button:hover { background: rgba(255, 255, 255, .2); }
.rl-tabs button:active { transform: scale(.96); }
.rl-tabs button.on { background: #fff; color: #0b0f19; }
.rl-round { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .14); border: 0; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, transform .15s; }
.rl-round:hover { background: rgba(255, 255, 255, .24); }
.rl-round:active { transform: scale(.94); }
.rl-round .ic { width: 20px; height: 20px; }
.rl-round.big { width: 52px; height: 52px; }
.rl-round.big .ic { width: 24px; height: 24px; }
.rl-round[disabled] { opacity: .35; cursor: default; }
.rl-ic-play { display: none; }
.rl.paused .rl-ic-pause { display: none; }
.rl.paused .rl-ic-play { display: block; }

.rl-item { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.rl-media { position: absolute; inset: 0; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.rl-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(34px) saturate(1.3) brightness(.55); transform: scale(1.1); }
.rl-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: 50% 42%; opacity: 0; transition: opacity .35s ease; }
.rl-photo.on { opacity: 1; }
.rl-item.active .rl-photo.on { animation: rl-ken 9s ease-out both; }
.rl.paused .rl-item.active .rl-photo.on, .rl-media.hold .rl-photo.on { animation-play-state: paused; }
@keyframes rl-ken { from { transform: scale(1); } to { transform: scale(1.06); } }
.rl-broken { position: absolute; inset: 0; display: none; place-items: center; color: rgba(255, 255, 255, .4); }
.rl-broken .ic { width: 48px; height: 48px; }
.rl-media.broken .rl-broken { display: grid; }

.rl-bars { position: absolute; z-index: 7; left: 12px; right: 12px; top: 10px; display: flex; gap: 4px; }
.rl-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.rl-bars b { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.rl-bars i.done b { transform: scaleX(1); }
.rl-item.active .rl-bars i.on b { animation: rl-bar var(--rl-dur, 4.5s) linear forwards; }
.rl.paused .rl-item.active .rl-bars i.on b, .rl-media.hold .rl-bars i.on b, .rl.away .rl-item.active .rl-bars i.on b { animation-play-state: paused; }
@keyframes rl-bar { to { transform: scaleX(1); } }

.rl-tap { position: absolute; z-index: 2; top: 90px; bottom: 210px; width: 34%; cursor: pointer; }
.rl-tap.prev { left: 0; }
.rl-tap.next { right: 0; width: 46%; }
.rl-arrow { position: absolute; z-index: 3; top: 42%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .35); border: 0; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rl-arrow.prev { left: 12px; }
.rl-arrow.next { right: 12px; }
.rl-arrow:hover { background: rgba(0, 0, 0, .6); }
.rl-media:hover .rl-arrow { opacity: 1; }
@media (hover: none) { .rl-arrow { display: none; } }

.rl-burst { position: absolute; z-index: 5; left: 50%; top: 42%; color: var(--rl-like); pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.3); filter: drop-shadow(0 8px 30px rgba(255, 59, 92, .6)); }
.rl .rl-burst .ic { width: 110px; height: 110px; fill: currentColor; stroke: none; }
.rl-burst.go { animation: rl-burst .9s cubic-bezier(.2, .9, .3, 1.3) forwards; }
@keyframes rl-burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-12deg); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(0); } 55% { opacity: 1; transform: translate(-50%, -50%) scale(.95); } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1.15); } }

.rl-item::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 62%; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .6) 38%, transparent 100%); }

.rl-rail { position: absolute; z-index: 4; right: 10px; bottom: 150px; display: grid; gap: 16px; justify-items: center; }
.rl-act { display: grid; justify-items: center; gap: 4px; color: #fff; text-decoration: none; cursor: pointer; background: none; border: 0; font: inherit; }
.rl-act-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, transform .2s; }
.rl-act:hover .rl-act-ic { background: rgba(255, 255, 255, .26); }
.rl-act:active .rl-act-ic { transform: scale(.9); }
.rl-act small { font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-act.still { cursor: default; }
.rl-act.still .rl-act-ic { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.rl-act.still:hover .rl-act-ic { background: transparent; }
.rl-like.on .rl-act-ic { color: var(--rl-like); background: #fff; }
.rl-like.on .ic { fill: currentColor; }
.rl-keep.on .rl-act-ic { color: #0b0f19; background: #ffd34d; }
.rl-keep.on .ic { fill: currentColor; }
.rl-act.pop .rl-act-ic { animation: rl-pop .45s cubic-bezier(.2, .9, .3, 1.5); }
@keyframes rl-pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }

.rl-info { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 6px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.rl-info > :not(.rl-cta) { margin-right: 60px; }
.rl-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.rl-badges em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; text-shadow: none; }
.rl-badges em .ic { width: 14px; height: 14px; }
.rl-deal { background: #3d6bff; color: #fff; }
.rl-deal.rent { background: #8b5cf6; }
.rl-owner { background: rgba(34, 195, 142, .2); color: #6ff0c2; box-shadow: inset 0 0 0 1px rgba(34, 195, 142, .45); }
.rl-tag { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rl-price { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rl-price small { font-size: 15px; font-weight: 600; opacity: .8; margin-left: 4px; }
.rl-title { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rl-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: rgba(255, 255, 255, .82); }
.rl-facts span + span::before { content: "·"; margin: 0 7px; opacity: .6; }
.rl-loc { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: rgba(255, 255, 255, .82); }
.rl-loc .ic { width: 15px; height: 15px; flex: none; }
.rl-metro { display: inline-flex; align-items: center; gap: 4px; }
.rl-cta { margin-top: 8px; height: 48px; border-radius: 14px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 700; color: #fff; background: var(--brand, #0057FF); cursor: pointer; box-shadow: 0 10px 30px color-mix(in srgb, var(--brand, #0057FF) 40%, transparent); text-decoration: none; transition: transform .15s, filter .2s; text-shadow: none; }
.rl-cta:hover { filter: brightness(1.06); }
.rl-cta:active { transform: scale(.98); }
.rl-cta .ic { width: 19px; height: 19px; }

.rl-item .rl-info, .rl-item .rl-rail { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.rl-item.active .rl-info, .rl-item.active .rl-rail { opacity: 1; transform: none; }
.rl-item.active .rl-rail { transition-delay: .08s; }

.rl-state { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; color: rgba(255, 255, 255, .78); font-size: 14px; padding: 24px; pointer-events: none; }
.rl-state[hidden] { display: none; }
.rl-state .ic { width: 44px; height: 44px; opacity: .6; }
.rl-state b { color: #fff; font-size: 17px; }
.rl-spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .18); border-top-color: var(--rl-accent); animation: spin .8s linear infinite; }
.rl-hint { position: absolute; z-index: 6; left: 50%; bottom: 46%; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; padding: 16px 20px; border-radius: 20px; font-size: 14px; font-weight: 600; background: rgba(0, 0, 0, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none; animation: rl-hint 2.6s ease-in-out forwards; }
.rl-hint .ic { width: 34px; height: 34px; animation: rl-swipe 1.3s ease-in-out 2; }
@keyframes rl-swipe { 0%, 100% { transform: translateY(16px); } 50% { transform: translateY(-16px); } }
@keyframes rl-hint { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

.rl-side { position: absolute; left: calc(50% + var(--rl-w) / 2 + 28px); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; }
.rl-keys { position: absolute; left: 28px; bottom: 28px; margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.rl-keys li { display: flex; align-items: center; gap: 6px; }
.rl-keys kbd { min-width: 26px; height: 24px; padding: 0 7px; border-radius: 7px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .08); }
.rl-keys li kbd:last-of-type { margin-right: 4px; }

.rl-sheet { position: fixed; inset: 0; z-index: 150; display: grid; align-items: end; background: rgba(0, 0, 0, .55); animation: rl-fade .25s ease; }
.rl-sheet[hidden] { display: none; }
.rl-sheet-box { height: calc(100dvh - 24px); border-radius: 22px 22px 0 0; overflow: hidden; background: var(--bg, #fff); animation: rl-up .35s cubic-bezier(.2, .8, .2, 1); }
.rl-sheet iframe { width: 100%; height: 100%; border: 0; display: block; }
.rl-sheet.out { animation: rl-fade .22s ease reverse forwards; }
.rl-sheet.out .rl-sheet-box { animation: rl-up .22s ease reverse forwards; }
@keyframes rl-fade { from { opacity: 0; } }
@keyframes rl-up { from { transform: translateY(100%); } }

@media (max-width: 860px), (pointer: coarse) {
  .rl-side, .rl-keys { display: none; }
}
@media (max-width: 640px), (pointer: coarse) and (max-width: 900px) {
  .rl { --rl-w: 100vw; --rl-h: 100dvh; }
  .rl-stage { border-radius: 0; box-shadow: none; }
  .rl-top { padding-top: calc(22px + env(safe-area-inset-top, 0px)); }
  .rl-bars { top: calc(10px + env(safe-area-inset-top, 0px)); }
  .rl-sound { top: calc(72px + env(safe-area-inset-top, 0px)); }
  .rl-modes { top: calc(70px + env(safe-area-inset-top, 0px)); }
  .rl-tabs button { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 380px) {
  .rl-tabs button .ic { display: none; }
  .rl-price { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .rl-item.active .rl-photo.on { animation: none; }
  .rl-hint .ic { animation: none; }
  .rl-sound.blocked::after { animation: none; }
}

body.rl-site .eac, body.rl-site .s-mbar { display: none !important; }
.rl-brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.rl-logo { width: 38px; height: 38px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: var(--brand, #0057FF); }
.rl-logo img { width: 100%; height: 100%; object-fit: cover; }
.rl-brand-text { display: grid; min-width: 0; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.rl-brand-text b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-brand-text small { font-size: 12px; opacity: .85; }
.rl-act.wa .rl-act-ic { background: #25D366; }
.rl-tag.hot { background: #F04438; color: #fff; }
.rl-back { pointer-events: auto; margin-top: 6px; color: #fff; font-weight: 700; text-decoration: underline; }
.rl-act small { max-width: 80px; }
