    /* Fix modal flash on close - disable transform transition */
    #tipTeamModal .modal-dialog,
    #sendTeamMessageModal .modal-dialog,
    #reportTeamModal .modal-dialog,
    #blockTeamModal .modal-dialog {
        transition: none !important;
        transform: none !important;
    }
    
    /* Make report and message modals wider for better UX */
    #reportPlayerModal .modal-dialog,
    #reportTeamModal .modal-dialog,
    #sendMessageModal .modal-dialog,
    #sendTeamMessageModal .modal-dialog {
        max-width: 600px !important;
    }
    
    @media (min-width: 992px) {
        #reportPlayerModal .modal-dialog,
        #reportTeamModal .modal-dialog,
        #sendMessageModal .modal-dialog,
        #sendTeamMessageModal .modal-dialog {
            max-width: 700px !important;
        }
    }
    #tipTeamModal.modal.fade,
    #sendTeamMessageModal.modal.fade,
    #reportTeamModal.modal.fade,
    #blockTeamModal.modal.fade {
        transition: opacity 0.15s linear !important;
    }
    #tipTeamModal.modal.fade .modal-dialog,
    #sendTeamMessageModal.modal.fade .modal-dialog,
    #reportTeamModal.modal.fade .modal-dialog,
    #blockTeamModal.modal.fade .modal-dialog {
        transform: translate(0, 0) !important;
    }
    
    /* Hide Video.js error display - use loading overlay instead */
    .video-js .vjs-error-display,
    .video-js.vjs-error .vjs-error-display {
        display: none !important;
    }
    
    /* Fullscreen fixes for mobile devices (Samsung S22 Ultra, etc.) */
    .video-js.vjs-fullscreen,
    .video-js:-webkit-full-screen,
    .video-js:-moz-full-screen,
    .video-js:-ms-fullscreen {
        width: 100% !important;
        height: 100% !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 9999 !important;
    }
    
    .video-js.vjs-fullscreen video,
    .video-js:-webkit-full-screen video {
        width: 100% !important;
        height: 100% !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        object-fit: contain !important;
    }
    
    /* Fix for Samsung/Android tall screens - ensure video fills screen properly */
    @media screen and (max-aspect-ratio: 9/16) {
        .video-js.vjs-fullscreen video {
            object-fit: contain !important;
            width: 100vw !important;
            height: 100vh !important;
        }
    }
    
    /* iOS Safari fullscreen fix */
    video::-webkit-media-controls {
        display: flex !important;
    }
    
    /* Fullscreen container fix */
    .video-js.vjs-fullscreen .vjs-tech {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Hide any overflow on fullscreen */
    body.vjs-full-window {
        overflow: hidden !important;
    }
    
    .card-sm-heading {
        font-size: 16px !important;
    }

    
.trophies-img{
    width: 65px !important;
    height: 65px !important;
    border-radius: 0 !important;
}


/* 21-08-24 */
.team-name span{
    flex-grow: 1 !important;
}

.team-detail-head img{
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

/* ===== EXACT COPY FROM PLAYER PAGE CSS ===== */
.picker{
    height: 80% !important;
}

video{
  height: auto !important;
}

/* Fix black space below video by ensuring tab-pane doesn't have fixed height */
#players-stream.tab-pane,
#teamStreams.tab-pane {
  height: auto !important;
  min-height: 0 !important;
}

/* Prevent left column from stretching to match right column height */
#mainTabContainer {
  align-self: flex-start !important;
}

/* Ensure tab content doesn't stretch */
.matches-tabs, .tab-content {
  height: auto !important;
}

#players-stream .col-lg-12,
#players-stream .row,
#teamStreams .col-lg-12,
#teamStreams .row {
  height: auto !important;
  min-height: 0 !important;
}

.blinking-badge {
  background-color: #FF0000;
  color: white;
  padding: 3px 8px;
  animation: blink 1s infinite;
}

.blinking-mod {
  animation-delay: 0s;
}

.blinking-vip {
  animation-delay: 0.1s;
}

.text-bg-purple {
  background-color: #9b59b6 !important;
  color: white !important;
}

.blinking-sub {
  animation-delay: 0.2s;
}

.blinking-t1 {
  animation-delay: 0.2s;
}

