:root {
    --bg-color: #121417;
    --fg-color: #e6e6e6;
    --accent-color: #4a90e2;
    --accent-hover: #3a78c2;
    --input-bg: #1e1f24;
    --error-color: #ff4d4f;
}


body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                 Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: var(--fg-color);
}

.videoContainer {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    position: relative;
}

video {
    max-width: 100%;
    max-height: 80%;
    z-index: 0;
}

#playButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    font-size: 20px;
    background: rgba(162, 89, 255, 0.8); /* fallback for accent */
    color: #fff;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    z-index: 1;
    transition: background 0.3s;
}

#playButton:hover {
    background: rgba(162, 89, 255, 1);
}

#loadingSpinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 16px solid #1c1c1c;
    border-top: 16px solid var(--accent-color);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    display: none;
    z-index: 2;
}

#video-name {
    position: absolute;
    color: var(--accent-color);
    font-weight: bold;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 6px;
}

.switcher-holder {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
}

.page-style {
    display: none;
}

.current-page {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    color: var(--fg-color);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: 600;
    color: var(--accent-color);
}

input[type="file"],
input[type="password"] {
    background-color: var(--input-bg);
    color: var(--fg-color);
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

input[type="submit"] {
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: var(--accent-hover);
}

button {
    background-color: var(--accent-color);
    color: white;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.25s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

button:active {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.skipper-holder {
    position: absolute;
    bottom: 1px;
    width: 100%;
    display: none;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.skipper-holder button {
    margin: 4px;
}
#page-3 {
    /* overflow: scroll; */
    width: 80%;
    height: 100%;
}
#video-list {
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.list-video {
    cursor: pointer;
    width: fit-content;
}
.active {
    background-color: rgba(74, 144, 226, 0.15); 
    color: var(--accent-color) !important;
    font-weight: bold;
    border-radius: 6px;
    padding: 6px 10px;
}

.active::before {
    content: "Playing: ";
    font-style: italic;
    color: var(--accent-hover);
}
