:root {
    --rl-ink: 248 250 252;
    --rl-glow-rose: 255 42 93;
    --rl-glow-cyan: 34 211 238;
    --rl-glow-gold: 250 204 21;
    --rl-glow-green: 52 211 153;
}

html, body {
    height: 100%;
    width: 100%;
}

html {
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    background:
        linear-gradient(120deg, rgba(8, 12, 24, 0.98), rgba(18, 15, 33, 0.96) 42%, rgba(4, 18, 28, 0.98)),
        #070b16;
    text-rendering: optimizeLegibility;
}

*, ::before, ::after {
    box-sizing: border-box;
    min-width: 0;
}

::selection {
    background: rgba(var(--rl-glow-rose) / 0.25);
}

@media (max-width: 767px) {
    [data-aos] {
        transform: none !important;
        opacity: 1 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

img, video, iframe, canvas, svg {
    max-width: 100%;
}

.rl-shell {
    position: relative;
    isolation: isolate;
}

.rl-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(var(--rl-glow-rose) / 0.18), transparent 28%, rgba(var(--rl-glow-cyan) / 0.13) 52%, transparent 70%, rgba(var(--rl-glow-gold) / 0.08)),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 76px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 76px);
    mask-image: linear-gradient(to bottom, black, black 72%, transparent);
    animation: rl-atmosphere 16s ease-in-out infinite alternate;
}

.rl-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.07), transparent 18%),
        linear-gradient(135deg, rgba(255,255,255,0.06), transparent 32%, rgba(255,255,255,0.04) 64%, transparent);
    opacity: 0.65;
}

.rl-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.26);
}

.rl-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.13), transparent 34%, rgba(var(--rl-glow-cyan) / 0.07) 70%, transparent);
    opacity: 0.9;
}

.rl-card > * {
    position: relative;
    z-index: 1;
}

.rl-mini {
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.065);
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rl-pill {
    display: inline-flex;
    min-height: 2.25rem;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.075);
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.rl-pill:hover {
    border-color: rgba(103, 232, 249, 0.25);
    background: rgba(255, 255, 255, 0.10);
    color: white;
}

.rl-navlink {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.70);
    transition: background-color 150ms ease, color 150ms ease;
}
.rl-navlink:hover {
    background: rgba(255, 255, 255, 0.10);
    color: white;
}

.rl-btn-primary,
.rl-btn-secondary,
.rl-btn-call {
    display: inline-flex;
    min-height: 3rem;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 800;
    text-align: center;
    transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.rl-btn-primary {
    background: rgba(244, 63, 94, 1);
    color: white;
    box-shadow: 0 18px 55px rgba(255, 42, 93, 0.25);
}
.rl-btn-primary:hover {
    transform: translateY(-2px);
    background: rgba(251, 113, 133, 1);
}

.rl-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.075);
    color: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.rl-btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(103, 232, 249, 0.25);
    background: rgba(255, 255, 255, 0.10);
    color: white;
}

.rl-btn-message {
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: rgba(34, 211, 238, 0.10);
    color: rgba(165, 243, 252, 0.95);
    box-shadow: 0 18px 55px rgba(34, 211, 238, 0.10);
}
.rl-btn-message:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(34, 211, 238, 0.16);
    color: white;
}

.rl-btn-call {
    background: rgba(16, 185, 129, 1);
    color: white;
    box-shadow: 0 18px 55px rgba(16, 185, 129, 0.20);
}
.rl-btn-call:hover {
    transform: translateY(-2px);
    background: rgba(52, 211, 153, 1);
}

.rl-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.70);
}

.rl-input {
    margin-top: 0.5rem;
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.075);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
    outline: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: border-color 150ms ease, background-color 150ms ease;
}
.rl-input::placeholder { color: rgba(255, 255, 255, 0.40); }
.rl-input:focus {
    border-color: rgba(34, 211, 238, 0.40);
    background: rgba(255, 255, 255, 0.10);
}

.rl-error {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(253, 164, 175, 1);
}