.blinking-t2 {
  animation-delay: 0.4s;
}

.blinking-t3 {
  animation-delay: 0.6s;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

.dropdown-list {
    display: none;
    position: absolute;
    background: #eeee;
    border: 1px solid #eeee;
    padding: 10px;
    width: 150px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(63, 59, 59, 0.3);
    top: 35px;
}

.chat-stats {
   position : relative;
}

/* Emoji Picker Styling - Consistent width across all devices, white background */
emoji-picker {
    max-height: 350px !important;
    height: 350px !important;
    width: 340px !important;
    --category-emoji-size: 1.25rem !important;
    --emoji-size: 1.5rem !important;
    /* White background theme to match D1Arena popup modals */
    --background: #fff !important;
    --border-color: #eee !important;
    --indicator-color: #dd163b !important;
    --input-border-color: #ddd !important;
    --input-font-color: #333 !important;
    --input-placeholder-color: #999 !important;
    --category-font-color: #333 !important;
    --button-active-background: #f0f0f0 !important;
    --button-hover-background: #f8f9fa !important;
}

/* Fix huge emojis in chat - make them inline with text */
.chat-messages img.emoji,
.chat-messages .message-text img.emoji,
.chat-messages .message-text img[class*="emoji"],
.chat-messages .message-text img[src*="twemoji"],
.chat-messages .message-text img[src*="emoji"],
#teamChatMessages img.emoji,
#teamChatMessages .message-text img.emoji,
#teamChatMessages .message-text img[class*="emoji"],
#teamChatMessages .message-text img[src*="twemoji"],
#teamChatMessages .message-text img[src*="emoji"] {
    width: 1.2em !important;
    height: 1.2em !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 0.1em !important;
}

/* GIF images in chat - balanced size */
.chat-messages .message-text img[src*="tenor"],
.chat-messages .message-text img[src*="giphy"],
.chat-messages .message-text img[src*=".gif"],
#teamChatMessages .message-text img[src*="tenor"],
#teamChatMessages .message-text img[src*="giphy"],
#teamChatMessages .message-text img[src*=".gif"] {
    max-width: 180px !important;
    max-height: 180px !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 2px 0 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

/* Also target any img tags in message-text that are likely emojis (but not GIFs) */
.chat-messages .message-text img:not(.user-avatar):not([src*="tenor"]):not([src*="giphy"]):not([src*=".gif"]),
#teamChatMessages .message-text img:not(.user-avatar):not([src*="tenor"]):not([src*="giphy"]):not([src*=".gif"]) {
    max-width: 1.2em !important;
    max-height: 1.2em !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Prevent cutoff on right side */
emoji-picker {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

/* Desktop - slightly wider to prevent 9th emoji cutoff */
@media (min-width: 769px) {
    emoji-picker {
        width: 355px !important;
    }
    #emojiPicker {
        right: -5px !important;
    }
}

/* iPad responsive - same width, align horizontally */
@media (max-width: 768px) {
    emoji-picker {
        width: 340px !important;
        max-height: 350px !important;
        height: 350px !important;
    }
    #emojiPicker {
        right: 0px !important;
    }
}

/* Mobile/iPhone responsive - same width, align horizontally */
@media (max-width: 480px) {
    emoji-picker {
        width: 340px !important;
        max-height: 350px !important;
        height: 350px !important;
    }
    #emojiPicker {
        right: 0px !important;
    }
}

/* GIF Picker Responsive */
@media (min-width: 769px) {
    #gifPicker {
        width: 355px !important;
        right: -5px !important;
    }
}

@media (max-width: 768px) {
    #gifPicker {
        width: 340px !important;
        right: 0px !important;
    }
}

@media (max-width: 480px) {
    #gifPicker {
        width: 340px !important;
        right: 0px !important;
    }
}

.dropdown-list .user-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.dropdown-list .user-item img,
.dropdown-list .user-item video {
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #1a1a2e;
}

/* Video avatars in chat - same style as img avatars */
.chat-messages .message video.user-avatar,
#teamChatMessages .message video.user-avatar {
    width: 36px !important;
    height: 50px !important;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid transparent;
}

