.ja-radio-chat {
    position: relative;
    display: grid;
    --chat-text-size: 0.89rem;
    --chat-meta-size: 0.74rem;
    --chat-identity-size: 0.92rem;
    --chat-input-size: 0.89rem;
    --chat-profile-listener: var(--color-profile-listener, #ff6b6b);
    --chat-profile-artist: var(--color-profile-artist, #9bc3ff);
    --chat-profile-admin: #ffd65c;
    --chat-profile-bot: #8cffb7;
    --chat-profile-guest: #f5f5f5;
    gap: 1rem;
    min-height: 28rem;
    color: #f5f5f5;
    font-family: inherit;
}

.ja-radio-chat[data-chat-font-size="large"] {
    --chat-text-size: 0.98rem;
    --chat-meta-size: 0.8rem;
    --chat-identity-size: 1rem;
    --chat-input-size: 0.96rem;
}

.ja-radio-chat[data-chat-font-size="xlarge"] {
    --chat-text-size: 1.07rem;
    --chat-meta-size: 0.86rem;
    --chat-identity-size: 1.08rem;
    --chat-input-size: 1.02rem;
}

.ja-radio-chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(140, 255, 183, 0.18);
    padding-bottom: 0.8rem;
}

.ja-radio-chat__title,
.ja-radio-chat__tab {
    margin: 0;
    color: #8cffb7;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ja-radio-chat__status-badge {
    margin: 0;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.32rem 0.62rem;
    border: 1px solid rgba(140, 255, 183, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(245, 245, 245, 0.82);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ja-radio-chat__status-badge.is-open {
    border-color: rgba(140, 255, 183, 0.34);
    background: rgba(140, 255, 183, 0.12);
    color: #8cffb7;
}

.ja-radio-chat__status-badge.is-closed {
    border-color: rgba(255, 107, 107, 0.28);
    background: rgba(255, 107, 107, 0.1);
    color: #ffb0b0;
}

.ja-radio-chat__tabs {
    display: none;
    align-items: center;
    gap: 0.45rem;
}

.ja-radio-chat__tab {
    min-height: 2.1rem;
    border: 1px solid rgba(140, 255, 183, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(245, 245, 245, 0.78);
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    line-height: 1;
    padding: 0.45rem 0.8rem;
}

.ja-radio-chat__tab.is-active {
    border-color: rgba(140, 255, 183, 0.3);
    background: rgba(140, 255, 183, 0.1);
    color: #8cffb7;
}

.ja-radio-chat--closed {
    min-height: 18rem;
}

.ja-radio-chat__closed {
    display: grid;
    align-content: center;
    min-height: 12rem;
    border: 1px solid rgba(255, 59, 59, 0.24);
    border-radius: 0.6rem;
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 59, 59, 0.16), transparent 34%),
        radial-gradient(circle at 86% 12%, rgba(140, 255, 183, 0.12), transparent 32%),
        rgba(5, 5, 5, 0.28);
    padding: clamp(1.5rem, 4vw, 2.4rem);
}

.ja-radio-chat__closed-kicker {
    margin: 0 0 0.65rem;
    color: #ff6b6b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ja-radio-chat__closed h3 {
    margin: 0;
    color: #f5f5f5;
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    line-height: 1.05;
}

.ja-radio-chat__closed p:last-child {
    max-width: 42rem;
    margin: 0.9rem 0 0;
    color: rgba(245, 245, 245, 0.74);
    font-size: 1rem;
    line-height: 1.6;
}

.ja-radio-chat__live-closed[hidden] {
    display: none;
}

.ja-radio-chat__live-closed {
    grid-column: 1 / -1;
}

.ja-radio-chat__closed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.ja-radio-chat__closed-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1.15rem;
    border: 1px solid rgba(255, 107, 107, 0.55);
    border-radius: 0.55rem;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.96), rgba(255, 107, 107, 0.92));
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.ja-radio-chat__closed-button:hover,
.ja-radio-chat__closed-button:focus-visible {
    filter: brightness(1.05);
    outline: 0;
}

.ja-radio-chat.is-chat-disabled .ja-radio-chat__reactions {
    opacity: 0.58;
}

