/* =========================================================
   WINCORHQ ROOMS
   ========================================================= */

/* CREATE / JOIN */

.window .create-form,
.window .join-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 320px;
    margin: 10px 0 20px;
}

.window .join-form label {
    font-size: 13px;
}

.window .code-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    letter-spacing: 4px;
    background: #3e4637;
}

.window .create-button,
.window .join-button {
    width: 100%;
}

/* BUTTON NORMALIZATION */

.window button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 36px;
    padding: 8px 14px;
    line-height: 1.2;
    text-align: center;
}

/* STATION SELECTION */

.window .room-stations {
    display: grid;
    grid-template-columns: repeat(2, 180px);
    gap: 10px;
    margin: 12px 0;
}

.window .room-stations form {
    width: 180px;
    margin: 0;
    padding: 0;
}

.window .room-stations button {
    width: 180px;
    min-height: 42px;
}

.window .room-stations button.selected {
    background: #958831;
}

/* ROOM ACTIONS */

.window .room-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.window .room-actions form {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.window .room-actions button {
    width: auto;
    min-width: 110px;
    min-height: 38px;
    white-space: nowrap;
}

/* VOTING PROGRESS */

.window .vote-bar {
    height: 10px;
    background: #46503f;
    margin: 4px 0;
}

.window .vote-bar-fill {
    height: 10px;
    background: #c4b550;
}

/* MEMBERS */

.window .room-you {
    color: #c4b550;
}

/* MISC */

.window .hint {
    font-size: 13px;
    opacity: .8;
    margin-top: 8px;
}

/* =========================================================
   ROOM RADIO PLAYER
   ========================================================= */

.window .room-player {
    margin-top: 20px;
    padding: 15px;
}

.room-player-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.room-player-heading h3 {
    margin: 0;
}

#room-player-status {
    color: #c4b550;
    font-size: 12px;
    font-weight: bold;
}

.room-player-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

#room-art-placeholder[hidden],
#room-artwork[hidden],
#room-enable-audio[hidden] {
    display: none;
}

/* Track information */

.room-player-info {
    flex: 1;
    min-width: 0;
}

.room-station-name {
    color: #c4b550;
    font-size: 19px;
    font-weight: bold;
    margin-bottom: 12px;
}

.room-track-label {
    color: #899281;
    font-size: 11px;
    margin-bottom: 4px;
}

.room-track-title {
    font-size: 16px;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.room-track-artist {
    color: #899281;
    font-size: 13px;
    margin-top: 3px;
}

/* Volume */

.room-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.room-volume label {
    font-size: 12px;
    white-space: nowrap;
}

.room-volume input {
    width: 160px;
    accent-color: #c4b550;
}

#room-volume-value {
    font-size: 12px;
    color: #899281;
    min-width: 35px;
}

/* Autoplay fallback */

#room-enable-audio {
    margin-top: 12px;
}

/* =========================================================
   END
   ========================================================= */

/* nope */

#room-player-status {
    display: none !important;
}

.room-player-art {
    width: 168px;
    height: 168px;
    flex-shrink: 0;
    position: relative;
}

.room-player-art img,
#room-artwork {
    width: 168px;
    height: 168px;
    object-fit: cover;
    display: block;
}

#room-art-placeholder {
    width: 168px;
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}