.dropdown-list .user-item span {
    color: #000000ff;
    font-size: 10px;
    
}
.stat-item {
  position : relative;
}

/* Stream Info Bar hover styles */
.stream-info-stat span {
    color: #666;
    font-size: 0.85rem;
    transition: color 0.15s ease;
}

.stream-info-stat:hover span {
    color: #dd163b !important;
}

/* Stream Info Bar dropdown user items */
.stream-user-item img,
.stream-user-item video {
    display: inline-block !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
    border: 2px solid #dd163b;
}

.theme-light .single-tournaments-box{
  height: auto;
}

/* Prevent iOS zoom on input focus - all inputs must be 16px or larger */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
  font-size: 16px !important;
}

/* Mobile/iPad specific - ensure no zoom on focus */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* System message styling - matches website design */
.chat-messages .message.system-message,
#teamChatMessages .message.system-message {
  animation: fadeInMessage 0.3s ease-in;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  position: relative !important;
}

@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure system messages persist and don't auto-hide */
.chat-messages .system-message,
#teamChatMessages .system-message {
  transition: opacity 0.3s ease-in !important;
}

/* ===== CHAT MESSAGE STYLING - EXACT COPY FROM PLAYER PAGE ===== */
.chat-messages .message,
#teamChatMessages .message {
    display: flex;
    margin-bottom: 12px;
    padding: 5px 0;
}

.chat-messages .message .message-content,
#teamChatMessages .message .message-content {
    flex: 1;
    min-width: 0;
}

.chat-messages .message .user-info,
#teamChatMessages .message .user-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 2px;
}

.chat-messages .message .username,
#teamChatMessages .message .username {
    font-weight: 600;
    color: #333;
}

.chat-messages .message .timestamp,
#teamChatMessages .message .timestamp {
    font-size: 0.75rem;
    color: #999;
}

.chat-messages .message .message-text,
#teamChatMessages .message .message-text {
    color: #333;
    word-break: break-word;
}

/* ===== TEAM STREAMS - MATCHES PLAYER STREAM PAGE EXACTLY ===== */
#teamStreams {
    position: relative;
    z-index: 1;
}

/* Video player - same as player detail page */
#teamStreams .video-js {
    width: 100%;
    height: auto;
    background: #000;
}


#teamStreams .live-box {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    background: #dd163b;
    color: #fff;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Other live team members - mosaic style video tiles */
.team-live-members {
    padding: 0;
    margin-top: 8px;
}

.live-members-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.live-member-card {
    flex: 1 1 calc(50% - 4px);
    max-width: calc(50% - 4px);
    min-width: 150px;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    position: relative;
}

.live-member-card:hover {
    transform: scale(1.02);
    border-color: #dd163b;
    box-shadow: 0 4px 15px rgba(221, 22, 59, 0.3);
}

/* When only 1 other streamer, make it smaller */
.live-members-grid .live-member-card:only-child {
    flex: 0 1 calc(50% - 4px);
    max-width: calc(50% - 4px);
}

.member-video-preview {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.member-video-preview video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-live-badge {
    display: flex; /* Show LIVE badge with name */
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 8px;
    right: 8px; /* Top RIGHT to match other stream players */
    background: transparent;
    color: #fff;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 5;
}

.preview-live-badge .live-text {
    display: inline-block;
    padding: 3px 8px;
    background-color: red;
    color: white;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0px 0px 8px rgba(255, 0, 0, 0.7);
    animation: pulse-live 1.5s infinite alternate;
}

@keyframes pulse-live {
    0% { box-shadow: 0px 0px 8px rgba(255, 0, 0, 0.7); }
    100% { box-shadow: 0px 0px 15px rgba(255, 0, 0, 1); }
}

.preview-live-badge .live-dot {
    display: none; /* Hide old dot */
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.preview-live-badge .streamer-name {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-weight: 600;
    font-size: 10px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 4px;
}

.preview-overlay {
    display: none; /* Hidden - using preview-live-badge instead */
}

.preview-name {
    display: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Team Stream Chat Container */
.team-stream-chat-container {
    margin-bottom: 20px;
}

.team-stream-chat-container .live-dot-details {
    position: relative;
}

.team-stream-chat-container .live-box1 {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #dd163b;
    color: #fff;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 3px;
}

/* Chat stats styling - EXACT same as player page */
.team-stream-chat-container .chat-stats {
    display: flex;
    padding: 10px 16px;
    background: #DD163B;
    color: #fff;
    font-size: 12px;
    gap: 15px;
}

.team-stream-chat-container .stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #fff;
    cursor: pointer;
}

.team-stream-chat-container .stat-item:hover {
    color: #fff;
    opacity: 0.8;
}

/* Chat container styling */
#teamChatBox {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
}

/* Chat Messages - EXACT same styling as player page */
#teamChatMessages {
    font-size: 0.9rem;
}

