
iframe {
    overflow: hidden;
    border: none;
}

.subtitle-track {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.subtitle-track .choose-file-btn {
    flex-shrink: 0;
}

.subtitle-track .file-name {
    flex: 2;
    color: #666;
}

.subtitle-track input[type="text"] {
    flex: 2;
}

.subtitle-track .remove-subtitle-track {
    flex-shrink: 0;
}

#fgroup_id_subtitle_group > .form-inline > fieldset > div {
    flex-direction: column;
}

#fgroup_id_subtitle_group > .form-inline > fieldset > div > .form-group {
    align-self: baseline;
    padding: 1px;
}

/* Chapter marker style */
.vjs-chapter-marker {
    position: absolute;
/*    top: 0;*/
    width: 6px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.8); /* Light color to blend with default skin */
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effect */
    z-index: 1;
}

/* Hover effect for the chapter marker */
.vjs-chapter-marker:hover {
    background-color: #ffcc00; /* Bright yellow for hover effect */
    transform: scale(1.3); /* Slightly enlarges the marker */
}

/* Tooltip animation for chapter titles */
.vjs-chapter-tooltip {
    position: absolute;
    top: -25px; /* Place above the marker */
    left: -50%; /* Center horizontally */
    width: max-content;
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show the tooltip on hover */
.vjs-chapter-marker:hover .vjs-chapter-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.vjs-progress-control .vjs-tooltip {
    display: none !important;
}

