body
{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: var(--theme-bg);
    color: white;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#main-input
{
    width: 60%;
    margin: auto;
    display: flex;
    height: 50px; 
    border-radius: 25px;
    text-align: center;
    background-color: #aaa;
    overflow: hidden;
}

#url
{
    flex-grow: 1;
    border: none;
    padding: 0 15px;
    height: 100%;
    font-size: 16pt;
    background-color: transparent;
    color: black;
    outline: none;
    text-align: center;
}

@media only screen and (max-width: 900px)
{
    #main-input
    {
        width: 80%;
    }
}

@media only screen and (max-width: 600px)
{
    #main-input
    {
        width: 90%;
    }
}

#submit
{
    width: 50px;
    height: 100%;
    border: none;
    background-color: transparent;
    color: black;
    font-size: 1.5em;
    cursor: pointer;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#submit:hover {
    background-color: #999;
}


#home-button
{
    padding: 10px 20px;
    background-color: var(--theme-bg);
    color: #555;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#home-button:hover
{
    color: #aaa;
}

.spinner-parent
{
    z-index: 2;
    left: 50% !important;
    top: 50% !important;
    overflow: visible !important;
    font-size: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.spinner-parent>.spinner-body
{
    z-index: 2;
    width: 7vw;
    height: 7vw;
    padding: 0;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    background: 
        radial-gradient(farthest-side,#F4F4F4 94%,#0000) top/0.8vw 0.8vw no-repeat,
        conic-gradient(#0000 30%,#F4F4F4);
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 0.8vw),#000 0);
    mask: radial-gradient(farthest-side,#0000 calc(100% - 0.8vw),#000 0);
    animation:s3 1s infinite linear;
    
    transition-duration: 1s;
    transform: translateX(-50%) translateY(-50%);
}

@keyframes s3
{ 
    100%{transform: translateX(-50%) translateY(-50%) rotate(1turn)}
}


.error-icon
{
    mask: none !important;
    -webkit-mask: none !important;
    background: transparent !important;
    font-size: 100pt !important;
    border-radius: 0 !important;
    padding: 0 !important;
    height: fit-content !important;
    color: red !important;
    animation: none !important;
}


#videoPlayer
{
    border-radius: 1.7vw;
    width: 60vw;
    height: 34vw;
    max-width: 90vw;
    max-height: 90vh;
    border: 0.4vw solid black;
    box-shadow: 0 0 2vw rgba(0, 0, 0, 0.7);
    background-color: black;
    z-index: 1;
    transition: all 0s cubic-bezier(0.77, 0, 0.175, 1);
}


#videoPlayer:not(.vjs-fullscreen):not(.iframe) video
{
    object-fit: cover !important;
}


.vjs-fullscreen
{
    border: none !important;
    border-radius: 0 !important;
}


div.vjs-poster
{
    pointer-events: none;
    scale: 1.01;
}

.vjs-poster>img
{
    object-fit: cover !important;
    filter: brightness(0.5) grayscale(0.8) blur(2px);
    transition-duration: 0.5s;
}


.loaded-img
{
    filter: none !important;
}


#video
{
    filter: brightness(0);
}

video
{
    display: block !important;
    transition: scale .1s ease-out;
    outline: none;
}


.video-js
{
    padding: 0 !important;
    overflow: hidden;
}

.display-flex
{
    display: flex !important;
}

.video-js.download-menu-open .vjs-control-bar
{
    opacity: 1 !important;
}

.seg
{
    cursor: help;
    height: 100%;
    position: absolute;
}

#skipsegment
{
    padding: 10px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 50vh;
    background-color: #222;
    color: white;
    transition-duration: 0.5s;
    cursor: pointer;
    position: absolute;
    bottom: 70px;
    right: 1vw;
    font-size: 12pt;
    transform: translate(120%, 0);
    opacity: 0;
}

/* Expandable menu styles */
#expandable-menu-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 100;
}

.expand-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--theme-bg-light);
    color: #555;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier( 0.86, 0, 0.07, 1 );
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.expand-button:hover {
    color: #aaa;
    background-color: #333;
}

.expand-button.expanded {
    transform: rotate(180deg);
}

.expandable-content {
    position: absolute;
    bottom: 50px;
    right: 0;
    background-color: var(--theme-bg-light);
    border-radius: 8px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s cubic-bezier( 0.86, 0, 0.07, 1 );
    width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.expandable-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expandable-content li {
    padding: 12px 15px;
    color: #888;
    border-bottom: 1px solid #444;
    cursor: default;
    transition: background-color 0.2s;
}

.expandable-content li:last-child {
    border-bottom: none;
}

.expandable-content li:hover {
    background-color: #333;
}

.expandable-content a {
    color: inherit;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.expandable-content i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}


.time_disp {
    font-size: 10pt;
    font-family: 'Courier New', Courier, monospace;
}

/* Time selection menu styles */
.time-selection-menu {
    position: absolute;
    bottom: 100%; /* Appear above the download menu */
    right: 50%;
    transform: translateX(50%);
    background-color: #333;
    border-radius: 7px;
    color: #eee;
    text-align: center;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    padding: 10px;
    gap: 5px; /* Spacing between items */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.86, 0, 0.07, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.time-selection-menu.hidden {
    display: none !important; /* Hide when not toggled */
}

.time-selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
}

.time-button {
    background-color: #444;
    color: #eee;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.time-button:hover {
    background-color: #555;
}

.time-button i {
    margin-right: 5px; /* Add space between icon and text */
}



.menu-button {
  cursor: pointer;
  padding: 10px !important;
  border-radius: 7px;
}
.menu-button:hover {
  background-color: #555;
}


.vjs-setting-menu>button {
    background: none;
    border: none;
    color: #eee;
    padding: 8px 0;
    cursor: pointer;
    text-align: center;
    width: 100%;
    display: block;
    font-size: 1.2em !important;
    font-weight: bold;
}


.vjs-setting-menu {
    position: absolute;
    bottom: 110%;
    right: 50%;
    transform: translateX(50%);
    background-color: #333;
    border-radius: 7px;
    color: #eee;
    text-align: center;
    display: none;
    flex-direction: column;
    width: 100px;
    max-height: 50vh;
    overflow: auto;
    transition: all .2s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10;
}

.vjs-menu-option-selected {
    background-color: #555 !important;
}

.vjs-button.vjs-active {
    color: var(--vjs-theme-custom--primary) !important;
}

.vjs-setting-menu>button:hover {
    background-color: #666 !important;
}

.vjs-layout-tiny .vjs-picture-in-picture-control
{
    display: none;
}

.vjs-title-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    z-index: 2;
    background: none;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-title-bar {
    opacity: 0;
}

.vjs-title-bar-text {
    color: white;
    font-size: 1.5em;
    margin: 0;
    padding: 0 2px;
    text-shadow: .02em .02em .1em rgba(0, 0, 0, 0.7), .02em -.02em .1em rgba(0, 0, 0, 0.7),-.02em .02em .1em rgba(0, 0, 0, 0.7), -.02em -.02em .1em rgba(0, 0, 0, 0.7);
    pointer-events: all !important;
    width: fit-content;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vjs-uploader-text {
    color: white;
    font-size: 1.2em;
    margin-top: 5px;
    padding: 0 2px;
    text-shadow: .02em .02em .1em rgba(0, 0, 0, 0.7), .02em -.02em .1em rgba(0, 0, 0, 0.7),-.02em .02em .1em rgba(0, 0, 0, 0.7), -.02em -.02em .1em rgba(0, 0, 0, 0.7);
    pointer-events: all !important;
    width: fit-content;
}

.vjs-text-track-display > div
{
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.vjs-text-track-cue
{
    position: initial !important;
}

.vjs-text-track-cue > div
{
    background-color: transparent !important;
    text-shadow: 1px 1px .1em rgba(0, 0, 0, 0.9), 1px -1px .1em rgba(0, 0, 0, 0.9),-1px 1px .1em rgba(0, 0, 0, 0.9), -1px -1px .1em rgba(0, 0, 0, 0.9);
}


.vjs-playlist-container
{
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out;
    box-sizing: border-box;
}

.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-playlist-container
{
    opacity: 0;
}

.vjs-playlist-items
{
    position: relative;
    list-style: none;
    padding: 0;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    pointer-events: none;
    margin-top: 10px !important;
    top: -100vh;
    transition: top 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.vjs-playlist-container.active:not(.vjs-has-started.vjs-user-inactive.vjs-playing) .vjs-playlist-items
{
    top: 0;
    pointer-events: all;
}

.vjs-playlist-items::-webkit-scrollbar
{
    height: 0px;
}

.vjs-playlist-item
{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s;
    cursor: pointer;
    flex-shrink: 0;
    width: 160px;
    margin-left: 10px;
    margin-right: 10px;
}

.vjs-playlist-item:hover
{
    background-color: rgba(0, 0, 0, 0.5);
}

.vjs-playlist-item a
{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.vjs-playlist-thumbnail
{
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.vjs-playlist-info
{
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    width: 100%;
}

.vjs-playlist-title
{
    font-size: 1.3em;
    font-weight: bold;
    color: white;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
    line-height: 1.2em;
    max-height: 2.4em;
    margin-bottom: 3px;
}

.vjs-playlist-uploader
{
    font-size: 1em;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    padding: 0.7em;
}

.vjs-playlist-duration
{
    font-size: 1.5em;
    color: #fff;
    position: relative;
    align-self: end;
    margin-top: auto;
    top: -1.7em;
    right: .2em;
    height: 0;
    overflow: visible;
    text-shadow: 2px 2px 4px rgb(0 0 0), -2px -2px 4px rgb(0 0 0);
}

.vjs-playlist-item.vjs-current-video
{
    background-color: color-mix(in srgb, var(--vjs-theme-custom--primary) 50%, black);
}

.vjs-playlist-toggle-button
{
    position: absolute;
    pointer-events: all;
    top: 10px;
    right: 10px;
    width: 3em;
    height: 3em;
    border-radius: 50%;
    background-color: var(--theme-bg-light);
    text-shadow: .02em .02em .1em rgba(0, 0, 0, 0.7), .02em -.02em .1em rgba(0, 0, 0, 0.7),-.02em .02em .1em rgba(0, 0, 0, 0.7), -.02em -.02em .1em rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.86, 0, 0.07, 1), background-color ease-in-out 1s;
    z-index: 10;
    font-size: 1.5em !important;
}

.vjs-marker
{
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    width: 2px;
    height: calc(100% + 6px);
    top: -3px;
    z-index: 1;
    margin-left: -1px;
    border: 3px solid transparent;
    background-clip: padding-box;
    padding: 1px;
}


.vis-container
{
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: blur(5px) contrast(50);
    mix-blend-mode: screen;
}
.vis-container>div
{
    position: relative;
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background: #fff;
}
.vis-container>div>span
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    border-top: 20px solid #fff;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    transform-origin: top left;
}
.vis-overlay
{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}
.vis-overlay>div
{
    position: absolute;
    width: 125px;
    height: 125px;
    background: black;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}
.vis-overlay>div>img
{
    width: 60%;
}


@media only screen and (max-width: 900px)
{
    .vjs-playlist-item
    {
        width: 100px;
        margin-left: 5px;
        margin-right: 5px;
    }
    .vjs-playlist-thumbnail
    {
        width: 100px;
        height: 60px;
    }
    .vjs-playlist-toggle-button
    {
        top: 5px;
        right: 5px;
    }
}

@media only screen and (max-width: 1300px)
{
    .vjs-playlist-item
    {
        width: 130px;
        margin-left: 5px;
        margin-right: 5px;
    }
    .vjs-playlist-thumbnail
    {
        width: 130px;
        height: 70px;
    }
}