#teamChatMessages .message {
    display: flex;
    margin-bottom: 12px;
    padding: 5px 0;
}

#teamChatMessages .message .message-content {
    flex: 1;
    min-width: 0;
}

#teamChatMessages .message .user-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 2px;
}

#teamChatMessages .message .username {
    font-weight: 600;
    color: #333;
}

#teamChatMessages .message .timestamp {
    font-size: 0.75rem;
    color: #999;
}

#teamChatMessages .message .message-text {
    color: #333;
    word-break: break-word;
}

/* Badge styles - same as player page */
#teamChatMessages .blinking-badge {
    background-color: #FF0000;
    color: white;
    padding: 3px 8px;
    animation: blink 1s infinite;
    font-size: 0.7rem;
}

#teamChatMessages .blinking-mod {
    animation-delay: 0s;
}

#teamChatMessages .blinking-owner {
    animation-delay: 0s;
}

#teamChatMessages .blinking-t1 {
    animation-delay: 0.2s;
}

#teamChatMessages .blinking-t2 {
    animation-delay: 0.4s;
}

#teamChatMessages .blinking-t3 {
    animation-delay: 0.6s;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Fix emoji size in chat - same as player page */
#teamChatMessages .message-text img.emoji,
#teamChatMessages .message-text img[src*="twemoji"],
#teamChatMessages .message-text img[src*="emoji"] {
    width: 1.2em !important;
    height: 1.2em !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 0.1em !important;
}

/* GIF images in chat - same as player page */
#teamChatMessages .message-text img[src*="tenor"],
#teamChatMessages .message-text img[src*="giphy"],
#teamChatMessages .message-text img[src*=".gif"] {
    max-width: 180px !important;
    max-height: 180px !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 2px 0 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

/* Side streams grid - smaller thumbnails */
.side-streams-section {
    width: 100%;
}

.side-streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

/* Individual stream tile */
.stream-tile {
    position: relative;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.stream-tile:hover {
    transform: scale(1.02);
    border-color: #dd163b;
}

.stream-tile.active {
    border-color: #dd163b;
    box-shadow: 0 0 15px rgba(221, 22, 59, 0.5);
}

.stream-tile video {
    width: 100%;
    height: 100px;
    object-fit: cover;
    background: #000;
}

.stream-tile .tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 25px 8px 8px;
}

