.lxh-player {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    user-select: none;
    font-family: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    aspect-ratio: 16 / 9;
}

.lxh-player video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

.video-wrapper .lxh-player {
    aspect-ratio: auto;
    min-height: 0;
}

.lxh-player .player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    padding: 50px 16px 12px;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.lxh-player:hover .player-controls {
    opacity: 1;
}

.lxh-player:not(:hover) .player-controls {
    opacity: 0.7;
}

.lxh-player.paused .player-controls {
    opacity: 1;
}

.lxh-player .progress-bar {
    position: relative;
    height: 6px;
    min-height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: height 0.2s ease;
    overflow: visible;
}

.lxh-player .progress-bar:hover {
    height: 8px;
    min-height: 8px;
}

.lxh-player .progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    width: 0%;
    pointer-events: none;
}

.lxh-player .progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 3px;
    width: 0%;
    min-width: 0;
    transition: width 0.1s linear;
    z-index: 1;
    box-shadow: 0 0 8px rgba(34,197,94,0.4);
    pointer-events: none;
}

.lxh-player.dragging .progress-filled {
    transition: none;
}

.lxh-player .progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(34,197,94,0.6);
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: grab;
    z-index: 2;
    pointer-events: none;
}

.lxh-player.dragging .progress-handle {
    transition: none;
}

.lxh-player .progress-bar:hover .progress-handle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.lxh-player.dragging .progress-bar:hover .progress-handle {
    transform: translate(-50%, -50%);
}

.lxh-player.paused .progress-handle {
    opacity: 1;
}

.lxh-player .progress-handle:active {
    cursor: grabbing;
}

.lxh-player .controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lxh-player .control-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lxh-player .control-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.1);
}

.lxh-player .download-btn {
    color: #22c55e;
}

.lxh-player .download-btn:hover {
    background: rgba(34,197,94,0.2);
    box-shadow: 0 0 8px rgba(34,197,94,0.4);
}

.lxh-player .control-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.lxh-player .play-btn svg {
    width: 24px;
    height: 24px;
}

.lxh-player.play-btn-active .play-btn {
    color: #22c55e;
}

.lxh-player .time-display {
    color: #fff;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lxh-player .time-display .current {
    color: #22c55e;
}

.lxh-player .time-display .separator {
    color: rgba(255,255,255,0.5);
}

.lxh-player .volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lxh-player .volume-slider {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
}

.lxh-player .volume-control:hover .volume-slider {
    width: 70px;
}

.lxh-player .volume-slider input {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.lxh-player .volume-slider input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    cursor: pointer;
}

.lxh-player .volume-slider input::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.lxh-player .spacer {
    flex: 1;
}

.lxh-player .speed-menu {
    position: relative;
}

.lxh-player .speed-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    min-width: 42px;
    transition: background 0.2s ease;
}

.lxh-player .speed-btn:hover {
    background: rgba(34,197,94,0.3);
}

.lxh-player .speed-options {
    position: absolute;
    bottom: 40px;
    right: 0;
    background: rgba(20,20,20,0.95);
    border-radius: 6px;
    padding: 4px 0;
    min-width: 50px;
    display: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.lxh-player .speed-menu.active .speed-options {
    display: block;
}

.lxh-player .speed-options button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
    transition: background 0.15s ease;
}

.lxh-player .speed-options button:hover {
    background: rgba(34,197,94,0.2);
}

.lxh-player .speed-options button.active {
    color: #22c55e;
    font-weight: 600;
}

.lxh-player .center-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(34,197,94,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.lxh-player .center-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(34,197,94,1);
}

.lxh-player .center-play svg {
    width: 36px;
    height: 36px;
    fill: #fff;
    margin-left: 4px;
}

.lxh-player.paused .center-play,
.lxh-player:not(.playing) .center-play {
    opacity: 1;
}

.lxh-player.playing .center-play {
    opacity: 0;
    pointer-events: none;
}

.lxh-player .loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
    z-index: 15;
}

.lxh-player.loading .loading-spinner {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.lxh-player .fullscreen-btn svg {
    width: 22px;
    height: 22px;
}

.lxh-player.fullscreen {
    border-radius: 0;
    width: 100vw;
    height: 100vh;
}

.lxh-player.fullscreen video {
    height: 100%;
    object-fit: contain;
}

.lxh-player .buffer-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #22c55e;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 12;
    display: none;
    pointer-events: none;
}

.lxh-player.show-buffer .buffer-info {
    display: block;
}

.lxh-player .network-status {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.lxh-player .network-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.lxh-player .network-status.good .status-dot {
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

.lxh-player .network-status.medium .status-dot {
    background: #eab308;
    box-shadow: 0 0 6px #eab308;
}

.lxh-player .network-status.poor .status-dot {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.lxh-player .network-status.offline .status-dot {
    background: #6b7280;
}

@media (max-width: 768px) {
    .lxh-player .controls-row {
        gap: 8px;
    }
    
    .lxh-player .time-display {
        font-size: 11px;
    }
    
    .lxh-player .control-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .lxh-player .play-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .lxh-player .center-play {
        width: 60px;
        height: 60px;
    }
    
    .lxh-player .center-play svg {
        width: 28px;
        height: 28px;
    }
    
    .lxh-player .volume-control:hover .volume-slider {
        width: 50px;
    }
    
    .lxh-player .volume-slider input {
        width: 40px;
    }
}
