

.rp3-card {
    position: relative;

    touch-action: manipulation;
    display: flex;
    flex-direction: column;
    flex: 0 0 27rem;
    max-width: 27rem;
    margin: 0 0.8rem 2rem;
    background: #fff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    animation: rp3CardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.rp3-card:nth-child(2) { animation-delay: 0.12s; }
.rp3-card:nth-child(3) { animation-delay: 0.24s; }
.rp3-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1.2rem 2.2rem rgba(0, 0, 0, 0.3);
}

@keyframes rp3CardIn {
    0%   { opacity: 0; transform: translateY(1.5rem) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 42em) {
    .rp3-card { flex: 0 0 83%; max-width: 83%; }
}

.rp3-hero {
    position: relative;
    height: 15rem;
    overflow: hidden;
    background: #dfe5eb;
}

.rp3-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0 1.25rem;
    text-align: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 6s ease-out;
    color: #7d8a98;
}
.rp3-slide.is-active {
    opacity: 1;
    transform: scale(1.09);
}

.rp3-slide svg { width: 2.6rem; height: 2.6rem; opacity: 0.55; }
.rp3-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.rp3-card--plain .rp3-list--plain { padding: 0.4rem; }
.rp3-item-plain {
    position: relative;
    color: #dceaf1;
    font-size: 1.1rem;
    padding: 0.75rem 0.9rem 0.75rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.rp3-list--plain li:last-child.rp3-item-plain,
.rp3-list--plain .rp3-item-plain:last-child { border-bottom: none; }
.rp3-item-plain::before {
    content: "";
    position: absolute;
    left: 0.7rem;
    top: 50%;
    width: 0.4rem; height: 0.4rem;
    border-radius: 50%;
    background: #4e90ed;
    transform: translateY(-50%);
}
.rp3-slide-cap {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    max-width: 100%;
    line-height: 1.4;
}
.rp3-slide-cap b { color: #566472; font-weight: 600; }

.rp3-progress {
    position: absolute;
    left: 0; bottom: 0;
    height: 0.28rem;
    width: 100%;
    background: rgba(1, 65, 83, 0.15);
    z-index: 2;
}
.rp3-progress span { display: block; height: 100%; width: 0; background: #4e90ed; }
.rp3-card.is-playing .rp3-progress span { animation: rp3Bar 4s linear infinite; }
@keyframes rp3Bar { 0% { width: 0; } 100% { width: 100%; } }

.rp3-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 0;
    padding: 1rem;
    background: #4e90ed;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    overflow: hidden;
}
.rp3-head svg { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; }
.rp3-head::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}
.rp3-card:hover .rp3-head::after { left: 130%; }

.rp3-list {
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    background: #014153;
    flex: 1;
}
.rp3-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    text-align: left;
    font: inherit;
    font-size: 1.1rem;
    color: #dceaf1;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.75rem 0.9rem 0.75rem 1.4rem;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.rp3-list li:last-child .rp3-item { border-bottom: none; }
.rp3-item::before {
    content: "";
    position: absolute;
    left: 0.7rem;
    top: 50%;
    width: 0.4rem; height: 0.4rem;
    border-radius: 50%;
    background: #4e90ed;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}
.rp3-item:hover,
.rp3-item.is-active {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    padding-left: 1.6rem;
}
.rp3-item.is-active::before {
    width: 0.6rem; height: 0.6rem;
    background: #7fb4ff;
    box-shadow: 0 0 0 0.28rem rgba(127, 180, 255, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    .rp3-slide, .rp3-card, .rp3-card.is-playing .rp3-progress span {
        animation: none;
        transition: opacity 0.3s ease;
    }
    .rp3-slide.is-active { transform: none; }
}
