/* clobo_media_upload.css — CloboVideoUploader 用 styling.
   Journal / Connect / Chat 等 動画 picker を使う任意の場所で読み込まれる. */

.clobo-video-pick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px dashed #C7CDCC;
    border-radius: 10px;
    background: #FAFBFB;
    color: #5A6160;
    font-size: 14px;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.clobo-video-pick-btn:hover {
    border-color: #02AED5;
    color: #02AED5;
}
.clobo-video-pick-btn svg { flex-shrink: 0; }

.clobo-video-thumb {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.clobo-video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}
.clobo-video-thumb-empty {
    width: 100%;
    height: 100%;
    background: #000;
}

.clobo-video-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.clobo-video-progress-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0,0,0,0.45);
    pointer-events: none;
    z-index: 3;
}
.clobo-video-progress-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: clobo-video-spin 0.8s linear infinite;
}
.clobo-video-progress-label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.clobo-video-progress-track {
    position: absolute;
    left: 8px; right: 8px; bottom: 8px;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    overflow: hidden;
}
.clobo-video-progress-bar {
    height: 100%;
    background: #02AED5;
    width: 0%;
    transition: width 0.15s ease-out;
}
@keyframes clobo-video-spin {
    to { transform: rotate(360deg); }
}

/* 投稿カード内の動画再生エリア. 親コンテナの横幅いっぱい. */
.clobo-post-video {
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: 540px;
    margin: 8px 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.clobo-post-video video {
    width: 100%;
    max-width: 100%;
    max-height: 540px;
    object-fit: contain;
    background: #000;
    display: block;
}

/* Download progress overlay (チャットで video 受信時) */
.clobo-video-dl-progress {
    position: absolute;
    left: 8px; right: 8px; bottom: 8px;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    overflow: hidden;
    pointer-events: none;
}
.clobo-video-dl-progress-bar {
    height: 100%;
    background: #02AED5;
    width: 0%;
    transition: width 0.15s ease-out;
}
