/* 弹幕样式 */
.pix-barrage-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.pix-barrage-wrapper {
    position: absolute;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.pix-barrage-wrapper.top {
    top: 100px;
}

.pix-barrage-wrapper.bottom {
    bottom: 100px;
}

.pix-barrage {
    position: absolute;
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    white-space: nowrap;
    font-size: 14px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.pix-barrage:hover {
    transform: scale(1.1);
    z-index: 9999 !important;
    background-color: rgba(0, 0, 0, 0.8);
    pointer-events: auto;
}

.barrage-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.barrage-username {
    font-weight: bold;
    margin-right: 5px;
    color: #ffd700;
}

.barrage-content {
    color: #fff;
    word-break: break-all;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pix-barrage-wrapper.top {
        top: 60px;
    }
    
    .pix-barrage-wrapper.bottom {
        bottom: 60px;
    }
    
    .pix-barrage {
        font-size: 12px;
        height: 32px;
        line-height: 32px;
    }
    
    .barrage-avatar {
        width: 22px;
        height: 22px;
        margin-right: 6px;
    }
}

/* 深色模式适配 */
.dark-theme .pix-barrage {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.dark-theme .pix-barrage:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.dark-theme .barrage-username {
    color: #ffa500;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pix-barrage {
    animation: fadeIn 0.3s ease-out;
}
