* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0, 255, 0, 0.03), rgba(0, 255, 0, 0.03) 1px, transparent 1px, transparent 2px);
    pointer-events: none;
    z-index: 999;
}

@keyframes flicker {
    0% { opacity: 0.98; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}

body {
    animation: flicker 0.15s infinite;
}

.container {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    border: 2px solid #00ff00;
    padding: 8px;
    margin-bottom: 8px;
    text-shadow: 0 0 10px #00ff00;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
}

.header-left {
    min-width: 0;
}

.logo {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 3px;
    letter-spacing: 1px;
}

.header h1 {
    font-size: 14px;
    margin-bottom: 5px;
}

.header-info {
    display: flex;
    gap: 10px;
    font-size: 10px;
    flex-wrap: wrap;
}

.mini-player {
    background: #1a1a1a;
    border: 2px solid #00ff00;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.mini-player-display {
    background: #000;
    border: 1px solid #003300;
    padding: 4px 6px;
    font-size: 10px;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    font-family: 'Courier New', monospace;
    height: 32px;
    overflow: hidden;
    position: relative;
}

.mini-player-channel {
    font-size: 9px;
    color: #00aa00;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-title {
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    animation: scroll-text 15s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.mini-player-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mini-player-btn {
    background: #003300;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-size: 12px;
    padding: 4px 8px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}

.mini-player-btn:hover {
    background: #005500;
    box-shadow: 0 0 8px #00ff00;
}

.mini-player-btn:active {
    background: #00ff00;
    color: #000;
}

.mini-player-channel-switch {
    flex: 0 0 auto;
    padding: 4px 10px;
}

@media (max-width: 768px) {
    .mini-player {
        display: none;
    }
}

@media (min-width: 769px) {
    .mini-player {
        min-width: 350px;
    }

    .mini-player-display {
        height: 40px;
        padding: 6px 8px;
    }

    .mini-player-channel {
        font-size: 10px;
    }

    .mini-player-title {
        font-size: 12px;
    }

    .mini-player-btn {
        font-size: 14px;
        padding: 6px 12px;
    }
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    max-width: 100%;
}

.chat-section {
    border: 2px solid #00ff00;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    max-width: 100%;
}

.chat-header {
    background: #003300;
    padding: 6px 8px;
    border-bottom: 2px solid #00ff00;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-btn {
    background: rgba(0, 100, 0, 0.5);
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 3px 8px;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-btn:hover {
    background: rgba(0, 150, 0, 0.7);
    box-shadow: 0 0 8px #00ff00;
}

.settings-btn:active {
    background: rgba(0, 255, 0, 0.3);
}

.chat-messages {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(0, 20, 0, 0.5);
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.chat-message {
    margin-bottom: 6px;
    line-height: 1.3;
    position: relative;
    padding-right: 25px;
    word-wrap: break-word;
    word-break: break-word;
    font-size: 12px;
    max-width: 100%;
}

.timestamp {
    color: #00aa00;
    font-size: 10px;
}

.username {
    color: #00ff00;
    font-weight: bold;
}

.user-emoji {
    margin-right: 2px;
}

.message-text {
    color: #33ff33;
}

/* ============================================================================ */
/* @MENTION JIGGLE FEATURE */
/* ============================================================================ */

/* SMOOTH OSCILLATING WAVE - Like a pendulum swing */
@keyframes mentionJiggle {
    0% { 
        transform: translateX(0) rotate(0deg); 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    12.5% { 
        transform: translateX(-12px) rotate(-3deg); 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
    }
    25% { 
        transform: translateX(-15px) rotate(-4deg); 
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.8);
    }
    37.5% { 
        transform: translateX(-12px) rotate(-3deg); 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
    }
    50% { 
        transform: translateX(0) rotate(0deg); 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    62.5% { 
        transform: translateX(12px) rotate(3deg); 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
    }
    75% { 
        transform: translateX(15px) rotate(4deg); 
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.8);
    }
    87.5% { 
        transform: translateX(12px) rotate(3deg); 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
    }
    100% { 
        transform: translateX(0) rotate(0deg); 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
}

/* Mentioned message highlight - SMOOTH CONTINUOUS WAVE */
.message-mentioned {
    animation: mentionJiggle 2s ease-in-out 3;
    background: rgba(255, 215, 0, 0.15) !important;
    border-left: 5px solid #ffd700 !important;
    padding-left: 12px !important;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6) !important;
}

/* @mention text styling in messages */
.mention-tag {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    padding: 0 2px;
}

/* ============================================================================ */
/* END @MENTION FEATURE */
/* ============================================================================ */

.report-btn {
    position: absolute;
    right: 2px;
    top: 0;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.3;
    padding: 4px;
}

.report-btn:active {
    opacity: 1;
    color: #ff6600;
}

/* Translation Controls */
.translate-btn {
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 2px 4px;
}

.translate-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.translate-btn:active {
    opacity: 1;
    transform: scale(1.1);
}

.translation-controls {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.translation-text {
    padding-left: 30px;
    border-left: 2px solid #00aa00;
    margin-left: 10px;
    margin-top: 4px;
    color: #00aa00;
    font-size: 11px;
    font-style: italic;
    display: block;
}

/* /LISTENING STYLES */
.listening-box-lcd {
    background: #0a0a0a;
    border: 3px solid #00ff00;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5), inset 0 0 20px rgba(0, 255, 0, 0.1);
    animation: listening-pulse 2s ease-in-out infinite;
    max-width: 100%;
    margin: 8px 0;
}

@keyframes listening-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.4); }
    50% { box-shadow: 0 0 35px rgba(0, 255, 0, 0.7); }
}

.lcd-header {
    background: linear-gradient(180deg, #003300 0%, #001100 100%);
    padding: 8px 12px;
    border-bottom: 2px solid #00ff00;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.lcd-body {
    padding: 12px;
    background: linear-gradient(180deg, #000000 0%, #001100 100%);
    font-size: 11px;
}

.lcd-line {
    margin: 6px 0;
    text-shadow: 0 0 8px #00ff00;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lcd-label {
    color: #00aa00;
    min-width: 70px;
}

.lcd-value {
    color: #00ff00;
    font-weight: bold;
    word-break: break-word;
}

.equalizer {
    display: inline-flex;
    gap: 2px;
    align-items: flex-end;
    height: 14px;
    margin-left: 8px;
}

.eq-bar {
    width: 3px;
    background: #00ff00;
    box-shadow: 0 0 4px #00ff00;
    animation: eq-bounce 0.6s ease-in-out infinite;
}

.eq-bar:nth-child(1) { animation-delay: 0s; }
.eq-bar:nth-child(2) { animation-delay: 0.1s; }
.eq-bar:nth-child(3) { animation-delay: 0.2s; }
.eq-bar:nth-child(4) { animation-delay: 0.3s; }
.eq-bar:nth-child(5) { animation-delay: 0.4s; }
.eq-bar:nth-child(6) { animation-delay: 0.2s; }
.eq-bar:nth-child(7) { animation-delay: 0.1s; }

@keyframes eq-bounce {
    0%, 100% { height: 4px; }
    50% { height: 12px; }
}

.lcd-body button {
    transition: all 0.2s;
}

.lcd-body button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px currentColor;
}

.lcd-body button:active {
    transform: scale(0.95);
}

.afk-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(80, 80, 80, 0.5);
    color: #ff3333;
    border: 2px solid #ff3333;
    padding: 4px 10px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 10px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
}

.afk-toggle.active {
    background: rgba(255, 51, 51, 0.2);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.6);
    opacity: 1;
    pointer-events: all;
}

.chat-input-container:hover .afk-toggle {
    opacity: 1;
    pointer-events: all;
}

.afk-toggle:hover {
    background: rgba(255, 51, 51, 0.3);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.8);
}

