body {
    background: #1a1a1a;
    color: white;
    font-family: sans-serif;
    margin: 0;
    overflow-x: hidden;
}

#directory-view {
    padding: 20px;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: #333;
    border: 4px solid transparent;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Highlighting for arrow key navigation */
.card.active {
    border-color: #00ffcc;
    transform: scale(1.05);
}

.card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
}

/* Player View Styling */
.hidden { display: none; }

#player-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
}

#back-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 10px 20px;
    background: #00ffcc;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

#web-frame {
    width: 100%;
    height: 100%;
}