* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
    background: #0C0C0C;
    color: #00FF41;
    font-size: 16px;
    line-height: 1.4;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}
input, textarea {
    -webkit-user-select: text;
    user-select: text;
    touch-action: auto;
}
.header {
    height: 70px;
    background: #0C0C0C;
    color: #00FF41;
    border-bottom: 1px solid #ffffff;
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
    padding-right: 2rem;
    gap: 2rem;
    overflow-x: hidden;
    overflow-y: hidden;
}
.header-section {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.header-divider {
    width: 1px;
    height: 50%;
    background: #ffffff;
    flex-shrink: 0;
    opacity: 0.8;
}
.logo {
    color: #00FF41;
    font-weight: bold;
    font-size: 6px;
    line-height: 1.1;
    flex-shrink: 0;
}
.logo pre {
    margin: 0;
    line-height: 1.1;
}
.market-cap {
    color: #ffffff;
    font-size: 18px;
    font-weight: normal;
    flex-shrink: 0;
    transition: color 1s ease-out;
}
.market-cap.up {
    color: #00FF41;
    animation: pulseGreen 1s ease-out;
}
.market-cap.down {
    color: #FF4444;
    animation: pulseRed 1s ease-out;
}
@keyframes pulseGreen {
    0% {
        color: #00FF41;
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        color: #ffffff;
        transform: scale(1);
    }
}
@keyframes pulseRed {
    0% {
        color: #FF4444;
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        color: #ffffff;
        transform: scale(1);
    }
}
.contract-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 1;
}
.contract {
    color: #ffffff;
    font-size: 15px;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.contract:hover {
    opacity: 0.8;
}
.copy-icon {
    color: #ffffff;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.copy-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}
.copied-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 255, 65, 0.95);
    color: #0C0C0C;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.copied-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.live-trade {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
}
.trade-label {
    font-size: 15px;
    color: #ffffff;
    flex-shrink: 0;
}
.trade-list {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    overflow-x: hidden;
    overflow-y: hidden;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    position: relative;
    will-change: contents;
}
.trade-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background: linear-gradient(to right, #0C0C0C, rgba(12, 12, 12, 0.7) 50%, rgba(12, 12, 12, 0.3) 80%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}
.live-trade::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background: linear-gradient(to right, rgba(12, 12, 12, 0), rgba(12, 12, 12, 0.3) 30%, rgba(12, 12, 12, 0.7) 60%, #0C0C0C 100%);
    pointer-events: none;
    z-index: 10;
}
.trade-list::-webkit-scrollbar {
    display: none;
}
.trade-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.trade-item {
    font-size: 15px;
    line-height: 1.3;
    color: #ffffff;
    animation: smoothFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease-out;
    position: relative;
    z-index: 2;
    cursor: pointer;
}
.trade-item.buy {
    color: #00FF41;
}
.trade-item.sell {
    color: #FF4444;
}
@keyframes smoothFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-5px) scale(0.99);
    }
    40% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