.ja-radio-chat.is-guest-hard-closed .ja-radio-chat__header,
.ja-radio-chat.is-guest-hard-closed .ja-radio-chat__body,
.ja-radio-chat.is-guest-hard-closed .ja-radio-chat__reactions,
.ja-radio-chat.is-guest-hard-closed .ja-radio-chat__guest-cta,
.ja-radio-chat.is-guest-hard-closed [data-chat-composer-host],
.ja-radio-chat.is-guest-hard-closed .ja-radio-chat__notice {
    display: none;
}

.ja-radio-chat__guest-cta[hidden] {
    display: none;
}

.ja-radio-chat__guest-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.9rem;
}

.ja-radio-chat__guest-cta-copy {
    display: grid;
    gap: 0.25rem;
}

.ja-radio-chat__guest-cta-kicker {
    margin: 0;
    color: #8cffb7;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ja-radio-chat__guest-cta-text {
    margin: 0;
    color: rgba(245, 245, 245, 0.72);
    line-height: 1.5;
}

.ja-radio-chat__guest-cta-button {
    min-height: 3rem;
    padding: 0.8rem 1.1rem;
    border: 1px solid rgba(255, 107, 107, 0.55);
    border-radius: 0.55rem;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.96), rgba(255, 107, 107, 0.92));
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
}

.ja-radio-chat__guest-cta-button:hover,
.ja-radio-chat__guest-cta-button:focus-visible {
    filter: brightness(1.05);
    outline: 0;
}

.ja-radio-chat__composer-shell {
    display: grid;
    gap: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.65rem;
}

.ja-radio-chat__composer-identity {
    margin: 0;
    grid-area: identity;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.18rem;
    color: rgba(245, 245, 245, 0.76);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.2;
}

.ja-radio-chat__identity {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
}

.ja-radio-chat__composer-identity .ja-radio-chat__identity {
    gap: 0;
}

.ja-radio-chat__composer-identity .ja-radio-badge {
    margin-right: 0.18rem;
}

.ja-radio-chat__identity--listener,
.ja-radio-chat__name--listener,
.ja-radio-chat__user-button--listener,
.ja-radio-chat__profile--listener {
    color: var(--chat-profile-listener);
}

.ja-radio-chat__identity--artist,
.ja-radio-chat__name--artist,
.ja-radio-chat__user-button--artist,
.ja-radio-chat__profile--artist {
    color: var(--chat-profile-artist);
}

.ja-radio-chat__identity--admin,
.ja-radio-chat__name--admin,
.ja-radio-chat__user-button--admin,
.ja-radio-chat__profile--admin {
    color: var(--chat-profile-admin);
}

.ja-radio-chat__name.is-guest-user,
.ja-radio-chat__user-button.is-guest-user {
    color: var(--chat-profile-guest);
}

.ja-radio-chat__composer-identity.is-guest-user,
.ja-radio-chat__composer-identity .ja-radio-chat__identity.is-guest-user {
    color: var(--chat-profile-guest);
}

.ja-radio-chat__composer-identity::after {
    content: "";
}

.ja-radio-chat__composer-identity [data-chat-identity]::after {
    content: ":";
    margin-left: 0;
}

.ja-radio-chat__composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    grid-area: actions;
}

.ja-radio-chat__composer-settings {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.35rem;
    border: 0;
    background: transparent;
    color: rgba(245, 245, 245, 0.76);
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0;
}

.ja-radio-chat__composer-actions .ja-radio-chat__status-badge {
    flex: 0 0 auto;
    margin-left: auto;
}

.ja-radio-chat__composer-settings:hover,
.ja-radio-chat__composer-settings:focus-visible {
    color: #fff;
    outline: 0;
}

.ja-radio-chat__composer-settings-icon {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(140, 255, 183, 0.18);
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.42);
    color: #8cffb7;
    font-size: 1rem;
    line-height: 1;
}

.ja-radio-chat__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(7rem, 9rem);
    gap: 1rem;
    min-height: 20rem;
}

.ja-radio-chat__messages {
    min-height: 20rem;
    max-height: 32rem;
    overflow: auto;
    padding: 0.5rem 0.6rem 0.5rem 0;
}

.ja-radio-chat__message-row {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    gap: 0rem;
    align-items: baseline;
    margin-bottom: 0.3rem;
    color: #f5f5f5;
    font-size: var(--chat-text-size);
    line-height: 1.32;
}

