/*
 * chat.css — Nexus polished chat UI
 * All colors use CSS variables from themes.css — zero hardcoded values.
 *
 * Design language: refined Discord-adjacent, high information density,
 * generous whitespace on messages, crisp micro-interactions.
 */

/* ═══════════════════════════════════════════════════════════
   MESSAGE GROUPS
═══════════════════════════════════════════════════════════ */

.messages-container { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.messages-list { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; padding-bottom: 4px; }

/* Welcome banner at top of channel */
.channel-welcome {
  padding: 40px 20px 20px;
}
.cw-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--brand); display: flex; align-items: center;
  justify-content: center; font-size: 32px; font-weight: 900;
  color: white; margin-bottom: 20px; letter-spacing: -1px;
}
.cw-title { font-size: 30px; font-weight: 800; color: var(--text-header); margin-bottom: 8px; line-height: 1.2; }
.cw-desc  { color: var(--text-muted); font-size: 15px; line-height: 1.5; }

/* Date divider */
.date-divider {
  display: flex; align-items: center;
  padding: 18px 20px 8px; gap: 10px;
  color: var(--text-muted); font-size: 11px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
}
.date-divider::before, .date-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--bg-accent);
}

/* Message group */
.msg-group {
  display: block;
  padding: 2px 20px 2px 72px;
  position: relative;
  border-left: 2px solid transparent;
  transition: background .08s ease, border-color .08s ease;
}
.msg-group:hover { background: var(--msg-hover-bg); }
.msg-group.first { padding-top: 18px; }
.msg-group.mentioned { background: rgba(250,166,26,.05); border-left-color: var(--yellow); }
.msg-group.mentioned:hover { background: rgba(250,166,26,.08); }

/* Hover timestamp for continued messages */
.msg-group:hover .msg-timestamp-small { visibility: visible; opacity: 1; }
.msg-group:hover .msg-actions { opacity: 1; pointer-events: all; }

/* Avatar */
.msg-avatar-col {
  position: absolute;
  left: 20px; top: 18px;
  width: 40px; flex-shrink: 0;
}
.msg-group:not(.first) .msg-avatar-col { visibility: hidden; }
.msg-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: white;
  cursor: pointer; overflow: hidden; flex-shrink: 0;
  transition: border-radius .15s;
}
.msg-avatar:hover { border-radius: 30%; }
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Compact timestamp left of continued messages */
.msg-timestamp-small {
  position: absolute;
  left: 20px; top: 0;
  width: 40px;
  height: 100%;
  display: flex; align-items: center; justify-content: flex-end;
  visibility: hidden; opacity: 0;
  font-size: 10px; color: var(--text-muted);
  user-select: none; flex-shrink: 0;
  transition: opacity .1s;
  padding-right: 2px;
}

/* Message body */
.msg-body { flex: 1; min-width: 0; }
.msg-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; flex-wrap: wrap; }
.msg-author {
  font-weight: 700; font-size: 15px;
  cursor: pointer; color: var(--text-header);
  line-height: 1;
}
.msg-author:hover { text-decoration: underline; }
.msg-time { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.msg-badge {
  font-size: 10px; font-weight: 700; padding: 1px 5px;
  border-radius: 3px; background: var(--brand);
  color: white; letter-spacing: .3px; vertical-align: middle;
}

/* Message content */
.msg-text {
  font-size: 15px; color: var(--text-normal);
  word-break: break-word; white-space: pre-wrap;
  line-height: 1.425;
}
.msg-text.deleted { color: var(--text-muted); font-style: italic; opacity: .7; }
.msg-edited-tag { font-size: 10px; color: var(--text-muted); margin-left: 4px; opacity: .7; }

/* Inline code in messages */
.msg-text code {
  background: var(--code-bg); color: var(--code-color);
  padding: 1px 5px; border-radius: 3px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 13px; font-style: normal;
}
/* Code blocks */
.msg-text pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--bg-accent);
  border-radius: 6px; padding: 12px 16px;
  margin: 8px 0; overflow-x: auto;
  font-size: 13px; line-height: 1.5;
}
.msg-text pre code { background: none; padding: 0; border-radius: 0; font-size: inherit; }

