#pictacast-tv-demo {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 60;
    width: 320px;
    max-width: calc(100vw - 32px);
    padding: 12px;
    border: 1px solid #ffffff26;
    border-radius: 28px;
    background: linear-gradient(135deg, #292c33f5, #1d1f25fa);
    color: #f4f4f6;
    box-shadow: 0 12px 32px #11182740, inset 0 1px 0 #ffffff12;
    font: 14px/1.5 Inter, system-ui, sans-serif;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-radius 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
#pictacast-tv-demo[hidden], #pictacast-tv-demo [hidden] { display: none !important; }
#pictacast-tv-demo[data-state="idle"],
#pictacast-tv-demo[data-state="retry"] { width: max-content; padding: 0; border-radius: 999px; }
#pictacast-tv-demo button { font: inherit; cursor: pointer; }
#pictacast-tv-demo .pc-demo-start {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #f4f4f6;
    text-align: left;
}
#pictacast-tv-demo .pc-demo-start:hover { background: #ffffff0d; }
#pictacast-tv-demo svg { width: 28px; height: 28px; fill: currentColor; flex-shrink: 0; }
#pictacast-tv-demo strong { display: block; font-size: 16px; font-weight: 650; line-height: 1.4; }
#pictacast-tv-demo small { display: block; font-size: 12px; color: #b6b8c2; }
#pictacast-tv-demo .pc-demo-summary { display: flex; align-items: center; gap: 16px; padding: 12px 14px; }
#pictacast-tv-demo .pc-demo-icon { position: relative; display: flex; flex-shrink: 0; }
#pictacast-tv-demo .pc-demo-icon svg { width: 32px; height: 32px; }
#pictacast-tv-demo .pc-demo-start .pc-demo-icon svg { width: 28px; height: 28px; }
#pictacast-tv-demo .pc-demo-start .pc-demo-dot { display: none; }
#pictacast-tv-demo[data-state="retry"] .pc-demo-start .pc-demo-dot { display: block; }
#pictacast-tv-demo .pc-demo-dot {
    position: absolute;
    right: -3px;
    bottom: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #a1a5af;
    outline: 3px solid #26282e;
}
#pictacast-tv-demo[data-state="playing"] .pc-demo-dot { background: #52d47c; box-shadow: 0 0 12px #52d47c80; }
#pictacast-tv-demo[data-state="error"] .pc-demo-dot,
#pictacast-tv-demo[data-state="retry"] .pc-demo-dot { background: #fb6b72; box-shadow: 0 0 10px #fb6b7259; }
#pictacast-tv-demo[data-state="paused"] .pc-demo-dot { background: #f6c564; }
#pictacast-tv-demo .pc-demo-status { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
#pictacast-tv-demo[data-state="playing"] .pc-demo-status,
#pictacast-tv-demo[data-state="paused"] .pc-demo-status { font-size: 16px; }
#pictacast-tv-demo .pc-demo-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
#pictacast-tv-demo .pc-demo-stop { width: 100%; padding: 10px 16px; border: 0; border-radius: 18px; background: #ffffff12; color: #b6b8c2; }
#pictacast-tv-demo .pc-demo-stop span { margin-left: 6px; font-size: 20px; line-height: 1; }
#pictacast-tv-demo .pc-demo-stop:hover { background: #ffffff20; color: #fff; }
#pictacast-tv-demo :focus-visible { outline: 3px solid #88caff; outline-offset: 3px; }
#pictacast-tv-demo button:disabled { opacity: .65; cursor: wait; }
@media (prefers-reduced-motion: reduce) {
    #pictacast-tv-demo { transition: none; }
}
@media (max-width: 480px) {
    #pictacast-tv-demo { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
    #pictacast-tv-demo .pc-demo-start { padding: 13px 20px; }
}