.ja-radio-chat__message-row.is-mentioned {
    border-radius: 0.45rem;
    background: rgba(255, 214, 92, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 214, 92, 0.14);
    padding: 0.16rem 0.28rem 0.18rem 0.2rem;
}

.ja-radio-chat__message-row.is-bot {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.ja-radio-chat__message-row.is-pending {
    opacity: 0.72;
}

.ja-radio-chat__time {
    color: rgba(245, 245, 245, 0.52);
    font-size: var(--chat-meta-size);
    letter-spacing: 0;
}

.ja-radio-chat__message-main {
    min-width: 0;
    display: block;
}

.ja-radio-chat__message-content {
    min-width: 0;
    display: inline;
}

.ja-radio-chat__message-footer {
    grid-column: 2 / -1;
}

.ja-radio-chat__message-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.ja-radio-chat__message-footer[hidden] {
    display: none;
}

.ja-radio-chat__message-react-option {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #f5f5f5;
    cursor: pointer;
    font: inherit;
}

.ja-radio-chat__message-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.ja-radio-chat__message-inline-actions {
    display: inline-flex;
    align-items: center;
    margin-left: 0.28rem;
    vertical-align: baseline;
}

.ja-radio-chat__message-pending-label {
    color: rgba(255, 214, 92, 0.82);
    font-size: 0.72rem;
    font-style: italic;
}

.ja-radio-chat__message-reaction-strip {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.22rem;
    margin-left: 0.22rem;
    vertical-align: baseline;
}

.ja-radio-chat__message-reaction-summary {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.16rem;
}

.ja-radio-chat__message-reaction-summary:empty {
    display: none;
}

.ja-radio-chat__message-reaction-picker {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.16rem;
    opacity: 1;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.ja-radio-chat__message-reaction-picker {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1px);
}

.ja-radio-chat__message-row:hover .ja-radio-chat__message-reaction-picker,
.ja-radio-chat__message-row:focus-within .ja-radio-chat__message-reaction-picker {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (hover: none) {
    .ja-radio-chat__message-reaction-picker {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-1px);
    }
}

.ja-radio-chat__message-react-option {
    min-height: 1.24rem;
    min-width: 1.24rem;
    padding: 0.03rem 0.24rem;
    font-size: 0.76rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.08rem;
}

.ja-radio-chat__message-reaction-summary .ja-radio-chat__message-react-option {
    cursor: default;
    pointer-events: none;
}

.ja-radio-chat__message-react-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 0.08rem;
    min-height: 1.24rem;
    padding: 0.03rem 0.26rem;
    border: 1px solid rgba(140, 255, 183, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(245, 245, 245, 0.9);
    font-size: 0.74rem;
    line-height: 1;
}

.ja-radio-chat__message-reaction-summary button.ja-radio-chat__message-react-summary-item {
    cursor: pointer;
    font: inherit;
}

.ja-radio-chat__message-reaction-summary button.ja-radio-chat__message-react-summary-item:hover,
.ja-radio-chat__message-reaction-summary button.ja-radio-chat__message-react-summary-item:focus-visible {
    border-color: rgba(140, 255, 183, 0.42);
    background: rgba(140, 255, 183, 0.14);
    color: #8cffb7;
    outline: 0;
}

.ja-radio-chat__message-reaction-summary .ja-radio-chat__message-react-summary-item.is-active {
    border-color: rgba(140, 255, 183, 0.42);
    background: rgba(140, 255, 183, 0.14);
    color: #8cffb7;
}

.ja-radio-chat__message-react-option:hover,
.ja-radio-chat__message-react-option:focus-visible {
    border-color: rgba(255, 214, 92, 0.6);
    background: rgba(255, 214, 92, 0.12);
    outline: 0;
}

.ja-radio-chat__message-react-option.is-active {
    border-color: rgba(140, 255, 183, 0.42);
    background: rgba(140, 255, 183, 0.14);
    color: #8cffb7;
}

.ja-radio-chat__message-react-emoji {
    line-height: 1;
}

.ja-radio-chat__message-react-count {
    color: #8cffb7;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.ja-radio-badge,
.ja-radio-chat__bot-badge,
.ja-radio-chat__trial-badge,
.ja-radio-chat .radio-ufo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--badge-size, 1.2em);
    height: var(--badge-size, 1.2em);
    flex: 0 0 auto;
    line-height: 1;
    vertical-align: middle;
}

