/**
 * Enhanced Video Player Styles
 */

/* Video Player Wrapper */
.yp-video-player-wrapper{position:relative;width:100%;padding-bottom:56.25%;background:#000;border-radius:12px;overflow:hidden}
.yp-video-player,.yp-video-embed{position:absolute;top:0;left:0;width:100%;height:100%}
.yp-video-player{object-fit:contain}

/* Play Overlay */
.yp-player-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.3);cursor:pointer;transition:opacity .3s;z-index:2}
.yp-player-overlay.hidden{opacity:0;pointer-events:none}
.yp-play-icon{transition:transform .2s}
.yp-play-icon:hover{transform:scale(1.1)}

/* Loading Spinner */
.yp-loading-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:3}
@keyframes spin{to{transform:rotate(360deg)}}

/* Custom Controls */
.yp-player-controls{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.9));padding:0 12px 12px;opacity:0;transition:opacity .3s;z-index:4}
.yp-video-player-wrapper:hover .yp-player-controls,.yp-player-controls.show{opacity:1}

/* Progress Container */
.yp-progress-container{position:relative;height:20px;margin-bottom:8px;cursor:pointer}
.yp-progress-bar{position:absolute;bottom:0;left:0;right:0;height:4px;background:rgba(255,255,255,.3);border-radius:2px;transition:height .2s}
.yp-progress-container:hover .yp-progress-bar{height:6px}
.yp-buffered{position:absolute;height:100%;background:rgba(255,255,255,.5);border-radius:2px}
.yp-progress{position:absolute;height:100%;background:#f00;border-radius:2px;transition:background .2s}
.yp-progress:hover{background:#ff3333}
.yp-progress-handle{position:absolute;top:50%;right:-6px;width:12px;height:12px;background:#f00;border-radius:50%;transform:translateY(-50%);opacity:0;transition:opacity .2s;box-shadow:0 0 8px rgba(0,0,0,.5)}
.yp-progress-container:hover .yp-progress-handle{opacity:1}

/* Time Tooltip */
.yp-time-tooltip{position:absolute;bottom:100%;left:0;padding:4px 8px;background:rgba(0,0,0,.9);color:#fff;font-size:12px;border-radius:4px;white-space:nowrap;opacity:0;pointer-events:none;transform:translateX(-50%);margin-bottom:8px}
.yp-time-tooltip.show{opacity:1}

/* Controls Bottom */
.yp-controls-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}
.yp-controls-left,.yp-controls-right{display:flex;align-items:center;gap:8px}

/* Control Buttons */
.yp-control-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:none;border:none;color:#fff;cursor:pointer;border-radius:4px;transition:background .2s}
.yp-control-btn:hover{background:rgba(255,255,255,.1)}
.yp-control-btn svg{width:24px;height:24px}

/* Volume Controls */
.yp-volume-slider{position:relative;width:0;overflow:hidden;transition:width .3s}
.yp-controls-left:hover .yp-volume-slider{width:60px}
.yp-volume-bar{width:100%;height:4px;background:rgba(255,255,255,.3);border-radius:2px;cursor:pointer;position:relative}
.yp-volume-fill{height:100%;background:#fff;border-radius:2px;width:100%}

/* Time Display */
.yp-time-display{color:#fff;font-size:13px;font-weight:500;white-space:nowrap}

/* Settings Menu */
.yp-settings-menu{position:relative}
.yp-settings-panel,.yp-speed-panel{position:absolute;bottom:100%;right:0;min-width:200px;background:rgba(28,28,28,.95);backdrop-filter:blur(10px);border-radius:8px;padding:8px 0;margin-bottom:8px;display:none;box-shadow:0 4px 12px rgba(0,0,0,.5)}
.yp-settings-panel.show{display:block}
.yp-speed-panel.show{display:block}
.yp-setting-item{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;color:#fff;font-size:14px;cursor:pointer;transition:background .2s}
.yp-setting-item:hover{background:rgba(255,255,255,.1)}
.yp-setting-value{color:rgba(255,255,255,.7);font-size:13px}
.yp-panel-header{padding:10px 16px;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:4px}
.yp-back-btn{background:none;border:none;color:#fff;font-size:14px;cursor:pointer;display:flex;align-items:center;gap:8px}
.yp-speed-option{width:100%;padding:10px 16px;background:none;border:none;color:#fff;font-size:14px;text-align:left;cursor:pointer;transition:background .2s}
.yp-speed-option:hover{background:rgba(255,255,255,.1)}
.yp-speed-option.active{color:#4af;font-weight:500}

/* Theater Mode */
.yp-video-page.yp-theater-mode{background:#000;max-width:100%}
.yp-video-page.yp-theater-mode .yp-video-player-wrapper{max-width:100%;border-radius:0}
.yp-video-page.yp-theater-mode .yp-video-sidebar{display:none}
.yp-video-page.yp-theater-mode{grid-template-columns:1fr}
.yp-video-page.yp-theater-mode .yp-container{max-width:100%}

/* Mini Player */
.yp-mini-player{position:fixed;bottom:80px;right:24px;width:320px;height:180px;background:#000;border-radius:8px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.5);z-index:9999;animation:slideIn .3s ease}
.yp-mini-player .yp-video-player-wrapper{padding-bottom:0;height:100%}
.yp-mini-player .yp-player-controls{padding:0 8px 8px}
@keyframes slideIn{from{transform:translateY(100px);opacity:0}to{transform:translateY(0);opacity:1}}

/* Responsive */
@media(max-width:768px){
.yp-controls-bottom{gap:4px}
.yp-control-btn{width:32px;height:32px}
.yp-time-display{font-size:11px}
.yp-miniplayer{display:none}
.yp-theater{display:none}
}