* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Tahoma, Geneva, Verdana, sans-serif;
    background: #e0e8f0; height: 100vh; height: 100dvh;
    overflow: hidden; display: flex; flex-direction: column;
}
.top-bar {
    background: #f0f3f6; border-bottom: 1px solid #b8c7d9;
    padding: 6px 10px; display: flex; align-items: center; gap: 8px;
    overflow-x: auto; white-space: nowrap; scrollbar-width: thin;
    flex-shrink: 0; min-height: 46px;
}
.top-bar::-webkit-scrollbar { height: 4px; }
.logo-icon {
    width: 32px; height: 32px; background: #2c5aa0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; flex-shrink: 0;
}
.tab-bar { display: flex; gap: 4px; flex: 1; }
.tab {
    padding: 5px 12px; font-size: 12px; font-weight: 500;
    background: #e2e8f0; border-radius: 20px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid #b0c0d0; flex-shrink: 0;
}
.tab.active { background: white; border-bottom: 2px solid #2c5aa0; font-weight: bold; color: #2c5aa0; }
.tab.pm-tab { background: #fff3e0; border-color: #f4b860; }
.tab.pm-tab.active { background: #fff8f0; border-bottom: 2px solid #ef6c00; color: #ef6c00; }
.unread-badge { background: #e74c3c; color: white; border-radius: 20px; padding: 0px 5px; font-size: 9px; margin-left: 3px; }
.main-container { display: flex; flex: 1; min-height: 0; background: #fff; overflow: hidden; }
.center-panel {
    flex: 1; display: flex; flex-direction: column; background: #ffffff;
    min-width: 0; height: 100%; overflow: hidden;
}
.chat-header {
    background: #eef2f7;
    border-bottom: 1px solid #cbdae6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 48px;
    height: 48px;
    padding: 0 12px;
}
.topic-area {
    flex: 1; font-size: 12px; cursor: pointer; overflow: hidden; white-space: nowrap;
    text-overflow: ellipsis; color: #0a2f6c; background: rgba(0,0,0,0.03);
    padding: 4px 8px; border-radius: 16px;
    display: flex;
    align-items: center;
    height: 34px;
}
.topic-area:hover { background: rgba(0,0,0,0.08); }
.current-target-label {
    font-weight: 600;
    font-size: 13px;
    background: #e4eaf1;
    padding: 6px 14px;
    border-radius: 24px;
    color: #1e466e;
    height: 34px;
    display: flex;
    align-items: center;
}
.right-panel {
    width: 220px; background: #f8fafd; border-left: 1px solid #cbdae6;
    display: flex; flex-direction: column; flex-shrink: 0; height: 100%;
    overflow: hidden; transition: width 0.2s ease;
}
.right-panel.hidden { width: 0; border-left: none; }
.users-header {
    background: #eef2f7;
    border-bottom: 1px solid #cbdae6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    min-height: 48px;
    height: 48px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
}
.right-panel.hidden .users-header,
.right-panel.hidden .users-list { display: none; }
.users-list { flex: 1; overflow-y: auto; padding: 4px 2px; }
.messages-area {
    flex: 1; overflow-y: auto;
    padding: 8px 8px 8px 4px;
    background: #ffffff;
    font-size: 13px; line-height: 1.45;
}
.chat-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 8px 8px 0;
    border-bottom: 1px solid #f0f3f8;
    cursor: pointer;
}
.chat-avatar {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #3d85c6;
    box-shadow: inset 0 0 19px rgba(61,133,198,0.3);
    background: #ccc;
    overflow: hidden;
    cursor: pointer;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-rank-overlay {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: gold;
    text-shadow: 0 0 2px black;
    background: transparent;
}
.chat-content { flex: 1; min-width: 0; }
.chat-header-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}
.chat-time {
    font-size: 10px;
    color: #7a8b9f;
    font-family: monospace;
}
.chat-message {
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: break-word;
}
.mention-highlight {
    background-color: #3b82f6;
    color: white;
    padding: 0 2px;
    border-radius: 4px;
    font-weight: bold;
}
.custom-icon-img {
    width: 16px; height: 16px;
    object-fit: contain;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 4px;
}
.message-center { text-align: center; margin: 4px 0; }
.event-bubble {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 32px;
    font-size: 12px;
    font-weight: 500;
    max-width: 90%;
    word-break: break-word;
    background: #f0f2f5;
    color: #2c3e66;
}
.join-message { background: #e0f2e9; color: #1f6d49; }
.part-message { background: #ffe6e5; color: #bc2c1e; }
.quit-message { background: #fff0e0; color: #c25b00; }
.mode-message { background: #e3f0fd; color: #0f5b9c; }
.system-message { background: #fef3d4; color: #a7681b; }
.action-message { background: #ede7f6; color: #5e3a8c; font-style: italic; }
.nick-change-message { background: #f3e5f5; color: #6a1b9a; }
.media-thumb {
    margin-top: 6px; border-radius: 12px; cursor: pointer; border: 1px solid #d0dbe8;
    object-fit: cover; transition: transform 0.2s; display: block;
}
.media-thumb:hover { transform: scale(1.02); }
.youtube-thumb { max-width: 180px; max-height: 100px; margin-left: 0; margin-right: auto; }
.view-image-btn {
    background: #2c5aa0; color: white; border: none; padding: 6px 14px;
    border-radius: 20px; font-size: 12px; cursor: pointer; margin-top: 4px;
    display: inline-block;
}
.view-image-btn:hover { background: #1e3e6e; }
.media-popup {
    position: fixed; z-index: 2000; background: white; border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); border: 1px solid #a0b8cc;
    display: flex; flex-direction: column; overflow: hidden;
    resize: both; min-width: 240px; min-height: 160px;
    width: 300px; height: 200px; max-width: 95vw; max-height: 70vh;
}
.media-popup-header {
    background: #2c5aa0; color: white; padding: 6px 12px; display: flex;
    justify-content: space-between; align-items: center; cursor: move;
    font-weight: 600; font-size: 13px; user-select: none;
}
.media-popup-header span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-popup-buttons { display: flex; gap: 8px; }
.media-popup-btn { background: none; border: none; color: white; cursor: pointer; font-size: 18px; padding: 0 4px; }
.media-popup-content {
    flex: 1; overflow: hidden; background: #000; display: flex;
    align-items: center; justify-content: center;
}
.media-popup-content iframe { width: 100%; height: 100%; border: none; }
.media-popup-content img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    border-radius: 0 0 16px 16px;
}
.media-popup.minimized { display: none; }
.floating-media-btn {
    position: fixed; bottom: 80px; right: 60px; width: 44px; height: 44px;
    background: #2c5aa0; color: white; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 20px;
    cursor: pointer; z-index: 2500; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none;
}
.input-area { background: #eef2f7; border-top: 1px solid #cbdae6; padding: 8px 10px; display: flex; align-items: center; gap: 8px; width: 100%; flex-shrink: 0; }
.message-input { flex: 1; padding: 10px 14px; border: 1px solid #bcccd9; border-radius: 30px; font-size: 14px; background: white; font-family: inherit; outline: none; min-width: 0; }
.message-input:focus { border-color: #4a90d9; box-shadow: 0 0 0 2px rgba(74,144,217,0.2); }
.tool-btn {
    background: white; border: 1px solid #bcccd9; border-radius: 50%;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    font-size: 16px; cursor: pointer; flex-shrink: 0; padding: 0;
}
.toggle-userlist-btn {
    background: none; border: none; font-size: 18px; cursor: pointer;
    padding: 0 8px; color: #2c5aa0; height: 32px; width: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background 0.2s;
}
.toggle-userlist-btn:hover { background: rgba(0,0,0,0.05); }
.userlist-section { border-bottom: 1px solid #ddd; }
.section-header { background: #2c5aa0; color: white; padding: 4px 8px; font-size: 11px; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.section-content { overflow: visible; }
.section-content.collapsed { display: none; }
.user-item {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px;
    cursor: pointer;
    border-bottom: 1px solid #e6edf4;
    transition: background 0.1s;
}
.user-item:hover { background: #eef2f7; }
.user-avatar-container {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 2px solid #3d85c6;
    box-shadow: inset 0 0 19px rgba(61,133,198,0.3);
    background: #ccc;
    overflow: hidden;
    cursor: pointer;
}
.user-avatar { width: 100%; height: 100%; object-fit: cover; }
.avatar-rank-overlay {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: gold;
    text-shadow: 0 0 2px black;
    background: transparent;
    z-index: 2;
}
.blocked-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    z-index: 3;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}
.user-info { flex: 1; min-width: 0; }
.user-name {
    font-weight: 600;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-status {
    font-size: 10px;
    color: #6c7a8e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.user-gender-icon { font-size: 14px; flex-shrink: 0; margin-left: 6px; }
.user-gender-icon.gender-female { color: #e83e8c; }
.custom-user-icon { width: 14px; height: 14px; border-radius: 2px; margin-left: 2px; vertical-align: middle; }
.rank-owner { color: #ff6600; } .rank-superadmin { color: #dc143c; } .rank-admin { color: #006400; }
.rank-rj { color: #006400; } .rank-vip { color: #006400; } .rank-normal { color: #666; }
.pm-popup {
    position: fixed; bottom: 70px; right: 12px; width: 280px; height: 350px;
    background: white; border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; z-index: 1000; border: 1px solid #a0b8cc;
    overflow: hidden; cursor: default; resize: both; min-width: 240px; min-height: 260px;
}
.pm-header { background: #2c5aa0; color: white; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; cursor: move; font-weight: 600; font-size: 12px; user-select: none; }
.pm-header-buttons { display: flex; gap: 8px; }
.pm-header-btn { background: none; border: none; color: white; cursor: pointer; font-size: 14px; padding: 0 2px; }
.pm-messages { flex: 1; overflow-y: auto; padding: 12px; background: #f5f7fb; display: flex; flex-direction: column; gap: 8px; }
.pm-bubble { max-width: 85%; padding: 8px 12px; border-radius: 18px; word-wrap: break-word; font-size: 12px; line-height: 1.4; }
.pm-bubble-self { background: #2c5aa0; color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.pm-bubble-other { background: white; color: #1e1e2f; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.pm-nick { font-weight: bold; font-size: 11px; margin-bottom: 2px; display: block; }
.pm-time { font-size: 9px; opacity: 0.6; margin-top: 2px; text-align: right; }
.pm-input-area { display: flex; padding: 10px; border-top: 1px solid #ddd; gap: 8px; background: white; }
.pm-input { flex: 1; padding: 8px 12px; border-radius: 30px; border: 1px solid #ccc; font-size: 12px; outline: none; }
.pm-emoji-btn { background: white; border: 1px solid #ccc; border-radius: 30px; padding: 6px 12px; cursor: pointer; font-size: 16px; }
.emoji-picker {
    position: absolute; bottom: 80px; left: 10px; background: white;
    border: 2px solid #4a90d9; border-radius: 16px; padding: 8px; display: none;
    z-index: 500; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    grid-template-columns: repeat(5,1fr); gap: 6px; width: 260px; max-height: 220px; overflow-y: auto;
}
.emoji-picker.show { display: grid; }
.emoji-item { cursor: pointer; font-size: 24px; text-align: center; padding: 4px; border-radius: 8px; }
.emoji-item:hover { background: #eef2f7; }
.modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 2000; display: none; }
.modal-overlay.show { display: flex; }
.modal-box {
    background: white; border-radius: 24px; width: 420px; max-width: 90%;
    overflow: hidden; margin: 0 auto;
}
.modal-header { background: #2c5aa0; color: white; padding: 12px 16px; display: flex; justify-content: space-between; font-weight: bold; }
.modal-body { padding: 16px; max-height: 60vh; overflow-y: auto; font-size: 13px; text-align: left; word-break: break-word; }
.modal-footer { padding: 12px; display: flex; gap: 8px; justify-content: flex-end; background:#f0f4fa; }
.modal-btn { padding:6px 14px; border-radius:30px; border:none; cursor:pointer; }
.modal-btn.primary { background:#2c5aa0; color:white; } .modal-btn.secondary { background:#e0e7f0; color:#2c5aa0; }
.whois-table { width: 100%; border-collapse: collapse; word-break: break-word; }
.whois-table td { padding: 8px; border-bottom: 1px solid #eee; vertical-align: top; word-break: break-word; }
.whois-table td:first-child { font-weight: bold; color: #2c5aa0; width: 35%; }

/* ========== COVER + DP STYLES (CodyChat Style) ========== */
.whois-cover-container {
    position: relative;
    background: linear-gradient(135deg, #2c5aa0, #1a3a6e);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}
.whois-cover {
    width: 100%;
    height: 130px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.whois-cover:hover {
    transform: scale(1.02);
}
.whois-cover-placeholder {
    width: 100%;
    height: 130px;
    background: linear-gradient(135deg, #2c5aa0, #1a3a6e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    cursor: pointer;
}
.whois-dp-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: -50px;
    margin-bottom: 8px;
}
.whois-dp {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2;
}
.whois-dp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.whois-rank-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: gold;
    border: 2px solid white;
}
.whois-username {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #1a3a6e;
    margin: 8px 0;
}
.whois-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px;
    background: #f8fafd;
    margin: 12px;
    border-radius: 16px;
}
.whois-stat {
    text-align: center;
}
.whois-stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c5aa0;
}
.whois-stat-label {
    font-size: 10px;
    color: #6c7a8e;
}
.whois-info-section {
    padding: 0 16px 16px 16px;
}
.whois-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.whois-info-label {
    font-weight: 600;
    color: #2c5aa0;
}
.whois-info-value {
    color: #333;
    word-break: break-word;
    text-align: right;
}
.whois-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
}
.whois-badge {
    background: #eef2f7;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #2c5aa0;
}
.status-decent-box {
    background: #eef2fa;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 16px;
    margin: 12px;
    font-size: 13px;
    color: #1a4d8c;
}
.whois-dp-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 12px;
    flex-wrap: wrap;
}
.whois-action-btn {
    background: #eef2f7;
    border: 1px solid #bcccd9;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.whois-action-btn:hover { background: #dce5ef; }

.context-menu {
    position:fixed; background:white; border-radius:16px; box-shadow:0 6px 20px rgba(0,0,0,0.25); z-index:3000; min-width:170px; overflow:hidden; display:none; border:1px solid #c0d0e0;
}
.context-menu.show { display:block; }
.context-header { background:#2c5aa0; color:white; padding:10px 14px; font-size:13px; font-weight:bold; }
.context-menu-item { padding:10px 16px; cursor:pointer; font-size:13px; border-bottom:1px solid #eee; }
.separator { height:1px; background:#ddd; margin:6px 0; }
.new-msg-indicator {
    position:fixed; bottom:80px; right:20px; background:#2c5aa0; color:white;
    border-radius:40px; padding:8px 18px; font-size:13px; font-weight:bold;
    cursor:pointer; z-index:1100; box-shadow:0 2px 8px rgba(0,0,0,0.25);
    display:none; align-items:center; gap:6px;
}
.new-msg-indicator:hover { background:#1e3e6e; }

/* Fancy Name Styles */
@keyframes fancyWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes fancyPulse {
    0% { opacity: 0.8; text-shadow: 0 0 0px currentColor; }
    50% { opacity: 1; text-shadow: 0 0 8px currentColor; }
    100% { opacity: 0.8; text-shadow: 0 0 0px currentColor; }
}
@keyframes fancyRainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}
@keyframes fancyShake {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-1px, -1px); }
    20% { transform: translate(1px, 1px); }
    30% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    50% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    70% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -1px); }
    90% { transform: translate(0, 0); }
    100% { transform: translate(0, 0); }
}
.fancy-name {
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 14px;
    word-break: break-word;
}
.fancy-name.nameWave {
    animation: fancyWave 3s ease infinite;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.fancy-name.namePulse {
    animation: fancyPulse 2s ease infinite;
}
.fancy-name.nameRainbow {
    animation: fancyRainbow 3s linear infinite;
}
.fancy-name.nameShake {
    animation: fancyShake 0.5s ease infinite;
}
.fancy-name.glow-small {
    text-shadow: 0 0 3px currentColor;
}
.fancy-name.glow-medium {
    text-shadow: 0 0 6px currentColor, 0 0 8px currentColor;
}
.fancy-name.glow-large {
    text-shadow: 0 0 10px currentColor, 0 0 14px currentColor, 0 0 18px currentColor;
}
.fancy-name.glow-extreme {
    text-shadow: 0 0 12px currentColor, 0 0 20px currentColor, 0 0 28px currentColor, 0 0 35px currentColor;
}
.fancy-name.gender-female { color: #e83e8c; }

@media (max-width: 640px) {
    .right-panel { width: 130px; }
    .user-avatar-container { width: 34px; height: 34px; }
    .avatar-rank-overlay, .blocked-badge { width: 14px; height: 14px; font-size: 8px; bottom: -3px; right: -3px; top: -3px; }
    .user-name { font-size: 11px; }
    .user-status { font-size: 9px; }
    .chat-avatar { width: 34px; height: 34px; }
    .chat-rank-overlay { width: 14px; height: 14px; font-size: 10px; bottom: -3px; right: -3px; }
    .fancy-name { font-size: 13px; }
    .chat-header-row { gap: 4px; }
    .chat-row { gap: 6px; padding: 6px 6px 6px 0; }
    .messages-area { padding: 6px 6px 6px 2px; }
    .whois-dp { width: 70px; height: 70px; margin-top: -35px; }
    .whois-rank-overlay { width: 22px; height: 22px; font-size: 14px; }
    .whois-cover, .whois-cover-placeholder { height: 100px; }
    .media-popup { width: 90vw !important; height: auto; max-height: 40vh; min-width: 200px; min-height: 120px; }
    .pm-popup { width: 90vw; height: auto; max-height: 50vh; right: 5px; bottom: 60px; min-width: 200px; min-height: 200px; }
    .floating-media-btn { bottom: 70px; right: 20px; width: 40px; height: 40px; font-size: 18px; }
    .tool-btn { width: 32px; height: 32px; font-size: 14px; }
    .message-input { font-size: 13px; padding: 8px 12px; }
    .toggle-userlist-btn { width: 28px; height: 28px; font-size: 16px; }
    .chat-header, .users-header { min-height: 44px; height: 44px; }
}
/* YouTube Embed Styles */
.youtube-embed-container {
    margin-top: 8px;
    display: inline-block;
}

.youtube-thumb {
    cursor: pointer;
    border-radius: 8px;
    max-width: 200px;
    transition: transform 0.2s, opacity 0.2s;
    border: 1px solid #ddd;
}

.youtube-thumb:hover {
    transform: scale(1.05);
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.media-popup {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    overflow: hidden;
    z-index: 10000;
    resize: both;
    min-width: 300px;
    min-height: 200px;
}

.media-popup-header {
    background: #2c5aa0;
    color: white;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.media-popup-content {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 40px);
}

.media-popup.minimized {
    display: none;
}

.floating-media-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: #2c5aa0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 20px;
}

.floating-media-btn:hover {
    background: #1e3e6e;
    transform: scale(1.05);
}