.ja-radio-badge__icon,
.ja-radio-chat .radio-ufo-badge__icon,
.ja-radio-chat__trial-badge-icon,
.ja-radio-chat__bot-badge-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: none;
    max-height: none;
}

.ja-radio-chat__name {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    position: relative;
    border: 0;
    background: transparent;
    color: #f5f5f5;
    cursor: pointer;
    font: inherit;
    font-size: calc(var(--chat-text-size) + 0.04rem);
    font-weight: 700;
    margin-right: 0.2rem;
    padding: 0;
    text-align: left;
}

.ja-radio-chat__name--listener,
.ja-radio-chat__name--artist {
    font-weight: 700;
}

.ja-radio-chat__name--admin {
    font-weight: 800;
    text-shadow: 0 0 12px rgba(255, 214, 92, 0.12);
}

.ja-radio-chat__name::after {
    content: ":";
    color: rgba(245, 245, 245, 0.48);
}

.ja-radio-chat__message-row.is-bot .ja-radio-chat__name,
.ja-radio-chat__user-button.is-bot {
    color: var(--chat-profile-bot);
    font-weight: 700;
}

.ja-radio-chat__text {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: var(--chat-text-size);
}

.ja-radio-chat__message-content .ja-radio-chat__name,
.ja-radio-chat__message-content .ja-radio-chat__text {
    display: inline;
}

.ja-radio-chat__message-content .ja-radio-chat__name {
    margin-right: 0.16rem;
    gap: 0.48rem;
}

.ja-radio-chat__message-content .ja-radio-badge {
    margin-right: 0.3rem;
}

.ja-radio-chat__message-content .ja-radio-chat__name::after {
    margin-left: 0;
}

.ja-radio-chat__link {
    color: #8cffb7;
    text-decoration: underline;
    text-underline-offset: 0.14em;
    word-break: break-word;
}

.ja-radio-chat__link:hover,
.ja-radio-chat__link:focus-visible {
    color: #b8ffd0;
    outline: 0;
}

.ja-radio-chat__message-row.is-photo-share {
    align-items: start;
    margin: 0.55rem 0 0.75rem;
}

.ja-radio-chat__photo-profile {
    text-decoration: none;
}

.ja-radio-chat__photo-share {
    display: block;
    width: 5.5rem;
    margin-top: 0.42rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.ja-radio-chat__photo-share img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 160ms ease, opacity 160ms ease;
}

.ja-radio-chat__photo-share:hover img,
.ja-radio-chat__photo-share:focus-visible img {
    transform: scale(1.04);
    opacity: 0.94;
}

.ja-radio-chat__photo-caption {
    display: -webkit-box;
    max-width: 18rem;
    margin: 0.38rem 0 0;
    overflow: hidden;
    color: rgba(245, 245, 245, 0.78);
    font-size: 0.88rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ja-radio-chat__photo-lightbox[hidden] {
    display: none;
}

.ja-radio-chat__photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    place-items: center;
    padding: 1rem 1rem calc(5.75rem + env(safe-area-inset-bottom, 0px));
}

.ja-radio-chat__photo-lightbox-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(3, 4, 5, 0.88);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.ja-radio-chat__photo-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    width: min(100%, 64rem);
    max-height: calc(100dvh - 6.75rem - env(safe-area-inset-bottom, 0px));
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    background: rgba(10, 11, 12, 0.98);
    overflow: hidden;
}

.ja-radio-chat__photo-lightbox-dialog img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: min(60dvh, 58rem);
    border-radius: 0.9rem;
    object-fit: contain;
}

.ja-radio-chat__photo-lightbox-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.ja-radio-chat__photo-lightbox-meta p {
    margin: 0;
    color: rgba(245, 245, 245, 0.84);
    line-height: 1.55;
    white-space: pre-wrap;
}

.ja-radio-chat__photo-like {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    min-width: 3.8rem;
    padding: 0.58rem 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
}

.ja-radio-chat__photo-like.is-liked {
    border-color: rgba(255, 77, 112, 0.48);
    background: rgba(255, 77, 112, 0.12);
    color: #ff5f7e;
}

.ja-radio-chat__photo-like:disabled {
    opacity: 0.55;
    cursor: wait;
}

.ja-radio-chat__photo-lightbox-close {
    justify-self: end;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
}