.afk-toggle:hover {
    opacity: 1;
}

.user-afk-badge {
    background: rgba(80, 80, 80, 0.6);
    color: #ff3333;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: bold;
    margin-left: 8px;
    border: 1px solid #ff3333;
    box-shadow: 0 0 8px rgba(255, 51, 51, 0.4);
}

.reaction-controls {
    position: absolute;
    right: 90px;
    top: 0;
    display: none;
    gap: 3px;
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(0, 0, 0, 0.9);
    padding: 2px 4px;
    border: 1px solid #003300;
    z-index: 100;
}

.chat-message:hover .reaction-controls {
    display: flex;
    opacity: 1;
}

.reaction-btn {
    cursor: pointer;
    font-size: 14px;
    opacity: 0.5;
    padding: 2px 4px;
    transition: all 0.2s;
}

.reaction-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.reactions-display {
    display: inline-flex;
    gap: 6px;
    margin-left: 8px;
    align-items: center;
}

.reaction-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0, 50, 0, 0.5);
    border: 1px solid #00ff00;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.reaction-count:hover {
    background: rgba(0, 100, 0, 0.6);
    box-shadow: 0 0 8px #00ff00;
}

.reaction-count.user-reacted {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

.reaction-emoji {
    font-size: 12px;
}

.reaction-number {
    color: #00ff00;
    font-weight: bold;
    font-size: 10px;
}

.admin-controls {
    position: absolute;
    right: 2px;
    top: 0;
    display: none;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(0, 0, 0, 0.95);
    padding: 2px 4px;
    border: 1px solid #ff6600;
    z-index: 110;
}

.chat-message:hover .admin-controls.visible {
    display: flex;
    opacity: 1;
}

.admin-btn {
    color: #ff6600;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    border: 1px solid #ff6600;
    opacity: 0.6;
    background: rgba(0, 0, 0, 0.8);
}

.admin-btn:active {
    opacity: 1;
    background: rgba(255, 102, 0, 0.2);
}

.message-removed {
    color: #666;
    font-style: italic;
}

.message-shadow-banned {
    opacity: 0.5;
    color: #666;
}

.chat-input-area {
    border-top: 2px solid #00ff00;
    padding: 6px 8px;
    background: #001100;
    flex-shrink: 0;
}

.chat-input-container {
    position: relative;
    width: 100%;
}

.chat-input {
    width: 100%;
    max-width: 100%;
    background: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 8px;
    padding-right: 60px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    min-height: 40px;
}

.chat-input:focus {
    outline: none;
    box-shadow: 0 0 10px #00ff00;
}

.sidebar {
    display: none;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    max-width: 100%;
}

.users-panel, .bulletin-panel {
    border: 2px solid #00ff00;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 150px;
    max-height: 250px;
}

.panel-header {
    background: #003300;
    padding: 6px 8px;
    border-bottom: 2px solid #00ff00;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    font-size: 11px;
}

.view-all-btn {
    color: #00ff00;
    text-decoration: none;
    font-size: 10px;
    padding: 3px 6px;
    border: 1px solid #00ff00;
    white-space: nowrap;
}

.view-all-btn:active {
    background: rgba(0, 255, 0, 0.2);
}

/* PIP VIDEO PLAYER STYLES - CRITICAL FOR WATCH BUTTON */
.toggle-view-btn {
    background: transparent;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 3px 6px;
    font-size: 10px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
    white-space: nowrap;
}

.toggle-view-btn:hover {
    background: rgba(0, 255, 0, 0.2);
}

.toggle-view-btn.active {
    background: #00ff00;
    color: #000;
}

#pipPlayer {
    width: 100%;
    height: 100%;
    position: relative;
}

