.live-player {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.live-player-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 700;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff2f4f;
    box-shadow: 0 0 18px rgba(255, 47, 79, .8);
}

.live-video-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .45);
}

#live-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

#live-video[hidden] {
    display: none;
}

.live-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 8px;
    text-align: center;
    padding: 24px;
    color: #fff;
    background:
      radial-gradient(circle at center, rgba(255, 255, 255, .08), transparent 35%),
      rgba(0, 0, 0, .82);
    z-index: 2;
    pointer-events: none;
}

.live-overlay[hidden] {
    display: none !important;
}

.live-overlay[hidden],
#live-checking[hidden],
#live-starting[hidden],
#live-offline[hidden],
#live-error[hidden] {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.live-player[data-state="live"] .live-overlay {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.live-overlay strong {
    font-size: clamp(20px, 3vw, 34px);
}

.live-overlay span {
    color: rgba(255, 255, 255, .75);
}

#live-retry {
    justify-self: center;
    margin-top: 12px;
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
    pointer-events: auto;
}

.live-token-popup {
    position: fixed;
    right: 14px;
    bottom: 14px;
    width: min(320px, calc(100vw - 28px));
    padding: 12px 12px 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.45);
    background: rgba(9, 13, 20, 0.96);
    color: #f0f6fc;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
    z-index: 1200;
    display: grid;
    gap: 8px;
    animation: liveTokenPopupIn 0.24s ease-out;
}

.live-token-popup[hidden] {
    display: none !important;
}

.live-token-popup-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #8b949e;
}

.live-token-popup-title {
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-token-popup-title i {
    color: #00d4ff;
}

.live-token-popup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
    color: #061018;
    background: linear-gradient(90deg, #00d4ff, #4ade80);
}

.live-token-popup-link:hover {
    filter: brightness(1.04);
}

.live-token-popup-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #c9d1d9;
    cursor: pointer;
}

.live-token-popup-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

@keyframes liveTokenPopupIn {
    0% {
        transform: translateY(14px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.live-overlay[hidden],
#live-checking[hidden],
#live-starting[hidden],
#live-offline[hidden],
#live-error[hidden] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.live-player[data-state="live"] .live-overlay,
.live-player[data-state="live"] #live-checking,
.live-player[data-state="live"] #live-starting,
.live-player[data-state="live"] #live-offline,
.live-player[data-state="live"] #live-error {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.live-player[data-state="live"] #live-video {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

