/* Relatos Hablados — diseño minimal, sin dependencias */

:root { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #f0e8ec;
    background-color: #0a0306;
    background-image:
        radial-gradient(ellipse at 25% 30%, #6b1e3a 0%, transparent 55%),
        radial-gradient(ellipse at 75% 80%, #3c1450 0%, transparent 60%),
        linear-gradient(135deg, #1a0810 0%, #050204 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: #f06080; text-decoration: none; transition: color .15s ease; }
a:hover { color: #ff8aa3; }

img { max-width: 100%; height: auto; display: block; }

/* ============ Layout ============ */
.rh-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    text-align: center;
}

.rh-header { margin-bottom: 2rem; }
.rh-header > a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
}
.rh-header img {
    width: auto;            /* anula el width="349" del HTML; el navegador */
    height: auto;           /* usa el aspect-ratio implícito del atributo */
    max-height: 100px;
    margin: 0 auto;
}

.rh-title {
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
    font-size: clamp(1.8rem, 5.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin: 0 0 0.8rem;
    color: #fff;
}

.rh-subtitle {
    font-size: clamp(0.95rem, 2.8vw, 1.15rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin: 0.3rem 0;
    line-height: 1.45;
}
.rh-subtitle strong { color: #fff; font-weight: 600; }

/* ============ Tarjeta del relato del día ============ */
.rh-card {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.8rem 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    text-align: left;
    transition: border-color .35s ease, box-shadow .35s ease;
}
/* Glow rojo cuando hay un player reproduciendo dentro */
.rh-card:has(.rh-player[data-state="playing"]) {
    border-color: rgba(214, 40, 83, 0.55);
    box-shadow:
        0 0 0 1px rgba(214, 40, 83, 0.35),
        0 0 28px 4px rgba(214, 40, 83, 0.45),
        0 12px 40px rgba(0, 0, 0, 0.35);
    animation: rh-glow 2.4s ease-in-out infinite;
}
@keyframes rh-glow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(214, 40, 83, 0.35),
            0 0 22px 3px rgba(214, 40, 83, 0.35),
            0 12px 40px rgba(0, 0, 0, 0.35);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(214, 40, 83, 0.55),
            0 0 36px 8px rgba(214, 40, 83, 0.55),
            0 12px 40px rgba(0, 0, 0, 0.35);
    }
}
.rh-relato-title {
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.2rem;
    text-align: center;
    line-height: 1.3;
}
.rh-relato-desc {
    margin: 1.5rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.7;
}

/* === Voice card "Voz por BellaPerrix" — debajo del article en /relato/X === */
.rh-voz-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 1.2rem 0;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 107, 138, 0.08) 0%, rgba(255, 138, 90, 0.06) 100%);
    border: 1px solid rgba(255, 107, 138, 0.22);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.rh-voz-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 107, 138, 0.45);
    box-shadow: 0 8px 22px -10px rgba(255, 107, 138, 0.4);
}
.rh-voz-card__icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 107, 138, 0.15);
    font-size: 18px;
}
.rh-voz-card__body { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.rh-voz-card__l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.55); }
.rh-voz-card__name { font-size: 15px; font-weight: 700; color: #ffe0e9; }
.rh-voz-card__arrow { color: #ff8da6; font-size: 18px; transition: transform 0.2s ease; }
.rh-voz-card:hover .rh-voz-card__arrow { transform: translateX(3px); }

/* === Bella nudge — floating bottom-right tras N reproducciones === */
.rh-bella-nudge {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 9000;
    max-width: 320px;
    background: linear-gradient(135deg, #2a0d18 0%, #1a0712 100%);
    border: 1px solid rgba(255, 107, 138, 0.4);
    border-radius: 14px;
    padding: 12px 14px 12px 12px;
    box-shadow: 0 12px 30px -8px rgba(255, 107, 138, 0.35), 0 0 0 1px rgba(255, 107, 138, 0.08);
    display: flex;
    align-items: stretch;
    gap: 6px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.32s ease, transform 0.32s ease;
}
.rh-bella-nudge[data-show="true"] { opacity: 1; transform: translateY(0); }
.rh-bella-nudge__link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}
.rh-bella-nudge__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 107, 138, 0.2);
    font-size: 18px;
}
.rh-bella-nudge__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rh-bella-nudge__msg { font-size: 12px; color: rgba(255, 255, 255, 0.7); line-height: 1.3; }
.rh-bella-nudge__cta { font-size: 14px; font-weight: 700; color: #ffe0e9; }
.rh-bella-nudge__close {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px 6px;
    align-self: flex-start;
}
.rh-bella-nudge__close:hover { color: #fff; }
@media (max-width: 480px) {
    .rh-bella-nudge { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .rh-bella-nudge { transition: none; } }

/* === Pastilla "live" de plays acumulados en /relato/X === */
.rh-relato-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0.6rem auto 0;
    padding: 4px 12px 5px;
    border-radius: 999px;
    background: rgba(255, 107, 138, 0.08);
    border: 1px solid rgba(255, 107, 138, 0.22);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
    width: fit-content;
    max-width: 100%;
}
.rh-relato-pill strong { color: #ffe0e9; font-weight: 700; }

/* === Live counter — integrado al final del subtítulo === */
.rh-live-inline {
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.7);
}
.rh-live-inline strong { color: #ffe0e9; font-weight: 700; font-variant-numeric: tabular-nums; }
.rh-live__dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff6b8a;
    margin: 0 0.4em 0 0;
    vertical-align: 0.08em;
    box-shadow: 0 0 0 0 rgba(255, 107, 138, 0.6);
    animation: rh-live-pulse 2.4s ease-in-out infinite;
}
@keyframes rh-live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 138, 0.55); transform: scale(1); }
    50%      { box-shadow: 0 0 0 5px rgba(255, 107, 138, 0); transform: scale(0.92); }
}
@media (prefers-reduced-motion: reduce) { .rh-live__dot { animation: none; } }

/* === Link al relato anterior (swap con el principal al hacer click) === */
.rh-archive {
    margin: 1rem auto 0;
    text-align: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}
.rh-archive__label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.3rem;
    font-weight: 600;
}
.rh-archive__link {
    display: inline-block;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    padding-bottom: 1px;
    transition: color .15s ease, border-color .15s ease;
}
.rh-archive__link:hover {
    color: #f06080;
    border-bottom-color: #f06080;
}
.rh-archive__link::before {
    content: '▸ ';
    color: #f06080;
}

/* ============ Player ============ */
.rh-player {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    flex-wrap: wrap;
}
.rh-player__transport {
    display: flex; align-items: center; gap: 6px;
    flex: 0 0 auto;
}
.rh-player__skip {
    flex: 0 0 auto;
    width: 36px; height: 36px;
    border: 0; padding: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: color .15s ease, background .15s ease, transform .15s ease;
}
.rh-player__skip:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.rh-player__skip:active { transform: scale(.92); }
.rh-player__skip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rh-player__skip svg { width: 26px; height: 26px; }
.rh-player__btn {
    flex: 0 0 auto;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d62853 0%, #8b1538 100%);
    border: 0; cursor: pointer; color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 4px 16px rgba(214, 40, 83, .4);
    padding: 0;
}
.rh-player__btn:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(214, 40, 83, .6); }
.rh-player__btn:active { transform: scale(.96); }
.rh-player__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.rh-player__icon { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.rh-player[data-state="playing"] .rh-player__icon { margin-left: 0; }

.rh-player__main { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }

/* === Slider: <input type="range"> nativo, estilizado.
   Funciona bien en iOS porque el navegador maneja el drag internamente. */
.rh-player__seek-wrap { position: relative; }
.rh-player__seek-tip {
    position: absolute;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    padding: 0.18rem 0.5rem;
    background: rgba(10, 3, 6, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: #f0e8ec;
    pointer-events: none;
    opacity: 0;
    transition: opacity .12s ease;
    white-space: nowrap;
    z-index: 5;
}
.rh-player__seek-tip[data-show="true"] { opacity: 1; }
@media (hover: none) {
    .rh-player__seek-tip { display: none; }
}

.rh-player__range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 20px;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    outline: none;
}
.rh-player__range:focus { outline: none; }

/* Track + relleno: linear-gradient con --rh-progress como punto de corte */
.rh-player__range::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, #d62853, #f06080) 0/var(--rh-progress, 0%) 100% no-repeat,
        rgba(255, 255, 255, 0.14);
}
.rh-player__range::-moz-range-track {
    height: 12px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, #d62853, #f06080) 0/var(--rh-progress, 0%) 100% no-repeat,
        rgba(255, 255, 255, 0.14);
}

