/* 推流视频播放器样式 */
.player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 比例 */
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: #000;
}

#videoElement {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
}

.stream-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: #4285f4;
    color: white;
}

.btn-primary:hover {
    background-color: #3367d6;
}

.btn-success {
    background-color: #34a853;
    color: white;
}

.btn-success:hover {
    background-color: #2d9249;
}

.btn-danger {
    background-color: #ea4335;
    color: white;
}

.btn-danger:hover {
    background-color: #d33426;
}

.stream-info {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.stream-info h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #4285f4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stream-info h2::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background-color: #4285f4;
    border-radius: 50%;
}

.stream-url {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 4px;
    font-family: monospace;
    word-break: break-all;
    margin-bottom: 15px;
    border-left: 4px solid #4285f4;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #777;
}

.status-indicator.connected {
    background-color: #34a853;
    box-shadow: 0 0 10px #34a853;
}

.status-indicator.loading {
    background-color: #fbbc04;
    box-shadow: 0 0 10px #fbbc04;
}

.status-indicator.error {
    background-color: #ea4335;
    box-shadow: 0 0 10px #ea4335;
}

.danmu-item {
    position: absolute;
    right: -100%;
    color: white;
    text-shadow: 1px 1px 2px #000;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    animation: danmu-animation 8s linear;
    z-index: 15;
    user-select: none;
}

@keyframes danmu-animation {
    0% { transform: translateY(0); }
    100% { transform: translateX(-100vw); }
}

@media (max-width: 768px) {
    .stream-controls {
        flex-direction: column;
    }
    .danmu-item {
        font-size: 14px;
    }
}