body.is-chat-photo-lightbox-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .ja-radio-chat__photo-lightbox {
        padding: 0.7rem 0.7rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }

    .ja-radio-chat__photo-lightbox-dialog {
        gap: 0.8rem;
        max-height: calc(100dvh - 6.1rem - env(safe-area-inset-bottom, 0px));
        padding: 0.8rem;
    }

    .ja-radio-chat__photo-lightbox-dialog img {
        max-height: min(52dvh, 34rem);
    }

    .ja-radio-chat__photo-lightbox-meta {
        flex-wrap: wrap;
    }
}

.ja-radio-chat__mention {
    border-radius: 0.24rem;
    background: rgba(140, 255, 183, 0.12);
    color: #8cffb7;
    padding: 0.04rem 0.22rem;
}

.ja-radio-chat__mention--own {
    background: rgba(255, 214, 92, 0.15);
    color: #ffd65c;
}

.ja-radio-chat__delete {
    min-height: 1.2rem;
    padding: 0.03rem 0.34rem;
    border: 1px solid rgba(255, 107, 107, 0.45);
    border-radius: 0.35rem;
    background: transparent;
    color: rgba(255, 214, 214, 0.86);
    cursor: pointer;
    font: inherit;
    font-size: 0.66rem;
    line-height: 1;
    opacity: 0.68;
    transition: opacity 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    position: relative;
    z-index: 1;
}

.ja-radio-chat__message-row:hover .ja-radio-chat__delete,
.ja-radio-chat__message-row:focus-within .ja-radio-chat__delete {
    opacity: 1;
}

.ja-radio-chat__users {
    border-left: 1px solid rgba(140, 255, 183, 0.16);
    padding-left: 0.85rem;
}

.ja-radio-chat__users p {
    margin: 0 0 0.75rem;
    color: rgba(245, 245, 245, 0.72);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ja-radio-chat__users ul {
    display: grid;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ja-radio-chat__users li {
    color: #f5f5f5;
    font-size: 0.84rem;
    line-height: 1.22;
}

.ja-radio-chat__user-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    position: relative;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0.02rem 0;
    text-align: left;
    overflow-wrap: anywhere;
}

.ja-radio-chat__user-button--listener,
.ja-radio-chat__user-button--artist {
    font-weight: 700;
}

.ja-radio-chat__user-button.is-current-user {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.ja-radio-chat__user-button.is-bot {
    color: rgba(140, 255, 183, 0.9);
    font-weight: 600;
}

.ja-radio-chat__user-card {
    position: absolute;
    left: 0;
    top: calc(100% + 0.45rem);
    z-index: 8;
    display: grid;
    gap: 0.32rem;
    min-width: 16rem;
    max-width: min(21rem, calc(100vw - 1.5rem));
    padding: 0.7rem 0.8rem 0.78rem;
    border: 1px solid rgba(140, 255, 183, 0.18);
    border-radius: 0.8rem;
    background:
        radial-gradient(circle at top left, rgba(140, 255, 183, 0.12), transparent 34%),
        rgba(9, 13, 20, 0.96);
    box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, 0.34);
    color: #f5f5f5;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.18rem);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.ja-radio-chat__user-button .ja-radio-chat__user-card {
    left: auto;
    right: 0;
}

.ja-radio-chat__name:hover .ja-radio-chat__user-card,
.ja-radio-chat__name:focus-visible .ja-radio-chat__user-card,
.ja-radio-chat__user-button:hover .ja-radio-chat__user-card,
.ja-radio-chat__user-button:focus-visible .ja-radio-chat__user-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ja-radio-chat__user-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.ja-radio-chat__user-card-title-name {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    white-space: nowrap;
}

.ja-radio-chat__user-card-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    flex: 0 0 auto;
}

.ja-radio-chat__user-card-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ja-radio-chat__user-card-title .ja-radio-chat__identity-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ja-radio-chat__user-card-row {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 0.45rem;
    align-items: baseline;
}

.ja-radio-chat__user-card-row--profile {
    grid-template-columns: 1fr;
    gap: 0;
}

.ja-radio-chat__user-card-row--mention-note {
    display: none;
    flex: 0 0 auto;
}

