/**
 * Telegram Chat Widget - Premium Styles
 * Цветовая схема: бирюзовый #59f6f6
 */

/* CSS Variables */
:root {
    --tg-primary: #59f6f6;
    --tg-primary-dark: #3dd8d8;
    --tg-primary-darker: #2cb8b8;
    --tg-primary-light: #e8fefe;
    --tg-text: #2d3436;
    --tg-text-light: #636e72;
    --tg-text-muted: #b2bec3;
    --tg-bg: #FFFFFF;
    --tg-bg-gray: #f8f9fa;
    --tg-border: #e9ecef;
    --tg-shadow: 0 8px 32px rgba(89, 246, 246, 0.25), 0 4px 16px rgba(0, 0, 0, 0.08);
    --tg-shadow-btn: 0 6px 24px rgba(89, 246, 246, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
    --tg-radius: 20px;
    --tg-radius-md: 14px;
    --tg-radius-sm: 10px;
    --tg-accent: #0099ff;
    --tg-accent-green: #31a24c;
}

/* Widget Container */
#tg-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9997;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Toggle Button - Teal Style */
.tg-chat-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(145deg, #7af8f8 0%, #59f6f6 50%, #3dd8d8 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 28px rgba(89, 246, 246, 0.45), 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.tg-chat-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 10px 36px rgba(89, 246, 246, 0.55), 0 5px 14px rgba(0, 0, 0, 0.18);
}

.tg-chat-btn:active {
    transform: scale(0.96);
}

.tg-chat-icon {
    width: 36px;
    height: 36px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.tg-chat-icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
    width: 32px;
    height: 32px;
}

#tg-chat-widget.tg-chat-open .tg-chat-icon-open {
    opacity: 0;
    transform: rotate(90deg);
}

#tg-chat-widget.tg-chat-open .tg-chat-icon-close {
    opacity: 1;
    transform: rotate(0);
}

/* Pulse Animation - Teal */
.tg-chat-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #59f6f6;
    animation: tg-pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes tg-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

#tg-chat-widget.tg-chat-open .tg-chat-pulse {
    animation: none;
    opacity: 0;
}

/* Chat Window */
.tg-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 520px;
    max-height: calc(100vh - 140px);
    background: var(--tg-bg);
    border-radius: var(--tg-radius);
    box-shadow: var(--tg-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px) scale(0.92);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(89, 246, 246, 0.2);
}

#tg-chat-widget.tg-chat-open .tg-chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.tg-chat-header {
    background: linear-gradient(145deg, #6ef8f8 0%, #59f6f6 50%, #3dd8d8 100%);
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
}

.tg-chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.tg-chat-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tg-chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tg-chat-avatar svg {
    width: 26px;
    height: 26px;
    color: #1a5f5f;
}

.tg-chat-header-text {
    color: #1a5f5f;
}

.tg-chat-title {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.3px;
}

.tg-chat-subtitle {
    font-size: 13px;
    opacity: 0.75;
    font-weight: 500;
}

.tg-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tg-chat-back,
.tg-chat-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tg-chat-back:hover,
.tg-chat-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.tg-chat-back svg,
.tg-chat-close svg {
    width: 20px;
    height: 20px;
    color: #1a5f5f;
}

/* На десктопе скрываем кнопку закрытия (есть кнопка виджета) */
.tg-chat-close {
    display: none;
}

/* Content Area */
.tg-chat-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--tg-bg);
}

/* Menu */
.tg-chat-menu {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    justify-content: center;
}

.tg-chat-greeting {
    text-align: center;
    color: var(--tg-text);
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.tg-chat-greeting strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--tg-text);
}

