/* Container for all Vimeo videos */
.vimeo-showcase-embeds {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Each video container */
.vimeo-video {
    display: none; /* Hide by default, JS will show the active video */
    position: relative;
    margin-bottom: 0 !important;
}

/* Make iframes responsive */
.vimeo-video iframe {
    width: 100%;
    height: 100%;
    max-height: 600px; /* optional max height */
}

/*#vimeo-next-video,
#vimeo-prev-video {
    margin-top: 15px;
    padding: 8px 20px;
    font-size: 16px;
    background-color: #1ab7ea;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}*/


.vimeo-next-video,
.vimeo-prev-video {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    gap: 20px;
    padding: 10px 22px;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5em;
    background: linear-gradient(135deg, #1ab7ea 0%, #129ccf 100%);
    border: none;
    border-radius: 999px; /* pill-shaped */
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
}

.vimeo-next-video:hover,
.vimeo-prev-video:hover {
    background: linear-gradient(135deg, #15a2d2 0%, #0d8bb8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.vimeo-next-video:active,
.vimeo-prev-video:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.vimeo-prev-video,
button.vimeo-next-video {
    width: 48%;
    max-width: 240px;
}
.vimeo-prev-video {
    background: linear-gradient(135deg, #7b7b7b 0%, #5e5e5e 100%);
    float: left;
}
button.vimeo-next-video {
    float: right;
}

.vimeo-prev-video:hover {
    background: linear-gradient(135deg, #6c6c6c 0%, #4e4e4e 100%);
}

@media (prefers-color-scheme: dark) {
    #vimeo-next-video,
    #vimeo-prev-video {
        box-shadow: none;
    }
}

/* Next button styling */
.vimeo-next-video {
    display: none;
}
.vimeo-next-video:hover {
    background-color: #129ccf;
}

.vimeo-video div {
    padding-top: 0 !important;
}

/* Make Vimeo iframe fill the viewport height */
.vimeo-video iframe {
    width: 100% !important;
    position: static !important;
    background-color: #fff;
}

/* Remove the aspect-ratio padding wrapper if you have one */
.vimeo-video div.fluid-width-video-wrapper {
    position: relative !important;
    padding-top: 0 !important;
    height: 600px !important;
}
#tve_editor.tve_shortcode_editor > .thrv_wrapper:first-of-type > .tve-cb {
    background-color: transparent !important;
}
div#tve_editor .tve-content-box-background {
    background-image: none !important;
}
.vimeo-video .vimeo-iframe-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    height: 600px;
}
.thrv_responsive_video.fof_video, .thrv_custom_html_shortcode.fof_video {
    box-shadow: none !important;
}
/*.vimeo-current-title {
    font-weight:600;
    text-align:center;
    flex:1;
    padding:0 10px;
    font-size: 21px;
    font-family: 'Poppins', sans-serif;
    margin-top: 20px;
}*/

/* Current video title */
.vimeo-current-title {
    font-weight: 600;
    text-align: center;
    font-size: 21px;
    font-family: 'Poppins', sans-serif;
    margin: 30px auto 0;
    display: block;
    color: #000;
}



.showcasePlaylist {
    width: 200px;
}


.showcasePlaylist {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  margin-bottom: 15px;
  padding: 10px 0;
}

.showcasePlaylist::-webkit-scrollbar {
  height: 6px;
}

.showcasePlaylist::-webkit-scrollbar {
  width: 6px;  /* vertical scrollbar width */
}

.showcasePlaylist::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 3px;
}

.showcasePlaylist::-webkit-scrollbar-track {
  background-color: #222;
  border-radius: 3px;
}
/* Narrow scrollbar */
.showcasePlaylist {
  scrollbar-width: thin;         /* auto, thin, none */
  scrollbar-color: #555 #222;   /* thumb color, track color */
}


.playlist-item {
  flex: 0 0 auto;
  text-align: center;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
}

.playlist-item.locked {
  opacity: 0.3;
  pointer-events: none;
}

.playlist-item.completed .thumb {
  border: 2px solid #4caf50;
}

.playlist-item.active .thumb {
  border: 2px solid #0073aa;
}

.playlist-item:hover:not(.locked) {
  opacity: 1;
}
.vimeo-video.disabled {
  pointer-events: none; /* Prevents clicking */
  opacity: 0.5;         /* Makes it semi-transparent */
  filter: grayscale(100%); /* Optional: desaturate for extra clarity */
  cursor: not-allowed;  /* Shows 'not allowed' cursor */
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.vimeo-video.disabled iframe {
  pointer-events: none; /* Prevent clicking inside iframe */
}

.vimeo-video:not(.disabled) {
  opacity: 1;
  filter: none;
  cursor: pointer;
}


.showcasePlaylist {
    width: 25%;
    max-height: 600px; /* adjust as needed */
    min-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px !important;
    align-content: flex-start;
    align-items: flex-start;
    box-sizing: border-box !important;
    background-color: #000000;
    border-radius: 10px;
}

.showcasePlaylist .video-thumbnail {
    width: 100%;
    cursor: pointer;
    transition: opacity 0.3s ease, filter 0.3s ease;
    border: 2px solid transparent;
}

.showcasePlaylist .video-thumbnail.disabled {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(100%);
    cursor: not-allowed;
}

.showcasePlaylist .video-thumbnail.active {
    border-color: #0073e6; /* highlight current video */
}
.playlist-thumb {
    width: 96px;
    margin: 0 auto;
    /*border-radius: 2px !important;
    overflow: hidden;*/
}

.playlist-item.locked {
  opacity: 0.5;
  filter: grayscale(100%);
  cursor: not-allowed;
}

.playlist-item.watched.completed_video,
.playlist-item.watched.completed_video.active {
    border: 1px solid #55ae15;
    transition: transform 0.2s ease;
}
.playlist-item.watched,
.playlist-item.watched.in-progress {
    border: 1px solid #3790b5;
}
.playlist-item.active {
    border: 1px solid #00b5ff;
    background-color: #ffffff00;
}

.playlist-item:not(.locked):hover,
.playlist-item.active {
  transform: scale(1.03);
}
.playlist-item p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    width: 100%;
    margin: 0 !important;
}
/*.playlist-item.active .playlist-thumb {
    border: 5px solid #00B5FF;
}*/
.playlist-thumb {
    min-width: 96px !important;
    max-width: 96px !important;
    box-sizing: border-box !important;
}
.playlist-item {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    align-content: center;
    gap: 12px;
    position: relative;
    width: 100%;
    overflow: visible;
    background-color: #1e1e1e;
    padding: 8px;
    border-top-left-radius: 8px;
    border: 1px solid #c7d4dd24;
    box-sizing: border-box !important;
}

.playlist-item.locked .playlist-thumb img {
    filter: grayscale(100%) brightness(0.7); /* greyscale + slightly darker */
    opacity: 0.6;
}

.playlist-item.watched .playlist-thumb img {
    filter: none;
    opacity: 1;
}
.video-details {
    width: calc(100% - 102px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
}
.vimeo-container {
    background-color: #c7d4dd;
    padding: 30px;
    border-radius: 10px;
}
p#showcase_progress_count {
    font-family: 'Poppins', sans-serif;
    color: #2f4050;
}

.playlist-item.completed_video::before {
    content: '\f058';
    font-weight: bold;
    font-family: 'Font Awesome 5 FREE';
    color: #55AE15;
    border: 3px solid #000000;
    background-color: #000;
    border-radius: 100%;
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: inline-block;
    line-height: 20px;
    position: absolute;
    left: -5px;
    top: -3px;
    z-index: 999;
}
.playlist-item.completed_video.active:not(.in-progress)::before {
    color: #000 !important;
    background-color: #8BC34A !important;
}
.playlist-item.watched.in-progress::before,
.playlist-item.watched:not(.completed_video)::before {
    content: '\f110';
    font-weight: bold;
    font-family: 'Font Awesome 5 FREE';
    color: #3790b5;
    border: 3px solid #000000;
    background-color: #000;
    border-radius: 100%;
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: inline-block;
    line-height: 20px;
    position: absolute;
    left: -5px;
    top: -3px;
    z-index: 999;
}

.playlist-item.active::before,
.playlist-item.watched.in-progress.active::before,
.playlist-item.watched.active:not(.completed_video)::before {
    content: '\f04b';
    font-weight: bold;
    font-family: 'Font Awesome 5 FREE';
    color: #000000;
    background-color: #00b5ff;
    padding: 3px;
    box-sizing: border-box !important;
    border-radius: 100%;
    font-size: 10px;
    width: 26px;
    height: 26px;
    display: inline-block;
    line-height: 14px;
    position: absolute;
    left: -5px;
    top: -3px;
    text-align: center;
    border: 3px solid #000;
    z-index: 999;
}
/*.playlist-thumb:before {
    background-color: 00b5ff;
    content: ' ';
    width: 21%;
    height: 4px;
    display: block;
    top: 100%;
    position: absolute;
}*/

.playlist-thumb {
    position: relative;
    background-color: #ffffff82 !important;
    padding-bottom: 4px;
    overflow: visible;
    --progress: 0%; /* default value */
}

.playlist-thumb::before {
    content: "";
    position: absolute;
    bottom: 0; /* place it at the bottom of the thumbnail */
    left: 0;
    width: var(--progress); /* controlled by JS */
    height: 4px;
    background-color: #00b5ff; /* blue color */
    transition: width 0.3s ease;
    z-index: 2;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
.playlist-thumb::after {
    content: ' ';
    height: 2px;
    width: 100%;
    display: block;
    background-color: #000;
}

/*.playlist-item:not(.locked):not(.active):not(.watched)::before {
    content: '\f06e';
    font-weight: bold;
    font-family: 'Font Awesome 5 FREE';
    color: #000000;
    padding: 1px;
    box-sizing: border-box !important;
    border-radius: 100%;
    font-size: 16px;
    width: 26px;
    height: 26px;
    border: 3px solid #000;
    display: inline-block;
    line-height: 18px;
    position: absolute;
    left: -5px;
    top: -3px;
    text-align: left;
    background-color: #ffffff;
}*/
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.playlist-item.active p {
    color: #00c4ff;
    font-weight: bold;
}
.playlist-item.active.completed_video:not(.in-progress) p {
    color: #8BC34A;
}

.playlist-item {
  position: relative;
}

/*.playlist-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: #4caf50; 
  width: 0%;
  transition: width 0.3s ease;
  z-index: 2;
}*/

/*.playlist-item .playlist-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 4px;
}*/

body.is-mobile .showcasePlaylist {
    width: 100%;
}
body.is-mobile .vimeo-columns {
    display: flex !important;
    flex-direction: column-reverse;
    justify-content: flex-end;
}
body.is-mobile .vimeo-video div.fluid-width-video-wrapper,
body.is-mobile .vimeo-video .vimeo-iframe-wrapper {
    height: auto !important;
}
p.vimeo-current-title::before {
    content: 'Currently watching: ';
    color: #324251;
    margin-right: 5px;
}