.ja-radio-chat__user-card-label {
    color: rgba(245, 245, 245, 0.58);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ja-radio-chat__user-card-value {
    color: rgba(245, 245, 245, 0.9);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ja-radio-chat__user-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    padding: 0.28rem 0.68rem;
    border: 1px solid rgba(140, 255, 183, 0.22);
    border-radius: 999px;
    background: rgba(140, 255, 183, 0.08);
    color: #dfffe9;
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.ja-radio-chat__user-card-action:hover,
.ja-radio-chat__user-card-action:focus-visible {
    border-color: rgba(140, 255, 183, 0.38);
    background: rgba(140, 255, 183, 0.14);
    outline: 0;
}

.ja-radio-chat__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
        "identity identity identity"
        "message emoji submit"
        "actions actions actions";
    gap: 0.75rem;
    align-items: end;
}

.ja-radio-chat__message {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    grid-area: message;
}

.ja-radio-chat__composer-emoji {
    position: relative;
    grid-area: emoji;
    align-self: end;
}

.ja-radio-chat__emoji-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    min-height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.055);
    color: #f5f5f5;
    cursor: pointer;
    font: inherit;
    font-size: 1.1rem;
    padding: 0.35rem 0.6rem;
}

.ja-radio-chat__emoji-toggle:hover,
.ja-radio-chat__emoji-toggle:focus-visible {
    border-color: rgba(140, 255, 183, 0.38);
    outline: 0;
}

.ja-radio-chat__emoji-picker {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.55rem);
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    width: min(18rem, 80vw);
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.7rem;
    background:
        radial-gradient(circle at 20% 0%, rgba(140, 255, 183, 0.08), transparent 28%),
        rgba(12, 16, 28, 0.98);
    box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.34);
}

.ja-radio-chat__emoji-picker[hidden] {
    display: none;
}

.ja-radio-chat__emoji-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    min-height: 2.4rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 1.05rem;
    padding: 0.25rem;
}

.ja-radio-chat__emoji-option:hover,
.ja-radio-chat__emoji-option:focus-visible {
    background: rgba(140, 255, 183, 0.14);
    outline: 0;
}

.ja-radio-chat__form button[type="submit"] {
    grid-area: submit;
    justify-self: start;
}

.ja-radio-chat__settings[hidden] {
    display: none;
}

.ja-radio-chat__settings {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    background: rgba(3, 3, 3, 0.68);
    padding: 1rem;
}

.ja-radio-chat__settings-card {
    position: relative;
    display: grid;
    gap: 0.85rem;
    width: min(100%, 27rem);
    border: 1px solid rgba(255, 59, 59, 0.28);
    border-radius: 0.7rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 59, 59, 0.15), transparent 38%),
        linear-gradient(135deg, rgba(16, 16, 16, 0.98), rgba(7, 14, 11, 0.98));
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
    padding: 1.3rem;
}

.ja-radio-chat__settings-card.is-shaking {
    animation: ja-radio-chat-shake 0.34s ease-in-out;
}

@keyframes ja-radio-chat-shake {
    0%,
    100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-0.55rem);
    }
    40% {
        transform: translateX(0.45rem);
    }
    60% {
        transform: translateX(-0.3rem);
    }
    80% {
        transform: translateX(0.18rem);
    }
}

.ja-radio-chat__settings-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: transparent;
    color: rgba(245, 245, 245, 0.72);
    cursor: pointer;
    font: inherit;
    font-size: 1.25rem;
    line-height: 1;
}

.ja-radio-chat__settings-kicker {
    margin: 0 0 0.35rem;
    color: #8cffb7;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ja-radio-chat__settings h3 {
    margin: 0;
    color: #f5f5f5;
    font-size: 1.55rem;
    line-height: 1.1;
}

.ja-radio-chat__settings label {
    display: grid;
    gap: 0.45rem;
}

.ja-radio-chat__settings label span {
    color: rgba(245, 245, 245, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
}

.ja-radio-chat__settings select {
    width: 100%;
    min-height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.055);
    color: #f5f5f5;
    font: inherit;
    font-size: 0.89rem;
    padding: 0.75rem 0.9rem;
}

.ja-radio-chat__settings-notice {
    margin: 0;
    border: 1px solid rgba(255, 59, 59, 0.35);
    border-radius: 0.5rem;
    background: rgba(255, 59, 59, 0.12);
    color: #ffd6d6;
    font-size: 0.9rem;
    line-height: 1.45;
    padding: 0.65rem 0.75rem;
}

