/* Base Styles */
body {
    background: #000000;
    background-attachment: fixed;
    color: white;
    font-family: 'Inter', sans-serif;
}

.watermark {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13vw;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Resizing Styles */
#view-editor {
    user-select: none;
    /* Prevent selection while dragging */
}

.resize-handle {
    width: 4px;
    cursor: col-resize;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
    position: relative;
    z-index: 50;
}

.resize-handle:hover,
.resize-handle.active {
    background-color: #3b82f6;
}

.editor-view-container {
    display: none;
    /* Controlled by JS */
}

.caption-overlay {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    pointer-events: none;
    z-index: 10;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.caption-text {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    color: white;
    font-size: 2rem;
    line-height: 1.2;
}

.caption-highlight {
    color: #FFD700;
    /* Gold */
    transform: scale(1.1);
    display: inline-block;
}

/* New Clip List Styles */
.clip-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clip-item.active {
    border: 1px solid rgba(147, 51, 234, 0.8);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

.gradient-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    transform: translateY(-2px);
}

.gradient-card.active {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.4) 0%, rgba(79, 70, 229, 0.4) 100%);
}

/* Editable Transcript */
.transcript-word {
    display: inline-block;
    padding: 2px 0;
    margin: 0 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: #9ca3af;
    /* Gray-400 */
}

.transcript-word:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.transcript-word.active-word {
    background-color: #3b82f6;
    /* Blue-500 */
    color: white;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    padding: 2px 6px;
    margin: 0 0;
    /* Adjust spacing */
    font-weight: bold;
    transform: scale(1.1);
}

/* Video Glow */
.video-glow-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.ambient-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(60px) saturate(200%);
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.auth-container {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
}

/* Liquid Metal Styles */
:root {
    --lm-light-color: #444;
    --lm-dark-color: #000;
}

#liquid-metal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 6px);
    /* Consistent thin border */
    height: calc(100% + 6px);
    /* Consistent thin border */
    border-radius: 1rem;
    z-index: 0;
    pointer-events: none;
    /* Allow clicks to pass through to card */
}

#liquid-metal canvas {
    border-radius: 1rem;
    width: 100% !important;
    height: 100% !important;
}

#liquid-metal-upgrade {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    border-radius: 9999px;
    z-index: 0;
    pointer-events: none;
}

#liquid-metal-upgrade canvas {
    border-radius: 9999px;
    width: 100% !important;
    height: 100% !important;
}

/* Optional: Add the outline effect if desired, but adapting for rect */
.lm-outline {
    position: absolute;
    inset: -5px;
    border-radius: 2.2rem;
    background: conic-gradient(from 180deg, blue, purple, red, purple, blue);
    filter: blur(10px);
    opacity: 0.5;
    z-index: -1;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}