/* Thumb circular blanco */
.rh-player__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; height: 20px;
    margin-top: -4px;
    background: #fff;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    transition: box-shadow .18s ease;
}

.rh-player__range::-moz-range-thumb {
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    transition: box-shadow .18s ease;
}

/* Hover/focus/active: solo glow, sin cambiar tamaño (mantiene el centrado) */
.rh-player__range:hover::-webkit-slider-thumb,
.rh-player__range:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(214, 40, 83, 0.25),
                0 4px 14px rgba(214, 40, 83, 0.55);
}
.rh-player__range:active::-webkit-slider-thumb {
    box-shadow: 0 0 0 6px rgba(214, 40, 83, 0.3),
                0 4px 16px rgba(214, 40, 83, 0.7);
}
.rh-player__range:hover::-moz-range-thumb,
.rh-player__range:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(214, 40, 83, 0.25),
                0 4px 14px rgba(214, 40, 83, 0.55);
}
.rh-player__range:active::-moz-range-thumb {
    box-shadow: 0 0 0 6px rgba(214, 40, 83, 0.3),
                0 4px 16px rgba(214, 40, 83, 0.7);
}
.rh-player__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.rh-player__time {
    font-size: 11px;
    color: rgba(255, 255, 255, .65);
    font-variant-numeric: tabular-nums;
    display: flex; gap: 4px;
}
.rh-player[data-loading="true"] .rh-player__time {
    animation: rh-time-pulse 1s ease-in-out infinite;
}
.rh-player[data-finished="true"]::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #4ade80;
    background: rgba(10, 3, 6, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: inherit;
    pointer-events: none;
    animation: rh-finished-flash 1.4s ease-out forwards;
    text-shadow: 0 0 24px rgba(74, 222, 128, 0.55);
}
@keyframes rh-finished-flash {
    0%   { opacity: 0; transform: scale(0.4) rotate(-12deg); }
    20%  { opacity: 1; transform: scale(1.25) rotate(0deg); }
    35%  { opacity: 1; transform: scale(0.9) rotate(0deg); }
    50%  { opacity: 1; transform: scale(1.05) rotate(0deg); }
    80%  { opacity: 1; transform: scale(1) rotate(0deg); }
    100% { opacity: 0; transform: scale(1.1) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    .rh-player[data-finished="true"]::after { animation: none; opacity: 0.85; }
}
@keyframes rh-time-pulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
    .rh-player[data-loading="true"] .rh-player__time { animation: none; }
}
.rh-player__extras { display: flex; gap: 4px; align-items: center; }
.rh-player__speed,
.rh-player__share,
.rh-player__cc {
    flex: 0 0 auto;
    height: 24px;
    min-width: 32px;
    padding: 0 8px;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease, color .15s ease;
}
.rh-player__speed:hover,
.rh-player__share:hover,
.rh-player__cc:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.rh-player__speed:focus-visible,
.rh-player__share:focus-visible,
.rh-player__cc:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.rh-player__share svg,
.rh-player__cc svg { width: 14px; height: 14px; }
.rh-player__cc[aria-pressed="true"] {
    background: rgba(244, 162, 97, 0.32);
    color: #ffd5e0;
}
.rh-player__audio { display: none; }

/* Subtítulos: pastilla extra debajo del player, solo visible cuando subs ON */
.rh-player__subs {
    margin: 0.7rem auto 0;
    padding: 0.55rem 0.9rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    font-weight: 500;
    min-height: 1.45em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity .2s ease;
}
.rh-player__subs[hidden] { display: none; }
@media (max-width: 600px) {
    .rh-player__subs { font-size: 0.88rem; padding: 0.45rem 0.7rem; }
}