.ja-radio-chat__settings-notice[hidden] {
    display: none;
}

.ja-radio-chat__settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.2rem;
}

.ja-radio-chat__settings-actions button {
    min-height: 2.75rem;
    border: 1px solid rgba(255, 107, 107, 0.5);
    border-radius: 0.55rem;
    background: #ff3b3b;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0.65rem 1rem;
}

.ja-radio-chat__settings-actions button:last-child {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #f5f5f5;
}

.ja-radio-chat input {
    width: 100%;
    min-height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.055);
    color: #f5f5f5;
    font: inherit;
    font-size: var(--chat-input-size);
    padding: 0.75rem 0.9rem;
}

.ja-radio-chat input:focus,
.ja-radio-chat__settings select:focus {
    border-color: rgba(140, 255, 183, 0.38);
    outline: 0;
}

.ja-radio-chat input::placeholder {
    color: rgba(245, 245, 245, 0.42);
}

.ja-radio-chat__form button[type="submit"] {
    min-height: 3rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 107, 107, 0.55);
    border-radius: 0.55rem;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.96), rgba(255, 107, 107, 0.92));
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.ja-radio-chat-preferences {
    display: grid;
    gap: 1rem;
}

.ja-radio-chat-preferences__card {
    display: grid;
    gap: 0.9rem;
    width: min(100%, 34rem);
    border: 1px solid rgba(255, 59, 59, 0.2);
    border-radius: 0.9rem;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 59, 59, 0.13), transparent 40%),
        linear-gradient(135deg, rgba(13, 13, 13, 0.98), rgba(7, 14, 11, 0.98));
    box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.28);
    color: #f5f5f5;
    padding: 1.25rem;
}

.ja-radio-chat-preferences__kicker {
    margin: 0;
    color: #8cffb7;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ja-radio-chat-preferences__card h3 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.15;
}

.ja-radio-chat-preferences__lead {
    margin: 0;
    color: rgba(245, 245, 245, 0.76);
}

.ja-radio-chat-preferences__notice {
    margin: 0;
    border: 1px solid rgba(140, 255, 183, 0.25);
    border-radius: 0.55rem;
    background: rgba(140, 255, 183, 0.08);
    color: #d9ffe7;
    padding: 0.7rem 0.85rem;
}

.ja-radio-chat-preferences__form {
    display: grid;
    gap: 0.85rem;
}

.ja-radio-chat-preferences__checkbox {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.035);
    padding: 0.85rem 0.9rem;
}

.ja-radio-chat-preferences__checkbox input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    min-height: 1.1rem;
    margin-top: 0.12rem;
    flex: 0 0 auto;
}

.ja-radio-chat-preferences__checkbox span {
    color: #f5f5f5;
    font-weight: 600;
    line-height: 1.4;
}

.ja-radio-chat-preferences__actions {
    display: flex;
    justify-content: flex-start;
}

.ja-radio-chat-preferences__actions button {
    min-height: 2.9rem;
    border: 1px solid rgba(255, 107, 107, 0.55);
    border-radius: 0.55rem;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.96), rgba(255, 107, 107, 0.92));
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0.65rem 1rem;
}

.ja-radio-chat__reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.1rem;
}

.ja-radio-chat__reactions button {
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(140, 255, 183, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
    font-size: 1rem;
}

.ja-radio-chat__retention-note {
    margin: 0.7rem 0 0;
    color: rgba(245, 245, 245, 0.68);
    font-size: 0.82rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.ja-radio-chat__notice {
    min-height: 1.2rem;
    margin: 0;
    color: #ffd2d2;
    font-size: 0.84rem;
}

.ja-radio-chat__notice:empty {
    display: none;
}

.ja-radio-chat__float-reaction {
    position: absolute;
    bottom: 9.8rem;
    z-index: 2;
    pointer-events: none;
    font-size: calc(1.55rem * var(--reaction-scale, 1));
    filter: drop-shadow(0 0.4rem 1rem rgba(0, 0, 0, 0.35));
    animation: ja-radio-chat-float 2.15s ease-out forwards;
}

@keyframes ja-radio-chat-float {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.78);
    }
    15% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(calc(-1 * var(--reaction-rise, 8rem))) scale(1.18);
    }
}

