.floating-slot-panel {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #516078;
    border-radius: 14px;
    background: #111923;
    color: #edf3fa;
    box-shadow: 0 12px 40px #0007;
    font: 14px/1.4 system-ui, sans-serif;
    isolation: isolate;
}
.floating-slot-panel[hidden] { display: none; }
.floating-slot-header {
    display: flex;
    align-items: center;
    flex: 0 0 46px;
    min-width: 0;
    padding: 0 6px;
    gap: 3px;
    background: #202d3e;
}
.floating-slot-grip {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 10px 6px;
    cursor: move;
    touch-action: none;
    user-select: none;
}
.floating-slot-toolbar { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px 6px; }
.floating-slot-button {
    appearance: none;
    border: 1px solid #526279;
    border-radius: 6px;
    padding: 6px;
    background: #25364b;
    color: #fff;
    font: inherit;
    cursor: pointer;
}
.floating-slot-button:hover:not(:disabled) { background: #354e6b; }
.floating-slot-button:disabled { opacity: 0.5; cursor: default; }
.floating-slot-button:focus-visible, .floating-slot-grip:focus-visible, .floating-slot-resize:focus-visible {
    outline: 2px solid #75c7ff;
    outline-offset: -2px;
}
.floating-slot-status { flex: 0 0 auto; padding: 3px 10px 6px; font-size: 12px; color: #c1d2e8; }
.floating-slot-content { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; background: #090d12; }
.floating-slot-frame { display: block; width: 100%; height: 100%; border: 0; }
.floating-slot-placeholder { margin: 24px 12px; color: #b7c8dd; text-align: center; }
.floating-slot-placeholder[hidden] { display: none; }
/* The resize strip is outside the frame; no drag/drop/input listener or mask covers video. */
.floating-slot-resize { flex: 0 0 14px; width: 28px; align-self: flex-end; cursor: nwse-resize; touch-action: none; }
.floating-slot-resize::after { content: ''; display: block; width: 12px; height: 6px; margin: 2px 0 0 10px; border-right: 2px solid #a4b7ce; border-bottom: 2px solid #a4b7ce; }
.floating-slot-collapsed .floating-slot-toolbar,
.floating-slot-collapsed .floating-slot-status,
.floating-slot-collapsed .floating-slot-content,
.floating-slot-collapsed .floating-slot-resize { display: none; }
.floating-slot-fullscreen { border-radius: 0; border: 0; }
.floating-slot-fullscreen .floating-slot-resize,
.floating-slot-mobile .floating-slot-resize,
.floating-slot-fullscreen [data-action='smaller'],
.floating-slot-fullscreen [data-action='larger'],
.floating-slot-mobile [data-action='smaller'],
.floating-slot-mobile [data-action='larger'] { display: none; }
.floating-slot-mobile { border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
.floating-slot-mobile .floating-slot-grip,
.floating-slot-fullscreen .floating-slot-grip { cursor: default; }
.floating-slot-mobile .floating-slot-button { min-height: 36px; }
@media (prefers-reduced-motion: reduce) {
    .floating-slot-panel { scroll-behavior: auto; }
}
