﻿.mouthstyle-dialog-grid {
    width: 100%;
    margin: 0;
}

.explanation-panel {
    width: 100%;
    margin: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.dialog-card,
.dialog-card-preview {
    width: 100%;
    margin: 12px;
    position: relative;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.dialog-card-preview {
    cursor: pointer;
}

.dialog-card-image,
.dialog-card-image-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.dialog-card-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.dialog-card-image-preview {
    filter: blur(4px);
    transform: scale(1.05);
}

.dialog-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.75rem;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.32) 35%, rgba(0, 0, 0, 0.62) 100% );
}

.dialog-card-badge {
    align-self: flex-start;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    background: rgba(255, 153, 0, 0.9);
    color: white;
}

.dialog-card-overlay-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1rem;
    text-align: center;
}

.dialog-card-play-icon {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(2px);
}

    .dialog-card-play-icon .mud-icon-root {
        font-size: 56px;
        color: white;
    }

.dialog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    color: white;
}

.dialog-card-text {
    max-width: 240px;
    font-size: 0.98rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}