/* ============================================================ */
/* EDITOR MODAL STYLES - COMPLETE */
/* ============================================================ */

/* editor modal */
#playerModal, .player-modal { display: none; }
.player-modal.active {
    display: flex !important;
}

.player-modal.active {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.95) !important;
    z-index: 10000 !important;
    justify-content: center !important;
    align-items: center !important;
}

.player-playlist-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 11px;
    border-bottom: 1px solid var(--border);
    display: block;
    min-height: 35px;
}

/* Fix player modal visibility only - no other changes */
#playerModal.active {
    display: flex !important;
}

.player-playlist {
    max-height: 200px;
    overflow-y: auto;
}

#playerModal video {
    max-height: 50vh;
    width: 100%;
    object-fit: contain;
}

.player-content {
    background: var(--surf);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
}


/* Modal Base */
.modal.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg, #060709);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.fullscreen-modal.active {
    display: flex !important;
}

.modal-content.fullscreen {
    background: var(--surf, #0d1018);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-header.fullscreen {
    padding: 12px 20px;
    background: var(--surf2, #141925);
    border-bottom: 1px solid var(--border, #1e2840);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header.fullscreen h3 {
    font-size: 14px;
    margin: 0;
    color: var(--text);
}

.modal-close {
    background: var(--surf);
    border: 1px solid var(--border);
    color: var(--muted2);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.modal-close:hover {
    border-color: var(--accent2);
    color: var(--accent2);
}

.modal-body.fullscreen {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Video Editor Section */
.video-editor-section {
    background: var(--surf2);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.video-editor-section.collapsed {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0;
    border: none;
}

.video-player-container {
    background: #000;
    position: relative;
}

.video-player-container video {
    width: 100%;
    max-height: 45vh;
    background: #000;
    display: block;
    object-fit: contain;
}

/* Video Controls */
.video-controls {
    padding: 12px;
    background: var(--surf3);
    border-top: 1px solid var(--border);
}

/* Transport Controls */
.transport-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Tiroir transport repliable (navigation fine — décision Luc 2026-09-11) */
.transport-drawer {
    display: none;
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--surf);
    border: 1px solid var(--border);
    border-radius: 6px;
    flex-direction: column;
    gap: 6px;
}

.transport-drawer.open {
    display: flex;
}

.transport-drawer-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.transport-drawer-shortcuts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 9px;
    font-family: monospace;
    color: var(--muted);
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.transport-drawer-shortcuts span {
    white-space: nowrap;
}

.transport-btn {
    padding: 6px 12px;
    background: var(--surf2);
    border: 1px solid var(--border);
    color: var(--muted2);
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
}

.transport-btn:hover {
    border-color: var(--accent3);
    color: var(--accent3);
    background: rgba(56, 189, 248, 0.05);
}

.timecode-input {
    background: var(--surf);
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--accent3);
    font-family: monospace;
    font-size: 12px;
    width: 100px;
    text-align: center;
}

/* Marker Buttons */
.marker-buttons {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.marker-btn {
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--surf2);
    border: 1px solid var(--border);
    color: var(--muted2);
}

.marker-btn:hover {
    border-color: var(--accent3);
    color: var(--accent3);
    background: rgba(56, 189, 248, 0.05);
}

.marker-in-btn, .marker-out-btn {
    background: var(--surf2);
    border-color: var(--border);
    color: var(--muted2);
}

.marker-in-btn:hover, .marker-out-btn:hover {
    border-color: var(--accent3);
    color: var(--accent3);
    background: rgba(56, 189, 248, 0.05);
}

/* Timeline — hit-area élargie pour le tactile (fix mobile 2026-09-19) :
   la piste VISUELLE reste 6px (::before), la zone TAPPEABLE fait 22px */
.timeline-container {
    position: relative;
    margin-bottom: 12px;
    cursor: pointer;
}

.timeline-bg {
    width: 100%;
    height: 22px;
    background: transparent;
    border-radius: 3px;
    position: relative;
}

.timeline-bg::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--surf);
    border-radius: 3px;
}

.timeline-progress {
    width: 0%;
    height: 6px;
    margin-top: 8px;
    background: var(--accent);
    border-radius: 3px;
    position: relative;
    z-index: 1;
}

.timeline-marker {
    position: absolute;
    top: 1px;
    width: 4px;
    height: 20px;
    background: var(--marker-in, #4ade80);
    border-radius: 2px;
    z-index: 2;
    cursor: ew-resize;
    transition: background 0.2s, box-shadow 0.2s;
}

.timeline-marker-out {
    background: var(--marker-out, #f87171);
}

.timeline-marker-label {
    position: absolute;
    top: -18px;
    font-size: 9px;
    font-family: monospace;
    white-space: nowrap;
    color: var(--text);
    background: rgba(0,0,0,0.7);
    padding: 1px 4px;
    border-radius: 3px;
}

/* Pending Clip Markers */
.pending-clip-marker {
    position: absolute;
    top: 1px;
    width: 5px;
    height: 20px;
    border-radius: 2px;
    z-index: 15;
    cursor: pointer;
    transition: transform 0.1s;
}

.pending-clip-marker:hover {
    transform: scaleX(1.5);
}

/* Pending Clip Range Bands (plage colorée IN → OUT de chaque clip défini) */
.pending-clip-range {
    box-sizing: border-box;
    transition: opacity 0.15s;
}

.pending-clip-range:hover {
    opacity: 0.5 !important;
}

/* Two-column layout */
.editor-two-columns {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.editor-two-columns.player-hidden {
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px); /* viewport dynamique iOS (barre URL) */
}

.clips-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.playlist-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent3);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.clips-list-container {
    overflow-y: auto;
    flex: 1;
    max-height: 400px;
}

.playlist-content-container {
    overflow-y: auto;
    flex: 1;
    max-height: 400px;
}

/* Clip Row - Pending Clips */
.clip-row {
    background: var(--surf2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    transition: all 0.2s;
    cursor: pointer;
}

.clip-row:hover {
    transform: translateX(4px);
}

.clip-row.active-clip {
    box-shadow: 0 0 0 2px var(--accent);
}

.clip-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.clip-row-title {
    font-size: 12px;
    font-weight: 600;
}

.clip-remove {
    background: transparent;
    border: none;
    color: #f87171;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
}

.clip-remove:hover {
    background: rgba(248, 113, 113, 0.2);
}

.clip-row-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 8px;
    margin-bottom: 8px;
}

.clip-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.clip-field label {
    font-size: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--muted);
}

.clip-field input {
    background: var(--surf3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 5px 6px;
    color: var(--text);
    font-size: 11px;
    font-family: monospace;
    transition: border-color 0.2s;
}

.clip-field input:focus {
    outline: none;
    border-color: var(--accent);
}

.clip-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.clip-btn {
    padding: 5px 10px;
    background: var(--surf3);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.clip-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.clip-btn-primary {
    background: rgba(168, 255, 62, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.clip-btn-primary:hover {
    background: rgba(168, 255, 62, 0.25);
}

/* Processed Clip - Saved Clips */
.processed-clip {
    background: var(--surf2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    transition: all 0.2s;
}

.processed-clip:hover {
    transform: translateX(2px);
}

.processed-clip.selected {
    box-shadow: 0 0 0 2px var(--accent);
}

.processed-clip-info {
    flex: 2;
    min-width: 150px;
}

.processed-clip-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
}

.processed-clip-time {
    font-size: 9px;
    color: var(--muted);
    font-family: monospace;
}

.processed-clip-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.processed-clip-actions-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.processed-clip-btn {
    padding: 4px 8px;
    background: var(--surf3);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.15s;
}

.processed-clip-btn:hover {
    border-color: var(--accent3);
    color: var(--accent3);
}

.processed-clip-btn-playlist {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent3);
    color: var(--accent3);
}

/* Clip Edit Panel */
.clip-edit-panel {
    margin-top: 8px;
    padding: 8px;
    background: var(--surf3);
    border-radius: 6px;
}

.small-btn {
    padding: 4px 8px;
    font-size: 10px;
    background: var(--surf2);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.small-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Advanced Options */
.advanced-options {
    margin-top: 12px;
}

.advanced-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--surf2);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
}

.advanced-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent3);
}

.advanced-chevron {
    transition: transform 0.2s;
}

.advanced-chevron.open {
    transform: rotate(180deg);
}

.advanced-content {
    display: none;
    padding: 12px;
    background: var(--surf2);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.advanced-content.open {
    display: block;
}

.option-group {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
}

.radio-group {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 11px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 4px;
}

.command-preview {
    font-size: 9px;
    font-family: monospace;
    background: var(--surf);
    padding: 6px;
    border-radius: 4px;
    margin-top: 8px;
    word-break: break-all;
}

/* Floating Menu */
.floating-clip-menu {
    background: var(--surf2);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    animation: slideIn 0.2s ease;
    backdrop-filter: blur(8px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-menu-header {
    padding: 10px 12px;
    background: var(--surf3);
    border-bottom: 1px solid var(--border);
    border-radius: 8px 8px 0 0;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.floating-menu-range {
    font-family: monospace;
    font-size: 10px;
    color: var(--accent3);
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.floating-menu-body {
    padding: 12px;
}

#floatingClipDescription {
    width: 100%;
    padding: 8px 10px;
    background: var(--surf);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 12px;
    font-family: 'Karla', sans-serif;
    margin-bottom: 12px;
}

#floatingClipDescription:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(168, 255, 62, 0.1);
}

.floating-menu-actions {
    display: flex;
    gap: 8px;
}

.floating-menu-btn {
    flex: 1;
    padding: 7px 12px;
    background: var(--surf3);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.floating-menu-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.floating-menu-btn.primary:hover {
    background: #c4ff5a;
    transform: translateY(-1px);
}

.floating-menu-btn:hover:not(.primary) {
    background: var(--surf);
    border-color: var(--accent3);
    color: var(--accent3);
}

/* Status Message */
.status-message {
    background: var(--surf2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px;
    margin-top: 10px;
    font-size: 11px;
    display: none;
}

.status-message.active {
    display: block;
}

.status-message.success {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
    color: var(--success);
}

.status-message.error {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
    color: var(--error);
}

/* Playlist Empty State */
.playlist-empty {
    text-align: center;
    padding: 30px;
    color: var(--muted);
    font-size: 11px;
}

/* Add Clip Button */
.add-clip-btn {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    background: var(--surf2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.add-clip-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Modal Footer Buttons */
.modal-footer-btn {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    font-weight: 600;
}

.modal-footer-btn:first-child:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.modal-footer-btn:last-child {
    background: var(--surf2);
    border: 1px solid var(--border);
    color: var(--muted2);
}

.modal-footer-btn:last-child:hover {
    border-color: var(--accent2);
    color: var(--accent2);
}

/* Toggle Player Button — déplacé dans le header de la modale (fix mobile 2026-09-19 :
   avant, position absolute DANS la section clippée (overflow:hidden + height:0) →
   le bouton ▼ de restauration était invisible/intappable une fois le player réduit) */
.toggle-player-btn {
    background: var(--surf2);
    border: 1px solid var(--border);
    color: var(--muted2);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toggle-player-btn:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

/* Delete Button */
.clip-delete-btn {
    background: transparent;
    border: none;
    color: #f87171;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.clip-delete-btn:hover {
    background: rgba(248, 113, 113, 0.2);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

/* ============================================================ */
/* OG CARD EDITOR (décision Luc 2026-09-17) */
/* ============================================================ */
.og-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 10000; align-items: center; justify-content: center; }
.og-overlay.open { display: flex; }
.og-dialog { background: var(--surf2, #1e1e1e); border: 1px solid var(--surf3, #333); border-radius: 12px; width: min(560px, 92vw); max-height: 88vh; overflow: auto; padding: 18px; }
.og-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.og-header h3 { margin: 0; font-size: 14px; }
.og-video-name { font-size: 11px; font-family: monospace; color: var(--muted, #888); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-close { background: none; border: none; color: var(--muted, #888); font-size: 16px; cursor: pointer; }
.og-field { margin-bottom: 14px; }
.og-label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 6px; color: var(--text, #eee); }
.og-hint { font-weight: 400; color: var(--muted, #888); }
.og-textarea { width: 100%; box-sizing: border-box; background: var(--surf, #111); border: 1px solid var(--surf3, #333); border-radius: 8px; color: var(--text, #eee); padding: 10px; font-size: 13px; resize: vertical; min-height: 70px; }
.og-image-list { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow: auto; border: 1px solid var(--surf3, #333); border-radius: 8px; padding: 8px; background: var(--surf, #111); }
.og-image-option { display: flex; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.og-image-option:hover { background: var(--surf2, #222); }
.og-preview { max-width: 100%; max-height: 220px; border-radius: 8px; border: 1px solid var(--surf3, #333); }
.og-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.og-btn { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--surf3, #333); background: var(--surf, #111); color: var(--text, #eee); cursor: pointer; font-size: 12px; }
.og-btn:hover { border-color: var(--accent, #4a9eff); }
.og-btn-primary { background: var(--accent, #2563eb); border-color: var(--accent, #2563eb); }
.card-og-badge { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.65); border-radius: 6px; padding: 2px 6px; font-size: 11px; z-index: 3; }

/* OG image picker + drop zone + status (décision Luc 2026-09-17) */
.og-pick-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.og-url-input { flex: 1; min-width: 160px; background: var(--surf, #111); border: 1px solid var(--surf3, #333); border-radius: 8px; color: var(--text, #eee); padding: 8px 10px; font-size: 12px; }
.og-drop-hint { margin-bottom: 10px; }
.og-thumb-name { font-family: monospace; color: var(--accent, #4a9eff); }
.og-drop-wrap { position: relative; border: 2px dashed var(--surf3, #333); border-radius: 10px; padding: 8px; text-align: center; transition: border-color .15s, background .15s; }
.og-drop-wrap.dragover { border-color: var(--accent, #4a9eff); background: rgba(74,158,255,.08); }
.og-drop-label { position: absolute; bottom: 6px; left: 0; right: 0; font-size: 10px; color: var(--muted, #888); pointer-events: none; }
.og-status { margin-top: 10px; font-size: 11px; color: var(--muted, #999); min-height: 14px; }
.og-status-error { color: #e05252; }

/* ============================================================ */
/* MOBILE — mode édition utilisable sur téléphone (décision Luc 2026-09-19) */
/* Colonne empilée < 768px ; cibles tactiles élargies sur pointer: coarse */
/* ============================================================ */

/* Conteneur des boutons du header modale (toggle player + close) */
.modal-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .modal-body.fullscreen { padding: 12px; gap: 14px; }
    .modal-header.fullscreen { padding: 10px 12px; }
    .modal-header.fullscreen h3 { font-size: 12px; }
    #modalVideoPath { display: block; font-size: 10px; word-break: break-all; }

    /* Colonne empilée : vidéo, puis PENDING CLIPS, puis SAVED CLIPS — la modale scrolle */
    .editor-two-columns { flex-direction: column; gap: 16px; }
    .editor-two-columns.player-hidden { max-height: none; }
    .clips-column, .playlist-column { overflow: visible; flex: none; }
    .clips-list-container, .playlist-content-container { max-height: none; overflow: visible; }

    /* Champs de clip lisibles (grid inline migré vers la classe en editor.js) */
    .clip-row-fields { grid-template-columns: 1fr 1fr; }
    .clip-field:last-child { grid-column: 1 / -1; }
    .clip-field label { font-size: 10px; }
    .clip-field input { font-size: 16px; padding: 8px; } /* 16px = anti-zoom iOS Safari */

    .transport-controls { gap: 6px; }
    .marker-buttons { margin-left: 0; width: 100%; }

    .floating-clip-menu { min-width: 0; max-width: calc(100vw - 24px); }
    .og-footer { flex-wrap: wrap; }
}

@media (pointer: coarse) {
    .toggle-player-btn, .modal-close { width: 44px; height: 44px; }
    .transport-btn, .marker-btn { min-height: 44px; padding: 10px 14px; font-size: 13px; }
    .timecode-input { min-height: 40px; font-size: 14px; }
    .clip-btn { min-height: 44px; padding: 10px 14px; font-size: 13px; }
    .clip-remove, .clip-edit { min-width: 44px; min-height: 44px; font-size: 18px; }
    .clip-delete-btn { min-width: 44px; min-height: 44px; font-size: 18px; }
    .small-btn { min-height: 40px; padding: 8px 12px; }
    .processed-clip-btn { min-height: 40px; padding: 8px 12px; font-size: 12px; }
    .floating-menu-btn { min-height: 44px; }
    .add-clip-btn { min-height: 44px; }
    .timeline-container { touch-action: none; } /* le drag scrubbe, ne scrolle pas la page */
    .transport-drawer-shortcuts { display: none; } /* hints clavier inutiles au tactile */
}

/* ── Classes extraites des styles inline (fix mobile 2026-09-19, responsive propre) ── */
/* Lignes de clips sauvés (playlistView.js) */
.processed-clip-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.processed-clip-sub {
    font-size: 9px;
    color: var(--muted);
    margin-top: 2px;
}

.clip-drift-badge {
    font-size: 9px;
    color: #fbbf24;
    margin-top: 2px;
}

.clip-edit-label {
    font-size: 9px;
    color: var(--muted);
}

.clip-seq-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    align-items: center;
}

.clip-seq-label {
    font-size: 9px;
    color: var(--muted);
}

/* Lignes pending clips dans la colonne SAVED (playlistView.js) */
.pending-clip {
    background: var(--surf2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.pending-clip-name {
    font-size: 11px;
    font-weight: 600;
}

.pending-clip-actions {
    display: flex;
    gap: 4px;
}

.pending-clip-btn {
    padding: 4px 8px;
    background: var(--surf3);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
}

.pending-clip-btn-delete {
    padding: 4px 8px;
    background: transparent;
    border: none;
    color: #f87171;
    cursor: pointer;
    font-size: 14px;
}