/* Alexa Video Player Styles */
.avp-video-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.avp-video-container.avp-no-selection {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.avp-security-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.avp-video {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* Custom Controls */
.avp-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.avp-video-container:hover .avp-controls,
.avp-controls.avp-active {
    opacity: 1;
}

.avp-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avp-control-group.avp-left {
    flex: 0 0 auto;
}

.avp-control-group.avp-center {
    flex: 1;
    margin: 0 20px;
}

.avp-control-group.avp-right {
    flex: 0 0 auto;
}

/* Buttons */
.avp-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.avp-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.avp-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Time Display */
.avp-time-display {
    color: white;
    font-family: monospace;
    font-size: 14px;
    white-space: nowrap;
}

/* Progress Bar */
.avp-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.avp-progress-bar {
    position: relative;
    width: 100%;
    height: 100%;
}

.avp-progress-filled {
    height: 100%;
    background: #007cba;
    border-radius: 3px;
    width: 0;
    transition: width 0.1s ease;
}

.avp-progress-handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    background: #007cba;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.avp-progress-container:hover .avp-progress-handle {
    opacity: 1;
}

/* Volume Control */
.avp-volume-container {
    display: flex;
    align-items: center;
    position: relative;
}

.avp-volume-slider {
    width: 60px;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.avp-volume-container:hover .avp-volume-slider {
    opacity: 1;
}

.avp-volume-range {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.avp-volume-range::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #007cba;
    border-radius: 50%;
    cursor: pointer;
}

.avp-volume-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #007cba;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Speed Control */
.avp-speed-container {
    position: relative;
}

.avp-speed-btn {
    min-width: 40px;
    text-align: center;
}

.avp-speed-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0,0,0,0.9);
    border-radius: 4px;
    padding: 8px 0;
    margin-bottom: 8px;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.avp-speed-menu.avp-active {
    display: flex;
}

.avp-speed-menu button {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 16px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

.avp-speed-menu button:hover,
.avp-speed-menu button.active {
    background-color: rgba(255,255,255,0.2);
}

/* Watermarks */
.avp-watermark {
    position: absolute;
    left: 20px;
    right: 20px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    text-align: center;
    z-index: 9;
    pointer-events: none;
    font-family: Arial, sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.avp-watermark-top {
    /* Position set dynamically via inline style */
}

.avp-watermark-center {
    transform: translateY(-50%);
    /* Position set dynamically via inline style */
}


.avp-watermark-bottom {
    transform: translateY(-50%);
    /* Position set dynamically via inline style */
}

.avp-watermark-left {
    left: 20px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    white-space: nowrap;
    /* Position set dynamically via inline style */
}

/* Fullscreen watermarks */
.avp-video-container:-webkit-full-screen .avp-watermark-bottom {
    transform: translateY(-50%);
}

.avp-video-container:-moz-full-screen .avp-watermark-bottom {
    transform: translateY(-50%);
}

.avp-video-container:fullscreen .avp-watermark-bottom {
    transform: translateY(-50%);
}

.avp-video-container:fullscreen .avp-watermark-center {
    transform: translateY(-50%);
}

.avp-video-container:-webkit-full-screen .avp-watermark-left {
    left: 20px;
    transform: translateY(-50%) rotate(-90deg);
}

.avp-video-container:-moz-full-screen .avp-watermark-left {
    left: 20px;
    transform: translateY(-50%) rotate(-90deg);
}

.avp-video-container:fullscreen .avp-watermark-left {
    left: 20px;
    transform: translateY(-50%) rotate(-90deg);
}

/* Anti-screenshot overlay */
.avp-anti-screenshot {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avp-warning {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
}

.avp-warning h3 {
    color: #d63638;
    margin-top: 0;
}

/* Fullscreen styles */
.avp-video-container:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
}

.avp-video-container:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
}

.avp-video-container:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
}

/* Responsive */
@media (max-width: 768px) {
    .avp-controls {
        padding: 10px;
    }
    
    .avp-control-group.avp-center {
        margin: 0 10px;
    }
    
    .avp-btn {
        padding: 6px;
        font-size: 14px;
    }
    
    .avp-time-display {
        font-size: 12px;
    }
    
    .avp-watermark {
        left: 10px;
        right: 10px;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .avp-volume-slider {
        display: none;
    }
    
    .avp-watermark {
        font-size: 10px !important;
    }
}

/* Security enhancements */
.avp-no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.avp-no-drag {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}