#danmu-container {
    overflow: hidden;
}

.danmu-item {
    position: absolute;
    white-space: nowrap;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    pointer-events: none;
    z-index: 10;
}

#danmu-input-area input {
    padding: 8px 12px;
    border-radius: 20px;
    border: 2px solid #fff;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    outline: none;
}

#danmu-input-area input:focus {
    border-color: #4CAF50;
}

#send-danmu {
    padding: 8px 15px;
    border-radius: 20px;
    background: #ff4d4d;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

#send-danmu:hover {
    background: #ff3333;
}

#toggle-danmu-input {
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid white;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

#toggle-danmu-input:hover {
    background: rgba(0, 0, 0, 0.7);
}