.tg-chat-menu-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 2px solid var(--tg-border);
    border-radius: var(--tg-radius-md);
    background: var(--tg-bg);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.tg-chat-menu-btn:hover {
    border-color: var(--tg-primary);
    background: var(--tg-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(89, 246, 246, 0.2);
}

.tg-chat-menu-btn svg {
    width: 28px;
    height: 28px;
    color: var(--tg-primary-darker);
    flex-shrink: 0;
}

.tg-chat-menu-btn-content {
    flex: 1;
}

.tg-chat-menu-btn-title {
    font-size: 15px;
    color: var(--tg-text);
    font-weight: 600;
    margin-bottom: 2px;
}

.tg-chat-menu-btn-desc {
    font-size: 13px;
    color: var(--tg-text-light);
    font-weight: 400;
}

/* Legacy support for simple button text */
.tg-chat-menu-btn span:not(.tg-chat-menu-btn-title):not(.tg-chat-menu-btn-desc) {
    font-size: 15px;
    color: var(--tg-text);
    font-weight: 600;
}

/* Callback Form */
.tg-chat-callback {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tg-chat-form-title {
    text-align: center;
    color: var(--tg-text);
    margin-bottom: 28px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.tg-chat-input-group {
    margin-bottom: 16px;
}

.tg-chat-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tg-text);
    margin-bottom: 8px;
}

.tg-chat-input-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--tg-border);
    border-radius: var(--tg-radius-sm);
    font-size: 15px;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    background: var(--tg-bg);
}

.tg-chat-input-group input:focus {
    border-color: var(--tg-primary);
    box-shadow: 0 0 0 4px rgba(89, 246, 246, 0.15);
}

.tg-chat-input-group input::placeholder {
    color: var(--tg-text-muted);
}

.tg-chat-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(145deg, #6ef8f8 0%, #59f6f6 50%, #3dd8d8 100%);
    color: #1a5f5f;
    border: none;
    border-radius: var(--tg-radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    box-shadow: 0 4px 16px rgba(89, 246, 246, 0.3);
}

.tg-chat-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(89, 246, 246, 0.4);
}

.tg-chat-submit:active {
    transform: translateY(0);
}

.tg-chat-submit.loading span {
    opacity: 0;
}

.tg-chat-submit.loading .tg-chat-loader {
    display: block;
}

.tg-chat-loader {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(26, 95, 95, 0.2);
    border-top-color: #1a5f5f;
    border-radius: 50%;
    animation: tg-spin 0.8s linear infinite;
    position: absolute;
}

@keyframes tg-spin {
    to { transform: rotate(360deg); }
}

/* Success State */
.tg-chat-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    flex: 1;
}

.tg-chat-success svg {
    width: 72px;
    height: 72px;
    color: var(--tg-primary-darker);
    margin-bottom: 20px;
}

.tg-chat-success p {
    color: var(--tg-text);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
}

/* Messages Area */
.tg-chat-messages-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tg-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-chat-msg {
    max-width: 82%;
    padding: 14px 18px;
    border-radius: var(--tg-radius-md);
    position: relative;
}

.tg-chat-msg-in {
    background: linear-gradient(145deg, #6ef8f8 0%, #59f6f6 100%);
    color: #1a5f5f;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 8px rgba(89, 246, 246, 0.25);
}

.tg-chat-msg-out {
    background: var(--tg-bg-gray);
    color: var(--tg-text);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    border: 1px solid var(--tg-border);
}

.tg-chat-msg-text {
    word-wrap: break-word;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.5;
}

.tg-chat-msg-time {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 6px;
    text-align: right;
    font-weight: 500;
}

.tg-chat-msg-img {
    max-width: 100%;
    border-radius: 8px;
    display: block;
    margin-bottom: 6px;
}

.tg-chat-msg-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

/* Input Panel */
.tg-chat-input-panel {
    padding: 16px;
    border-top: 1px solid var(--tg-border);
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: var(--tg-bg);
}

.tg-chat-attach,
.tg-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tg-chat-attach:hover {
    background: var(--tg-bg-gray);
}

.tg-chat-send {
    background: linear-gradient(145deg, #6ef8f8 0%, #59f6f6 100%);
    box-shadow: 0 2px 8px rgba(89, 246, 246, 0.3);
}

.tg-chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(89, 246, 246, 0.4);
}

.tg-chat-attach svg {
    width: 22px;
    height: 22px;
    color: var(--tg-text-light);
}

.tg-chat-send svg {
    width: 22px;
    height: 22px;
    color: #1a5f5f;
}

.tg-chat-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    background: var(--tg-bg-gray);
    border-radius: 22px;
    padding: 6px 10px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.tg-chat-input-wrap:focus-within {
    border-color: var(--tg-primary);
    background: var(--tg-bg);
}

#tg-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 6px;
    font-size: 14px;
    resize: none;
    outline: none;
    max-height: 100px;
    line-height: 1.5;
    font-family: inherit;
}

