.ancho-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
    border-radius: 8px;
    overflow: hidden;
    user-select: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ancho-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Big Play Overlay */
.ancho-overlay-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.ancho-overlay-play:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background-color: rgba(255, 255, 255, 0.25);
}

.ancho-overlay-play svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

/* Loading Spinner */
.ancho-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    display: none;
}

.ancho-spinner-ring {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: ancho-spin 0.8s linear infinite;
}

@keyframes ancho-spin {
    to { transform: rotate(360deg); }
}

/* Controls Bar */
.ancho-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    padding: 16px;
    padding-top: 40px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ancho-player:hover .ancho-controls,
.ancho-player.ancho-show-controls .ancho-controls {
    opacity: 1;
}

/* Progress / Seek Bar */
.ancho-progress-container {
    position: relative;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: height 0.15s ease;
}

.ancho-progress-container:hover {
    height: 6px;
}

.ancho-progress-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: inherit;
    width: 0;
}

.ancho-progress-play {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #ffffff;
    border-radius: inherit;
    width: 0;
}

.ancho-progress-handle {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.1s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.ancho-progress-container:hover .ancho-progress-handle {
    transform: translate(-50%, -50%) scale(1);
}

/* Buttons Area */
.ancho-controls-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ancho-controls-left,
.ancho-controls-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ancho-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    background-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ancho-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.ancho-btn svg {
    width: 20px;
    height: 20px;
}

.ancho-time {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
}

/* Volume Control */
.ancho-volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ancho-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: width 0.2s ease;
}

.ancho-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
}

.ancho-volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
}

/* Speed Selector Menu */
.ancho-speed-container {
    position: relative;
}

#anchoSpeedBtn {
    font-size: 13px;
    font-weight: 600;
    width: auto;
    padding: 0 8px;
    border-radius: 4px;
}

.ancho-speed-menu {
    position: absolute;
    bottom: 44px;
    right: 50%;
    transform: translateX(50%);
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px;
    display: none;
    flex-direction: column;
    min-width: 70px;
    z-index: 15;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.ancho-speed-menu.show {
    display: flex;
}

.ancho-speed-item {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ancho-speed-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.ancho-speed-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .ancho-volume-slider {
        width: 0;
        opacity: 0;
        pointer-events: none;
    }
    
    .ancho-volume-container:hover .ancho-volume-slider {
        width: 50px;
        opacity: 1;
        pointer-events: auto;
    }
}