.trade-separator {
    color: #ffffff;
    margin: 0 0.25rem;
}
.main {
    display: flex;
    min-height: calc(100vh - 70px);
}
.content {
    width: 80%;
    background: #0C0C0C;
    color: #00FF41;
    padding: 2rem;
    border-right: 1px solid #00FF41;
    font-size: 16px;
}
.content-title {
    font-size: 20px;
    font-weight: bold;
    color: #00FF41;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.content-boxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    order: 1;
}
.wrapper-box {
    flex: 1;
    border: 1px solid #00FF41;
    padding: 1.5rem;
    background: rgba(0, 255, 65, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.inner-boxes {
    display: flex;
    gap: 1rem;
}
.inner-box {
    flex: 1;
    min-width: 0;
    transition: opacity 0.5s ease-out;
}
.inner-box.inactive {
    opacity: 0.3;
}
.progress-bar-container {
    margin-top: 0;
    margin-left: auto;
    height: 40px;
    flex: 1 1 auto;
    max-width: 460px;
    min-width: 150px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    position: relative;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: #00FF41;
    transition: width 1s linear;
    position: relative;
}
.progress-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: bold;
    z-index: 1;
    pointer-events: none;
    text-shadow: 
        0 0 5px #00FF41,
        0 0 10px #00FF41,
        0 0 15px #00FF41,
        2px 2px 4px rgba(0, 0, 0, 0.8);
}
.inner-box.inactive .progress-bar-container {
    opacity: 0.3;
}
.box-description {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-weight: normal;
    text-transform: none;
}
.bottom-boxes {
    display: flex;
    gap: 1rem;
}
.content-box {
    width: 100%;
    border: 1px solid #00FF41;
    padding: 1.5rem;
    background: rgba(0, 255, 65, 0.05);
}
.next-lyrics-box {
    flex: 1;
}
.next-lyrics-info {
    font-size: 11px;
    color: #ffffff;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
}
.llm-log-box {
    flex: 1;
}
.llm-log-content {
    height: 160px;
    color: #FFFFFF;
    font-size: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
    line-height: 1;
    white-space: pre-wrap;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}
.llm-log-content .success {
    color: #00FF41;
}
.llm-log-content .error {
    color: #FF4444;
}
.llm-log-content::-webkit-scrollbar {
    width: 4px;
}
.llm-log-content::-webkit-scrollbar-track {
    background: rgba(0, 255, 65, 0.1);
}
.llm-log-content::-webkit-scrollbar-thumb {
    background: #00FF41;
}
.next-lyrics-content {
    height: 130px;
    color: #00FF41;
    font-size: 14px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
.next-lyrics-content::-webkit-scrollbar {
    width: 4px;
}
.next-lyrics-content::-webkit-scrollbar-track {
    background: rgba(0, 255, 65, 0.1);
}
.next-lyrics-content::-webkit-scrollbar-thumb {
    background: #00FF41;
}
.next-lyrics-message {
    padding: 0.5rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.05);
    border-radius: 2px;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    flex-shrink: 1;
}
.box-label {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    font-weight: bold;
    min-width: 0;
}
.box-timer {
    color: #00FF41;
    font-size: 18px;
    font-weight: bold;
}
.box-value {
    font-size: 32px;
    color: #00FF41;
    font-weight: bold;
}
.music-player-section {
    margin-top: 0;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #00FF41;
    display: none;
    order: -1;
}
.music-player-section.show {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.music-player-section.show .visualizer-section {
    height: 400px;
}
.visualizer-section {
    width: 100%;
    position: relative;
    height: 100%;
    overflow: hidden;
}
.music-time-display {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #00FF41;
    font-size: 14px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
    z-index: 10;
    background: rgba(12, 12, 12, 0.8);
    padding: 5px 10px;
    border: 1px solid #00FF41;
    opacity: 0.9;
    pointer-events: none;
}
.visualizer-container {
    width: 100%;
    height: 100%;
    border: 1px solid #00FF41;
    background: rgba(0, 255, 65, 0.05);
    position: relative;
    cursor: pointer;
    z-index: 1;
    overflow: hidden;
}
.visualizer-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
.audio-player {
    display: none;
}
.audio-player audio {
    width: 100%;
    filter: invert(1) hue-rotate(90deg);
}
.lyrics-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
    padding-top: 1rem;
}
.lyrics-content {
    font-size: 32px;
    color: #FFFFFF;
    line-height: 1.6;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
    text-align: center;
    padding: 1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
    max-height: calc(100% - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
    pointer-events: auto;
    align-self: center;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}
.lyrics-content::-webkit-scrollbar {
    width: 6px;
}
.lyrics-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.lyrics-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 3px;
}
.lyrics-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}
.lyrics-content .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #00FF41;
    margin-left: 2px;
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}
.sidebar {
    width: 20%;
    background: #0C0C0C;
    color: #00FF41;
    padding: 1rem;
    border-left: 1px solid #00FF41;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px);
}
.chat-footer {
    display: none;
}
.sidebar-description {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #00FF41;
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
}
.chat-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #00FF41;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
}
.chat-title-text {
    font-size: 20px;
    font-weight: 700;
    color: #00FF41 !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.25rem;
}
.chat-stat-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
    white-space: nowrap;
}
.stream-waiting {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
    white-space: normal;
}
.stream-waiting-text {
    color: #ffffff;
    opacity: 0.8;
    line-height: 1.4;
}
.join-stream-btn,
#join-stream-btn-active {
    background: rgba(0, 255, 65, 0.2);
    border: 1px solid #00FF41;
    color: #00FF41;
    padding: 0.4rem 0.8rem;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}