#tg-chat-input::placeholder {
    color: var(--tg-text-muted);
}

.tg-chat-emoji {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.tg-chat-emoji:hover {
    background: rgba(89, 246, 246, 0.2);
}

.tg-chat-emoji svg {
    width: 22px;
    height: 22px;
    color: var(--tg-text-light);
}

/* Emoji Picker */
.tg-emoji-picker {
    position: absolute;
    bottom: calc(100% + 8px);
    right: -10px;
    width: 300px;
    background: var(--tg-bg);
    border-radius: var(--tg-radius-md);
    box-shadow: var(--tg-shadow);
    padding: 12px;
    z-index: 100;
    border: 1px solid var(--tg-border);
}

.tg-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
}

.tg-emoji-item {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 22px;
    border-radius: 8px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-emoji-item:hover {
    background: var(--tg-primary-light);
    transform: scale(1.15);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #tg-chat-widget {
        bottom: 80px;
        right: 16px;
    }

    .tg-chat-btn {
        width: 62px;
        height: 62px;
    }

    .tg-chat-icon {
        width: 32px;
        height: 32px;
    }

    .tg-chat-icon-close {
        width: 28px;
        height: 28px;
    }

    /* Показываем кнопку закрытия на мобильных */
    .tg-chat-close {
        display: flex;
    }

    .tg-chat-window {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 60px);
        max-height: calc(100vh - 60px);
        border-radius: var(--tg-radius) var(--tg-radius) 0 0;
        border: none;
        border-top: 1px solid rgba(89, 246, 246, 0.3);
    }

    .tg-chat-header {
        padding: 16px 20px;
    }

    .tg-chat-avatar {
        width: 44px;
        height: 44px;
    }

    .tg-chat-title {
        font-size: 16px;
    }

    .tg-chat-menu {
        padding: 24px 20px;
    }

    .tg-chat-greeting {
        margin-bottom: 20px;
        font-size: 15px;
    }

    .tg-chat-greeting strong {
        font-size: 18px;
    }

    .tg-chat-menu-btn {
        padding: 16px 18px;
        gap: 14px;
    }

    .tg-chat-callback {
        padding: 24px 20px;
    }

    .tg-chat-messages {
        padding: 16px;
    }

    .tg-chat-input-panel {
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .tg-emoji-picker {
        width: calc(100vw - 40px);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .tg-emoji-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* Scrollbar */
.tg-chat-messages::-webkit-scrollbar,
.tg-emoji-grid::-webkit-scrollbar {
    width: 6px;
}

.tg-chat-messages::-webkit-scrollbar-track,
.tg-emoji-grid::-webkit-scrollbar-track {
    background: transparent;
}

.tg-chat-messages::-webkit-scrollbar-thumb,
.tg-emoji-grid::-webkit-scrollbar-thumb {
    background: var(--tg-border);
    border-radius: 3px;
}

.tg-chat-messages::-webkit-scrollbar-thumb:hover,
.tg-emoji-grid::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Animation for new messages */
@keyframes tg-message-appear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tg-chat-msg {
    animation: tg-message-appear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Safe area for iOS */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .tg-chat-input-panel {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* =====================================================
   КЛИКАБЕЛЬНЫЕ ССЫЛКИ В ЧАТЕ
   ===================================================== */

/* Ссылки во входящих сообщениях (от клиента) */
.tg-chat-link {
    color: #0088cc;
    text-decoration: underline;
    word-break: break-all;
    transition: color 0.2s ease;
}

.tg-chat-link:hover {
    color: #006699;
    text-decoration: none;
}

/* Ссылки в исходящих сообщениях (от оператора) */
.tg-chat-msg-out .tg-chat-link {
    color: #fff;
    text-decoration: underline;
}

.tg-chat-msg-out .tg-chat-link:hover {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

/* =====================================================
   ГОЛОСОВЫЕ СООБЩЕНИЯ - МИКРОФОН
   ===================================================== */

/* Кнопка микрофона */
.tg-chat-mic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.tg-chat-mic:hover {
    background: var(--tg-bg-gray);
}

.tg-chat-mic svg {
    width: 22px;
    height: 22px;
    color: var(--tg-text-light);
    transition: color 0.2s ease;
}

/* Состояние записи */
.tg-chat-mic.recording {
    background: #ff4444;
    animation: tg-mic-pulse 1s ease-in-out infinite;
}

.tg-chat-mic.recording:hover {
    background: #cc3333;
}

.tg-chat-mic.recording svg {
    color: #fff;
}

@keyframes tg-mic-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 68, 68, 0);
    }
}

/* Индикатор записи */
.tg-recording-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--tg-bg-gray);
    border-radius: 20px;
    flex: 1;
    margin: 0 4px;
}

