body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#main-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#zoom-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 500px;
}

#slider {
    width: 100%;
}

/* Back Button Styling */
.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(25, 25, 25, 0.7); /* Darker, sleek background */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px; /* Fully rounded */
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    backdrop-filter: blur(12px); /* Stronger blur effect */
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Elastic transition */
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05) translateY(-2px); /* Lift and grow */
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Add a subtle shadow on hover */
}

.back-button svg {
    transition: transform 0.2s ease-out;
}

.back-button:hover svg {
    transform: translateX(-4px); /* Arrow moves more on hover */
}
