* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, system-ui, sans-serif;
    background: #111;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    text-align: center;
    padding: 2rem;
}

h2 {
    font-weight: 400;
    font-size: 1.3rem;
}

.code-boxes {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.code-box {
    width: 4rem;
    height: 5rem;
    font-size: 2.5rem;
    text-align: center;
    background: #222;
    border: 2px solid #444;
    border-radius: 0.5rem;
    color: #fff;
    text-transform: uppercase;
    font-family: monospace;
}

.code-box:focus {
    border-color: #4a9eff;
    outline: none;
}

.code-char {
    width: 5rem;
    height: 6.5rem;
    font-size: 3.5rem;
    line-height: 6.5rem;
    background: #222;
    border: 2px solid #444;
    border-radius: 0.5rem;
    font-family: monospace;
    font-weight: bold;
}

.btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    background: #4a9eff;
    color: #fff;
    margin: 0.5rem;
}

.btn:hover { background: #3a8eef; }
.btn:disabled { background: #555; cursor: not-allowed; }

.url { font-family: monospace; color: #4a9eff; }

small a { color: #888; }
small a:hover { color: #4a9eff; }

.status {
    color: #888;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.credit { color: #555; font-size: 0.8rem; margin-top: 2rem; }
.credit a { color: #555; }
.credit a:hover { color: #4a9eff; }

#remoteVideo, #castVideo {
    max-width: 100%;
    max-height: 100vh;
    display: none;
}

#playbackBlockedOverlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    color: #fff;
    font-size: 1.3rem;
}

#castContainer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* client URL input */
.url-input {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background: #222;
    border: 2px solid #444;
    border-radius: 0.5rem;
    color: #fff;
    width: 20rem;
    max-width: 80vw;
}
.url-input:focus { border-color: #4a9eff; outline: none; }

/* transport controls */
#controls { margin-top: 1rem; }
.control-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}
.btn-sm { padding: 0.4rem 1rem; font-size: 2.4rem; line-height: 1; }
.seek-bar { width: 14rem; max-width: 60vw; }
.volume-bar { width: 6rem; }
.volume-label { color: #888; font-size: 0.85rem; }
.time-display { color: #aaa; font-size: 0.85rem; font-family: monospace; white-space: nowrap; }
