.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    aspect-ratio: 16/9;
    user-select: none;
    -webkit-user-select: none;
    margin: 0 auto;
    height: 100%;
    outline: none;
	top:78px;
    -webkit-tap-highlight-color: transparent;
}

.video-container:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.smart-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    position: relative;
    z-index: 6;
}

.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-poster.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px 15px 10px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
}

.video-controls > * {
    pointer-events: auto;
}

.video-container:hover .video-controls,
.video-container.paused .video-controls,
.video-container:focus-within .video-controls {
    opacity: 1;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-filled {
    height: 100%;
    background: #3b82f6;
    border-radius: 3px;
    width: 0%;
    position: relative;
    z-index: 2;
    transition: width 0.1s linear;
}

.progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255,255,255,0.4);
    border-radius: 3px;
    z-index: 1;
    transition: width 0.3s ease;
}

.controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 14px;
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: transform 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.control-btn:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.2);
}

.control-btn:active {
    background: rgba(255,255,255,0.3);
}

.control-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    color: white;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.loading-overlay:not(.hidden) {
    pointer-events: auto;
}

.videospinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.web-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;  
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    z-index: 9999 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    aspect-ratio: auto !important;
    transform: none !important;
	

}

.web-fullscreen .smart-video,
.web-fullscreen .video-poster {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.web-fullscreen .video-controls {
    bottom:160px;
    left: 0;
    right: 0;
    width: 100%;
}

.web-fullscreen .video-poster {
    display: none !important;
}

.big-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.2s;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.big-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(59, 130, 246, 0.8);
}

.big-play-btn:active {
    transform: translate(-50%, -50%) scale(1.05);
}

.big-play-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.network-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 30;
    pointer-events: none;
}

.network-status.online { background: rgba(34, 197, 94, 1); }
.network-status.offline { background: rgba(239, 68, 68, 1); }
.network-status.timeout { background: rgba(245, 158, 11, 1); }

.error-message {
    color: #ef4444;
    text-align: center;
    padding: 20px;
}

/* iOS 特定修复 */
@supports (-webkit-touch-callout: none) {
	
}

.owl-carousel:has(.web-fullscreen) .owl-wrapper,
.owl-carousel:has(.web-fullscreen) .owl-item {
    transform: none !important;
}

.owl-carousel.has-fullscreen .owl-wrapper,
.owl-carousel.has-fullscreen .owl-item {
    transform: none !important;
    transition: none !important;
}