#pipPlayer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pip-logo-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 60px;
    height: auto;
    opacity: 0.85;
    pointer-events: none;
    z-index: 1000;
    filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.6));
}

/* Only apply video container styles inside bulletin panel */
.bulletin-panel #videoPlayerContainer {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.panel-content {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    background: rgba(0, 20, 0, 0.5);
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.user-item {
    padding: 6px 4px;
    margin-bottom: 2px;
    cursor: pointer;
    font-size: 12px;
    word-wrap: break-word;
}

.user-item:active {
    background: rgba(0, 255, 0, 0.1);
}

.user-status {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 5px #00ff00;
}

.typing-indicator {
    color: #888;
    font-size: 0.7rem;
    margin-left: 6px;
    font-style: italic;
}

@keyframes typing-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.typing-indicator {
    animation: typing-pulse 1.5s infinite;
}

.bulletin-item {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #00ff00;
    background: rgba(0, 50, 0, 0.3);
    cursor: pointer;
    word-wrap: break-word;
}

.bulletin-item:active {
    background: rgba(0, 70, 0, 0.5);
}

.bulletin-title {
    font-weight: bold;
    margin-bottom: 4px;
    color: #00ff00;
    font-size: 11px;
    word-wrap: break-word;
}

.bulletin-meta {
    font-size: 9px;
    color: #00aa00;
    margin-bottom: 4px;
}