.tg-recording-dot {
    width: 10px;
    height: 10px;
    background: #ff4444;
    border-radius: 50%;
    animation: tg-recording-blink 1s ease-in-out infinite;
}

@keyframes tg-recording-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.tg-recording-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--tg-text);
    font-variant-numeric: tabular-nums;
}

/* Голосовое сообщение в чате */
.tg-chat-voice-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.tg-voice-icon {
    font-size: 18px;
    opacity: 0.9;
}

.tg-voice-duration {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

/* =====================================================
   КАСТОМНЫЙ АУДИОПЛЕЕР ДЛЯ ГОЛОСОВЫХ
   ===================================================== */

.tg-voice-custom-player {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 180px;
    max-width: 250px;
}

.tg-voice-custom-player audio {
    display: none; /* Скрываем стандартный плеер */
}

/* Кнопка Play/Pause */
.tg-voice-play-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: none;
    background: var(--tg-accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tg-voice-play-btn:hover {
    background: #0084e0;
    transform: scale(1.05);
}

.tg-voice-play-btn:active {
    transform: scale(0.95);
}

.tg-voice-play-btn svg {
    width: 20px;
    height: 20px;
}

.tg-voice-play-icon {
    margin-left: 2px; /* Визуальная коррекция центра треугольника */
}

/* Прогресс-бар */
.tg-voice-progress-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    cursor: pointer;
}

.tg-voice-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.tg-voice-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--tg-accent);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.tg-voice-time {
    font-size: 12px;
    color: var(--tg-text-light);
    font-variant-numeric: tabular-nums;
}

/* Стили для сообщений от оператора (зелёный фон) */
.tg-chat-msg-out .tg-voice-play-btn {
    background: #fff;
    color: var(--tg-accent-green, #31a24c);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.tg-chat-msg-out .tg-voice-play-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.tg-chat-msg-out .tg-voice-progress-bar {
    background: rgba(255, 255, 255, 0.4);
}

.tg-chat-msg-out .tg-voice-progress-fill {
    background: #fff;
}

.tg-chat-msg-out .tg-voice-time {
    color: #fff;
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .tg-chat-mic {
        width: 40px;
        height: 40px;
    }

    .tg-chat-mic svg {
        width: 20px;
        height: 20px;
    }

    .tg-recording-indicator {
        padding: 6px 10px;
    }

    .tg-recording-time {
        font-size: 13px;
    }

    /* Кастомный плеер на мобильных */
    .tg-voice-custom-player {
        min-width: 150px;
        max-width: 200px;
        gap: 8px;
    }

    .tg-voice-play-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .tg-voice-play-btn svg {
        width: 22px;
        height: 22px;
    }

    .tg-voice-progress-bar {
        height: 8px;
        border-radius: 4px;
    }

    .tg-voice-time {
        font-size: 13px;
    }
}
