:root {
    --border-radius: 8px;
}

.live-photo {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    max-width: min(800px, 80%);
    height: auto !important;
    margin: 1em auto;
    display: block;
    background-color: #f0f0f0;
    aspect-ratio: auto;
}

.live-photo .container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.live-photo .container img, 
.live-photo .container video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    top: 0;
    left: 0;
}

.live-photo .container img {
    transition: opacity 1s ease;
}

.live-photo .container video {
    transition: opacity 1s ease;
    opacity: 0;
}

.live-photo.zoom .container img {
    opacity: 0;
}

.live-photo.zoom .container video {
    opacity: 1;
}

.live-photo.zoom .icon img {
    animation: spin 5s linear infinite;
}

/* 实况图标位置调整到左上角 */
.live-photo .icon {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: var(--border-radius);
    position: absolute;
    left: 10px;
    top: 10px;
    height: 22px;
    background-color: rgba(240, 255, 255, 0.6705882353);
    cursor: pointer;
    user-select: none;
    z-index: 10;
}

.live-photo .icon img {
    width: 22px;
    height: 22px;
}

.live-photo .icon span {
    padding: 3px;
    color: #606060;
    font-size: 80%;
    font-weight: normal;
    text-transform: uppercase;
}

@container (max-width: 200px) {
    .live-photo .icon span {
        display: none;
    }
}

/* 警告信息 - 完全隐藏 */
.live-photo .warning {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.live-photo-placeholder {
    padding: 40px;
    text-align: center;
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    color: #666;
    border-radius: 8px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 - 电脑端优化 */
@media (min-width: 769px) {
    .live-photo {
        max-width: min(800px, 60%);
    }
    
    .live-photo .icon {
        left: 15px;
        top: 15px;
        height: 24px;
    }
    
    .live-photo .icon img {
        width: 24px;
        height: 24px;
    }
    
    .live-photo .icon span {
        font-size: 85%;
    }
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .live-photo {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
    
    .live-photo .icon {
        left: 8px;
        top: 8px;
        height: 20px;
    }
    
    .live-photo .icon img {
        width: 20px;
        height: 20px;
    }
    
    .live-photo .icon span {
        font-size: 75%;
    }
}

/* 确保视频不会显示控制条 */
.live-photo .container video::-webkit-media-controls {
    display: none !important;
}

.live-photo .container video::-webkit-media-controls-enclosure {
    display: none !important;
}

.live-photo .container video::-webkit-media-controls-panel {
    display: none !important;
}
