#video-editor-trim-root {
    /* Tooltip styles - only on desktop where hover is available */
    @media (hover: hover) and (pointer: fine) {
        [data-tooltip] {
            position: relative;
        }

        [data-tooltip]:before {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-bottom: 5px;
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            text-align: center;
            padding: 5px 10px;
            border-radius: 3px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition:
                opacity 0.2s,
                visibility 0.2s;
            z-index: 1000;
            pointer-events: none;
        }

        [data-tooltip]:after {
            content: "";
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            border-width: 5px;
            border-style: solid;
            border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
            opacity: 0;
            visibility: hidden;
            transition:
                opacity 0.2s,
                visibility 0.2s;
            pointer-events: none;
        }

        [data-tooltip]:hover:before,
        [data-tooltip]:hover:after {
            opacity: 1;
            visibility: visible;
        }
    }

    /* Hide button tooltips on touch devices */
    @media (pointer: coarse) {
        [data-tooltip]:before,
        [data-tooltip]:after {
            display: none !important;
            content: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }
    }
    .clip-segments-container {
        margin-top: 1rem;
        background-color: white;
        border-radius: 0.5rem;
        padding: 1rem;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .clip-segments-title {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--foreground, #333);
        margin-bottom: 0.75rem;
    }

    .segment-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.25rem;
        margin-bottom: 0.5rem;
        transition: box-shadow 0.2s ease;

        &:hover {
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
    }

    .segment-content {
        display: flex;
        align-items: center;
    }

    .segment-thumbnail {
        width: 4rem;
        height: 2.25rem;
        background-size: cover;
        background-position: center;
        border-radius: 0.25rem;
        margin-right: 0.75rem;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
    }

    .segment-info {
        display: flex;
        flex-direction: column;
    }

    .segment-title {
        font-weight: 500;
        font-size: 0.875rem;
        color: black;
    }

    .segment-time {
        font-size: 0.75rem;
        color: black;
    }

    .segment-duration {
        font-size: 0.75rem;
        margin-top: 0.25rem;
        display: inline-block;
        background-color: #f3f4f6;
        padding: 0 0.5rem;
        border-radius: 0.25rem;
        color: black;
    }

    .segment-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .delete-button {
        padding: 0.375rem;
        color: #4b5563;
        background-color: #e5e7eb;
        border-radius: 9999px;
        border: none;
        cursor: pointer;
        transition:
            background-color 0.2s,
            color 0.2s;
        min-width: auto;

        &:hover {
            color: black;
            background-color: #d1d5db;
        }

        svg {
            height: 1rem;
            width: 1rem;
        }
    }

    .empty-message {
        padding: 1rem;
        text-align: center;
        color: rgba(51, 51, 51, 0.7);
    }

    .segment-color-1 {
        background-color: rgba(59, 130, 246, 0.15);
    }
    .segment-color-2 {
        background-color: rgba(16, 185, 129, 0.15);
    }
    .segment-color-3 {
        background-color: rgba(245, 158, 11, 0.15);
    }
    .segment-color-4 {
        background-color: rgba(239, 68, 68, 0.15);
    }
    .segment-color-5 {
        background-color: rgba(139, 92, 246, 0.15);
    }
    .segment-color-6 {
        background-color: rgba(236, 72, 153, 0.15);
    }
    .segment-color-7 {
        background-color: rgba(6, 182, 212, 0.15);
    }
    .segment-color-8 {
        background-color: rgba(250, 204, 21, 0.15);
    }
}
