.theater-wrapper {
    /*background-color: #16213e;*/
    /*border-radius: 12px;*/
    /*box-shadow: 0 10px 30px rgba(0,0,0,0.5);*/
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /*border: 2px solid #0f3460;*/
}

.theater-board {
    position: relative;
    transform-origin: center;
}

.seat-grid {
    position: absolute;
    display: grid;
}

/* Based on the JSON logic (width 501, 6 cols, 10px gap, 267 left start),
   the exact native width of a seat should be exactly 30px */
.seat {
    width: 30px;
    height: 30px;
    background-color: rgba(72, 72, 78, .5);
    border-radius: 8px 8px 4px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.4);
    transition: transform 0.1s ease, background-color 0.2s ease;
    position: relative;
}

.seat.reserved {
    background-color: #de6363;
}

.seat.selected {
    background-color: #21c252;
}

.seat::after {
    /* Armrests simulation */
    content: '';
    position: absolute;
    bottom: 2px;
    left: -2px;
    right: -2px;
    height: 12px;
    border-radius: 4px;
    border-left: 3px solid rgba(0,0,0,0.15);
    border-right: 3px solid rgba(0,0,0,0.15);
    pointer-events: none;
}

.seat:hover:not(.reserved) {
    transform: scale(1.2);
    z-index: 10;
}

.seat-label {
    font-size: 10px;
    font-weight: bold;
    color: white;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Categories */
/*.seat-grid.standard .seat { background-color: #0f3460; }
.seat-grid.standard .seat:hover { background-color: #4361ee; }

.seat-grid.vip .seat { background-color: #f7b731; color: #000; }
.seat-grid.vip .seat-label { color: #000; text-shadow: none; }*/

/* Demo UI */
/*.controls { margin-bottom: 20px; }*/
.layout-screen {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 10px;
    background: linear-gradient(to bottom, #fff, transparent);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    box-shadow: 0 5px 20px rgba(255,255,255,0.2);
}