body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: black;
    cursor: none; /* Hide cursor for kiosk mode */
}

#player {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.slide-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-container.active {
    opacity: 1;
    z-index: 10;
}

img, video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Overlays */
.overlay {
    position: absolute;
    z-index: 100;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.clock {
    top: 20px;
    right: 30px;
    font-size: 3rem;
    font-weight: bold;
    display: none;
}

.ticker-container {
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    height: 60px;
    overflow: hidden;
    display: none;
    align-items: center;
}

.ticker-text {
    white-space: nowrap;
    font-size: 2rem;
    padding-left: 100%;
    animation: ticker-move linear infinite;
}

@keyframes ticker-move {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Fallback for backgrounds if needed */
.image-slide {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
