Integra bitrate adattivo e telemetria, con il mute audio come icona nella toolbar della regia. Co-authored-by: Cursor <cursoragent@cursor.com>
508 lines
9.1 KiB
CSS
508 lines
9.1 KiB
CSS
/* Pagina regia mobile — controllo punteggio da browser */
|
|
:root {
|
|
--regia-bg: #0a0a0e;
|
|
--regia-surface: #14141c;
|
|
--regia-red: #e53935;
|
|
--regia-yellow: #f9a825;
|
|
--regia-green: #43a047;
|
|
--regia-orange: #fb8c00;
|
|
--regia-text: #f5f5f5;
|
|
--regia-muted: #9ca3af;
|
|
--regia-safe-bottom: env(safe-area-inset-bottom, 0px);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
.regia-body {
|
|
margin: 0;
|
|
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
background: var(--regia-bg);
|
|
color: var(--regia-text);
|
|
min-height: 100dvh;
|
|
}
|
|
|
|
.regia-page {
|
|
max-width: 480px;
|
|
margin: 0 auto;
|
|
padding: 8px 12px calc(12px + var(--regia-safe-bottom));
|
|
}
|
|
|
|
.regia-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.regia-header__text {
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.regia-header h1 {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.regia-header p {
|
|
margin: 2px 0 0;
|
|
font-size: 0.78rem;
|
|
color: var(--regia-muted);
|
|
}
|
|
|
|
.regia-badge {
|
|
display: inline-block;
|
|
margin-top: 0;
|
|
padding: 3px 8px;
|
|
border-radius: 999px;
|
|
font-size: 0.65rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.regia-badge--live { background: #2e7d32; color: #fff; }
|
|
.regia-badge--wait { background: #444; color: #ddd; }
|
|
.regia-badge--ended { background: #374151; color: #ddd; }
|
|
|
|
.regia-toolbar {
|
|
margin: 8px 0 6px;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.regia-tool-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 3px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.regia-tool-group__label {
|
|
font-size: 0.62rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: var(--regia-muted);
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.regia-tool-group__btns {
|
|
display: flex;
|
|
gap: 3px;
|
|
}
|
|
|
|
.regia-tool-group--stream {
|
|
margin-left: auto;
|
|
padding-left: 8px;
|
|
border-left: 1px solid #333;
|
|
}
|
|
|
|
.regia-icon-btn {
|
|
flex: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 1px solid #333;
|
|
border-radius: 10px;
|
|
background: #16161f;
|
|
color: var(--regia-text);
|
|
cursor: pointer;
|
|
touch-action: manipulation;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.regia-icon-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.regia-icon-btn svg.icon-fill {
|
|
fill: currentColor;
|
|
}
|
|
|
|
.regia-icon-btn svg.icon-outline {
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.regia-icon-btn .icon-eye-off,
|
|
.regia-icon-btn .icon-play,
|
|
.regia-icon-btn .icon-mic-off {
|
|
display: none;
|
|
}
|
|
|
|
.regia-icon-btn.is-off .icon-eye {
|
|
display: none;
|
|
}
|
|
|
|
.regia-icon-btn.is-off .icon-eye-off {
|
|
display: block;
|
|
}
|
|
|
|
.regia-icon-btn.is-paused .icon-pause {
|
|
display: none;
|
|
}
|
|
|
|
.regia-icon-btn.is-paused .icon-play {
|
|
display: block;
|
|
}
|
|
|
|
.regia-icon-btn.is-muted .icon-mic {
|
|
display: none;
|
|
}
|
|
|
|
.regia-icon-btn.is-muted .icon-mic-off {
|
|
display: block;
|
|
}
|
|
|
|
.regia-icon-btn:active { transform: scale(0.96); }
|
|
|
|
.regia-icon-btn.is-off,
|
|
.regia-icon-btn.is-muted {
|
|
color: var(--regia-yellow);
|
|
border-color: #5a4a1a;
|
|
}
|
|
|
|
.regia-icon-btn--danger {
|
|
color: var(--regia-red);
|
|
border-color: #7a2a28;
|
|
}
|
|
|
|
.regia-preview-wrap {
|
|
margin: 6px 0 10px;
|
|
}
|
|
|
|
.regia-preview-wrap.is-off {
|
|
margin: 0;
|
|
height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.regia-preview {
|
|
margin: 0;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
background: #000;
|
|
aspect-ratio: 16 / 9;
|
|
position: relative;
|
|
}
|
|
|
|
.regia-preview video {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
.regia-preview__placeholder {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 2;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--regia-muted);
|
|
font-size: 0.88rem;
|
|
text-align: center;
|
|
padding: 16px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.regia-preview__placeholder[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.regia-scoreboard {
|
|
background: var(--regia-surface);
|
|
border-radius: 12px;
|
|
padding: 10px 12px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.regia-sets {
|
|
text-align: center;
|
|
font-size: 0.78rem;
|
|
color: var(--regia-muted);
|
|
margin: 0 0 4px;
|
|
}
|
|
|
|
.regia-score-line {
|
|
text-align: center;
|
|
font-size: 1.2rem;
|
|
font-weight: 800;
|
|
margin: 0;
|
|
}
|
|
|
|
.regia-partials {
|
|
text-align: center;
|
|
font-size: 0.75rem;
|
|
color: var(--regia-muted);
|
|
margin: 4px 0 0;
|
|
}
|
|
|
|
.regia-team-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto 1fr;
|
|
gap: 8px;
|
|
align-items: center;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.regia-team-name {
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.regia-points {
|
|
font-size: 1.55rem;
|
|
font-weight: 800;
|
|
text-align: center;
|
|
}
|
|
|
|
.regia-btn-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.regia-btn {
|
|
border: none;
|
|
border-radius: 10px;
|
|
padding: 10px 8px;
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
touch-action: manipulation;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.regia-btn:active { transform: scale(0.98); }
|
|
.regia-btn--point { background: var(--regia-red); color: #fff; }
|
|
.regia-btn--minus { background: #2a2a36; color: #fff; font-size: 0.9rem; padding: 8px; }
|
|
.regia-btn--yellow { background: var(--regia-yellow); color: #111; width: 100%; margin-top: 8px; padding: 12px; }
|
|
.regia-btn--outline {
|
|
background: transparent;
|
|
border: 1px solid #444;
|
|
color: var(--regia-text);
|
|
width: 100%;
|
|
margin-top: 8px;
|
|
}
|
|
.regia-btn--outline.is-muted {
|
|
border-color: var(--regia-yellow);
|
|
color: var(--regia-yellow);
|
|
}
|
|
.regia-btn--danger {
|
|
background: transparent;
|
|
border: 1px solid var(--regia-red);
|
|
color: var(--regia-red);
|
|
width: 100%;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.regia-toast {
|
|
position: fixed;
|
|
bottom: calc(16px + var(--regia-safe-bottom));
|
|
left: 16px;
|
|
right: 16px;
|
|
max-width: 448px;
|
|
margin: 0 auto;
|
|
padding: 12px 16px;
|
|
background: #1f2937;
|
|
border-radius: 10px;
|
|
font-size: 0.88rem;
|
|
display: none;
|
|
z-index: 100;
|
|
}
|
|
|
|
.regia-toast.visible { display: block; }
|
|
|
|
.regia-modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.75);
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
z-index: 200;
|
|
}
|
|
|
|
.regia-modal.open { display: flex; }
|
|
|
|
.regia-modal__card {
|
|
background: var(--regia-surface);
|
|
border-radius: 14px;
|
|
padding: 20px;
|
|
max-width: 340px;
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.regia-modal__card h2 { margin: 0 0 8px; font-size: 1.1rem; }
|
|
.regia-modal__card p { margin: 0 0 16px; color: var(--regia-muted); font-size: 0.9rem; }
|
|
.regia-modal__actions { display: flex; flex-direction: column; gap: 8px; }
|
|
|
|
.regia-center-hint {
|
|
text-align: center;
|
|
color: var(--regia-muted);
|
|
font-size: 0.72rem;
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.regia-clock-line {
|
|
margin: 0 0 12px;
|
|
color: var(--regia-muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.regia-clock-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.regia-quality {
|
|
margin: 6px 0 0;
|
|
padding: 8px 10px 10px;
|
|
background: var(--regia-surface);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.regia-quality[hidden] { display: none !important; }
|
|
|
|
.regia-quality__hint {
|
|
margin: 0 0 8px;
|
|
font-size: 0.68rem;
|
|
line-height: 1.35;
|
|
color: var(--regia-muted);
|
|
}
|
|
|
|
.regia-quality label {
|
|
display: block;
|
|
font-size: 0.68rem;
|
|
color: var(--regia-muted);
|
|
margin: 0 0 4px;
|
|
}
|
|
|
|
.regia-quality select {
|
|
width: 100%;
|
|
background: #0a0a0e;
|
|
color: var(--regia-text);
|
|
border: 1px solid #2a2a35;
|
|
border-radius: 8px;
|
|
padding: 8px 10px;
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.regia-telemetry {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.regia-telemetry__row {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
gap: 4px;
|
|
}
|
|
|
|
.regia-chip {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
text-align: center;
|
|
padding: 6px 2px 5px;
|
|
border-radius: 8px;
|
|
background: var(--regia-surface);
|
|
color: var(--regia-text);
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.regia-chip--action {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
}
|
|
|
|
.regia-chip--action:focus-visible {
|
|
outline: 2px solid var(--regia-yellow);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.regia-chip--action.is-open {
|
|
border-color: #3a3a48;
|
|
}
|
|
|
|
.regia-chip svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
fill: currentColor;
|
|
}
|
|
|
|
.regia-chip__label {
|
|
font-size: 0.55rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.02em;
|
|
text-transform: uppercase;
|
|
color: var(--regia-muted);
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.regia-chip__value {
|
|
font-size: 0.72rem;
|
|
font-weight: 800;
|
|
line-height: 1.15;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.regia-chip__hint {
|
|
font-size: 0.55rem;
|
|
font-weight: 600;
|
|
color: var(--regia-muted);
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.regia-chip__hint[hidden] { display: none; }
|
|
|
|
.regia-chip.is-ok { color: var(--regia-green); }
|
|
.regia-chip.is-warn { color: var(--regia-orange); }
|
|
.regia-chip.is-bad { color: var(--regia-red); }
|
|
|
|
.regia-telemetry__meta {
|
|
margin: 4px 0 0;
|
|
font-size: 0.65rem;
|
|
color: var(--regia-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.regia-telemetry.is-stale .regia-telemetry__meta {
|
|
color: var(--regia-yellow);
|
|
}
|