body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden; /* Hide scrollbars */
}

#player-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black; /* Ensures a consistent background */
}

/* This new rule correctly targets the player element */
#player-container > div,
#player-container > iframe,
#player-container > video {
    width: 100%;
    height: auto;
    max-height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

#ui-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Hide next and previous buttons */
#next-button, #prev-button {
    display: none;
}

/* Add styles for the random video button */
#random-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

#random-button:hover {
    background-color: #0056b3;
}

/* Add styles for media scan button */
#media-scan-button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#media-scan-button:hover {
    background-color: #0056b3;
}

#status-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 5px;
}

#controls {
    display: flex;
    gap: 10px;
}

#banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    z-index: 2;
}

#banner p {
    margin: 0;
}

#banner a {
    color: #fff;
    text-decoration: underline;
}

#scan-container {
    display: none; /* Hide the scan button visually */
}