.stream-tile .tile-name {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-tile .tile-live {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #dd163b;
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 600;
}

.stream-tile .tile-audio {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.stream-tile .tile-audio.has-audio {
    background: #dd163b;
}

/* Watch button for going to full player page */
.watch-full-btn {
    display: inline-block;
    background: #dd163b;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.watch-full-btn:hover {
    background: #c01232;
    color: #fff;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-stream-section video {
        height: 220px;
    }
    
    .team-chat-section iframe {
        height: 350px;
    }
    
    .side-streams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stream-tile video {
        height: 80px;
    }
}

@media (min-width: 992px) {
    .stream-chat-wrapper {
        flex-direction: row;
    }
    
    .main-stream-section {
        flex: 1;
        min-width: 55%;
    }
    
    .main-stream-section video {
        height: 450px;
    }
    
    .team-chat-section {
        flex: 0 0 340px;
        max-width: 340px;
    }
    
    .team-chat-section iframe {
        height: 450px;
    }
    
    .side-streams-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ========== DISCORD-LIKE CHAT FEATURES ========== */

/* Typing Indicator */
.typing-indicator {
    display: none;
    padding: 8px 12px;
    color: #72767d;
    font-size: 12px;
    font-style: italic;
    align-items: center;
    gap: 8px;
}
.typing-indicator.active { display: flex; }
.typing-dots { display: flex; gap: 3px; }
.typing-dots span {
    width: 6px; height: 6px;
    background: #72767d;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* Message Hover Actions - Discord style (right side of message) */
.message { position: relative; }
.message:hover { background: rgba(79, 84, 92, 0.16); }
.message .message-actions {
    position: absolute;
    top: -16px;
    right: 16px;
    display: none;
    background: #2f3136;
    border-radius: 4px;
    padding: 0 4px;
    box-shadow: 0 0 0 1px rgba(4,4,5,0.15), 0 4px 8px rgba(0,0,0,0.16);
    z-index: 10;
}
.message:hover .message-actions,
.message .message-actions.picker-open { display: flex; }
.message-action-btn {
    padding: 6px 8px;
    background: transparent;
    border: none;
    color: #b9bbbe;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: background 0.1s, color 0.1s;
}
.message-action-btn:hover {
    background: rgba(79, 84, 92, 0.4);
    color: #dcddde;
}

/* Message Reactions */
.message-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reaction {
    display: flex; align-items: center; gap: 4px;
    padding: 2px 6px; background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; font-size: 12px; cursor: pointer; transition: all 0.15s;
}
.reaction:hover { background: rgba(255,255,255,0.2); }
.reaction.user-reacted { background: rgba(88, 101, 242, 0.3); border-color: #5865f2; }
.reaction-count { color: #b9bbbe; font-size: 11px; }

/* Reply Quote */
.reply-preview {
    display: none; background: rgba(255,255,255,0.05);
    border-left: 3px solid #5865f2; padding: 8px 12px;
    margin-bottom: 8px; border-radius: 0 4px 4px 0;
    font-size: 12px; align-items: center; gap: 8px;
}
.reply-preview.active { display: flex; }
.reply-preview-text { flex: 1; color: #b9bbbe; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-preview-close { background: none; border: none; color: #72767d; cursor: pointer; padding: 2px 6px; font-size: 16px; }
.message-reply-ref { font-size: 11px; color: #72767d; margin-bottom: 4px; cursor: pointer; }
.message-reply-ref:hover { color: #b9bbbe; }

/* @Mentions Autocomplete */
.mentions-dropdown {
    display: none; position: absolute; bottom: 100%; left: 0; right: 0;
    max-height: 200px; overflow-y: auto; background: #2f3136;
    border: 1px solid #202225; border-radius: 8px; margin-bottom: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 100;
}
.mentions-dropdown.active { display: block; }
.mention-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; cursor: pointer; transition: background 0.15s;
}
.mention-item:hover, .mention-item.selected { background: #dc3545; }
.mention-item img, .mention-item video { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.mention-highlight { color: #5865f2; background: rgba(88, 101, 242, 0.2); padding: 0 2px; border-radius: 3px; }

/* Scroll to Bottom Button */
.scroll-to-bottom {
    display: none; position: absolute; bottom: 70px; left: 50%;
    transform: translateX(-50%); background: #dc3545; color: #fff;
    border: none; padding: 8px 16px; border-radius: 20px;
    cursor: pointer; font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); z-index: 50;
}
.scroll-to-bottom:hover { background: #4752c4; }
.scroll-to-bottom.visible { display: block; }
.scroll-to-bottom .new-msg-count { background: #ed4245; padding: 2px 6px; border-radius: 10px; margin-left: 6px; font-size: 10px; }

/* Reaction Picker */
.reaction-picker {
    display: none; position: absolute; top: 100%; right: 0; margin-top: 4px;
    background: #2f3136; border-radius: 8px; padding: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 100; white-space: nowrap;
}
.reaction-picker.active { display: flex; gap: 4px; }
.reaction-picker button {
    background: transparent; border: none; font-size: 20px;
    padding: 4px 8px; cursor: pointer; border-radius: 4px;
}
.reaction-picker button:hover { background: #40444b; transform: scale(1.2); }

.mention-notification { animation: mentionPulse 0.5s ease-in-out; }
@keyframes mentionPulse {
    0%, 100% { background: transparent; }
    50% { background: rgba(88, 101, 242, 0.3); }
}

