.lipsync-upload-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 0;
    font-size: 1.1em;
    color: #fff;
}

.lipsync-upload-header h3 svg {
    color: #6afcff;
}

.lipsync-upload-header .reference-hint {
    margin: 0 0 12px 0;
    font-size: 0.9em;
    color: #88aacc;
}

.upload-divider {
    text-align: center;
    margin: 15px 0;
    color: #88aacc;
    font-size: 13px;
}

#lipsync-info {
    background: rgba(106, 252, 255, 0.08);
    border: 1px solid rgba(106, 252, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
}

#lipsync-info .source-media-details {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.lipsync-video-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.lipsync-video {
    width: 100%;
    display: block;
    background: #000;
}

.lipsync-no-video {
    margin: 15px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
    color: #888;
}

.lipsync-details {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.lipsync-details .badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85em;
}

.lipsync-details .badge-model {
    background: rgba(106, 252, 255, 0.15);
    color: #6afcff;
}

.lipsync-details .badge-duration {
    background: rgba(147, 51, 234, 0.15);
    color: #a78bfa;
}

.lipsync-details .badge-sync {
    background: rgba(255, 200, 100, 0.15);
    color: #ffc864;
}

.lipsync-source-block {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lipsync-source-block h4 {
    margin: 0 0 8px 0;
    color: #6afcff;
    font-size: 0.95em;
}

.lipsync-source-block p {
    margin: 4px 0;
    color: #ccc;
    font-size: 0.9em;
}

.audio-uploads-grid,
.video-uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}

.audio-thumb,
.video-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: rgba(106, 252, 255, 0.05);
    border: 1px solid rgba(106, 252, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.video-thumb {
    background: rgba(147, 51, 234, 0.05);
    border-color: rgba(147, 51, 234, 0.2);
}

.audio-thumb:hover {
    background: rgba(106, 252, 255, 0.1);
    border-color: rgba(106, 252, 255, 0.4);
}

.video-thumb:hover {
    background: rgba(147, 51, 234, 0.1);
    border-color: rgba(147, 51, 234, 0.4);
}

.audio-thumb.selected {
    border-color: #6afcff;
    background: rgba(106, 252, 255, 0.15);
}

.video-thumb.selected {
    border-color: #a78bfa;
    background: rgba(147, 51, 234, 0.15);
}

.audio-thumb .audio-icon,
.video-thumb .video-thumb-icon {
    margin-bottom: 6px;
}

.audio-thumb .audio-icon {
    color: #6afcff;
}

.video-thumb .video-thumb-icon {
    color: #a78bfa;
}

.audio-thumb .audio-filename,
.video-thumb .video-filename {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    word-break: break-all;
}

.audio-thumb .upload-select-check,
.video-thumb .upload-select-check {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    color: #000;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.audio-thumb .upload-select-check {
    background: #6afcff;
}

.video-thumb .upload-select-check {
    background: #a78bfa;
}

.audio-thumb.selected .upload-select-check,
.video-thumb.selected .upload-select-check {
    display: flex;
}

.audio-thumb .generated-badge,
.video-thumb .generated-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 500;
}

.audio-thumb .generated-badge {
    background: rgba(106, 252, 255, 0.8);
    color: #000;
}

.video-thumb .generated-badge {
    background: rgba(147, 51, 234, 0.8);
    color: #fff;
}

/* The temperature slider now uses the network-standard .range-slider /
   .range-slider-wrap / .range-value classes from styles.css, so no custom
   styling is needed here. */

#lipsync-temperature-wrapper .setting-hint {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}
