/**
 * Call recording & history bento animation.
 * Scoped to body.pl-landing-time only.
 */
/* Recording & history — live capture → saved → playback */
body.pl-landing-time .pl-time-record-stage {
    margin-top: auto;
    flex: 0 0 auto;
    height: 276px;
    min-height: 276px;
    max-height: 276px;
    padding: 12px 10px 0;
    display: flex;
    align-items: stretch;
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

body.pl-landing-time .pl-record-anim {
    --record-cycle: 8.5s;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    height: 100%;
    min-height: 0;
    align-items: stretch;
}

body.pl-landing-time .pl-record-anim__history {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    padding: 9px 8px 0;
    border-radius: 12px 12px 0 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(8px);
    animation: plRecordHistoryIn var(--record-cycle) cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
    overflow: hidden;
}

body.pl-landing-time .pl-record-anim__history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    padding: 0 2px 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex: 0 0 auto;
}

body.pl-landing-time .pl-record-anim__history-head strong {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #111;
}

body.pl-landing-time .pl-record-anim__history-head span {
    font-size: 8px;
    font-weight: 600;
    color: #9ca3af;
}

body.pl-landing-time .pl-record-anim__list-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}

body.pl-landing-time .pl-record-anim__list {
    list-style: none;
    margin: 0;
    padding: 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
}

body.pl-landing-time .pl-record-anim__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px;
    padding: 4px 5px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
}

body.pl-landing-time .pl-record-anim__row--new {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    animation:
        plRecordRowIn var(--record-cycle) cubic-bezier(0.22, 1, 0.36, 1) 1 forwards,
        plRecordRowSelect var(--record-cycle) ease-in-out 1 forwards;
}

body.pl-landing-time .pl-record-anim__row--missed .pl-record-anim__row-copy em {
    color: #d97706;
}

body.pl-landing-time .pl-record-anim__row--missed .pl-record-anim__row-title strong {
    color: #dc2626;
}

