.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    position: relative;
    z-index: 1;
    -webkit-overflow-scrolling: touch;
}

.messages-list { display: flex; flex-direction: column; gap: 7px; max-width: 720px; margin: 0 auto; }

.pinned-messages-bar {
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: var(--border-radius);
    padding: 9px 14px;
    margin-bottom: 11px;
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 5;
}

.pinned-messages-bar:hover { background: var(--bg-tertiary); }
.pinned-messages-bar i { color: var(--accent); font-size: 14px; flex-shrink: 0; }
.pinned-message-item { flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinned-count { color: var(--accent); font-size: 12px; cursor: pointer; flex-shrink: 0; }
.pinned-close-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 0 4px; flex-shrink: 0; pointer-events: auto; }
.pinned-close-btn:hover { color: var(--danger); }

.message-date-separator { text-align: center; margin: 18px 0; }
.message-date-separator span {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    padding: 2px 8px;
    border-radius: 18px;
    font-size: 10px;
    color: white;
    display: inline-block;
}

.message {
    display: flex;
    margin-bottom: 7px;
    animation: messageAppear 0.3s ease;
    position: relative;
    max-width: var(--message-max-width);
    cursor: default;
    pointer-events: auto;
}

.message.incoming { align-self: flex-start; }
.message.outgoing { align-self: flex-end; }
.message.selected .message-bubble { box-shadow: 0 0 0 2px var(--accent); }

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: white;
    margin-right: 7px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
}

.message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.message-content { max-width: 100%; position: relative; pointer-events: auto; }

.message-bubble {
    background: var(--bg-message-in);
    padding: 6px 10px 7px 10px;
    border-radius: 12px;
    word-wrap: break-word;
    position: relative;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    pointer-events: auto;
    min-width: 40px;
}

.outgoing .message-bubble { background: var(--bg-message-out); color: white; border-bottom-right-radius: 4px; }
.incoming .message-bubble { border-bottom-left-radius: 4px; }

