/* Контейнер для видео */
.video-container {
    position: fixed;
    z-index: 1000;
    transition: width 0.3s ease, height 0.3s ease;
}

/* Позиционирование виджета */
.video-container[data-widget-position="right-bottom"] {
    right: 30px;
    bottom: 30px;
}

.video-container[data-widget-position="left-bottom"] {
    left: 30px;
    bottom: 30px;
}

/* Стили для маленького видео */
.small-video {
    width: 122px;
    height: 177px;
    cursor: pointer;
    border-radius: 20px;
    border: 3px solid #85128d;
    object-fit: cover;
    transition: width 0.3s ease, height 0.3s ease, bottom 0.3s ease, left 0.3s ease, right 0.3s ease;
}

/* Стили для увеличенного видео */
.large-video {
    width: 310px;
    height: 548px;
    border-radius: 20px;
    border: 2px solid #85128d;
    object-fit: cover;
}

/* Контейнер для видео и кнопки */
.large-container {
    width: 310px;
    height: 560px;
}

/* Контейнер для маленького видео и кнопки закрытия */
.small-video-container {
    position: relative;
    width: 100px;
    height: 176px;
}

/* Стили для кнопки закрытия маленького видео */
.close-btn-small {
    position: absolute;
    top: 10px;
    right: -12px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    padding: 0px 1px 2px 1px;
}

/* Скрытая кнопка закрытия маленького видео */
.hide-close-btn-small {
    display: none;
}

/* Стили для кнопки закрытия большого видео */
.close-btn-large {
    position: absolute;
    top: 61px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    font-size: 21px;
    padding: 0px 0px 1px 0px;
}

.hide-close-btn {
    display: none;
}

/* Стили для таймлайна */
.timeline {
    display: none;
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 8px;
    z-index: 1001;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
}

.timeline::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.timeline::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #85128d;
    border-radius: 50%;
    cursor: pointer;
}

.show-timeline {
    display: block;
}

/* Стили для отображения времени */
.time-display {
    position: absolute;
    top: 34px;
    right: 15px;
    color: white;
    font-size: 14px;
    z-index: 1001;
    display: none;
}

.show-time-display {
    display: block;
}

/* Стили для кнопки "хочу такой виджет" */
.goto-button {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    padding: 10px 20px;
    background-color: #85128d;
    color: white !important;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.5s ease, box-shadow 0.3s ease;
    font-family: 'Roboto', sans-serif;
    opacity: 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.goto-button:hover {
    background-color: #9b1ca3;
    transform: translateX(-50%) translateY(-2px) scale(1.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.goto-button.show-button {
    display: inline-block;
    opacity: 1;
}

.goto-button.hide-button {
    display: none;
    opacity: 0;
}

/* Контейнер для элементов управления большого видео */
.large-video-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
}

.hide-controls {
    display: none;
}