@media (max-width: 900px) {
    .ja-radio-chat__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ja-radio-chat__tabs {
        display: inline-flex;
    }

    .ja-radio-chat__body,
    .ja-radio-chat__guest-cta {
        grid-template-columns: 1fr;
    }

    .ja-radio-chat__guest-cta {
        display: grid;
        justify-items: stretch;
    }

    .ja-radio-chat__form {
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas:
            "identity identity identity"
            "message message message"
            "actions emoji submit";
        gap: 0.55rem 0.5rem;
        align-items: end;
    }

    .ja-radio-chat__composer-emoji {
        justify-self: end;
        width: fit-content;
    }

    .ja-radio-chat__emoji-picker {
        position: absolute;
        left: auto;
        right: 0;
        bottom: calc(100% + 0.55rem);
        width: min(16rem, calc(100vw - 1rem));
        max-width: calc(100vw - 1rem);
        transform: none;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ja-radio-chat__users {
        border-left: 0;
        border-top: 0;
        padding: 0;
    }

    .ja-radio-chat__composer-actions {
        justify-self: stretch;
        min-width: 0;
    }

    .ja-radio-chat__composer-settings {
        width: auto;
        justify-content: flex-start;
        min-width: 0;
    }

    .ja-radio-chat__composer-actions .ja-radio-chat__status-badge {
        margin-left: auto;
    }

    .ja-radio-chat__form button[type="submit"] {
        justify-self: end;
        min-width: 7.2rem;
    }

    .ja-radio-chat__messages {
        min-height: 18rem;
        max-height: 26rem;
    }

    .ja-radio-chat__float-reaction {
        bottom: 9.4rem;
        font-size: calc(1.65rem * var(--reaction-scale, 1));
    }

    .ja-radio-chat__message-row {
        grid-template-columns: 2.15rem minmax(0, 1fr);
    }

    .ja-radio-chat[data-chat-view="messages"] [data-chat-view-panel="users"],
    .ja-radio-chat[data-chat-view="users"] [data-chat-view-panel="messages"] {
        display: none;
    }

    .ja-radio-chat[data-chat-view="users"] [data-chat-view-panel="users"] {
        display: block;
    }

    .ja-radio-chat__header {
        order: 1;
    }

    .ja-radio-chat--guest .ja-radio-chat__body {
        order: 2;
    }

    .ja-radio-chat--member .ja-radio-chat__body {
        order: 2;
    }

    .ja-radio-chat--guest .ja-radio-chat__reactions {
        order: 3;
        margin-top: -0.15rem;
    }

    .ja-radio-chat--member .ja-radio-chat__reactions {
        order: 3;
        margin-top: -0.15rem;
    }

    .ja-radio-chat--guest .ja-radio-chat__guest-cta {
        order: 4;
        align-items: stretch;
    }

    .ja-radio-chat__composer-shell {
        order: 4;
        gap: 0.55rem;
    }

    [data-chat-composer-host] {
        order: 4;
    }

    .ja-radio-chat__notice {
        order: 5;
    }

    .ja-radio-chat__composer-identity {
        font-size: 0.78rem;
    }

    .ja-radio-chat__message {
        order: initial;
    }

    .ja-radio-chat__form button[type="submit"] {
        order: initial;
        justify-self: stretch;
        min-width: 0;
        min-height: 2.65rem;
        padding: 0.6rem 1rem;
    }

    .ja-radio-chat__composer-actions {
        order: initial;
        justify-content: stretch;
    }

    .ja-radio-chat__composer-settings {
        width: 100%;
        min-height: 2.4rem;
        font-size: 0.83rem;
    }

    .ja-radio-chat__emoji-toggle {
        min-width: 2.9rem;
        min-height: 2.9rem;
    }

    .ja-radio-chat__guest-cta-button {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .ja-radio-chat--guest .ja-radio-chat__float-reaction {
        bottom: 14.6rem;
    }
}

@media (max-width: 520px) {
    .ja-radio-chat__composer-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .ja-radio-chat__composer-actions .ja-radio-chat__status-badge {
        margin-left: 0;
    }
}

@media (max-width: 700px) {
    .ja-radio-chat__user-card-row--mention-note {
        display: grid;
    }

    .ja-radio-chat__emoji-picker {
        width: min(16rem, calc(100vw - 1rem));
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