.rl-hero-title {
    font-size: clamp(2.35rem, 7vw, 5.75rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.rl-title-highlight {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 70px rgba(255, 42, 93, 0.14), 0 0 60px rgba(34, 211, 238, 0.10);
}
.rl-title-highlight::after {
    content: "";
    position: absolute;
    left: -0.03em;
    right: -0.03em;
    bottom: 0.05em;
    height: 0.18em;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(251, 113, 133, 0.00), rgba(251, 113, 133, 0.42), rgba(253, 224, 71, 0.35), rgba(34, 211, 238, 0.45), rgba(34, 211, 238, 0.00));
    background-size: 220% 100%;
    animation: rl-title-sweep 7.5s ease-in-out infinite alternate;
    filter: blur(0.2px);
    opacity: 0.95;
    pointer-events: none;
}

.rl-story-details {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.04));
    padding: 1rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 70px rgba(0, 0, 0, 0.26);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.rl-story-details:hover {
    border-color: rgba(103, 232, 249, 0.18);
    transform: translateY(-1px);
}
.rl-story-details[open] {
    border-color: rgba(251, 113, 133, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 20px 85px rgba(255, 42, 93, 0.12),
        0 18px 70px rgba(0, 0, 0, 0.28);
}

.rl-story-details-inline,
.rl-story-details-inline:hover,
.rl-story-details-inline[open] {
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    transform: none;
}

.rl-details-summary {
    list-style: none;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.045);
    padding: 0.75rem 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: background-color 150ms ease, border-color 150ms ease;
    user-select: none;
}
.rl-details-summary:hover {
    border-color: rgba(103, 232, 249, 0.20);
    background: rgba(255, 255, 255, 0.06);
}
.rl-details-summary::-webkit-details-marker { display: none; }

.rl-inline-details-summary,
.rl-inline-details-summary:hover {
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    user-select: text;
}

.rl-inline-more {
    margin-left: 0.25rem;
    color: rgba(165, 243, 252, 0.98);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    white-space: nowrap;
}

.rl-details-badge {
    display: inline-flex;
    align-items: center;
    height: 1.35rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(251, 113, 133, 0.22);
    background: rgba(251, 113, 133, 0.12);
    color: rgba(255, 228, 230, 0.98);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rl-story-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.65rem 0.85rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.rl-story-chip:hover {
    border-color: rgba(103, 232, 249, 0.22);
    background: rgba(255, 255, 255, 0.075);
    transform: translateY(-1px);
}

.rl-story-details[open] > summary ~ * {
    animation: rl-details-fade 240ms ease-out both;
}

.rl-share-strip {
    display: flex;
    max-width: 100%;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.rl-share-toggle {
    flex-shrink: 0;
}

.rl-share-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

.rl-share-icon-pill {
    width: 2.35rem;
    height: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
    border-radius: 999px;
}

.rl-share-menu {
    display: flex;
    max-width: 0;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-0.8rem) scaleX(0.96);
    transform-origin: left center;
    transition: max-width 340ms ease, opacity 220ms ease, transform 340ms ease;
    scrollbar-width: none;
}

.rl-share-menu::-webkit-scrollbar {
    display: none;
}

.rl-share-menu .rl-pill {
    opacity: 0;
    transform: translateX(-0.75rem);
    transition: opacity 180ms ease, transform 260ms ease;
}

.rl-share-strip.is-open .rl-share-menu {
    max-width: min(45rem, calc(100vw - 6rem));
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scaleX(1);
}

.rl-share-strip.is-open .rl-share-menu .rl-pill {
    opacity: 1;
    transform: translateX(0);
}

.rl-share-strip.is-open .rl-share-menu .rl-pill:nth-child(1) { transition-delay: 40ms; }
.rl-share-strip.is-open .rl-share-menu .rl-pill:nth-child(2) { transition-delay: 80ms; }
.rl-share-strip.is-open .rl-share-menu .rl-pill:nth-child(3) { transition-delay: 120ms; }
.rl-share-strip.is-open .rl-share-menu .rl-pill:nth-child(4) { transition-delay: 160ms; }
.rl-share-strip.is-open .rl-share-menu .rl-pill:nth-child(5) { transition-delay: 200ms; }
.rl-share-strip.is-open .rl-share-menu .rl-pill:nth-child(6) { transition-delay: 240ms; }

.rl-share-icon-pill[data-share-kind="facebook"] { color: #93c5fd; }
.rl-share-icon-pill[data-share-kind="instagram"] { color: #f9a8d4; }
.rl-share-icon-pill[data-share-kind="whatsapp"] { color: #86efac; }
.rl-share-icon-pill[data-share-kind="twitter"] { color: #e5e7eb; }
.rl-share-icon-pill[data-share-kind="mail"] { color: #fde68a; }
.rl-share-icon-pill[data-share-kind="sms"] { color: #a5f3fc; }

.rl-share-icon-pill:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.13);
}

.rl-download-progress {
    position: fixed;
    left: 50%;
    top: calc(env(safe-area-inset-top) + 1rem);
    z-index: 130;
    width: min(92vw, 27rem);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -0.85rem);
    transition: opacity 180ms ease, transform 220ms ease;
}

.rl-download-progress.is-active {
    opacity: 1;
    transform: translate(-50%, 0);
}

.rl-download-progress-card {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 6, 23, 0.88);
    padding: 0.85rem 0.95rem;
    box-shadow: 0 22px 75px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.rl-download-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 800;
}

.rl-download-progress-percent {
    color: rgba(165, 243, 252, 0.98);
    font-variant-numeric: tabular-nums;
}

.rl-download-progress-track {
    margin-top: 0.6rem;
    height: 0.45rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.rl-download-progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.95), rgba(34, 211, 238, 0.95), rgba(250, 204, 21, 0.92));
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.28);
    transition: width 220ms ease;
}

