.story-audio-launch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.story-audio-launch-icon {
    display: grid;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(181, 155, 117, 0.62);
    border-radius: 50%;
    background: #b59b75;
    box-shadow: 0 9px 24px rgba(62, 48, 30, 0.2);
    transition: transform 0.25s ease, background 0.25s ease;
}

.story-audio-launch:hover .story-audio-launch-icon,
.story-audio-launch:focus-visible .story-audio-launch-icon {
    transform: scale(1.06);
}

.story-audio-launch:focus-visible {
    outline: 1px solid #b59b75;
    outline-offset: 5px;
}

.story-audio-launch-play {
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #fff;
}

.story-audio-launch-pause,
.story-audio-launch.is-playing .story-audio-launch-play {
    display: none;
}

.story-audio-launch.is-playing .story-audio-launch-pause {
    display: block;
    width: 11px;
    height: 14px;
    background: linear-gradient(to right, #fff 0 3px, transparent 3px 8px, #fff 8px 11px);
}

.story-audio-launch-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.story-audio-launch-copy small {
    font-family: var(--font-en);
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0.2em;
}

.story-audio-launch-copy strong {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.08em;
}

.story-audio-launch--hero {
    position: absolute;
    z-index: 3;
    right: 32px;
    bottom: 30px;
    padding: 10px 16px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(28, 25, 22, 0.58);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.story-audio-launch--hero .story-audio-launch-icon {
    border-color: rgba(255, 255, 255, 0.45);
}

.story-audio-launch--story {
    position: relative;
    z-index: 2;
    margin: -48px 0 68px;
    padding: 9px 18px 9px 9px;
    border: 1px solid rgba(181, 155, 117, 0.4);
    background: rgba(255, 255, 255, 0.62);
    color: #695b49;
}

.story-audio-player {
    position: fixed;
    z-index: 1300;
    left: 50%;
    bottom: 24px;
    display: grid;
    width: min(820px, calc(100% - 56px));
    grid-template-columns: minmax(0, 1fr) auto 52px;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 14px 18px;
    border: 1px solid rgba(181, 155, 117, 0.38);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: 0 18px 50px rgba(39, 31, 23, 0.2);
    color: #333;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(100% + 50px));
    transition: opacity 0.32s ease, transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.story-audio-player.is-dock-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.story-audio-player audio {
    display: none;
}

.timeline-item[id^="profile-story-phase-"] {
    scroll-margin-top: 110px;
}

.story-audio-toggle {
    position: relative;
    display: grid;
    width: 50px;
    height: 50px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #b59b75;
    box-shadow: 0 8px 22px rgba(118, 91, 55, 0.24);
    color: #fff;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.story-audio-toggle::after {
    position: absolute;
    inset: -3px;
    border: 1px solid rgba(181, 155, 117, 0.68);
    border-radius: 50%;
    content: "";
    opacity: 0;
    pointer-events: none;
}

.story-audio-player.is-playing .story-audio-toggle::after {
    animation: story-audio-toggle-pulse 1.8s ease-out infinite;
}

@keyframes story-audio-toggle-pulse {
    0% {
        opacity: 0.62;
        transform: scale(0.92);
    }

    72%,
    100% {
        opacity: 0;
        transform: scale(1.34);
    }
}

.story-audio-toggle:hover,
.story-audio-toggle:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 11px 26px rgba(118, 91, 55, 0.32);
}

.story-audio-toggle:focus-visible,
.story-audio-utility button:focus-visible,
.story-audio-speed:focus-visible,
.story-audio-track-select:focus-visible,
.story-audio-timeline input:focus-visible {
    outline: 1px solid #8c704a;
    outline-offset: 3px;
}

.story-audio-play-icon {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #fff;
}

.story-audio-pause-icon,
.story-audio-player.is-playing .story-audio-play-icon {
    display: none;
}

.story-audio-player.is-playing .story-audio-pause-icon {
    display: block;
    width: 13px;
    height: 16px;
    background: linear-gradient(to right, #fff 0 4px, transparent 4px 9px, #fff 9px 13px);
}

@media (prefers-reduced-motion: reduce) {
    .story-audio-player.is-playing .story-audio-toggle::after {
        animation: none;
    }
}

.story-audio-main {
    min-width: 0;
}

.story-audio-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-bottom: 8px;
}

.story-audio-eyebrow {
    flex: 0 0 auto;
    color: #a18762;
    font-family: var(--font-en);
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0.2em;
}

.story-audio-track-select {
    min-width: 0;
    max-width: 230px;
    height: 26px;
    padding: 2px 28px 2px 8px;
    border: 0;
    border-left: 1px solid rgba(181, 155, 117, 0.3);
    border-radius: 0;
    background-color: transparent;
    color: #544a3e;
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.story-audio-track-name {
    color: #544a3e;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.story-audio-timeline {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 9px;
}

.story-audio-timeline time {
    color: #746b60;
    font-family: var(--font-en);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.story-audio-timeline time:last-child {
    text-align: right;
}

.story-audio-timeline input[type="range"] {
    width: 100%;
    height: 3px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    accent-color: #b59b75;
    cursor: pointer;
}

.story-audio-utility {
    display: flex;
    align-items: center;
    gap: 5px;
}

.story-audio-utility button,
.story-audio-utility .story-audio-speed {
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0 5px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6e6253;
    font-family: var(--font-en);
    font-size: 15px;
    cursor: pointer;
}

.story-audio-utility button:hover,
.story-audio-utility .story-audio-speed:hover {
    background: rgba(181, 155, 117, 0.12);
}

.story-audio-utility .story-audio-skip {
    width: 40px;
    min-width: 40px;
    height: 34px;
    padding: 0 3px;
    border: 0;
    background: transparent;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.story-audio-skip-icon {
    display: block;
    width: 22px;
    height: 22px;
    line-height: 0;
}

.story-audio-skip-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.story-audio-utility .story-audio-skip:hover {
    background: transparent;
    color: #b59b75;
}

.story-audio-utility .story-audio-speed {
    min-width: 46px;
    height: 38px;
    padding: 0 4px;
    border: 1px solid rgba(181, 155, 117, 0.42);
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
    text-align-last: center;
}

.story-audio-speed option {
    background: #fff;
    color: #544a3e;
}

@media (min-width: 1100px) {
    .story-audio-player {
        width: min(900px, calc(100% - 56px));
        gap: 18px;
        padding: 16px 20px;
    }

    .story-audio-eyebrow {
        font-size: 11px;
    }

    .story-audio-track-select,
    .story-audio-track-name {
        font-size: 14px;
    }

    .story-audio-timeline time {
        font-size: 14px;
    }

    .story-audio-utility button,
    .story-audio-utility .story-audio-speed {
        font-size: 17px;
    }
}

@media (max-width: 1099px) {
    body.single-profile .profile-page-nav {
        transition: opacity 0.25s ease, transform 0.35s ease;
    }

    body.single-profile.story-audio-dock-visible .profile-page-nav {
        opacity: 0;
        pointer-events: none;
        transform: translateY(calc(100% + env(safe-area-inset-bottom)));
    }

    body.single-profile.story-audio-dock-visible {
        padding-bottom: calc(94px + env(safe-area-inset-bottom));
    }

    .story-audio-player {
        bottom: calc(10px + env(safe-area-inset-bottom));
        width: calc(100% - 20px);
    }
}

@media (max-width: 600px) {
    .story-audio-launch--hero {
        right: 16px;
        bottom: 62px;
        gap: 9px;
        padding: 8px 11px 8px 8px;
    }

    .story-audio-launch--hero .story-audio-launch-icon {
        width: 40px;
        height: 40px;
    }

    .story-audio-launch--hero .story-audio-launch-copy strong {
        font-size: 11px;
    }

    .story-audio-launch--story {
        margin-top: -50px;
        margin-bottom: 60px;
    }

    .story-audio-player {
        grid-template-columns: minmax(0, 1fr) auto 44px;
        gap: 9px;
        padding: 10px;
    }

    .story-audio-toggle {
        width: 44px;
        height: 44px;
    }

    .story-audio-meta {
        gap: 7px;
        margin-bottom: 6px;
    }

    .story-audio-eyebrow {
        display: none;
    }

    .story-audio-track-select {
        width: 100%;
        max-width: none;
        height: 23px;
        padding-left: 0;
        border-left: 0;
        font-size: 10px;
    }

    .story-audio-timeline {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 6px;
    }

    .story-audio-timeline time {
        font-size: 12px;
    }

    .story-audio-utility {
        gap: 1px;
    }

    .story-audio-utility button,
    .story-audio-utility .story-audio-speed {
        min-width: 28px;
        height: 30px;
        padding: 0 3px;
        font-size: 15px;
    }

    .story-audio-utility .story-audio-skip {
        width: 36px;
        min-width: 36px;
        height: 34px;
        padding: 0 2px;
    }

    .story-audio-skip-icon {
        width: 20px;
        height: 20px;
    }

    .story-audio-utility .story-audio-speed {
        min-width: 44px;
        height: 36px;
    }
}

@media (max-width: 370px) {
    .story-audio-launch--hero .story-audio-launch-copy strong {
        display: none;
    }

    .story-audio-player {
        grid-template-columns: minmax(0, 1fr) auto 42px;
        gap: 6px;
        width: calc(100% - 12px);
        padding: 8px;
    }

    .story-audio-utility .story-audio-skip {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }

    .story-audio-skip-icon {
        width: 18px;
        height: 18px;
    }

    .story-audio-timeline {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
    }

    .story-audio-timeline time {
        font-size: 11px;
    }

    .story-audio-utility .story-audio-speed {
        min-width: 40px;
        height: 34px;
        font-size: 14px;
    }
}