/* ═══════════════════════════════════════════════════════════
   REPLY BAR
═══════════════════════════════════════════════════════════ */
.msg-reply-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px; font-size: 13px;
  color: var(--text-muted); cursor: pointer;
  max-width: 100%; overflow: hidden;
}
.msg-reply-bar:hover { color: var(--text-normal); }
.msg-reply-bar .reply-line {
  width: 22px; height: 9px;
  border-left: 2px solid var(--msg-reply-line);
  border-top: 2px solid var(--msg-reply-line);
  border-radius: 4px 0 0 0;
  flex-shrink: 0; margin-top: 2px;
}
.msg-reply-bar .reply-avatar {
  width: 16px; height: 16px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: var(--bg-accent);
}
.msg-reply-bar .reply-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-reply-bar .reply-author { font-weight: 700; color: var(--text-header); flex-shrink: 0; font-size: 13px; }
.msg-reply-bar .reply-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   MESSAGE ACTION TOOLBAR  (appears on hover)
═══════════════════════════════════════════════════════════ */
.msg-actions {
  position: absolute;
  right: 20px; top: -20px;
  background: var(--msg-actions-bg);
  border: 1px solid var(--msg-actions-border);
  border-radius: 6px;
  padding: 3px 4px;
  display: flex; gap: 1px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none;
  transition: opacity .1s;
  z-index: 20;
  white-space: nowrap;
}
.msg-action {
  width: 28px; height: 28px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px;
  transition: background .08s, color .08s;
  flex-shrink: 0;
}
.msg-action:hover { background: var(--bg-hover); color: var(--text-normal); }
.msg-action.danger:hover { background: rgba(248,81,73,.15); color: var(--red); }

/* Quick reaction bar (inside the action toolbar) */
.msg-quick-reactions {
  display: flex; align-items: center; gap: 1px;
  padding-right: 4px; margin-right: 3px;
  border-right: 1px solid var(--bg-accent);
}
.msg-quick-reaction {
  width: 28px; height: 28px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
  transition: background .08s, transform .08s;
}
.msg-quick-reaction:hover { background: var(--bg-hover); transform: scale(1.2); }

/* ═══════════════════════════════════════════════════════════
   REACTIONS
═══════════════════════════════════════════════════════════ */
.msg-reactions {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 6px;
}
.reaction {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--reaction-bg);
  border: 1.5px solid transparent;
  border-radius: 8px; padding: 3px 8px;
  cursor: pointer; font-size: 14px;
  transition: border-color .1s, background .1s, transform .08s;
  user-select: none;
}
.reaction:hover {
  border-color: var(--bg-accent);
  background: var(--reaction-hover);
  transform: scale(1.06);
}
.reaction.own {
  background: var(--brand-light);
  border-color: var(--brand);
}
.reaction .r-count { font-size: 12px; font-weight: 700; color: var(--text-muted); line-height: 1; }
.reaction.own .r-count { color: var(--brand); }

/* Add reaction button at end of reaction list */
.reaction-add-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 28px;
  background: var(--reaction-bg);
  border: 1.5px dashed var(--bg-accent);
  border-radius: 8px; cursor: pointer;
  color: var(--text-muted); font-size: 16px;
  transition: border-color .1s, background .1s, color .1s;
}
.reaction-add-btn:hover { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }

/* ═══════════════════════════════════════════════════════════
   ATTACHMENTS
═══════════════════════════════════════════════════════════ */
.msg-attachments { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }

.att-image-wrap { display: inline-block; position: relative; }
.att-image {
  max-width: min(420px, 80vw); max-height: 300px;
  border-radius: 6px; cursor: pointer; display: block;
  object-fit: contain;
  background: var(--bg-tertiary);
  border: 1px solid var(--bg-accent);
  transition: opacity .1s;
}
.att-image:hover { opacity: .92; }
.att-image-size {
  font-size: 11px; color: var(--text-muted);
  margin-top: 3px;
}