@media (max-width: 640px) {
    .rl-share-strip.is-open .rl-share-menu {
        max-width: calc(100vw - 5.75rem);
    }
}

@keyframes rl-details-fade {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rl-title-sweep {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

.rl-page-title {
    font-size: clamp(2rem, 5vw, 4.25rem);
    line-height: 1;
    letter-spacing: 0;
}

.rl-safe-text {
    overflow-wrap: anywhere;
    word-break: normal;
}

.rl-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rl-eq {
    display: inline-flex;
    gap: 3px;
    height: 14px;
    align-items: flex-end;
}
.rl-eq span {
    width: 3px;
    height: 6px;
    border-radius: 999px;
    background: rgba(var(--rl-glow-cyan) / 0.7);
    box-shadow: 0 0 18px rgba(var(--rl-glow-cyan) / 0.25);
    animation: rl-eq 900ms ease-in-out infinite;
}
.rl-eq span:nth-child(2) { animation-delay: 120ms; height: 10px; }
.rl-eq span:nth-child(3) { animation-delay: 240ms; height: 8px; }
.rl-eq span:nth-child(4) { animation-delay: 360ms; height: 12px; }
.rl-eq span:nth-child(5) { animation-delay: 480ms; height: 7px; }

.rl-float {
    animation: rl-float 6s ease-in-out infinite;
}

.rl-shimmer {
    position: relative;
    overflow: hidden;
}

.rl-shimmer::after {
    content: "";
    position: absolute;
    inset: -140% -70%;
    background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.18), transparent 58%);
    transform: translateX(-45%) rotate(8deg);
    animation: rl-shimmer 4.8s ease-in-out infinite;
    pointer-events: none;
}

.rl-spectrum {
    background:
        linear-gradient(90deg, rgba(var(--rl-glow-rose) / 0.9), rgba(var(--rl-glow-gold) / 0.85), rgba(var(--rl-glow-green) / 0.85), rgba(var(--rl-glow-cyan) / 0.9), rgba(var(--rl-glow-rose) / 0.9));
    background-size: 220% 100%;
    animation: rl-spectrum 7s ease-in-out infinite alternate;
}

#rl-player-bars span {
    animation: rl-eq 900ms ease-in-out infinite;
}

#rl-player-bars span:nth-child(2) { animation-delay: 120ms; }
#rl-player-bars span:nth-child(3) { animation-delay: 240ms; }
#rl-player-bars span:nth-child(4) { animation-delay: 360ms; }

@keyframes rl-eq {
    0%, 100% { transform: scaleY(0.65); opacity: 0.75; }
    50% { transform: scaleY(1.6); opacity: 1; }
}

@keyframes rl-atmosphere {
    0% { transform: translate3d(-1.4%, -0.8%, 0) scale(1); opacity: 0.72; }
    100% { transform: translate3d(1.4%, 0.8%, 0) scale(1.02); opacity: 0.95; }
}

@keyframes rl-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rl-shimmer {
    0%, 56% { transform: translateX(-55%) rotate(8deg); opacity: 0; }
    68% { opacity: 1; }
    100% { transform: translateX(55%) rotate(8deg); opacity: 0; }
}

@keyframes rl-spectrum {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}