.message-text { line-height: 1.35; word-break: break-word; color: #fff; font-size: calc(15px * var(--text-scale, 1)); font-weight: 400; }
.incoming .message-text { color: var(--text-primary); }
.message-text strong { font-weight: 700; }
.message-text em { font-style: italic; }
.message-text del { text-decoration: line-through; opacity: 0.7; }
.message-text code { background: rgba(0,0,0,0.2); padding: 2px 5px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.9em; }
.message-text a { color: var(--accent); text-decoration: underline; }
.outgoing .message-text a { color: #fff; }

.message-emoji-only { background: transparent !important; box-shadow: none !important; padding: 0 !important; }
.message-emoji-only .message-text { font-size: 43px; line-height: 1.2; }

.message-meta { display: inline; float: right; margin-left: 8px; position: relative; top: 8px; font-size: 11px; color: var(--text-muted); padding: 0; }
.outgoing .message-meta { color: rgba(255,255,255,0.7); }
.message-time { font-size: 10px; display: inline; position: relative; top: 4px; }
.incoming .message-time { color: var(--text-muted); }
.outgoing .message-time { color: rgba(255,255,255,0.85); }
.message-status { display: inline; font-size: 10px; position: relative; top: 3px; margin-left: 3px; }
.status-pending, .status-sent { color: rgba(255,255,255,0.7) !important; }
.status-read { color: #fff !important; }

.message-reply {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 7px 11px;
    background: rgba(0,0,0,0.1);
    border-radius: 11px;
    margin-bottom: 7px;
    border-left: 3px solid var(--accent);
    cursor: pointer;
    pointer-events: auto;
}

.message-reply i { color: var(--accent); font-size: 13px; }
.reply-name { font-weight: 500; font-size: 12px; display: block; }
.reply-text { font-size: 11px; color: var(--text-secondary); }

.message-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

.reaction {
    background: var(--bg-tertiary);
    padding: 4px 7px;
    border-radius: 18px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.reaction:hover { background: var(--accent-light); }

.message-image-wrapper { max-width: 270px; border-radius: 11px; overflow: hidden; cursor: pointer; }
.message-image { width: 100%; height: auto; display: block; transition: transform 0.3s ease; }
.message-image:hover { transform: scale(1.02); }
.message-video { max-width: 270px; border-radius: 11px; overflow: hidden; }
.message-video video { width: 100%; height: auto; display: block; border-radius: 11px; }

.image-grid-1 { max-width: 270px; }
.image-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; max-width: 270px; }

.grid-item { aspect-ratio: 1; border-radius: 7px; overflow: hidden; position: relative; cursor: pointer; pointer-events: auto; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.grid-item:hover img { transform: scale(1.05); }

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: bold;
    color: white;
    backdrop-filter: blur(4px);
}

.voice-message { display: flex; align-items: center; gap: 7px; padding: 5px 9px; min-width: 180px; max-width: 270px; flex-wrap: wrap; }

.voice-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: white;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.voice-progress-container { flex: 1; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; min-width: 60px; }
.incoming .voice-progress-container { background: rgba(0,0,0,0.2); }
.voice-progress-bar { height: 100%; background: var(--accent); width: 0%; transition: width 0.1s linear; }
.voice-duration { font-size: 11px; color: #fff; flex-shrink: 0; min-width: 36px; }
.incoming .voice-duration { color: var(--text-secondary); }

.voice-transcribe-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s;
}

.voice-transcribe-btn:hover { background: var(--accent); color: #fff; }

.voice-transcript { width: 100%; margin-top: 8px; padding: 8px 12px; background: rgba(255,255,255,0.05); border-radius: 8px; font-size: 13px; line-height: 1.5; }
.incoming .voice-transcript { background: rgba(0,0,0,0.05); }
.voice-transcript-text { word-break: break-word; color: #fff; }
.incoming .voice-transcript-text { color: var(--text-primary); }
.voice-transcript-expand { text-align: center; color: var(--accent); cursor: pointer; font-size: 12px; margin-top: 4px; }

.audio-message-inline { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; min-width: 200px; }

.audio-message-inline .audio-cover {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.audio-message-inline .audio-info { flex: 1; min-width: 0; }
.audio-message-inline .audio-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.incoming .audio-message-inline .audio-title { color: var(--text-primary); }
.audio-message-inline .audio-artist { font-size: 12px; color: var(--text-muted); }
.audio-message-inline .audio-duration { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

.audio-message-inline .audio-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    border: none;
}

.audio-message-inline .audio-play-btn:hover { background: var(--accent-hover); }

.message-file { display: flex; align-items: center; gap: 11px; padding: 7px 11px; cursor: pointer; pointer-events: auto; }
.file-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
}

.file-info { flex: 1; min-width: 0; }
.file-name { font-weight: 500; margin-bottom: 2px; color: #fff; font-size: calc(13px * var(--text-scale, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.incoming .file-name { color: var(--text-primary); }
.file-size { font-size: 11px; color: #fff; opacity: 0.7; }
.incoming .file-size { color: var(--text-muted); }

.file-download-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-full);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.file-download-btn:hover { background: var(--accent); color: white; }

.message-file-uploading { padding: 11px; }
.upload-progress-bar { height: 4px; background: var(--bg-tertiary); border-radius: 2px; overflow: hidden; margin-bottom: 4px; opacity: 0.6; }
.upload-progress-fill { height: 100%; background: var(--text-muted); transition: width 0.3s ease; }
.upload-progress-text { font-size: 11px; color: #fff; opacity: 0.8; }
.message-error { color: var(--danger); }
.message-deleted { color: var(--text-muted); font-style: italic; }

.code-block { position: relative; margin: 8px 0; border-radius: 12px; overflow: hidden; background: #1e1e1e; border: 1px solid #333; }
.code-header { padding: 6px 14px; font-size: 11px; color: #888; background: #2d2d2d; text-transform: lowercase; font-family: var(--font-mono); }
.code-content { padding: 14px; margin: 0; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: #d4d4d4; white-space: pre-wrap; word-break: break-word; }

.code-copy-btn {
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #888;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    z-index: 2;
}

.code-copy-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.spoiler-text { background: #333; color: #333; border-radius: 4px; padding: 0 4px; cursor: pointer; transition: all 0.2s; }
.spoiler-text.revealed { background: transparent; color: inherit; }

.poll-container { background: var(--bg-tertiary); padding: 14px; border-radius: 14px; min-width: 225px; }
.poll-question { font-weight: 600; margin-bottom: 14px; font-size: calc(14px * var(--text-scale, 1)); color: #fff; }
.incoming .poll-question { color: var(--text-primary); }
.poll-options { display: flex; flex-direction: column; gap: 8px; }
.poll-option { cursor: pointer; }
.poll-option-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; }

.poll-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #555;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.poll-radio.selected { border-color: var(--accent); }
.poll-radio.selected::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.poll-option-text { flex: 1; color: #fff; }
.incoming .poll-option-text { color: var(--text-primary); }
.poll-option-votes { font-size: 12px; color: var(--text-muted); }
.poll-bar-container { height: 5px; background: var(--bg-quaternary); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.poll-bar { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s ease; }
.poll-footer { margin-top: 10px; font-size: 12px; color: var(--text-muted); }

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 7px 18px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    animation: slideInUp 0.3s ease;
}

.typing-text { font-size: 13px; color: var(--text-muted); }
.typing-dots { display: flex; gap: 4px; margin-left: 7px; }
.typing-dots span { width: 5px; height: 5px; background: var(--text-muted); border-radius: 50%; animation: pulse 1s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.chat-input-area {
    padding: 11px 14px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.reply-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 11px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    margin-bottom: 11px;
    animation: slideInDown 0.3s ease;
    pointer-events: auto;
}

.reply-info { display: flex; align-items: center; gap: 11px; }
.reply-content { display: flex; flex-direction: column; }
.reply-content .reply-name { font-weight: 500; font-size: 13px; color: var(--accent); }
.reply-content .reply-text { font-size: 12px; color: var(--text-secondary); }

.cancel-reply-btn {
    padding: 7px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s ease;
    pointer-events: auto;
    background: none;
    border: none;
}

.cancel-reply-btn:hover { color: var(--danger); }

.input-container { display: flex; align-items: center; position: relative; pointer-events: auto; }

.message-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: 22px;
    padding: 0 4px;
    min-height: 40px;
    border: 1.5px solid var(--border-color);
    transition: border-color 0.2s ease;
    position: relative;
    pointer-events: auto;
}

.message-input-wrapper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }

.emoji-btn, .attach-btn, .voice-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    border: none;
    transition: all 0.2s ease;
    pointer-events: auto;
    background: transparent;
}

.emoji-btn:hover, .attach-btn:hover, .voice-btn:hover { color: var(--accent); }
.voice-btn.recording { background: var(--danger); color: white; animation: pulse 1s infinite; }

.message-input {
    flex: 1;
    padding: 8px 4px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: calc(14px * var(--text-scale, 1));
    outline: none;
    resize: none;
    overflow-y: auto;
    line-height: 1.45;
    max-height: 120px !important;
    min-height: 24px;
    word-break: break-word;
    font-family: var(--font-family);
    pointer-events: auto;
    cursor: text;
}

.message-input:empty:before { content: attr(placeholder); color: var(--text-placeholder); pointer-events: none; }
.message-input:focus { outline: none; box-shadow: none; }

.send-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--border-radius-full);
    background: var(--accent);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
    border: none;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.send-btn:hover { background: var(--accent-hover); transform: scale(1.05); }

.select-mode-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--accent);
    padding: 9px 14px;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 30;
    animation: slideInDown 0.3s ease;
    pointer-events: auto;
}

.select-mode-count { color: white; font-weight: 500; }
.select-mode-actions { display: flex; gap: 7px; }
.select-mode-actions button {
    padding: 5px 13px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s ease;
    pointer-events: auto;
}

.select-mode-actions button:hover { background: rgba(255,255,255,0.3); }

.scroll-bottom-btn {
    position: absolute;
    bottom: 90px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.scroll-bottom-btn:hover { background: var(--accent); color: white; transform: scale(1.05); }

.emoji-picker {
    position: absolute;
    bottom: 72px;
    left: 72px;
    width: 360px;
    max-height: 380px;
    background: var(--bg-secondary);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: var(--z-dropdown);
    animation: scaleIn 0.2s ease;
    border: 1px solid var(--border-color);
    pointer-events: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0.97;
}

.emoji-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.emoji-tab {
    padding: 6px 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    flex: 1;
    text-align: center;
}

.emoji-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 7px;
    width: 100%;
    aspect-ratio: 1;
    transition: background 0.15s ease;
    max-height: 44px;
    max-width: 44px;
    justify-self: center;
    align-self: center;
}

.emoji-item:hover { background: var(--bg-tertiary); }
.emoji-item img, .emoji-item video { width: 32px !important; height: 32px !important; object-fit: contain; }

.voice-recorder-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border-radius: 24px;
    min-height: 48px;
    animation: fadeIn 0.2s ease;
}

.voice-wave-container { flex: 1; display: flex; align-items: center; gap: 3px; height: 40px; }
.voice-wave-container span { width: 3px; background: var(--accent); border-radius: 2px; transition: height 0.1s; }
.voice-timer { font-size: 16px; font-weight: 600; color: var(--text-primary); min-width: 45px; text-align: center; }
.voice-cancel-btn, .voice-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.voice-cancel-btn { background: var(--danger); color: #fff; }
.voice-send-btn { background: var(--accent); color: #fff; }

.mini-player {
    height: 40px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: none;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    position: relative;
}

.mini-player:hover { background: var(--bg-hover); }
.mini-player.active { display: flex; }

.mini-player .mp-play {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-player .mp-name {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    color: var(--text-primary);
}

.mini-player .mp-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.mini-player .mp-close {
    width: 22px;
    height: 22px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.mini-player .mp-close:hover { color: var(--danger); }

.mini-player .mini-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bg-tertiary);
}

.mini-player .mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #6a9ab5);
    width: 0%;
    transition: width 0.1s linear;
}

.player-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1000;
    flex-direction: column;
    justify-content: flex-end;
}

.player-overlay.active { display: flex; }

.player-panel {
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 16px 16px 0 0;
    padding: 12px 16px 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
}

.player-panel .handle {
    width: 36px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 auto 14px;
}

.player-panel .track-info {
    text-align: center;
    margin-bottom: 14px;
}

.player-panel .track-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.player-panel .track-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.player-panel .progress-bar {
    margin-bottom: 14px;
}

.player-panel .progress-bar .times {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.player-panel .progress-bar .track {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.player-panel .progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #6a9ab5);
    border-radius: 2px;
    width: 0%;
}

.player-panel .controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.player-panel .controls button {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 4px;
}

.player-panel .controls button:hover { opacity: 1; }

.player-panel .controls .btn-play-big {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.volume-wrapper {
    position: relative;
    display: inline-block;
}

.volume-wrapper .volume-slider {
    display: none;
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    cursor: pointer;
}

.volume-wrapper:hover .volume-slider,
.volume-slider:hover { display: block; }

.volume-slider .vol-fill {
    width: 100%;
    background: var(--accent);
    border-radius: 3px;
    position: absolute;
    bottom: 0;
    transition: height 0.1s;
    height: 70%;
}