.bulletin-text {
    color: #33ff33;
    font-size: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
}

.loading-screen {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.loading-screen.hidden {
    display: none;
}

.loading-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.loading-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ff00;
}

.loading-message {
    font-size: 14px;
    margin-bottom: 30px;
    color: #00aa00;
}

.loading-bar-container {
    width: 100%;
    height: 20px;
    border: 2px solid #00ff00;
    background: #000;
    position: relative;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: #00ff00;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px #00ff00;
}

@keyframes loading-pulse {
    0%, 100% { box-shadow: 0 0 15px #00ff00; }
    50% { box-shadow: 0 0 25px #00ff00; }
}

.loading-bar {
    animation: loading-pulse 1.5s infinite;
}

.username-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow-y: auto;
}

.username-modal.hidden {
    display: none;
}

.username-modal .modal-content {
    background: #000;
    border: 3px solid #00ff00;
    padding: 15px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 30px #00ff00;
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-content {
    background: #000;
    border: 3px solid #00ff00;
    padding: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 30px #00ff00;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px #00ff00;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: #00ff00;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    background: #000;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    min-height: 40px;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 15px #00ff00;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
    max-width: 100%;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-top: 8px;
    max-width: 100%;
    padding: 5px;
}

.color-option {
    width: 50px;
    height: 50px;
    cursor: pointer;
    border: 3px solid #003300;
    border-radius: 50%;
    transition: all 0.2s;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.color-option:active {
    transform: scale(0.9);
}

.color-option.selected {
    border: 4px solid #00ff00;
    box-shadow: 0 0 15px currentColor, 0 0 25px currentColor;
    transform: scale(1.1);
}

.color-option::after {
    display: none;
}

.emoji-option {
    font-size: 28px;
    cursor: pointer;
    text-align: center;
    padding: 8px;
    border: 2px solid transparent;
    transition: all 0.2s;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-option:active {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    transform: scale(0.95);
}

.emoji-option.selected {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px #00ff00;
}

.btn {
    background: #00ff00;
    color: #000;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
    width: 100%;
    margin-top: 15px;
    min-height: 44px;
}

.btn:active {
    background: #00aa00;
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ban-message {
    text-align: center;
    padding: 12px;
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    margin-bottom: 12px;
    font-size: 12px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 4000;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.modal.active {
    display: flex;
}

.modal .modal-content {
    background: #000;
    border: 3px solid #00ff00;
    padding: 20px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 0 30px #00ff00;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons .btn {
    margin-top: 0;
}

.btn-secondary {
    background: #003300;
    color: #00ff00;
    border: 2px solid #00ff00;
}

.btn-secondary:active {
    background: rgba(0, 255, 0, 0.2);
}

.admin-login-trigger {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    color: #003300;
    cursor: pointer;
    opacity: 0.2;
    z-index: 5000;
    transition: opacity 0.2s;
}

.admin-login-trigger:hover {
    opacity: 0.8;
    color: #00ff00;
}

.admin-badge {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ff6600;
    color: #000;
    padding: 5px 10px;
    border: 2px solid #ff6600;
    font-weight: bold;
    font-size: 10px;
    z-index: 1000;
    box-shadow: 0 0 10px #ff6600;
    display: flex;
    gap: 10px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.admin-badge:hover {
    opacity: 1;
    pointer-events: all;
}

.admin-badge::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    bottom: -10px;
    left: -30px;
    pointer-events: all;
}

.admin-panel-btn {
    background: #000;
    color: #ff6600;
    border: 1px solid #ff6600;
    padding: 3px 8px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
}

.admin-panel-btn:active {
    background: rgba(255, 102, 0, 0.2);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border: 1px solid #000;
}

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

.blink {
    animation: blink 1s infinite;
}

.sidebar-toggle {
    display: block;
    background: #003300;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 11px;
    min-height: 40px;
    flex-shrink: 0;
}

.sidebar-toggle:active {
    background: rgba(0, 255, 0, 0.2);
}

.sidebar.show {
    display: flex;
}

@media (min-width: 768px) {
    .container {
        padding: 20px;
    }

    .header {
        padding: 15px;
        margin-bottom: 20px;
    }

    .logo {
        font-size: 28px;
        margin-bottom: 5px;
        letter-spacing: 2px;
    }

    .header h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .header-info {
        font-size: 14px;
        gap: 30px;
    }

    .main-content {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 20px;
        max-height: calc(100vh - 200px);
    }

    .chat-header {
        padding: 10px;
        font-size: 14px;
    }

    .chat-messages {
        padding: 15px;
    }

    .chat-message {
        font-size: 14px;
        padding-right: 100px;
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .timestamp {
        font-size: 12px;
    }

    .report-btn {
        font-size: 11px;
        right: 5px;
        top: 2px;
    }

    .chat-input-area {
        padding: 10px;
    }

    .chat-input {
        padding: 10px;
        min-height: 44px;
    }

    .sidebar {
        display: flex !important;
    }

    .sidebar-toggle {
        display: none;
    }

    .users-panel, .bulletin-panel {
        flex: 1;
        min-height: 200px;
        max-height: 100%;
    }

    .panel-header {
        padding: 10px;
        font-size: 14px;
    }

    .view-all-btn {
        font-size: 12px;
        padding: 3px 8px;
    }

    .panel-content {
        padding: 15px;
    }

    .user-item {
        padding: 5px;
        font-size: 14px;
        margin-bottom: 3px;
    }

    .user-status {
        width: 8px;
        height: 8px;
        margin-right: 8px;
    }

    .typing-indicator {
        font-size: 0.8rem;
        margin-left: 8px;
    }

    .bulletin-item {
        margin-bottom: 15px;
        padding: 10px;
    }

    .bulletin-title {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .bulletin-meta {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .bulletin-text {
        font-size: 12px;
        line-height: 1.4;
    }

    .modal-content {
        padding: 40px;
    }

    .modal-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .loading-title {
        font-size: 32px;
    }

    .loading-message {
        font-size: 18px;
    }

    .form-group {
        margin-bottom: 25px;
    }

    .form-label {
        font-size: 14px;
        margin-bottom: 10px;
    }

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

    .color-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .color-option {
        width: 42px;
        height: 42px;
    }

    .color-option:hover {
        border: 4px solid #00ff00;
        transform: scale(1.15);
        box-shadow: 0 0 20px currentColor, 0 0 35px currentColor;
    }

    .emoji-option {
        font-size: 32px;
        padding: 8px;
        min-height: auto;
    }

    .emoji-option:hover {
        border-color: #00ff00;
        background: rgba(0, 255, 0, 0.1);
        transform: scale(1.2);
    }

    .ban-message {
        padding: 20px;
        font-size: 14px;
    }

    .btn {
        font-size: 16px;
        padding: 14px 30px;
        min-height: 50px;
    }
}

@media (max-width: 767px) {
    input, textarea {
        font-size: 16px !important;
    }
    
    .color-option {
        width: 35px;
        height: 35px;
    }
    
    .color-grid {
        gap: 6px;
        padding: 3px;
    }
}