.rh-player__toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #f06080 0%, #b94673 100%);
    color: #fff;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 8px 28px -8px rgba(240, 96, 128, 0.6);
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 200;
    max-width: 90vw;
    text-align: center;
}
.rh-player__toast[data-show="true"] {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============ Bloque Comunidad Cams ============ */
.rh-cta { margin: 2.5rem 0 1.5rem; }
.rh-cta__card {
    position: relative;
    display: block;
    text-align: left;
    text-decoration: none;
    padding: 1.4rem 1.4rem 1.3rem;
    border-radius: 18px;
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(240, 96, 128, 0.18) 0%, transparent 55%),
        radial-gradient(120% 100% at 100% 100%, rgba(124, 58, 237, 0.18) 0%, transparent 55%),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(240, 96, 128, 0.28);
    box-shadow: 0 6px 24px -12px rgba(240, 96, 128, 0.4);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    overflow: hidden;
}
.rh-cta__card:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 96, 128, 0.5);
    box-shadow: 0 12px 32px -10px rgba(240, 96, 128, 0.55);
}
.rh-cta__live {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(220, 38, 38, 0.95);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}
.rh-cta__live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: rh-cta-pulse 1.4s ease-in-out infinite;
}
@keyframes rh-cta-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.7); }
}
.rh-cta__overline {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.3rem;
}
.rh-cta__title {
    display: block;
    font-size: clamp(1.1rem, 3.4vw, 1.35rem);
    font-weight: 700;
    color: #ffd5e0;
    line-height: 1.25;
    margin-bottom: 0.4rem;
}
.rh-cta__desc {
    display: block;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    margin-bottom: 0.9rem;
}
.rh-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #f06080 0%, #b94673 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    transition: filter .15s ease;
}
.rh-cta__card:hover .rh-cta__btn { filter: brightness(1.1); }
.rh-cta__btn svg { transition: transform .15s ease; }
.rh-cta__card:hover .rh-cta__btn svg { transform: translateX(2px); }
/* === Variant B — más llamativa: gradiente cálido, glow animado, botón XL === */
.rh-cta__card--b {
    padding: 1.6rem 1.6rem 1.5rem;
    background:
        radial-gradient(140% 110% at 0% 0%, rgba(255, 107, 138, 0.42) 0%, transparent 60%),
        radial-gradient(140% 110% at 100% 100%, rgba(255, 138, 50, 0.32) 0%, transparent 60%),
        linear-gradient(135deg, #2a0d18 0%, #1a0712 100%);
    border: 1px solid rgba(255, 138, 90, 0.5);
    box-shadow: 0 0 0 0 rgba(255, 107, 138, 0.6), 0 12px 30px -12px rgba(255, 107, 138, 0.55);
    animation: rh-cta-b-glow 3.6s ease-in-out infinite;
}
@keyframes rh-cta-b-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 138, 0.45), 0 12px 30px -12px rgba(255, 107, 138, 0.55); }
    50%      { box-shadow: 0 0 0 8px rgba(255, 107, 138, 0),   0 18px 38px -10px rgba(255, 107, 138, 0.7);  }
}
.rh-cta__card--b:hover { transform: translateY(-3px); }
.rh-cta__live--b {
    background: linear-gradient(135deg, #ff3366 0%, #c0285a 100%);
    font-size: 0.74rem;
    padding: 0.32rem 0.7rem;
    box-shadow: 0 2px 10px rgba(255, 51, 102, 0.4);
}
.rh-cta__title--b {
    display: block;
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    /* Margin-top empuja el título debajo del badge "EN VIVO AHORA" (absolute top-right) */
    margin: 1.6rem 0 0.5rem;
    text-shadow: 0 2px 12px rgba(255, 107, 138, 0.4);
}
.rh-cta__desc--b {
    display: block;
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 1.1rem;
}
.rh-cta__btn--b {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #ff5577 0%, #ff8855 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    box-shadow: 0 6px 20px -4px rgba(255, 107, 138, 0.6);
    transition: filter .15s ease, transform .15s ease;
}
.rh-cta__card--b:hover .rh-cta__btn--b { filter: brightness(1.08); transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
    .rh-cta__card--b { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    .rh-cta__live-dot { animation: none; }
    .rh-cta__card, .rh-cta__btn svg { transition: none; }
}

.rh-voz {
    margin-top: 2.2rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}
.rh-voz a { font-weight: 600; }

/* ============ Footer enriquecido ============ */
.rh-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}
.rh-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem 0.7rem;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}
.rh-footer__links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color .15s ease;
}
.rh-footer__links a:hover { color: #ff8aa3; }
.rh-footer__links span { color: rgba(255, 255, 255, 0.25); }
.rh-footer__rss {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #f4a261 !important;
}
.rh-footer__rss:hover { color: #ffb87a !important; }
.rh-footer__legal {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}
.rh-footer__legal a { color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.rh-footer__legal a:hover { color: #ffb0c0; }
.rh-footer__contact {
    margin: 0 0 0.4rem;
    font-size: 0.82rem;
    color: rgba(255, 213, 224, 0.75);
    line-height: 1.6;
}
.rh-footer__contact a { color: #ffb0c0; font-weight: 600; text-decoration: none; }
.rh-footer__contact a:hover { color: #ffd5e0; text-decoration: underline; }
.rh-footer__stat[hidden] { display: none !important; }
.rh-footer__stat {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    color: rgba(244, 162, 97, 0.85);
    font-weight: 500;
}
.rh-footer__stat[data-easter-egg="true"] {
    font-size: 0.92rem;
    color: #ffd5e0;
    background: linear-gradient(135deg, rgba(240, 96, 128, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    border: 1px solid rgba(240, 96, 128, 0.35);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    display: inline-block;
    margin: 0.5rem auto 0.8rem;
}
.rh-footer__stat[data-easter-egg="true"] a {
    color: #f06080;
    font-weight: 700;
}
.rh-footer__stat[data-easter-egg="true"] a:hover { color: #ff8aa3; }

/* ============ Transcripción del relato (colapsable) ============ */
.rh-transcript {
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
}
.rh-transcript > summary {
    cursor: pointer;
    color: rgba(255, 213, 224, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    list-style: none;
    user-select: none;
}
.rh-transcript > summary::-webkit-details-marker { display: none; }
.rh-transcript[open] > summary { margin-bottom: 0.6rem; }
.rh-transcript__body {
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    max-height: 30vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}
.rh-transcript__body p {
    margin: 0 0 0.85rem 0;
    text-indent: 1.2rem;
}
.rh-transcript__body p:first-child { text-indent: 0; }
.rh-transcript__body p:last-child { margin-bottom: 0; }
.rh-transcript__body span[data-s] {
    transition: background .25s ease, color .25s ease;
    border-radius: 3px;
    padding: 0 0.1em;
    cursor: pointer;
}
.rh-transcript__body span[data-s]:hover { color: #ffd5e0; }
.rh-transcript__body span.rh-transcript__seg--active {
    background: rgba(244, 162, 97, 0.22);
    color: #fff;
}
.rh-transcript__hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(244, 162, 97, 0.7);
    margin-left: 0.4rem;
}

/* ============ Nota privada por relato ============ */
.rh-note {
    margin: 1.2rem 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}
.rh-note > summary {
    cursor: pointer;
    color: rgba(255, 213, 224, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    list-style: none;
    user-select: none;
}
.rh-note > summary::-webkit-details-marker { display: none; }
.rh-note[open] > summary { margin-bottom: 0.6rem; }
.rh-note textarea {
    width: 100%;
    min-height: 4em;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #f0e8ec;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.45;
    resize: vertical;
}
.rh-note textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.rh-note textarea:focus {
    outline: none;
    border-color: rgba(240, 96, 128, 0.5);
    background: rgba(0, 0, 0, 0.35);
}

/* ============ Tag pills ============ */
.rh-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin: 0.8rem 0 1.2rem;
}
.rh-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 213, 224, 0.85);
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.rh-tag:hover {
    background: rgba(240, 96, 128, 0.12);
    border-color: rgba(240, 96, 128, 0.4);
    color: #ffd5e0;
}

/* ============ Bloques de prosa (sobre, legal, etc.) ============ */
.rh-prose {
    text-align: left;
    max-width: 620px;
    margin: 1.5rem auto 2rem;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}
.rh-prose h2 {
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
    font-size: 1.25rem;
    color: #ffd5e0;
    margin: 2rem 0 0.6rem;
}
.rh-prose p { margin: 0 0 1rem; }
.rh-prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.rh-prose ul li { margin-bottom: 0.4rem; }
.rh-prose a { color: #f06080; }
.rh-prose a:hover { color: #ff8aa3; }
.rh-prose kbd {
    display: inline-block;
    padding: 0.05rem 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom-width: 2px;
    border-radius: 4px;
    font: inherit;
    font-size: 0.85em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: rgba(255, 255, 255, 0.9);
}

/* ============ Más escuchados (home) ============ */
.rh-top[hidden] { display: none !important; }
.rh-top {
    margin: 2rem 0;
    padding: 1.2rem 1.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-align: left;
}
.rh-top__title {
    margin: 0 0 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 213, 224, 0.9);
    text-align: center;
}
.rh-top__list {
    list-style: none;
    counter-reset: rh-top;
    padding: 0;
    margin: 0;
}
.rh-top__list li {
    counter-increment: rh-top;
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding: 0.55rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.rh-top__list li:last-child { border-bottom: 0; }
.rh-top__list li::before {
    content: counter(rh-top);
    font-family: Georgia, "Iowan Old Style", serif;
    font-size: 1.1rem;
    color: rgba(244, 162, 97, 0.85);
    font-weight: 700;
    min-width: 1.2rem;
    text-align: center;
}
.rh-top__list a {
    color: #ffd5e0;
    font-weight: 500;
    flex: 1 1 auto;
    text-decoration: none;
}
.rh-top__list a:hover { color: #ffb0c0; text-decoration: underline; }
.rh-top__plays {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}

/* ============ Modo incógnito (boss key) ============ */
.rh-footer__incognito {
    margin: 0.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
}
.rh-footer__incognito-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.55);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.rh-footer__incognito-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}
.rh-footer__incognito-btn[aria-pressed="true"] {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    color: #93c5fd;
}

/* ── Disfraz: solo oculta elementos delatorios; tema visual intacto ── */

/* Ocultar elementos delatorios */
html.rh-incognito .rh-header img,
html.rh-incognito .rh-cta,
html.rh-incognito .rh-bella,
html.rh-incognito .rh-voz-mini,
html.rh-incognito .rh-pullquote,
html.rh-incognito .rh-ep-overline,
html.rh-incognito .rh-tags,
html.rh-incognito .rh-cat-tags,
html.rh-incognito .rh-cat-section:nth-child(2),
html.rh-incognito .rh-sorpresa,
html.rh-incognito .rh-fav,
html.rh-incognito .rh-cat-fav,
html.rh-incognito #rh-archive-link,
html.rh-incognito .rh-archive,
html.rh-incognito #rh-bella,
html.rh-incognito #rh-continue,
html.rh-incognito #rh-top,
html.rh-incognito .rh-toast-global,
html.rh-incognito .rh-player__toast,
html.rh-incognito .rh-prose {
    display: none !important;
}


/* Header: ocultar logo + mostrar texto corporativo en su lugar */
html.rh-incognito .rh-header::before {
    content: "Documentación interna · v1.4.2";
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.6rem 0;
}

/* Sustituir el aviso 18+ del footer por uno corporativo neutro */
html.rh-incognito .rh-footer__legal { display: none !important; }
html.rh-incognito .rh-footer__contact { display: none !important; }
html.rh-incognito .rh-footer::after {
    content: "© Departamento de Documentación · Uso interno";
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    margin-top: 0.5rem;
}

/* ============ Indicador offline ============ */
.rh-offline[hidden] { display: none !important; }
.rh-offline {
    position: fixed;
    top: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: rgba(220, 38, 38, 0.95);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    z-index: 150;
    box-shadow: 0 4px 14px -4px rgba(0,0,0,0.4);
}

/* ============ Sticky mini-player en /relato ============ */
.rh-mini[hidden] { display: none !important; }
.rh-mini {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 3, 6, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f0e8ec;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.9rem;
    z-index: 90;
    transform: translateY(-100%);
    transition: transform .25s ease, opacity .25s ease;
    opacity: 0;
}
.rh-mini[data-show="true"] {
    transform: translateY(0);
    opacity: 1;
}
.rh-mini__btn {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #d62853 0%, #8b1538 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.rh-mini__btn:hover { filter: brightness(1.1); }
.rh-mini__title {
    flex: 1 1 auto;
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffd5e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.rh-mini__time {
    flex: 0 0 auto;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
    .rh-mini { transition: opacity .15s ease; transform: none; }
}

/* ============ Modo arcoíris (desbloqueable al 100% logros) ============ */
html.rh-rainbow .rh-title,
html.rh-rainbow .rh-relato-title {
    background: linear-gradient(90deg, #ff5577, #f4a261, #fde68a, #4ade80, #38bdf8, #a855f7, #ec4899);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: rh-rainbow-shift 6s linear infinite;
}
html.rh-rainbow .rh-bella__quote::before,
html.rh-rainbow .rh-bella__quote::after,
html.rh-rainbow .rh-pullquote::before,
html.rh-rainbow .rh-pullquote::after {
    color: #f4a261;
}
html.rh-rainbow .rh-player__btn {
    background: linear-gradient(135deg, #ff5577, #f4a261, #4ade80, #a855f7) !important;
    background-size: 200% 200% !important;
    animation: rh-rainbow-bg 4s ease infinite;
}
html.rh-rainbow .rh-fav__icon { fill: #ff5577 !important; }
@keyframes rh-rainbow-shift {
    from { background-position:   0% 50%; }
    to   { background-position: 200% 50%; }
}
@keyframes rh-rainbow-bg {
    0%, 100% { background-position:   0% 50%; }
    50%      { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    html.rh-rainbow .rh-title,
    html.rh-rainbow .rh-relato-title,
    html.rh-rainbow .rh-player__btn { animation: none; }
}

/* Toggle del modo arcoíris en /logros */
.rh-rainbow-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 1rem auto 0.5rem;
    padding: 0.5rem 0.9rem;
    background: linear-gradient(90deg, #ff5577, #f4a261, #4ade80, #a855f7);
    background-size: 200% 100%;
    color: #fff;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    animation: rh-rainbow-shift 6s linear infinite;
}

/* ============ Highlight de búsqueda ============ */
.rh-mark {
    background: rgba(244, 162, 97, 0.3);
    color: #ffd5e0;
    padding: 0 0.15em;
    border-radius: 3px;
    font-weight: 600;
}

/* ============ Cheatsheet de atajos ============ */
/* <dialog> nativo — centra y bloquea scroll automáticamente */
.rh-cheatsheet {
    background: #1a0a14;
    background-image: linear-gradient(135deg, rgba(60, 20, 40, 0.98) 0%, rgba(40, 10, 60, 0.98) 100%);
    border: 1px solid rgba(240, 96, 128, 0.45);
    border-radius: 16px;
    padding: 1.5rem 1.6rem;
    color: #f0e8ec;
    box-shadow: 0 18px 60px -16px rgba(0,0,0,0.7);
    max-width: 380px;
    width: calc(100% - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    box-sizing: border-box;
}
.rh-cheatsheet::backdrop {
    background: rgba(10, 3, 6, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.rh-cheatsheet[open] { animation: rh-cheat-fade .2s ease-out; }
@keyframes rh-cheat-fade { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.rh-cheatsheet__title {
    margin: 0 0 1rem;
    font-family: Georgia, "Iowan Old Style", serif;
    font-size: 1.2rem;
    color: #ffd5e0;
    text-align: center;
}
.rh-cheatsheet__list {
    margin: 0 auto;
    width: max-content;
    max-width: 100%;
    display: grid;
    gap: 0.55rem;
}
.rh-cheatsheet__list > div {
    display: grid;
    grid-template-columns: 5.5rem auto;
    align-items: center;
    gap: 0.7rem;
}
.rh-cheatsheet__list dt { margin: 0; }
.rh-cheatsheet__list dd { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }
.rh-cheatsheet__list kbd {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom-width: 2px;
    border-radius: 5px;
    font: inherit;
    font-size: 0.82rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #fff;
}
.rh-cheatsheet__hint {
    margin: 1.1rem 0 0;
    font-size: 0.78rem;
    color: rgba(244, 162, 97, 0.7);
    font-style: italic;
    text-align: center;
}
.rh-cheatsheet__close {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
}
.rh-cheatsheet__close:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

/* ============ Toast global (logros, etc.) ============ */
.rh-toast-global {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #f06080 0%, #b94673 100%);
    color: #fff;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 8px 28px -8px rgba(240, 96, 128, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 200;
    max-width: 90vw;
    text-align: center;
}
.rh-toast-global[data-show="true"] {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============ Logros ============ */
.rh-logros {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: 1fr;
}
@media (min-width: 540px) {
    .rh-logros { grid-template-columns: 1fr 1fr; }
}
.rh-logro {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
    /* Bloqueado por defecto: gris desaturado */
    filter: grayscale(0.85) brightness(0.65);
    opacity: 0.7;
}
.rh-logro__emoji {
    font-size: 1.6rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}
.rh-logro__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.rh-logro__label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.25;
}
.rh-logro__desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}
.rh-logro__check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    flex: 0 0 auto;
}
/* Desbloqueado: color completo + check verde */
.rh-logro[data-rh-unlocked="true"] {
    filter: none;
    opacity: 1;
    background: rgba(74, 222, 128, 0.07);
    border-color: rgba(74, 222, 128, 0.4);
}
.rh-logro[data-rh-unlocked="true"] .rh-logro__check {
    color: #fff;
    background: #4ade80;
}
.rh-logro[data-rh-unlocked="true"]:hover {
    transform: translateY(-1px);
    border-color: rgba(74, 222, 128, 0.6);
}
.rh-logros-stat__pct { color: #f4a261; font-weight: 600; }

/* ============ Historial / Favoritos meta ============ */
.rh-hist-meta {
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}
.rh-hist-meta__pct { color: rgba(244, 162, 97, 0.85); font-weight: 500; }
.rh-fav-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 2rem 0 1.5rem;
    line-height: 1.7;
}
.rh-fav-empty a { color: #f06080; }

/* ============ Drag & drop favoritos ============ */
.rh-fav-hint {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 0.5rem;
}
.rh-catalog--draggable .rh-catalog__item { cursor: grab; }
.rh-catalog--draggable .rh-catalog__item.is-dragging {
    opacity: 0.4;
    cursor: grabbing;
}
.rh-drag-handle {
    position: absolute;
    left: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.95rem;
    letter-spacing: -1px;
    user-select: none;
    pointer-events: none;
}
.rh-catalog--draggable .rh-catalog__item { padding-left: 1.8rem; }

/* ============ Fly heart al guardar favorito ============ */
.rh-fly-heart {
    position: fixed;
    width: 24px;
    height: 24px;
    color: #ff5577;
    pointer-events: none;
    z-index: 250;
    transform: translate(0, 0) scale(1);
    opacity: 1;
    transition: transform .85s cubic-bezier(.5, -0.1, .2, 1.2), opacity .85s ease-out;
    will-change: transform, opacity;
}
.rh-fly-heart svg { width: 24px; height: 24px; filter: drop-shadow(0 2px 6px rgba(255, 85, 119, 0.5)); }
@media (prefers-reduced-motion: reduce) {
    .rh-fly-heart { display: none; }
}

/* ============ Onboarding tooltip primera visita ============ */
.rh-onboard {
    position: absolute;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f06080 0%, #b94673 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 6px 18px -6px rgba(240, 96, 128, 0.6);
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
    animation: rh-onboard-bounce 1.2s ease-in-out infinite;
}
.rh-onboard__arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #f06080;
}
@keyframes rh-onboard-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
    .rh-onboard { animation: none; }
}

/* ============ Sleep timer ============ */
.rh-player__sleep-wrap { position: relative; flex: 0 0 auto; }
.rh-player__sleep {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    height: 24px;
    min-width: 32px;
    padding: 0 8px;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: background .15s ease, color .15s ease;
}
.rh-player__sleep:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.rh-player__sleep[data-rh-active="true"] {
    background: rgba(244, 162, 97, 0.2);
    color: #f4a261;
}
.rh-player__sleep-left { font-variant-numeric: tabular-nums; }
.rh-player__sleep-left:empty { display: none; }
.rh-player__sleep-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: rgba(20, 5, 12, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.4rem;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    z-index: 30;
    box-shadow: 0 10px 30px -8px rgba(0,0,0,0.65);
}
.rh-player__sleep-menu[hidden] { display: none; }
.rh-player__sleep-menu button {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    padding: 0.45rem 0.7rem;
    border-radius: 6px;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.rh-player__sleep-menu button:hover { background: rgba(240, 96, 128, 0.15); color: #ffd5e0; }
@media (max-width: 600px) {
    .rh-player__sleep { min-height: 36px; min-width: 44px; }
}

/* ============ Botón favorito ============ */
.rh-fav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
    flex: 0 0 auto;
}
.rh-fav:hover { background: rgba(240, 96, 128, 0.10); border-color: rgba(240, 96, 128, 0.4); color: #ffd5e0; }
.rh-fav:active { transform: scale(.92); }
.rh-fav[aria-pressed="true"] {
    background: rgba(240, 96, 128, 0.18);
    border-color: rgba(240, 96, 128, 0.55);
    color: #ffb0c0;
}
.rh-fav[aria-pressed="true"] .rh-fav__icon { fill: #ff5577; }
.rh-fav.is-beating .rh-fav__icon,
.rh-cat-fav.is-beating svg { animation: rh-beat 0.4s ease-out; }
@keyframes rh-beat {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.4); }
    60%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .rh-fav.is-beating .rh-fav__icon,
    .rh-cat-fav.is-beating svg { animation: none; }
}

/* Variante icon-only — la del título */
.rh-fav--icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    font-size: 0;
}
/* Variante corner — esquina sup. derecha de la card */
.rh-fav--corner {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
}
/* Reservar espacio para que el título no se solape con el corazón */
.rh-card .rh-relato-title,
.rh-card .rh-ep-overline {
    padding-left: 3rem;
    padding-right: 3rem;
}

/* ============ Pull-quote en detalle ============ */
.rh-pullquote {
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
    font-style: italic;
    font-size: clamp(1.05rem, 2.6vw, 1.25rem);
    line-height: 1.4;
    color: #ffd5e0;
    text-align: center;
    max-width: 32rem;
    margin: 1.6rem auto 0.8rem;
    padding: 0;
}
.rh-pullquote::before {
    content: "“";
    color: rgba(240, 96, 128, 0.6);
    margin-right: 0.05em;
    font-weight: 700;
}
.rh-pullquote::after {
    content: "”";
    color: rgba(240, 96, 128, 0.6);
    margin-left: 0.05em;
    font-weight: 700;
}

/* ============ Logo "late" cuando suena ============ */
.rh-header img {
    transition: transform .4s ease;
}
html.rh-playing .rh-header img {
    animation: rh-logo-beat 2.4s ease-in-out infinite;
}
@keyframes rh-logo-beat {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.018); }
}

/* ============ Background reactivo cuando suena ============ */
body::before {
    content: '';
    position: fixed;
    top: -25%;
    left: -25%;
    right: -25%;
    bottom: -25%;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(240, 96, 128, 0.14) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 70%, rgba(124, 58, 237, 0.14) 0%, transparent 45%);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 1.6s ease;
}
html.rh-playing body::before {
    opacity: 1;
    animation: rh-blob-float 22s ease-in-out infinite;
}
@keyframes rh-blob-float {
    0%   { transform: translate(0, 0)        rotate(0deg); }
    25%  { transform: translate(6%, -4%)     rotate(2deg); }
    50%  { transform: translate(-4%, 5%)     rotate(-2deg); }
    75%  { transform: translate(5%, 3%)      rotate(1deg); }
    100% { transform: translate(0, 0)        rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    html.rh-playing .rh-header img,
    html.rh-playing body::before { animation: none; }
}

/* ============ Form de apodo en /sobre ============ */
.rh-nick-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0.6rem 0 1rem;
}
.rh-nick-form input {
    flex: 1 1 auto;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f0e8ec;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font: inherit;
    font-size: 0.92rem;
}
.rh-nick-form input::placeholder { color: rgba(255, 255, 255, 0.35); }
.rh-nick-form input:focus { outline: none; border-color: rgba(240, 96, 128, 0.5); }
.rh-nick-form button {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #f06080 0%, #b94673 100%);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.rh-nick-form button:hover { filter: brightness(1.1); }
.rh-nick-msg { font-size: 0.82rem; color: rgba(244, 162, 97, 0.9); }
.rh-nick-msg[hidden] { display: none; }

/* ============ Buscador en home ============ */
.rh-home-search {
    display: flex;
    gap: 0.4rem;
    max-width: 28rem;
    margin: 1rem auto 0.5rem;
}
.rh-home-search input {
    flex: 1 1 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #f0e8ec;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font: inherit;
    font-size: 0.9rem;
    transition: border-color .15s ease, background .15s ease;
}
.rh-home-search input::placeholder { color: rgba(255, 255, 255, 0.4); }
.rh-home-search input:focus {
    outline: none;
    border-color: rgba(240, 96, 128, 0.5);
    background: rgba(255, 255, 255, 0.07);
}
.rh-home-search button {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #f06080 0%, #b94673 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter .15s ease;
}
.rh-home-search button:hover { filter: brightness(1.1); }

/* ============ "Bella speaks" — frase + firma ============ */
.rh-bella[hidden] { display: none !important; }
.rh-bella {
    margin: 1.2rem auto 0;
    max-width: 30rem;
    text-align: center;
    animation: rh-bella-fade 0.6s ease-out;
    /* Reserva 2 líneas. Cuando el JS sustituye con welcomeBack/nick, las
       frases más largas pueden wrappear; sin min-height empujaban contenido. */
    min-height: 3.4rem;
}
@media (max-width: 480px) {
    /* En móvil estrecho los wraps llegan a 3 líneas en algunos welcomeBack. */
    .rh-bella { min-height: 5rem; }
}
.rh-bella__quote {
    display: inline;
    margin: 0;
    padding: 0;
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255, 213, 224, 0.92);
    line-height: 1.5;
}
.rh-bella__quote::before { content: "“"; color: rgba(240, 96, 128, 0.7); margin-right: 0.05em; font-weight: 700; }
.rh-bella__quote::after  { content: "”"; color: rgba(240, 96, 128, 0.7); margin-left: 0.05em;  font-weight: 700; }
.rh-bella__sign {
    display: inline;
    margin-left: 0.4rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}
.rh-bella__sign a {
    color: #f06080;
    font-weight: 600;
}
.rh-bella__sign a:hover { color: #ff8aa3; }
@keyframes rh-bella-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .rh-bella { animation: none; }
}

/* ============ Easter eggs por fecha ============ */
.rh-festivo-halloween   .rh-ep-overline { color: rgba(255, 140, 50, 0.95); }
.rh-festivo-halloween   .rh-title       { text-shadow: 0 0 18px rgba(255, 100, 0, 0.25); }
.rh-festivo-navidad     .rh-ep-overline { color: rgba(74, 222, 128, 0.95); }
.rh-festivo-nochevieja  .rh-ep-overline,
.rh-festivo-anonuevo    .rh-ep-overline { color: rgba(252, 211, 77, 0.95); }
.rh-festivo-sanvalentin .rh-ep-overline { color: rgba(255, 138, 174, 1); }
.rh-festivo-carnaval    .rh-ep-overline { color: rgba(168, 85, 247, 0.95); }
.rh-festivo-reyes       .rh-ep-overline { color: rgba(252, 211, 77, 0.95); }
.rh-festivo-playa       .rh-ep-overline { color: rgba(96, 165, 250, 1); }

/* ============ Scroll progress bar ============ */
.rh-scrollbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #f06080 0%, #b94673 100%);
    z-index: 100;
    pointer-events: none;
    transition: width 0.05s linear;
}

/* ============ Botón "Ir arriba" flotante ============ */
.rh-back-to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(240, 96, 128, 0.4);
    background: rgba(10, 3, 6, 0.85);
    color: #f06080;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px -6px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, color .15s ease;
    z-index: 50;
}
.rh-back-to-top[data-show="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.rh-back-to-top:hover { color: #ff8aa3; }
@media (prefers-reduced-motion: reduce) {
    .rh-back-to-top { transition: opacity .2s ease; }
}

/* ============ Mini-bloque Voz (avatar + nombre) — vive en el footer ============ */
.rh-voz-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0.85rem 0.3rem 0.3rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.rh-voz-mini:hover { transform: translateY(-1px); }
.rh-voz-mini:hover {
    background: rgba(240, 96, 128, 0.10);
    border-color: rgba(240, 96, 128, 0.35);
}
.rh-voz-mini__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b1e3a 0%, #3c1450 100%);
    font-size: 18px;
    line-height: 1;
}
.rh-voz-mini__txt {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.rh-voz-mini__label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.rh-voz-mini__name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffd5e0;
}

/* ============ Overline "Episodio #N · fecha" ============ */
.rh-ep-overline {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(244, 162, 97, 0.85);
    text-align: center;
}

/* ============ Breadcrumb ============ */
.rh-breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    text-align: center;
}
.rh-breadcrumb a { color: rgba(255, 255, 255, 0.8); }
.rh-breadcrumb span { margin: 0 0.4rem; }

/* ============ CTA al catálogo desde la home ============ */
.rh-catalog-cta {
    text-align: center;
    margin: 1.5rem 0 0.5rem;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.5rem;
    align-items: center;
}
.rh-catalog-cta a {
    color: #f06080;
    border-bottom: 1px dashed rgba(240, 96, 128, 0.5);
    padding-bottom: 1px;
}

/* ============ Botón Sorpréndeme ============ */
.rh-sorpresa {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #6b1e3a 0%, #3c1450 100%);
    color: #ffd5e0;
    border: 1px solid rgba(255, 213, 224, 0.25);
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.rh-sorpresa:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(107, 30, 58, 0.5); }
.rh-sorpresa:disabled { opacity: 0.55; cursor: wait; }
.rh-sorpresa::before { content: "🎲"; font-size: 1.05rem; }

/* ============ Continúa escuchando — toast flotante ============ */
/* Fixed para no afectar el flujo de la página (evita CLS al aparecer). */
#rh-continue[hidden] { display: none !important; }
#rh-continue {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 8500;
    max-width: 360px;
    background: linear-gradient(135deg, #2a1a0d 0%, #1a1207 100%);
    border: 1px solid rgba(244, 162, 97, 0.45);
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    box-shadow: 0 12px 30px -8px rgba(244, 162, 97, 0.30), 0 0 0 1px rgba(244, 162, 97, 0.08);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}
.rh-continue__label { color: rgba(255, 255, 255, 0.7); }
.rh-continue__link { font-weight: 600; color: #f4a261; }
.rh-continue__link:hover { color: #ffb87a; }
.rh-continue__time { color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }
.rh-continue__close {
    margin-left: auto;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    line-height: 1;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.rh-continue__close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
@media (max-width: 480px) {
    #rh-continue { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ============ Catálogo: barra compacta de búsqueda ============ */
.rh-search-bar {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    margin: 1rem 0 0.4rem;
}
.rh-search-bar .rh-search { flex: 1 1 auto; margin: 0; }
.rh-search-bar .rh-search__input { padding: 0.6rem 1rem; font-size: 0.92rem; }
.rh-search-bar .rh-sorpresa,
.rh-search-bar .rh-cat-tools__toggle {
    flex: 0 0 auto;
    padding: 0 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.rh-search-bar .rh-sorpresa {
    background: linear-gradient(135deg, #6b1e3a 0%, #3c1450 100%);
    color: #ffd5e0;
    border: 1px solid rgba(255, 213, 224, 0.25);
    font-size: 1.05rem;
}
.rh-search-bar .rh-sorpresa::before { content: ""; }
.rh-search-bar .rh-sorpresa:hover { transform: translateY(-1px); }
.rh-cat-tools__toggle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}
.rh-cat-tools__toggle:hover { background: rgba(255, 255, 255, 0.08); }
.rh-cat-tools__toggle[aria-expanded="true"] {
    background: rgba(240, 96, 128, 0.15);
    border-color: rgba(240, 96, 128, 0.4);
    color: #ffd5e0;
}

/* ============ Catálogo: tools (orden + filtros) ============ */
.rh-cat-tools[hidden] { display: none !important; }
.rh-cat-tools {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0.6rem 0 1.2rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}
.rh-cat-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.rh-cat-section__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    text-align: left;
}
.rh-cat-order {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
}
.rh-cat-order__btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.rh-cat-order__btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.rh-cat-order__btn[data-rh-active="true"] {
    background: rgba(240, 96, 128, 0.15);
    border-color: rgba(240, 96, 128, 0.5);
    color: #ffd5e0;
}
.rh-cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
}
.rh-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 213, 224, 0.8);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.rh-cat-tag:hover { background: rgba(240, 96, 128, 0.10); border-color: rgba(240, 96, 128, 0.3); }
.rh-cat-tag[data-rh-active="true"] {
    background: rgba(240, 96, 128, 0.18);
    border-color: rgba(240, 96, 128, 0.55);
    color: #ffd5e0;
}
.rh-cat-tag__count {
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

/* Ítems ocultos por filtros (cualquiera esconde) */
.rh-catalog__item[data-rh-hidden-tag="true"],
.rh-catalog__item[data-rh-hidden-fav="true"],
.rh-catalog__item[data-rh-hidden-dur="true"] { display: none !important; }

/* ============ Stats catálogo ============ */
.rh-cat-stats {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
}
.rh-cat-stats strong { color: #ffd5e0; font-weight: 700; }
.rh-cat-stats__pct {
    color: #f4a261;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ============ Buscador ============ */
.rh-search {
    margin: 1.5rem 0 1rem;
}
.rh-search__input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f0e8ec;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font: inherit;
    font-size: 1rem;
    transition: border-color .15s ease, background .15s ease;
}
.rh-search__input::placeholder { color: rgba(255, 255, 255, 0.4); }
.rh-search__input:focus {
    outline: none;
    border-color: #f06080;
    background: rgba(255, 255, 255, 0.08);
}
.rh-search__count {
    display: block;
    margin-top: 0.5rem;
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============ Listado del catálogo ============ */
.rh-catalog {
    list-style: none;
    counter-reset: rh-c;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}
.rh-catalog__item {
    counter-increment: rh-c;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.9rem;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.4s ease;
}
.rh-catalog__item[data-rh-fade="pending"] {
    opacity: 0;
    transform: translateY(8px);
}
.rh-catalog__item[data-rh-fade="shown"] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.rh-catalog__item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}
.rh-catalog__item { position: relative; }
.rh-catalog__item[data-rh-listened="true"] {
    border-left: 3px solid rgba(74, 222, 128, 0.7);
}
/* Check verde — mismo box que el botón corazón (30×30 en top 0.5rem)
   para que queden alineados horizontal y verticalmente. */
.rh-catalog__item[data-rh-listened="true"]::after {
    content: "✓";
    position: absolute;
    top: 0.5rem;
    right: 2.7rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
    font-weight: 700;
    font-size: 1rem;
}
/* Botón corazón clickable en cada item — esquina sup. derecha */
.rh-cat-fav {
    position: absolute;
    top: 0.5rem;
    right: 0.55rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease, background .15s ease, transform .12s ease;
    z-index: 2;
}
.rh-cat-fav:active { transform: scale(.88); }
.rh-cat-fav[aria-pressed="true"] { color: #ff5577; }
@media (hover: hover) {
    .rh-cat-fav:hover { color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.06); }
    .rh-cat-fav[aria-pressed="true"]:hover { color: #ff7a90; background: rgba(255, 85, 119, 0.08); }
}

.rh-catalog__item[data-rh-active="true"] {
    background: rgba(240, 96, 128, 0.10);
    border-color: rgba(240, 96, 128, 0.45);
    box-shadow: 0 0 0 1px rgba(240, 96, 128, 0.25);
}
.rh-catalog__title::before {
    content: counter(rh-c);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.6rem;
    vertical-align: 0.08em;
}
.rh-catalog__title {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffd5e0;
    text-decoration: none;
}
.rh-catalog__title:hover { color: #ffb0c0; text-decoration: underline; }
.rh-catalog__desc {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}
.rh-catalog__audio-match {
    margin: 0.45rem 0 0;
    padding: 0.45rem 0.65rem;
    font-size: 0.83rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(244, 162, 97, 0.06);
    border-left: 2px solid rgba(244, 162, 97, 0.5);
    border-radius: 0 6px 6px 0;
    font-style: italic;
}
.rh-catalog__audio-match-icon {
    font-style: normal;
    margin-right: 0.2rem;
}
.rh-catalog__dur {
    display: inline-block;
    margin: 0.3rem 0 0.5rem;
    font-size: 0.78rem;
    color: rgba(244, 162, 97, 0.85);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}
.rh-catalog__plays {
    display: inline-block;
    margin: 0.3rem 0 0.5rem 0.6rem;
    font-size: 0.78rem;
    color: rgba(255, 138, 166, 0.85);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* ============ Sugerencias en /relato/<slug> ============ */
.rh-suggestions {
    margin: 2.5rem 0 0.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    text-align: left;
}
.rh-suggestions__title {
    margin: 0 0 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}
.rh-suggestions__list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.9rem;
}
.rh-suggestions__list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rh-suggestions__list li:last-child { border-bottom: 0; }
.rh-suggestions__list a {
    color: #ffd5e0;
    font-weight: 500;
}
.rh-suggestions__list a:hover { color: #ffb0c0; }
.rh-suggestions__more {
    text-align: center;
    margin: 0;
    font-size: 0.9rem;
}

/* ============ Próximas emisiones (en detalle) ============ */
.rh-archive__dates {
    display: block;
    margin-top: 0.3rem;
    font-weight: 500;
    color: #f4a261;
}

.rh-voz__sep { opacity: 0.5; margin: 0 0.25rem; }
.rh-voz__rss {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500 !important;
    color: #f4a261;
}
.rh-voz__rss:hover { color: #ffb87a; }
.rh-voz__rss svg { vertical-align: -1px; }

/* ============ Visually hidden (a11y) ============ */
.rh-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============ Accesibilidad: respeta prefers-reduced-motion ============ */
@media (prefers-reduced-motion: reduce) {
    .rh-card:has(.rh-player[data-state="playing"]) { animation: none !important; }
    .rh-player__btn,
    .rh-player__progress,
    .rh-player__bar,
    .rh-player__bar::after,
    .rh-card { transition: none !important; }
}

/* ============ Móvil ============ */
@media (max-width: 480px) {
    .rh-page { padding: 1.2rem 1rem 3rem; }
    .rh-header { margin-bottom: 1.5rem; }
    .rh-header img { max-height: 80px; width: auto; height: auto; }
    .rh-card { padding: 1.4rem 1.1rem 1.6rem; border-radius: 14px; }
    .rh-player { padding: 10px 12px; gap: 10px; justify-content: center; }
    .rh-player__btn { width: 56px; height: 56px; }
    .rh-player__icon { width: 24px; height: 24px; }
    .rh-player__skip { width: 44px; height: 44px; }
    .rh-player__skip svg { width: 26px; height: 26px; }
    /* En móvil, el transport ocupa toda la fila y se centra */
    .rh-player__transport { flex: 1 1 100%; justify-content: center; gap: 4px; }
    /* Touch targets ≥36px en botones secundarios (speed, share, cc) */
    .rh-player__speed,
    .rh-player__share,
    .rh-player__cc { min-height: 36px; min-width: 44px; padding: 0 12px; font-size: 12px; }
}

/* ─────────────────────────────────────────────────────
   Panel privado /stats
   ───────────────────────────────────────────────────── */
.rh-stats-body { background: #0a0306; color: #f5e8ec; }
.rh-stats { max-width: 1100px; margin: 0 auto; padding: 32px 16px 80px; font-family: system-ui, -apple-system, sans-serif; }
.rh-stats__header { border-bottom: 1px solid #2a1218; padding-bottom: 16px; margin-bottom: 32px; }
.rh-stats__header h1 { margin: 0; font-size: 32px; letter-spacing: -0.02em; }
.rh-stats__sub { color: #a08793; font-size: 14px; margin: 4px 0 0; }
.rh-stats__sub code { background: #1a0e13; padding: 1px 6px; border-radius: 3px; font-size: 12px; }
.rh-stats h2 { font-size: 18px; margin: 32px 0 12px; color: #f5c8d4; font-weight: 600; }

.rh-stats__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.rh-stats-card { background: #170a0e; border: 1px solid #2a1218; border-radius: 8px; padding: 16px; }
.rh-stats-card__n { font-size: 28px; font-weight: 700; color: #ffe0e9; line-height: 1; }
.rh-stats-card__l { font-size: 12px; color: #8e7280; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.05em; }

.rh-stats-table { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 14px; }
.rh-stats-table th, .rh-stats-table td { padding: 6px 10px; text-align: left; border-bottom: 1px solid #1f1014; }
.rh-stats-table th { font-size: 11px; text-transform: uppercase; color: #8e7280; letter-spacing: 0.05em; font-weight: 600; }
.rh-stats-table td a { color: #ffb3c7; text-decoration: none; }
.rh-stats-table td a:hover { text-decoration: underline; }
.rh-stats-table__num { text-align: right !important; font-variant-numeric: tabular-nums; }
.rh-stats-table tr:hover td { background: rgba(220, 80, 110, 0.05); }

.rh-stats-bars { display: flex; gap: 3px; align-items: flex-end; min-height: 220px; padding: 8px 0 4px; border-bottom: 1px solid #2a1218; }
.rh-stats-bars__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 22px; }
.rh-stats-bars__n { font-size: 11px; color: #ffb3c7; font-variant-numeric: tabular-nums; line-height: 16px; font-weight: 600; padding-bottom: 2px; }
.rh-stats-bars__b { width: 100%; background: linear-gradient(180deg, #ff6b8a, #c0285a); border-radius: 2px 2px 0 0; transition: opacity 0.2s; display: flex; align-items: flex-start; justify-content: center; padding-top: 3px; box-sizing: border-box; overflow: hidden; }
.rh-stats-bars__b__n { font-size: 10px; font-weight: 700; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.rh-stats-bars__col:hover .rh-stats-bars__b { opacity: 0.7; }
.rh-stats-bars__col:hover .rh-stats-bars__n { color: #ffe0e9; }
.rh-stats-bars__l { font-size: 10px; color: #6e5a64; font-variant-numeric: tabular-nums; padding-top: 4px; }

.rh-stats-heat { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; max-width: 720px; }
.rh-stats-heat__cell { aspect-ratio: 1; background: #170a0e; border: 1px solid #1f1014; border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #f5e8ec; font-variant-numeric: tabular-nums; }

.rh-stats-stream { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.rh-stats-stream li { padding: 4px 0; display: flex; gap: 12px; align-items: baseline; border-bottom: 1px solid #1a0d11; }
.rh-stats-stream__t { color: #6e5a64; font-size: 12px; min-width: 50px; font-variant-numeric: tabular-nums; }
.rh-stats-stream li a { color: #f5c8d4; text-decoration: none; }
.rh-stats-stream li a:hover { text-decoration: underline; color: #ffb3c7; }

.rh-stats-zero { columns: 2; column-gap: 24px; list-style: none; padding: 0; font-size: 13px; }
.rh-stats-zero li { break-inside: avoid; padding: 2px 0; }
.rh-stats-zero li a { color: #a08793; text-decoration: none; }
.rh-stats-zero li a:hover { color: #ffb3c7; text-decoration: underline; }

@media (max-width: 600px) {
    .rh-stats { padding: 16px 12px 40px; }
    .rh-stats-bars { height: 100px; }
    .rh-stats-heat { gap: 1px; }
    .rh-stats-heat__cell span { display: none; }
    .rh-stats-zero { columns: 1; }
}

/* Stats — chips, badge, variantes */
.rh-stats__filter { color: #ffb3c7; font-weight: 600; }
.rh-stats__sub a { color: #ff8da6; }
.rh-stats-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 8px; vertical-align: middle; }
.rh-stats-chip {
    font-size: 10px; padding: 2px 6px; border-radius: 10px;
    background: #1f1014; color: #a08793; border: 1px solid #2a1218;
    text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em;
}
.rh-stats-chip:hover { color: #ffb3c7; border-color: #5a2030; }
.rh-stats-chip--active { background: #5a2030; color: #ffe0e9; border-color: #803048; }
.rh-stats-bars__b--alt { background: linear-gradient(180deg, #6b9bff, #285ac0); }
.rh-stats-bars__b--bp  { background: linear-gradient(180deg, #ff6b8a, #c0285a); }
.rh-stats-bars__b--cc  { background: linear-gradient(180deg, #ffaa55, #c06820); }

.rh-stats-clicks-legend { display: inline-flex; gap: 14px; margin-left: 14px; font-weight: normal; text-transform: none; letter-spacing: normal; font-size: 11px; color: #a08793; }
.rh-stats-clicks-legend__item { display: inline-flex; align-items: center; gap: 5px; }
.rh-stats-clicks-legend__sw { width: 10px; height: 10px; border-radius: 2px; }
.rh-stats-clicks-legend__sw--bp { background: linear-gradient(180deg, #ff6b8a, #c0285a); }
.rh-stats-clicks-legend__sw--cc { background: linear-gradient(180deg, #ffaa55, #c06820); }

.rh-stats-cta-preview { margin: 8px 0 16px; }
.rh-stats-cta-preview .rh-cta { margin: 0; }
.rh-stats-cta-preview .rh-cta__card { pointer-events: none; cursor: default; }
.rh-stats-cta-preview .rh-cta__card--b { animation: none; }
.rh-stats-cta-preview__label { font-size: 11px; color: #ff8da6; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 6px; }
.rh-stats-bars__b--empty { background: #2a1218; min-height: 2px; }
.rh-stats-bars__b--flat-top { border-radius: 0; }
.rh-stats-bars__b--high { background: linear-gradient(180deg, #ffd86b, #d4a020) !important; }
.rh-stats-bars__b--low { background: linear-gradient(180deg, #6e5a64, #3a2d34) !important; }
.rh-stats-bars__b-proj { width: 100%; background: rgba(255, 107, 138, 0.28); border-radius: 2px 2px 0 0; border: 1px dashed rgba(255, 107, 138, 0.45); border-bottom: none; display: flex; align-items: center; justify-content: center; overflow: hidden; box-sizing: border-box; }
.rh-stats-bars__b-proj--alt { background: rgba(107, 155, 255, 0.28); border-color: rgba(107, 155, 255, 0.45); }
.rh-stats-bars__b-proj__n { font-size: 9px; font-weight: 700; color: #ffe0e9; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* Stats — deltas, sparklines, heatmap día×hora, bars--small */
.rh-stats-card { position: relative; }
.rh-stats-card__d { font-size: 11px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.rh-stats-card__d--up { color: #6dd28a; }
.rh-stats-card__d--down { color: #ff7c7c; }
.rh-stats-card__d--flat { color: #6e5a64; }

.rh-stats-table__spark { width: 100px; }
.rh-stats-spark { display: block; }

.rh-stats__row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-bottom: 8px; }
.rh-stats__row > section { min-width: 0; }
.rh-stats__row > section > h2 { margin-top: 0; }
.rh-stats-stream--bounded { max-height: 380px; overflow-y: auto; padding-right: 4px; }
.rh-stats-stream--bounded::-webkit-scrollbar { width: 6px; }
.rh-stats-stream--bounded::-webkit-scrollbar-thumb { background: #2a1218; border-radius: 3px; }

.rh-stats-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.rh-stats-featured__item {
    background: linear-gradient(135deg, #170a0e, #1a0d11);
    border: 1px solid #3a1822;
    border-left: 3px solid #ff6b8a;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}
.rh-stats-featured__l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #ff8da6; font-weight: 700; min-width: 36px; }
.rh-stats-featured__t { flex: 1; font-size: 15px; color: #ffe0e9; min-width: 0; }
.rh-stats-featured__t a { color: #ffe0e9; text-decoration: none; }
.rh-stats-featured__t a:hover { color: #ff8da6; text-decoration: underline; }
.rh-stats-featured__n { font-size: 12px; color: #a08793; font-variant-numeric: tabular-nums; white-space: nowrap; }

.rh-stats-cron { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 24px; }
.rh-stats-cron__card { background: #170a0e; border: 1px solid #2a1218; border-left: 3px solid #6dd28a; border-radius: 6px; padding: 12px 14px; }
.rh-stats-cron__card--stale { border-left-color: #ff7c7c; background: rgba(255, 124, 124, 0.04); }
.rh-stats-cron__card--fail  { border-left-color: #ffaa44; background: rgba(255, 170, 68, 0.05); }
.rh-stats-cron__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.rh-stats-cron__icon { font-size: 12px; color: #6dd28a; }
.rh-stats-cron__card--stale .rh-stats-cron__icon { color: #ff7c7c; }
.rh-stats-cron__card--fail  .rh-stats-cron__icon { color: #ffaa44; }
.rh-stats-cron__name { font-size: 14px; font-weight: 700; color: #ffe0e9; flex: 1; }
.rh-stats-cron__sched { font-size: 12px; color: #ff8da6; font-variant-numeric: tabular-nums; font-weight: 600; }
.rh-stats-cron__desc { font-size: 11px; color: #8e7280; margin-bottom: 8px; }
.rh-stats-cron__rows { display: flex; flex-direction: column; gap: 2px; }
.rh-stats-cron__row { display: flex; gap: 8px; font-size: 12px; align-items: baseline; }
.rh-stats-cron__l { color: #8e7280; min-width: 42px; text-transform: uppercase; font-size: 10px; letter-spacing: 0.04em; }
.rh-stats-cron__v { color: #f5c8d4; font-variant-numeric: tabular-nums; flex: 1; }
.rh-stats-cron__s { color: #6e5a64; font-size: 11px; }

.rh-stats-rank { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rh-stats-rank li {
    position: relative;
    padding: 12px 16px;
    background: #170a0e;
    border-radius: 6px;
    border: 1px solid #2a1218;
    display: flex;
    align-items: baseline;
    gap: 14px;
    overflow: hidden;
}
.rh-stats-rank li::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--rank-pct, 0%);
    background: linear-gradient(90deg, rgba(255, 107, 138, 0.22), rgba(255, 107, 138, 0.04));
    border-right: 1px solid rgba(255, 107, 138, 0.18);
    z-index: 0;
}
.rh-stats-rank > li > * { position: relative; z-index: 1; }
.rh-stats-rank__r { font-size: 11px; color: #6e5a64; font-weight: 700; min-width: 14px; text-align: right; }
.rh-stats-rank__k { font-size: 22px; font-weight: 700; color: #ffe0e9; font-variant-numeric: tabular-nums; line-height: 1; }
.rh-stats-rank__s { font-size: 14px; color: #8e7280; font-weight: 500; margin-left: 1px; }
.rh-stats-rank__v { color: #f5c8d4; font-variant-numeric: tabular-nums; flex: 1; font-size: 14px; }
.rh-stats-rank__u { color: #8e7280; font-size: 12px; }
.rh-stats-rank__pct { color: #ff8da6; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
.rh-stats-rank--compact li { padding: 8px 12px; }
.rh-stats-rank--compact .rh-stats-rank__k { font-size: 14px; }
.rh-stats__sub-h { font-size: 13px; color: #a08793; font-weight: 600; margin: 16px 0 8px; text-transform: uppercase; letter-spacing: 0.04em; }

.rh-stats-bars--small { min-height: 160px; }

.rh-stats-heatdh { display: flex; flex-direction: column; gap: 1px; max-width: 760px; font-size: 9px; color: #6e5a64; font-variant-numeric: tabular-nums; }
.rh-stats-heatdh__row { display: grid; grid-template-columns: 32px repeat(24, 1fr); gap: 1px; }
.rh-stats-heatdh__row--head { color: #8e7280; font-weight: 600; padding-bottom: 2px; }
.rh-stats-heatdh__rowlabel { font-size: 11px; color: #a08793; padding: 2px 6px 0 0; text-align: right; align-self: center; }
.rh-stats-heatdh__hh { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.rh-stats-heatdh__cell { aspect-ratio: 1; background: #170a0e; border-radius: 1px; min-height: 14px; }
.rh-stats-heatdh__cell:hover { outline: 1px solid #ffb3c7; }

@media (max-width: 720px) {
    .rh-stats-heatdh { font-size: 8px; }
    .rh-stats-heatdh__row { grid-template-columns: 24px repeat(24, 1fr); }
    .rh-stats-heatdh__rowlabel { font-size: 9px; padding-right: 3px; }
    .rh-stats-heatdh__hh { display: none; }
    .rh-stats-heatdh__row--head { display: none; }
    .rh-stats-table__spark { display: none; }
    .rh-stats__row { grid-template-columns: 1fr; gap: 0; }
    .rh-stats__row > section > h2 { margin-top: 32px; }
    .rh-stats-stream--bounded { max-height: none; overflow-y: visible; }
}