body.pl-landing-time .pl-record-anim__row-av {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #111;
    color: #fff;
    font-size: 6px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.pl-landing-time .pl-record-anim__row-av--muted {
    background: #e5e7eb;
    color: #6b7280;
}

body.pl-landing-time .pl-record-anim__row-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.pl-landing-time .pl-record-anim__row-title {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

body.pl-landing-time .pl-record-anim__row-title strong {
    font-size: 9px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #111;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 0 1 auto;
}

body.pl-landing-time .pl-record-anim__row-icons {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 3px;
}

body.pl-landing-time .pl-record-anim__row .pl-dash-voice-rec-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #949494;
}

body.pl-landing-time .pl-record-anim__row .pl-dash-voice-rec-icon svg {
    display: block;
}

body.pl-landing-time .pl-record-anim__row--new .pl-record-anim__rec-icon {
    opacity: 0;
    transform: scale(0.85);
    animation: plRecordRecIcon var(--record-cycle) cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}

body.pl-landing-time .pl-record-anim__row-copy em {
    font-style: normal;
    font-size: 7px;
    font-weight: 500;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.pl-landing-time .pl-record-anim__row-time {
    font-size: 7px;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
}

body.pl-landing-time .pl-record-anim__panel {
    position: relative;
    min-height: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

body.pl-landing-time .pl-record-anim__live,
body.pl-landing-time .pl-record-anim__playback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 10px 8px;
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
}

body.pl-landing-time .pl-record-anim__live {
    background: #111;
    color: #fff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
    animation: plRecordLivePhase var(--record-cycle) ease-in-out 1 forwards;
}

body.pl-landing-time .pl-record-anim__playback {
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(8px);
    animation: plRecordPlayPhase var(--record-cycle) cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}

body.pl-landing-time .pl-record-anim__live-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body.pl-landing-time .pl-record-anim__rec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(219, 39, 119, 0.18);
    color: #fda4af;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

body.pl-landing-time .pl-record-anim__rec i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f43f5e;
    animation: plRecordRecPulse 1s ease-in-out infinite;
}

body.pl-landing-time .pl-record-anim__live-timer::after {
    content: "0:00";
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    font-variant-numeric: tabular-nums;
    animation: plRecordLiveTimer var(--record-cycle) steps(1, end) 1 forwards;
}

body.pl-landing-time .pl-record-anim__live-who {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body.pl-landing-time .pl-record-anim__live-av {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #111;
    font-size: 8px;
    font-weight: 700;
}

body.pl-landing-time .pl-record-anim__live-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

body.pl-landing-time .pl-record-anim__live-meta strong {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

body.pl-landing-time .pl-record-anim__live-meta em {
    font-style: normal;
    font-size: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.58);
}

body.pl-landing-time .pl-record-anim__play-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body.pl-landing-time .pl-record-anim__play-btn {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #111;
    position: relative;
    animation: plRecordPlayBtn var(--record-cycle) ease-in-out 1 forwards;
}

body.pl-landing-time .pl-record-anim__play-btn::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 50%;
    translate: 0 -50%;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #fff;
}

body.pl-landing-time .pl-record-anim__play-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.pl-landing-time .pl-record-anim__play-meta strong {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #111;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.pl-landing-time .pl-record-anim__play-meta em {
    font-style: normal;
    font-size: 8px;
    font-weight: 500;
    color: #9ca3af;
}

body.pl-landing-time .pl-record-anim__duration {
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 600;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}

body.pl-landing-time .pl-record-anim__wave {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2px;
    height: 42px;
    margin-top: auto;
    padding: 0 1px;
}

body.pl-landing-time .pl-record-anim__wave i {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    max-width: 4px;
    border-radius: 999px;
    transform-origin: bottom center;
}

body.pl-landing-time .pl-record-anim__wave--live i {
    background: rgba(251, 113, 133, 0.85);
    animation: plRecordLiveBar 0.65s ease-in-out infinite;
}

body.pl-landing-time .pl-record-anim__wave--live i:nth-child(1) { height: 10px; animation-delay: 0s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(2) { height: 18px; animation-delay: 0.05s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(3) { height: 24px; animation-delay: 0.1s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(4) { height: 14px; animation-delay: 0.15s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(5) { height: 28px; animation-delay: 0.2s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(6) { height: 16px; animation-delay: 0.25s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(7) { height: 32px; animation-delay: 0.3s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(8) { height: 20px; animation-delay: 0.35s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(9) { height: 26px; animation-delay: 0.4s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(10) { height: 12px; animation-delay: 0.45s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(11) { height: 22px; animation-delay: 0.5s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(12) { height: 30px; animation-delay: 0.55s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(13) { height: 15px; animation-delay: 0.6s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(14) { height: 24px; animation-delay: 0.65s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(15) { height: 18px; animation-delay: 0.7s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(16) { height: 28px; animation-delay: 0.75s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(17) { height: 12px; animation-delay: 0.8s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(18) { height: 20px; animation-delay: 0.85s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(19) { height: 26px; animation-delay: 0.9s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(20) { height: 14px; animation-delay: 0.95s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(21) { height: 22px; animation-delay: 1s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(22) { height: 16px; animation-delay: 1.05s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(23) { height: 30px; animation-delay: 1.1s; }
body.pl-landing-time .pl-record-anim__wave--live i:nth-child(24) { height: 18px; animation-delay: 1.15s; }

body.pl-landing-time .pl-record-anim__wave--play i {
    background: #fbcfe8;
    opacity: 0.55;
}

body.pl-landing-time .pl-record-anim__wave--play i:nth-child(2) { height: 12px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(3) { height: 20px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(4) { height: 28px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(5) { height: 16px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(6) { height: 32px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(7) { height: 22px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(8) { height: 14px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(9) { height: 26px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(10) { height: 18px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(11) { height: 30px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(12) { height: 12px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(13) { height: 24px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(14) { height: 16px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(15) { height: 28px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(16) { height: 20px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(17) { height: 14px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(18) { height: 26px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(19) { height: 18px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(20) { height: 32px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(21) { height: 22px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(22) { height: 12px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(23) { height: 24px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(24) { height: 16px; }
body.pl-landing-time .pl-record-anim__wave--play i:nth-child(25) { height: 20px; }

body.pl-landing-time .pl-record-anim__playhead {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    border-radius: 2px;
    background: #db2777;
    box-shadow: 0 0 0 2px rgba(219, 39, 119, 0.12);
    opacity: 0;
    animation: plRecordPlayhead var(--record-cycle) ease-in-out 1 forwards;
}

body.pl-landing-time .pl-record-anim__saved {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fdf2f8;
    color: #be185d;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(219, 39, 119, 0.18);
    opacity: 0;
    animation: plRecordSavedBadge var(--record-cycle) ease-out 1 forwards;
    pointer-events: none;
}

@keyframes plRecordRecPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

@keyframes plRecordLiveBar {
    0%, 100% { transform: scaleY(0.45); opacity: 0.55; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes plRecordHistoryIn {
    0%, 6% { opacity: 0; transform: translateY(8px); }
    12%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes plRecordLivePhase {
    0%, 8% { opacity: 0; transform: translateY(6px); }
    14%, 42% { opacity: 1; transform: translateY(0); }
    48%, 100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes plRecordLiveTimer {
    0%, 14% { content: "0:00"; }
    20% { content: "0:08"; }
    26% { content: "0:16"; }
    32% { content: "0:24"; }
    38% { content: "0:32"; }
    44%, 100% { content: "0:42"; }
}

@keyframes plRecordRowIn {
    0%, 40% {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        transform: translateY(-4px);
    }
    48%, 100% {
        max-height: 34px;
        opacity: 1;
        padding-top: 4px;
        padding-bottom: 4px;
        transform: translateY(0);
    }
}

@keyframes plRecordRowSelect {
    0%, 50% {
        border-color: transparent;
        background: transparent;
        box-shadow: none;
    }
    56%, 72% {
        border-color: rgba(219, 39, 119, 0.28);
        background: #fdf2f8;
        box-shadow: 0 0 0 2px rgba(219, 39, 119, 0.08);
    }
    78%, 100% {
        border-color: rgba(219, 39, 119, 0.18);
        background: #fdf2f8;
        box-shadow: none;
    }
}

@keyframes plRecordRecIcon {
    0%, 44% { opacity: 0; transform: scale(0.6); }
    50%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes plRecordPlayPhase {
    0%, 46% { opacity: 0; transform: translateY(8px); }
    54%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes plRecordPlayBtn {
    0%, 54% { background: #111; transform: scale(1); }
    58% { background: #db2777; transform: scale(1.06); }
    62%, 100% { background: #db2777; transform: scale(1); }
}

@keyframes plRecordPlayhead {
    0%, 56% { left: 0; opacity: 0; }
    60% { left: 0; opacity: 1; }
    88%, 100% { left: calc(100% - 2px); opacity: 1; }
}

@keyframes plRecordSavedBadge {
    0%, 36% { opacity: 0; transform: translate(-50%, calc(-50% + 4px)); }
    40%, 46% { opacity: 1; transform: translate(-50%, -50%); }
    52%, 100% { opacity: 0; transform: translate(-50%, calc(-50% - 4px)); }
}

@media (prefers-reduced-motion: reduce) {
    body.pl-landing-time .pl-record-anim__history,
    body.pl-landing-time .pl-record-anim__row--new,
    body.pl-landing-time .pl-record-anim__row--new .pl-record-anim__rec-icon,
    body.pl-landing-time .pl-record-anim__live,
    body.pl-landing-time .pl-record-anim__playback,
    body.pl-landing-time .pl-record-anim__live-timer::after,
    body.pl-landing-time .pl-record-anim__rec i,
    body.pl-landing-time .pl-record-anim__wave--live i,
    body.pl-landing-time .pl-record-anim__play-btn,
    body.pl-landing-time .pl-record-anim__playhead,
    body.pl-landing-time .pl-record-anim__saved {
        animation: none !important;
    }

    body.pl-landing-time .pl-record-anim__history,
    body.pl-landing-time .pl-record-anim__row--new,
    body.pl-landing-time .pl-record-anim__playback {
        opacity: 1;
        transform: none;
    }

    body.pl-landing-time .pl-record-anim__live {
        opacity: 0;
    }

    body.pl-landing-time .pl-record-anim__row--new {
        max-height: none;
        border-color: rgba(219, 39, 119, 0.18);
        background: #fdf2f8;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    body.pl-landing-time .pl-record-anim__row--new .pl-record-anim__rec-icon {
        opacity: 1;
        transform: none;
    }

    body.pl-landing-time .pl-record-anim__live-timer::after {
        content: "0:42";
    }

    body.pl-landing-time .pl-record-anim__play-btn {
        background: #db2777;
    }

    body.pl-landing-time .pl-record-anim__playhead {
        left: 42%;
        opacity: 1;
    }

    body.pl-landing-time .pl-record-anim__saved {
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}