.join-stream-btn:hover,
#join-stream-btn-active:hover {
    background: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    transform: scale(1.05);
}
.join-stream-btn:active,
#join-stream-btn-active:active {
    transform: scale(0.98);
}
#join-stream-btn-active {
    display: none;
}
#user-count {
    color: #ffffff;
    font-weight: normal;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-transform: none;
    white-space: nowrap;
}
#pumpfun-viewer-count {
    color: #ffffff;
    font-weight: normal;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-transform: none;
    white-space: nowrap;
}
#viewer-separator {
    white-space: nowrap;
    flex-shrink: 0;
}
.user-icon {
    color: #ffffff;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: block;
}
.user-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}
.viewer-icon {
    color: #ffffff;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: block;
}
.viewer-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}
#user-count.count-up {
    color: #00FF41 !important;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
    animation: pulseGreen 1s ease-out;
}
#user-count.count-down {
    color: #ffffff !important;
    text-shadow: none;
}
#pumpfun-viewer-count.count-up {
    color: #00FF41 !important;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
    animation: pulseGreen 1s ease-out;
}
#pumpfun-viewer-count.count-down {
    color: #ffffff !important;
    text-shadow: none;
}
@keyframes pulseGreen {
    0% {
        color: #00FF41;
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        color: #ffffff;
        transform: scale(1);
    }
}
@keyframes pulseRed {
    0% {
        color: #FF4444;
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        color: #ffffff;
        transform: scale(1);
    }
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0.5rem;
    padding-right: 0.5rem;
}
.chat-input-container {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
    flex-direction: row;
    align-items: flex-start;
}
.chat-input-wrapper {
    flex: 1;
    position: relative;
}
.chat-input {
    width: 100%;
    background: #0C0C0C;
    border: 2px solid #00FF41;
    color: #00FF41;
    padding: 0.75rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}
