/* Multiplayer room additions on top of player.css */

.room-code-panel {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.room-code-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
}

.room-code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    line-height: 1;
}

.room-code-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.copy-link-button {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.copy-link-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.conn-status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.conn-status.offline {
    color: #ffc107;
    opacity: 1;
}

.player-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.player-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 0.75rem;
    align-items: center;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
}

.player-row.me {
    border-left-color: #38b7ff;
}

.player-row.buzzing {
    background: rgba(220, 53, 69, 0.35);
    border-left-color: #dc3545;
}

.player-row.offline {
    opacity: 0.5;
}

.player-row.locked .player-name {
    text-decoration: line-through;
}

.player-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-tags {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.player-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.player-tag.host {
    background: #38b7ff;
    color: #0b2a3a;
}

.player-tag.buzz {
    background: #dc3545;
    color: #fff;
}

.player-total {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.1rem;
}

.player-breakdown {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    opacity: 0.75;
    font-variant-numeric: tabular-nums;
}

.tossup-number {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-left: 0.5rem;
    align-self: center;
}

.status-banner {
    margin: 0.75rem 0 0;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: rgba(56, 183, 255, 0.15);
    font-weight: 600;
}

.status-banner.buzzed {
    background: rgba(220, 53, 69, 0.15);
}

.results-feed {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 14rem;
    overflow-y: auto;
}

.results-feed li {
    font-size: 0.9rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.results-feed .accept { border-left: 3px solid #28a745; }
.results-feed .reject { border-left: 3px solid #dc3545; }
.results-feed .prompt { border-left: 3px solid #ffc107; }
.results-feed .dead { border-left: 3px solid #6c757d; }

.results-feed .who { font-weight: 600; }
.results-feed .points { float: right; font-variant-numeric: tabular-nums; }

.name-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.name-overlay form {
    background: #fff;
    color: #222;
    padding: 1.5rem;
    border-radius: 8px;
    width: min(90vw, 360px);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.name-overlay input {
    font-size: 1.1rem;
    padding: 0.5rem 0.75rem;
}

.enable-audio-button {
    margin-top: 0.5rem;
    background: #ffc107;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.settings-input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.host-only-note {
    font-size: 0.8rem;
    opacity: 0.75;
    margin: 0 0 0.5rem;
}