.att-file {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-accent);
  border-radius: 8px; padding: 12px 16px;
  max-width: 420px;
  transition: border-color .1s;
}
.att-file:hover { border-color: var(--brand); }
.att-file-icon { font-size: 32px; flex-shrink: 0; }
.att-file-info { flex: 1; min-width: 0; }
.att-file-name {
  font-size: 14px; font-weight: 600;
  color: var(--text-link); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.att-file-name:hover { text-decoration: underline; }
.att-file-size { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.att-file-dl {
  background: var(--bg-tertiary); color: var(--text-muted);
  border: 1px solid var(--bg-accent); border-radius: 4px;
  padding: 5px 12px; font-size: 13px; cursor: pointer;
  transition: background .1s, color .1s;
  flex-shrink: 0;
}
.att-file-dl:hover { background: var(--bg-accent); color: var(--text-normal); }

/* Image gallery (multiple images) */
.att-gallery {
  display: flex; flex-wrap: wrap; gap: 4px;
  max-width: 420px;
}
.att-gallery .att-image { max-width: 200px; max-height: 200px; }

/* ═══════════════════════════════════════════════════════════
   INLINE EDIT
═══════════════════════════════════════════════════════════ */
.msg-edit-input {
  width: 100%; background: var(--input-bg);
  border: 2px solid var(--brand); border-radius: 6px;
  padding: 10px 12px; color: var(--text-normal);
  font-size: 15px; font-family: inherit;
  resize: none; outline: none; line-height: 1.4;
  margin-top: 2px;
}
.msg-edit-hint {
  font-size: 12px; color: var(--text-muted); margin-top: 5px;
  display: flex; align-items: center; gap: 4px;
}
.msg-edit-hint kbd {
  background: var(--bg-accent); color: var(--text-normal);
  padding: 1px 5px; border-radius: 3px; font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════
   THREAD INDICATOR
═══════════════════════════════════════════════════════════ */
.thread-indicator {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--text-link);
  cursor: pointer; margin-top: 5px;
  padding: 3px 7px; border-radius: 4px;
  transition: background .1s;
}
.thread-indicator:hover { background: rgba(0,168,252,.1); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   TYPING INDICATOR
═══════════════════════════════════════════════════════════ */
.typing-bar {
  height: 22px; padding: 0 72px;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  flex-shrink: 0;
}
.typing-dots { display: flex; gap: 3px; align-items: center; }
.typing-dots span {
  width: 4px; height: 4px; background: var(--text-muted);
  border-radius: 50%;
  animation: tdot 1.3s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .18s; }
.typing-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes tdot {
  0%,60%,100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   INPUT AREA — polished compose bar
═══════════════════════════════════════════════════════════ */
.input-area { padding: 0 20px 20px; flex-shrink: 0; }

.reply-strip {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-secondary);
  border-radius: 8px 8px 0 0;
  padding: 6px 14px; font-size: 13px; color: var(--text-muted);
  border: 1px solid var(--bg-accent); border-bottom: none;
  gap: 8px;
}
.reply-strip-content { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.reply-strip-icon { font-size: 12px; flex-shrink: 0; }
.reply-strip strong { color: var(--text-header); font-weight: 700; flex-shrink: 0; }
.reply-strip .reply-preview-text {
  color: var(--text-muted); font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.reply-strip button {
  color: var(--text-muted); border-radius: 50%;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  transition: color .1s, background .1s;
}
.reply-strip button:hover { color: var(--text-normal); background: var(--bg-hover); }

.input-box {
  background: var(--input-bg);
  border-radius: 8px;
  border: 1px solid transparent;
  display: flex; align-items: flex-end;
  min-height: 46px; position: relative;
  transition: border-color .15s;
}
.input-box:focus-within { border-color: var(--input-border-focus); }
.reply-strip + .input-box { border-radius: 0 0 8px 8px; }

/* Left action buttons (attach, gif, etc.) */
.input-left-btns { display: flex; align-items: flex-end; flex-shrink: 0; }
.input-attach-btn {
  width: 42px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: color .1s, transform .1s;
  flex-shrink: 0; border-radius: 6px;
}
.input-attach-btn:hover { color: var(--text-normal); transform: scale(1.1); }

/* Text input */
.msg-input {
  flex: 1; min-height: 22px; max-height: 200px;
  overflow-y: auto; outline: none;
  color: var(--text-normal); font-size: 15px;
  line-height: 1.4; padding: 11px 4px;
  word-break: break-word; align-self: center;
}
.msg-input:empty::before {
  content: attr(placeholder);
  color: var(--input-placeholder);
  pointer-events: none;
}
.msg-input::-webkit-scrollbar { width: 4px; }

/* Right action buttons (emoji, gif, send) */
.input-actions { display: flex; align-items: flex-end; gap: 2px; flex-shrink: 0; padding: 4px 4px 4px 0; }
.input-icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border-radius: 6px;
  transition: color .1s, transform .1s, background .1s;
}
.input-icon-btn:hover { color: var(--text-normal); background: var(--bg-hover); transform: scale(1.1); }
.input-icon-btn.active { color: var(--brand); }

/* GIF button */
.gif-btn {
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  color: var(--text-muted); padding: 4px 6px; border-radius: 4px;
  border: 1.5px solid var(--text-muted);
  transition: color .1s, border-color .1s;
  line-height: 1; margin-bottom: 8px;
}
.gif-btn:hover { color: var(--brand); border-color: var(--brand); }

/* File chips */
.file-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 6px 0 0 42px;
}
.file-chip {
  background: var(--bg-tertiary); border: 1px solid var(--bg-accent);
  border-radius: 6px; padding: 5px 10px;
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
  max-width: 200px;
}
.file-chip span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-chip button {
  color: var(--text-muted); font-size: 13px;
  border-radius: 50%; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: color .1s, background .1s;
}
.file-chip button:hover { color: var(--red); background: rgba(248,81,73,.15); }

/* ═══════════════════════════════════════════════════════════
   EMOJI PICKER (polished)
═══════════════════════════════════════════════════════════ */
.emoji-picker {
  position: absolute;
  bottom: calc(100% + 10px); right: 0;
  background: var(--bg-floating);
  border: 1px solid var(--bg-accent);
  border-radius: 12px;
  width: 352px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  z-index: 100;
  overflow: hidden;
}
.emoji-picker-header {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--bg-accent);
}
.emoji-search {
  width: 100%; background: var(--bg-secondary);
  border: 1px solid var(--bg-accent); border-radius: 6px;
  padding: 7px 10px; color: var(--text-normal);
  font-size: 13px; outline: none;
  transition: border-color .15s;
}
.emoji-search:focus { border-color: var(--input-border-focus); }
.emoji-search::placeholder { color: var(--input-placeholder); }
.emoji-grid {
  display: grid; grid-template-columns: repeat(9, 1fr);
  gap: 2px; max-height: 200px;
  overflow-y: auto; padding: 8px;
}
.e-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; border-radius: 6px; cursor: pointer;
  transition: background .08s, transform .08s;
}
.e-btn:hover { background: var(--bg-hover); transform: scale(1.2); }

/* Quick emoji reaction picker (small floating) */
.emoji-quick-picker {
  position: fixed; background: var(--bg-floating);
  border: 1px solid var(--bg-accent); border-radius: 8px;
  padding: 6px; display: flex; gap: 3px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  z-index: 500;
  animation: popIn .12s ease-out;
}
.emoji-quick-btn {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  transition: background .08s, transform .08s;
}
.emoji-quick-btn:hover { background: var(--bg-hover); transform: scale(1.2); }

/* ═══════════════════════════════════════════════════════════
   MESSAGE HIGHLIGHTING / FLASH
═══════════════════════════════════════════════════════════ */
@keyframes msgFlash {
  0%   { background: rgba(88,101,242,.20); }
  100% { background: transparent; }
}
.msg-group.flash { animation: msgFlash 1.8s ease-out; }

/* ═══════════════════════════════════════════════════════════
   PINNED / SYSTEM MESSAGES
═══════════════════════════════════════════════════════════ */
.msg-system {
  padding: 4px 20px;
  font-size: 13px; color: var(--text-muted);
  font-style: italic; display: flex; align-items: center; gap: 8px;
}
.msg-system::before { content: ''; width: 16px; height: 1px; background: var(--bg-accent); }
.msg-system::after  { content: ''; flex: 1; height: 1px; background: var(--bg-accent); }

/* ═══════════════════════════════════════════════════════════
   MEMBER LIST
═══════════════════════════════════════════════════════════ */
.member-list {
  width: var(--members-width); min-width: var(--members-width);
  background: var(--bg-secondary);
  overflow-y: auto; padding: 16px 0 8px;
  flex-shrink: 0;
  border-left: 1px solid var(--bg-tertiary);
}
.ml-role-header {
  padding: 16px 16px 4px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--text-muted);
}
.ml-item {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 8px 5px 14px; margin: 1px 4px;
  border-radius: 6px; cursor: pointer;
  transition: background .1s;
}
.ml-item:hover { background: var(--bg-hover); }
.ml-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: var(--bg-accent); }
.ml-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ml-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }
.ml-item:hover .ml-name { color: var(--text-normal); }
.ml-activity { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Avatar with status ring in member list */
.ml-avatar-wrap { position: relative; flex-shrink: 0; }
.ml-status {
  position: absolute; bottom: -1px; right: -1px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--bg-secondary);
}
.ml-status.online { background: var(--status-online); }
.ml-status.idle   { background: var(--status-idle); }
.ml-status.dnd    { background: var(--status-dnd); }
.ml-status.offline{ background: var(--status-offline); }