.chat-input:focus {
    border-color: #ffffff;
    background: rgba(0, 255, 65, 0.05);
}
.chat-input.error {
    border-color: #FF4444;
    animation: shake 0.5s ease;
}
.chat-alert {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: rgba(255, 68, 68, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #FF4444;
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 13px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-alert.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: alertFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.chat-alert.hide {
    animation: alertFadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes alertFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes alertFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.chat-button {
    background: #0C0C0C;
    border: 2px solid #00FF41;
    color: #00FF41;
    padding: 0.75rem 1.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.chat-button:hover {
    background: #00FF41;
    color: #0C0C0C;
}
.chat-button:active {
    transform: scale(0.98);
}
.chat-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #666666;
}
.chat-input:disabled::placeholder {
    color: #FF4444;
    font-weight: bold;
}
.chat-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #333333;
    border-color: #666666;
}
.chat-messages::-webkit-scrollbar {
    width: 4px;
}
.chat-messages::-webkit-scrollbar-track {
    background: #0C0C0C;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: #00FF41;
}
.chat-messages div {
    font-size: 15px;
    margin-bottom: 0.5rem;
    color: #ffffff;
    transition: color 1s ease-out;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.chat-messages div strong {
    color: #ffffff;
    margin-bottom: 0.2rem;
    font-weight: bold;
    font-size: 17px;
}
.chat-messages div strong,
.chat-message-new strong {
    color: #ffffff !important;
}
.chat-messages div span {
    color: #00FF41;
}
.chat-message-new {
    color: #00FF41;
    animation: fadeToWhite 1s ease-out forwards;
}
.chat-message-used {
    color: #00FF41 !important;
}
.round-separator {
    font-size: 12px;
    color: #00FF41;
    opacity: 0.6;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
    padding-top: 0.5rem;
}
@keyframes fadeToWhite {
    0% {
        color: #00FF41;
    }
    100% {
        color: #ffffff;
    }
}
h1, h2, h3 {
    color: #00FF41;
    font-weight: normal;
}
h2 {
    font-size: 20px;
}
h3 {
    font-size: 18px;
}
p {
    font-size: 16px;
}
.hamburger-menu {
    display: none;
    position: fixed;
    top: 1rem;
    right: 0.75rem;
    z-index: 10001;
    background: #0C0C0C;
    border: 2px solid #00FF41;
    width: 50px;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}
.hamburger-menu span {
    width: 25px;
    height: 2px;
    background: #00FF41;
    transition: all 0.3s ease;
    margin: 0 auto;
}
.hamburger-menu.active span {
    display: none;
}
.hamburger-menu.active::before {
    content: 'X';
    color: #00FF41;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #0C0C0C;
    border-left: 2px solid #00FF41;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-content {
    padding: 4rem 1.5rem 1.5rem;
}
.mobile-menu-item {
    margin-bottom: 1rem;
}
.mobile-menu-item label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #00FF41;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
}
.mobile-menu-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #00FF41;
    cursor: pointer;
}
.mobile-menu-item span {
    color: #ffffff;
}
@media (max-width: 768px) {
    .main {
        flex-direction: column;
        min-height: auto;
    }
    .content {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #00FF41;
        padding: 1rem;
        padding-bottom: 120px;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        order: 2;
    }
    .content-title {
        font-size: 16px;
        margin-bottom: 1rem;
    }
    .content-boxes {
        flex-direction: column;
        gap: 0.75rem;
    }
    .bottom-boxes {
        flex-direction: column;
        gap: 0.75rem;
    }
    .wrapper-box {
        padding: 1rem;
    }
    .inner-boxes {
        flex-direction: column;
        gap: 0.75rem;
    }
    .inner-box {
        padding: 1rem;
    }
    .content-box {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    .bottom-boxes {
        margin-bottom: 100px;
    }
    .box-label {
        font-size: 12px;
        flex-wrap: wrap;
    }
    .progress-bar-container {
        margin-left: 0;
        margin-top: 0.5rem;
        max-width: 100%;
        min-width: 100%;
        width: 100%;
        height: 28px;
    }
    .progress-bar-text {
        font-size: 16px;
    }
    .box-description {
        font-size: 9px;
        margin-top: 0.4rem;
        line-height: 1.3;
    }
    .box-value {
        font-size: 24px;
    }
    .music-player-section {
        padding: 1rem;
        margin-top: 0;
        margin-bottom: 1rem;
        flex-direction: column;
        order: -1;
    }
    .music-player-section.show .visualizer-section {
        height: 300px;
    }
    .music-time-display {
        font-size: 12px;
        padding: 4px 8px;
        top: 8px;
        right: 8px;
    }
    .visualizer-container {
        height: 100%;
        overflow: hidden;
    }
    .lyrics-content {
        font-size: 20px;
        max-height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
    }
    h2 {
        font-size: 18px;
    }
    h3 {
        font-size: 16px;
    }
    p {
        font-size: 14px;
    }
    .chat-messages div {
        font-size: 13px;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        text-align: left;
    }
    .sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #00FF41;
        padding: 0.75rem;
        height: auto;
        min-height: 200px;
        max-height: 40vh;
        margin-bottom: 0;
        order: 1;
    }
    .sidebar-description {
        font-size: 11px;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        line-height: 1.4;
    }
    .chat-title {
        font-size: 14px;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        gap: 0.4rem;
    }
    .chat-title-text {
        font-size: 16px;
        letter-spacing: 2px;
        color: #00FF41 !important;
    }
    .chat-stat-item {
        font-size: 12px;
        gap: 0.4rem;
        display: flex !important;
        flex-direction: row !important;
    }
    .user-icon {
        width: 14px;
        height: 14px;
    }
    .viewer-icon {
        width: 14px;
        height: 14px;
    }
    .stream-waiting {
        gap: 0.5rem;
        font-size: 12px;
        flex-wrap: wrap;
    }
    .stream-waiting-text {
        font-size: 11px;
    }
    .join-stream-btn {
        padding: 0.3rem 0.6rem;
        font-size: 11px;
    }
    #join-stream-btn-active {
        padding: 0.3rem 0.6rem;
        font-size: 11px;
    }
    .chat-messages {
        max-height: calc(40vh - 100px);
        overflow-y: auto;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .chat-input-container {
        display: none;
    }
    .chat-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #0C0C0C;
        border-top: 1px solid #00FF41;
        padding: 0.75rem;
        gap: 0.5rem;
        z-index: 1000;
        flex-direction: row;
        align-items: flex-start;
    }
    .chat-footer .chat-input-wrapper {
        flex: 1;
        position: relative;
    }
    .chat-footer .chat-input {
        width: 100%;
        font-size: 14px;
        padding: 0.75rem;
        border-width: 2px;
    }
    .chat-footer .chat-alert {
        font-size: 11px;
        bottom: calc(100% + 0.4rem);
        padding: 0.6rem 0.8rem;
    }
    .chat-footer .chat-button {
        align-self: flex-start;
        margin-top: 0;
    }
    .chat-footer .chat-button {
        font-size: 14px;
        padding: 0.75rem 1.5rem;
        border-width: 2px;
        white-space: nowrap;
    }
    .content {
        padding-bottom: 1rem;
    }
    .music-player-section {
        margin-bottom: 1rem;
    }
    .next-lyrics-content {
        font-size: 12px;
        gap: 0.4rem;
        height: 130px;
    }
    .llm-log-content {
        height: 130px;
        font-size: 11px;
    }
    .next-lyrics-message {
        padding: 0.4rem;
        font-size: 11px;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
    }
    .header {
        height: auto;
        min-height: 70px;
        padding: 0.75rem 0.5rem;
        flex-wrap: wrap;
        gap: 0.25rem;
        overflow-x: hidden;
        overflow-y: visible;
        border-bottom: 2px solid #00FF41;
        box-shadow: 0 2px 10px rgba(0, 255, 65, 0.2);
    }
    .header-section {
        font-size: 10px;
    }
    .header-section:first-child {
        flex-basis: 100%;
        margin-bottom: 0;
    }
    .header-section.market-cap {
        order: 2;
        width: 100%;
        padding-left: 0.5rem;
        margin-top: 0;
        margin-bottom: 0;
    }
    .contract-wrapper {
        order: 3;
        width: 100%;
        margin-top: 0;
        padding-left: 0.5rem;
    }
    .contract {
        max-width: calc(100% - 30px);
    }
    .header-section.live-trade {
        order: 4;
        width: 100%;
        margin-top: 0;
        padding-left: 0.5rem;
    }
    .header-divider:nth-of-type(2) {
        display: none;
    }
    .header-divider:nth-of-type(3) {
        display: none;
    }
    .header-divider:nth-of-type(4) {
        display: none;
    }
    .market-cap {
        margin-left: -10px;
    }
    .logo {
        font-size: 5px;
        font-weight: bold;
        text-shadow: 0 0 5px #00FF41, 0 0 10px #00FF41;
        filter: brightness(1.2);
        padding-left: 0.5rem;
        align-self: flex-start;
    }
    .logo pre {
        margin: 0;
        line-height: 1.1;
    }
    .market-cap {
        font-size: 18px;
        font-weight: bold;
        text-shadow: 0 0 5px #00FF41, 0 0 10px rgba(0, 255, 65, 0.5);
        filter: brightness(1.15);
        letter-spacing: 0.5px;
        margin-left: 0;
    }
    .contract-wrapper {
        gap: 0.3rem;
    }
    .contract {
        max-width: calc(100% - 20px);
        font-size: 11px;
        opacity: 0.9;
    }
    .copy-icon {
        width: 12px;
        height: 12px;
    }
    .trade-item {
        font-size: 10px;
    }
    .trade-label {
        font-size: 10px;
    }
    .live-trade {
        flex-wrap: nowrap;
        gap: 0.5rem;
        overflow-x: hidden;
        overflow-y: hidden;
        max-width: 100%;
    }
    .trade-list {
        flex-wrap: nowrap;
        gap: 0.5rem;
        overflow-x: hidden;
        overflow-y: hidden;
        max-width: 100%;
    }
    .live-trade::after {
        width: 100px;
    }
    .trade-list::before {
        width: 5px;
    }
    body {
        font-size: 12px;
    }
    h2, h3 {
        font-size: 14px;
    }
    .hamburger-menu {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
    .header.hidden {
        display: none;
    }
    #live-trade-section.hidden {
        display: none;
    }
    #next-lyrics-box.hidden {
        display: none;
    }
    #llm-log-box.hidden {
        display: none;
    }
    #round-box.hidden {
        display: none;
    }
    #generator-box.hidden {
        display: none;
    }
    #music-player-section.hidden {
        display: none;
    }
    #live-chat-section.hidden {
        display: none;
    }
}

