83 lines
1.4 KiB
CSS
83 lines
1.4 KiB
CSS
.floating-video-container {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.floating-video-mini {
|
|
width: 120px;
|
|
height: 180px;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 6px 20px rgba(0,0,0,0.35);
|
|
background: #000;
|
|
position: relative;
|
|
}
|
|
|
|
.floating-video-mini video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.expand-btn, .close-btn {
|
|
position: absolute;
|
|
background: rgba(0,0,0,0.6);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 50%;
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: 18px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.expand-btn { bottom: 8px; right: 44px; }
|
|
.close-btn { bottom: 8px; right: 8px; }
|
|
|
|
.expand-btn:hover, .close-btn:hover {
|
|
background: rgba(0,0,0,0.85);
|
|
transform: scale(1.15);
|
|
}
|
|
|
|
/* Модальное окно */
|
|
.video-modal {
|
|
display: none;
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0,0,0,0.92);
|
|
z-index: 10000;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.modal-content {
|
|
position: relative;
|
|
max-width: 96vw;
|
|
max-height: 96vh;
|
|
}
|
|
|
|
.modal-content video {
|
|
max-width: 100%;
|
|
max-height: 90vh;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.modal-close {
|
|
position: absolute;
|
|
top: -45px;
|
|
right: 0;
|
|
background: none;
|
|
border: none;
|
|
color: white;
|
|
font-size: 48px;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
} |