#visaic-nano {
    /* width: 640px; */
    width: fit-content;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); /* Nicer shadow */
    border-radius: 16px; /* More rounded corners */
    overflow: hidden;    /* Ensure corners are clipped */
    border: 2px solid #797979; /* Add a nice subtle border */
}
/* Adjust floating player styles */
#visaic-nano .floating-player {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 320px !important;
    height: 180px !important;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); /* Nicer shadow */
    border-radius: 16px; /* More rounded corners */
    border: 2px solid #797979; /* Add a nice subtle border */
    overflow: hidden;
}
#visaic-nano .floating-player.video-js.vjs-16-9{
    padding: inherit;
}

/* Reset styles when not floating */
#visaic-nano .theoplayer-container {
    width: 100%;
}
#visaic-nano .vjs-icon-cog{
    display: none !important;
}

/* Update navigation buttons to use icons */
#visaic-nano .vjs-user-active .video-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px; /* Adjust width as needed */
    height: 30%;
    background-color: rgba(255, 255, 255, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1;
    display: none;
    align-items: center;
    justify-content: center;
}

/* #visaic-nano .theoplayer-skin .vjs-big-play-button svg {
    color: rgba(255, 255, 255, 0.9);
} */

#visaic-nano .vjs-user-active .video-nav-btn {
    display: flex;
}

#visaic-nano .video-nav-btn {
    display: none;
    transition: opacity 3s ease, visibility 3s ease;
    opacity: 0;
    visibility: hidden;
}

/* #visaic-nano .video-js.vjs-controls-enabled .video-nav-btn {
    display: flex;
    opacity: 1;
    visibility: visible;
} */

#visaic-nano .video-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

#visaic-nano .next-btn {
    right: 0;
    background-image: url("../icons/next-icon.svg"); /* Use a white-colored SVG icon */
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

#visaic-nano .prev-btn {
    left: 0;
    background-image: url("../icons/prev-icon.svg");
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

#visaic-nano .vjs-playing .vjs-big-play-button {
    display: none !important;
}

/* #visaic-nano .theoplayer-skin .vjs-play-control, */

#visaic-nano .theoplayer-skin .vjs-time-control,
#visaic-nano .theoplayer-skin .vjs-fullscreen-control,
#visaic-nano .theoplayer-skin .vjs-progress-holder{
    display: none;
}

#visaic-nano .floating-close-btn{
    z-index: 1001;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 2px;
    right: 2px;
    font-size: 20px;
}

#visaic-nano .theoplayer-skin .theoplayer-ad-skip,
#visaic-nano .theoplayer-skin .theoplayer-ad-overlay-comp{
    font-family: 11px;
}

#visaic-nano .vjs-user-inactive .video-nav-btn.prev-btn,
#visaic-nano .vjs-user-inactive .video-nav-btn.next-btn{
    display: none !important;
}

.nano-reel-name-overlay {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 56px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 4px 12px;
    border-radius: 24px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
    display: block;
    width: max-content;
    max-width: 80%;
    text-align: center;
    text-transform: capitalize; /* Titlelize the text */
}

/* When floating, make font smaller and closer to bottom */
#visaic-nano .floating-player .nano-reel-name-overlay {
    font-size: 0.65em;
    bottom: 32px;
    padding: 2px 8px;
}

/* Ensure overlay is absolutely positioned inside the video.js player container */
.videojs-container {
    position: relative;
}

.video-js .nano-reel-name-overlay {
    z-index: 2000;
}

@media (max-width: 600px) {
    .nano-reel-name-overlay {
        font-size: 1em;
        padding: 8px 16px;
        bottom: 48px; /* Adjust for smaller screens */
    }
    #visaic-nano .floating-player .nano-reel-name-overlay {
        font-size: 0.8em;
        bottom: 38px;
        padding: 2px 6px;
    }
}
@media (max-width: 768px) {
    #visaic-nano .theoplayer-container {
        font-size: 11px;
    }
}

#visaic-nano .video-js .vjs-big-play-button {
    font-size: 3em;
    line-height: 1.5em;
    height: 1.63332em;
    width: 3em;
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 0;
    margin-top: -0.81666em;
    margin-left: -1.5em;
    cursor: pointer;
    opacity: 1;
    border: 0.06666em solid #fff;
    background-color: #2B333F;
    background-color: rgba(43, 51, 63, 0.7);
    border-radius: 0.3em;
    transition: all 0.4s;
}

#visaic-nano .video-js button{
    font-size: 10px;
}