.vtl-float-launch[hidden], .vtl-floating-player[hidden] { display: none !important; }
.vtl-float-launch {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 44px; padding: 8px 12px; border: 1px solid var(--vtl-border, #dce6ef);
    border-radius: 9px; background: var(--vtl-soft, #eaf4fb); color: var(--vtl-blue, #136ea8);
    font: 600 1rem/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; cursor: pointer;
}
.vtl-float-launch:hover, .vtl-float-launch[aria-pressed="true"] { border-color: var(--vtl-blue, #136ea8); }
.vtl-float-launch .vtl-icon { width: 18px; height: 18px; }
.vtl-card-play-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; width: 100%; }
.vtl-card-play-actions>a { font-weight: 600; }
.vtl-admin-play-action { margin-top: 12px; }
.vtl-srt-player-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.vtl-floating-player {
    --float-panel: #fff; --float-ink: #192c3d; --float-muted: #5e7181; --float-border: #dce6ef; --float-blue: #136ea8;
    box-sizing: border-box; position: fixed; z-index: 100001; width: 420px; max-width: var(--vtl-float-max-width, calc(100vw - 24px));
    max-height: var(--vtl-float-max-height, calc(100dvh - 24px));
    display: flex; flex-direction: column; margin: 0; padding: 0; overflow: hidden;
    border: 1px solid var(--float-border); border-radius: 18px; background: var(--float-panel); color: var(--float-ink);
    box-shadow: 0 16px 60px rgb(11 29 46 / 32%);
    font: 16px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color-scheme: light;
}
.vtl-floating-player[data-theme="dark"] {
    --float-panel: #212f40; --float-ink: #edf4fa; --float-muted: #bccbd9; --float-border: #43586e; --float-blue: #9acef6; color-scheme: dark;
}
.vtl-floating-player *, .vtl-floating-player *::before, .vtl-floating-player *::after { box-sizing: border-box; }
.vtl-floating-player.is-large { width: 640px; }
.vtl-float-header { display: flex; align-items: center; gap: 4px; min-height: 64px; flex-shrink: 0; padding: 8px; cursor: grab; touch-action: none; user-select: none; }
.vtl-floating-player.is-dragging .vtl-float-header { cursor: grabbing; }
.vtl-floating-player.is-dragging iframe { pointer-events: none; }
.vtl-floating-player button {
    display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0;
    border: 0; border-radius: 9px; background: transparent; color: var(--float-ink); font: inherit; font-size: 24px; box-shadow: none; cursor: pointer;
}
.vtl-floating-player .vtl-float-move { cursor: grab; color: var(--float-muted); }
.vtl-floating-player button:hover { background: color-mix(in srgb, var(--float-blue) 12%, transparent); }
.vtl-floating-player :focus-visible, .vtl-float-launch:focus-visible { outline: 3px solid var(--float-blue, #136ea8); outline-offset: -3px; }
.vtl-float-heading { min-width: 0; flex: 1; padding: 0 4px; }
.vtl-float-heading>span { display: block; color: var(--float-muted); font-size: 10px; letter-spacing: .12em; font-weight: 650; }
.vtl-float-heading strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; line-height: 1.5; font-weight: 600; }
.vtl-float-media { width: 100%; aspect-ratio: 16 / 9; max-height: calc(var(--vtl-float-max-height, 100dvh - 24px) - 110px); min-height: 0; flex-shrink: 1; background: #000; }
.vtl-float-media iframe { display: block; width: 100%; height: 100%; border: 0; margin: 0; }
.vtl-float-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; flex-shrink: 0; padding: 4px 14px; }
.vtl-floating-player .vtl-float-footer a { color: var(--float-blue); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 0; }
.vtl-floating-player .vtl-float-footer a:hover { text-decoration: underline; }
.vtl-floating-player .vtl-float-footer { padding-right: 38px; }
.vtl-floating-player .vtl-float-resize, .vtl-admin .vtl-preview-card .vtl-float-resize {
    position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 30px; height: 30px;
    min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 5px 0 0 0;
    background: #e4eef8; color: #184a75; font-size: 18px; line-height: 1; cursor: nwse-resize;
    touch-action: none; user-select: none;
}
.vtl-float-resize[hidden] { display: none !important; }
.vtl-float-resize:focus-visible { outline: 3px solid #2797e1; outline-offset: -3px; }
.vtl-floating-player.is-resizing iframe, .vtl-preview-card.is-resizing iframe { pointer-events: none; }
.vtl-float-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
