.markon-live-container {
position: fixed;
z-index: 10000;
width: 40px;
height: 40px;
border-radius: 50%;
cursor: default;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
overflow: hidden;
background-color: #f6f8fa;
color: #1f2328;
user-select: none;
display: flex;
align-items: center;
justify-content: center;
}
html[data-theme="dark"] .markon-live-container {
background-color: #2d333b;
color: #adbac7;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.markon-live-container.broadcasting {
box-shadow: 0 0 0 2px var(--markon-live-user, transparent),
0 2px 10px rgba(0, 0, 0, 0.2);
}
html[data-theme="dark"] .markon-live-container.broadcasting {
box-shadow: 0 0 0 2px var(--markon-live-user, transparent),
0 2px 10px rgba(0, 0, 0, 0.5);
}
.markon-live-container.expanded {
width: 260px;
height: auto;
max-width: calc(100vw - 16px);
max-height: calc(100vh - 16px);
border-radius: 20px;
cursor: default;
display: block;
}
.markon-live-face {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.markon-live-face .icon-live,
.markon-live-face .icon-close {
pointer-events: none;
}
.markon-live-face .icon-close {
display: none;
}
.markon-live-container.expanded .markon-live-face .icon-live {
display: none;
}
.markon-live-container.expanded .markon-live-face .icon-close {
display: block;
}
.markon-live-face .icon-live,
.markon-live-face .icon-off,
.markon-live-face .icon-close {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
}
.markon-live-face .icon-off {
display: none;
}
.markon-live-container.live-off .markon-live-face .icon-off {
display: block;
}
.markon-live-container.expanded .markon-live-face .icon-live,
.markon-live-container.expanded .markon-live-face .icon-off {
display: none;
}
.markon-live-container.live-off {
--markon-disabled: rgba(107, 114, 128, 0.75);
box-shadow: 0 0 0 2.5px var(--markon-disabled),
0 2px 10px rgba(0, 0, 0, 0.2);
}
html[data-theme="dark"] .markon-live-container.live-off {
--markon-disabled: rgba(180, 188, 200, 0.55);
box-shadow: 0 0 0 2.5px var(--markon-disabled),
0 2px 10px rgba(0, 0, 0, 0.5);
}
.markon-live-container.live-off .icon-off {
color: var(--markon-disabled);
}
.markon-live-container.expanded .markon-live-face {
position: absolute;
top: 0;
left: 0;
width: 40px;
height: 40px;
z-index: 2;
border-radius: 20px 0 0 0;
}
.markon-live-container.expanded .markon-live-face .icon-close {
transition: transform 0.35s ease;
}
.markon-live-container.expanded .markon-live-face:hover .icon-close {
transform: translate(-50%, -50%) rotate(180deg);
}
.markon-live-container.broadcasting .markon-live-face::after {
content: '';
position: absolute;
inset: -5px;
border-radius: 50%;
border: 2px solid currentColor;
animation: markon-live-pulse 2s infinite;
}
.markon-live-container.expanded.broadcasting .markon-live-face::after {
display: none;
}
@keyframes markon-live-pulse {
0% { transform: scale(1); opacity: 1; }
100% { transform: scale(1.4); opacity: 0; }
}
.markon-live-face .leader-info {
position: absolute;
bottom: 48px;
right: 6px;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--leader-color, currentColor);
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
opacity: 0;
transform: translateY(4px);
transition: opacity 0.2s, transform 0.2s;
pointer-events: none;
}
html[data-theme="dark"] .markon-live-face .leader-info {
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6);
}
.markon-live-face .leader-info.show {
opacity: 1;
transform: translateY(0);
}
.markon-live-body {
display: none;
padding: 6px 16px 14px;
box-sizing: border-box;
flex-direction: column;
gap: 14px;
}
.markon-live-container.expanded .markon-live-body {
display: flex;
}
.markon-live-body .panel-header {
font-weight: bold;
font-size: 14px;
height: 30px;
line-height: 30px;
text-align: center;
margin: 0;
}
.markon-live-body .panel-row {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 13px;
}
.markon-live-body .panel-row-mode {
display: flex;
justify-content: center;
align-items: center;
}
.markon-live-body .panel-row-color {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 6px;
opacity: 0.4;
pointer-events: none;
transition: opacity 0.15s;
}
.markon-live-body .panel-row-color[aria-disabled="false"] {
opacity: 1;
pointer-events: auto;
}
.markon-live-body .panel-row-label {
text-align: center;
font-size: 10px;
opacity: 0.55;
line-height: 1.2;
letter-spacing: 0.02em;
padding: 5px 0;
}
.markon-live-body .color-picker {
display: flex;
justify-content: center;
gap: 6px;
flex-wrap: nowrap;
}
.markon-live-body .color-dot {
width: 21px;
height: 21px;
border-radius: 50%;
cursor: pointer;
box-sizing: border-box;
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 10px;
font-weight: 600;
line-height: 1;
user-select: none;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
.markon-live-body .color-dot.active {
outline: 1.5px solid var(--dot-color, rgba(0, 0, 0, 0.7));
outline-offset: 1px;
margin: 0 3px;
}
.markon-live-body .mode-group {
display: flex;
width: 220px;
border-radius: 999px;
overflow: hidden;
background: rgba(0, 0, 0, 0.06);
}
html[data-theme="dark"] .markon-live-body .mode-group {
background: rgba(255, 255, 255, 0.08);
}
.markon-live-body .mode-btn {
appearance: none;
border: none;
background: transparent;
color: inherit;
padding: 7px 14px;
font: inherit;
font-size: 12px;
font-weight: 500;
line-height: 1;
cursor: pointer;
border-radius: 999px;
transition: background-color 0.12s, color 0.12s;
text-align: center;
white-space: nowrap;
}
.markon-live-body .mode-btn[data-mode="broadcast"] {
flex: 0 0 auto;
}
.markon-live-body .mode-btn[data-mode="off"],
.markon-live-body .mode-btn[data-mode="follow"] {
flex: 1 1 0;
min-width: 0;
}
.markon-live-body .mode-btn:hover {
background: rgba(0, 0, 0, 0.05);
}
html[data-theme="dark"] .markon-live-body .mode-btn:hover {
background: rgba(255, 255, 255, 0.06);
}
.markon-live-body .mode-btn.active {
background: #3451B2;
color: #fff;
}
.markon-live-focus-pulse::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
z-index: 2;
animation: markon-live-focus-pulse 1.4s ease-out;
}
@keyframes markon-live-focus-pulse {
0% { box-shadow: 0 0 0 5px var(--live-pulse-color, rgba(9, 105, 218, 0.55)); }
60% { box-shadow: 0 0 0 3px var(--live-pulse-color, rgba(9, 105, 218, 0.28)); }
100% { box-shadow: 0 0 0 0 transparent; }
}