/**
 * Styling for App\Filament\Infolists\Components\VideoPlayerEntry.
 *
 * Plain CSS rather than Tailwind utilities for the same reason the upload field has
 * its own sheet: Filament's compiled bundle does not scan this application's Blade
 * views, so a utility class used only here resolves to nothing. The video.js skin
 * itself is the `tp-v1` stylesheet, which is the public embed's skin — this file only
 * frames it.
 */

.tp-player {
    width: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: #000;
}

.tp-player__video {
    width: 100%;
}

.tp-player--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    padding: 1.5rem;
    background-color: rgb(244 244 245);
    border: 1px dashed rgb(212 212 216);
}

.dark .tp-player--empty {
    background-color: rgb(39 39 42);
    border-color: rgb(63 63 70);
}

.tp-player__message {
    max-width: 32rem;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    color: rgb(82 82 91);
}

.dark .tp-player__message {
    color: rgb(161 161 170);
}

.tp-player__note {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgb(113 113 122);
}

.dark .tp-player__note {
    color: rgb(161 161 170);
}

/*
 * Accessible control names (#37). The jwlike skin is built for Nuevo and hides
 * video.js's control text with `display: none`, and the bundle turns title attributes
 * off (`noUITitleAttributes`), so under plain video.js every button had no name at
 * all. Visually hidden instead of removed: screen readers and `getByRole` read it,
 * and nothing changes on screen.
 */
.tp-player .video-js .vjs-control-text {
    display: block !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/*
 * The big play button (#37). The skin shows it only for Nuevo (or when muted), so under
 * plain video.js a fresh player had no visible way to start. Shown until playback starts.
 */
.tp-player .video-js:not(.vjs-has-started) .vjs-big-play-button {
    display: block;
}
