
/* v313: GPU-accelerated playhead (transform instead of left) */
.playhead-line {
    will-change: transform;
    backface-visibility: hidden;
}

.frame span {
    position: absolute;
    bottom: 2px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    padding: 0 3px;
    border-radius: 3px;
    pointer-events: none;
}
.frame .duration-badge {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 9px;
    background: rgba(0, 0, 0, 0.55);
    padding: 1px 3px;
    border-radius: 3px;
    color: #fff;
    pointer-events: none;
}

/* [v4.7.59] أرقام فريمات الرسم بنفس تنسيق أرقام الفريمات الأساسية:
   أسفل يمين الفريم على خلفية داكنة مستديرة، وشارة المدة في أعلى يسار. */
.draw-frame span {
    position: absolute;
    bottom: 2px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    padding: 0 3px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 3;
}
.draw-frame .duration-badge {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 9px;
    background: rgba(0, 0, 0, 0.55);
    padding: 1px 3px;
    border-radius: 3px;
    color: #fff;
    pointer-events: none;
    z-index: 3;
}

.frame-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15px;
    z-index: 5;
    cursor: col-resize;
    opacity: 0;
    transition: opacity 0.15s;
}
.frame:hover .frame-handle {
    opacity: 1;
    background: rgba(255, 255, 255, 0.06);
}
.f-handle-right { right: 8px; }

.frame-tween-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--border);
    z-index: 10;
    cursor: ns-resize;
}
.frame-tween-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--tween-color);
    pointer-events: none;
    transition: height 0.1s;
}
.frame-tween-slider:hover { background: rgba(0, 0, 0, 0.3); }

.generic-track {
    min-height: 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
    position: relative;
    margin: 0;
    overflow: hidden;
    display: flex;
}
.audio-track { height: 60px; }
.audio-track.track-selected {
    background: var(--bg-dark);
    border-top-color: var(--border);
    box-shadow: none;
}
.media-track {
    height: 45px;
    background: rgba(15, 17, 20, 0.8);
    border-bottom: 1px solid rgba(42, 45, 53, 0.5);
}

.track-content {
    position: relative;
    height: 100%;
    flex: 1;
}

.timeline-clip {
    position: absolute;
    top: 5px;
    height: calc(100% - 10px);
    border-radius: var(--radius-sm);
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 10px;
    text-shadow: 0 0 2px #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.15s;
}
.audio-clip {
    background: rgba(212, 160, 23, 0.3);
    border-color: var(--audio-bg);
}
.media-clip {
    background: rgba(217, 70, 168, 0.3);
    border-color: var(--media-bg);
    top: 4px;
    height: 36px;
}