.allow-sound-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    backdrop-filter: blur(2px);
}

.allow-sound-overlay.hidden {
    display: none;
}

.allow-sound-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 500px;
    padding: 20px;
}

.allow-sound-description {
    color: #00FF41;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
    font-size: 16px;
    text-align: center;
    line-height: 1.6;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
    margin: 0;
}

.allow-sound-warning {
    color: #FF8800;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
    margin: 0;
    padding: 10px;
    background: rgba(255, 136, 0, 0.1);
    border-radius: 4px;
}

.allow-sound-warning strong {
    font-weight: bold;
}

.allow-sound-button {
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid #00FF41;
    color: #00FF41;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px 40px;
    text-shadow: 0 0 12px rgba(0, 255, 65, 0.6);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.allow-sound-button:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: #00FF41;
    box-shadow: 0 0 35px rgba(0, 255, 65, 0.7);
    transform: scale(1.05);
}

.allow-sound-button:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .allow-sound-container {
        max-width: 90%;
        padding: 15px;
        gap: 20px;
    }
    
    .allow-sound-description {
        font-size: 14px;
    }
    
    .allow-sound-button {
        font-size: 18px;
        padding: 16px 32px;
    }
    
    .mobile-music-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(2px);
        z-index: 10000;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
    
    .mobile-music-overlay-content {
        background: #0C0C0C;
        border: 2px solid #00FF41;
        border-radius: 8px;
        padding: 30px 20px;
        max-width: 400px;
        width: 100%;
        text-align: center;
    }
    
    .mobile-overlay-warning {
        color: #FF8800;
        font-size: 12px;
        margin-bottom: 20px;
        line-height: 1.5;
        padding: 10px;
        background: rgba(255, 136, 0, 0.1);
        border-radius: 4px;
    }
    
    .mobile-overlay-warning strong {
        font-weight: bold;
    }
    
    .mobile-play-music-btn {
        width: 100%;
        padding: 20px;
        background: #00FF41;
        color: #0C0C0C;
        border: 2px solid #00FF41;
        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        border-radius: 4px;
        margin-bottom: 15px;
    }
    
    .mobile-play-description {
        color: #00FF41;
        font-size: 14px;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    .mobile-skip-btn {
        width: 100%;
        padding: 15px;
        background: #FF8800;
        color: #ffffff;
        border: 2px solid #FF8800;
        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .mobile-skip-description {
        color: #FF8800;
        font-size: 12px;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    .mobile-stop-btn {
        width: 100%;
        padding: 15px;
        background: #FF4444;
        color: #ffffff;
        border: 2px solid #FF4444;
        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        border-radius: 4px;
    }
    
    .mobile-stop-description {
        color: #FF4444;
        font-size: 12px;
        margin-top: 10px;
        line-height: 1.5;
    }
}

    .mobile-mini-panel {
        position: fixed;
        bottom: 70px;
        left: 0;
        right: 0;
        background: rgba(12, 12, 12, 0.95);
        border-top: 1px solid #00FF41;
        padding: 6px 10px;
        z-index: 999;
        display: flex;
        flex-direction: column;
        gap: 4px;
        max-height: 85px;
        overflow: hidden;
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }
    
    .mobile-mini-panel.fade-out {
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
    }
    
    .mobile-mini-round-box,
    .mobile-mini-generator-box {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 11px;
    }
    
    .mobile-mini-label {
        color: #00FF41;
        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
        white-space: nowrap;
        min-width: 85px;
        font-size: 11px;
    }
    
    .mobile-mini-timer {
        color: #ffffff;
        font-weight: bold;
        font-size: 11px;
    }
    
    .mobile-mini-progress-container {
        flex: 1;
        height: 18px;
        background: rgba(0, 255, 65, 0.1);
        border: 1px solid rgba(0, 255, 65, 0.3);
        position: relative;
        overflow: hidden;
    }
    
    .mobile-mini-progress-bar {
        height: 100%;
        background: #00FF41;
        transition: width 1s linear;
        position: relative;
    }
    
    .mobile-mini-progress-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #FFFFFF;
        font-size: 12px;
        font-weight: bold;
        z-index: 1;
        pointer-events: none;
    }
    
    .mobile-mini-inactive {
        opacity: 0.3;
    }
    
    .mobile-mini-inactive .mobile-mini-progress-container {
        opacity: 0.3;
    }
    
    .mobile-mini-llm-log {
        color: #FFFFFF;
        font-size: 11px;
        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', Courier, monospace;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 3px 0;
        border-top: 1px solid rgba(0, 255, 65, 0.2);
        min-height: 14px;
    }
}

@media (min-width: 769px) {
    .mobile-music-overlay {
        display: none !important;
    }
    
    .mobile-mini-panel {
        display: none !important;
    }
}