/* ═══════════════════════════════════════════
   GIF PICKER
═══════════════════════════════════════════ */
#gif-picker {
  animation: popIn .15s ease-out;
}
#gif-picker .gif-search-input:focus {
  border-color: var(--brand) !important;
  outline: none;
}
#gif-grid img {
  transition: transform .12s;
}
#gif-grid > div:hover img {
  transform: scale(1.04);
}

/* GIF button active state */
.gif-btn.active {
  color: var(--brand);
  border-color: var(--brand);
}

/* Reaction-add floating panel */
#float-emoji {
  animation: popIn .12s ease-out;
}

/* ═══════════════════════════════════════════════════════════
   VIDEO & AUDIO PLAYERS
═══════════════════════════════════════════════════════════ */
.att-video-wrap {
  max-width: min(480px, 80vw);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--bg-accent);
}

.att-video {
  width: 100%;
  max-height: 360px;
  display: block;
  border-radius: 8px 8px 0 0;
  background: #000;
}

.att-video-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 12px;
  gap: 8px;
}

.att-video-info .att-file-name {
  font-size: 13px;
  font-weight: 600;
}

.att-video-info .att-file-name a {
  color: var(--text-link);
  text-decoration: none;
}

.att-video-info .att-file-name a:hover {
  text-decoration: underline;
}

.att-video-info .att-file-size {
  color: var(--text-muted);
  flex-shrink: 0;
}

.att-audio-wrap {
  max-width: min(420px, 80vw);
  background: var(--bg-secondary);
  border: 1px solid var(--bg-accent);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.1s;
}

.att-audio-wrap:hover {
  border-color: var(--brand);
}

.att-audio-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 8px;
}

.att-audio-header .att-file-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.att-audio-header .att-file-info {
  flex: 1;
  min-width: 0;
}

.att-audio-header .att-file-name {
  font-size: 14px;
  font-weight: 600;
}

.att-audio-header .att-file-name a {
  color: var(--text-link);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.att-audio-header .att-file-name a:hover {
  text-decoration: underline;
}

.att-audio-header .att-file-size {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.att-audio {
  width: 100%;
  display: block;
  padding: 4px 12px 12px;
  height: 40px;
}

/* Style the audio element for dark themes */
.att-audio::-webkit-media-controls-panel {
  background: var(--bg-secondary);
}

/* Video fullscreen styling */
.att-video:fullscreen {
  max-height: none;
  border-radius: 0;
}
