@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.5}}
.hidden{display:none !important}
.upload-button{border:0;background-color:#4FAFFC;color:#fff;text-transform:uppercase;font-weight:700;border-radius:2em;padding:.7em 1.2em .7em 3.6em;font-size:1em;position:relative;cursor:pointer;transition:all 0.3s ease}
.upload-button:hover{background-color:#3a9ae8;transform:translateY(-2px)}
.upload-button:before{display:flex;align-items:center;justify-content:center;content:"^";font-size:1.6em;font-weight:700;background-color:#fff;color:#4FAFFC;border:1px solid currentColor;position:absolute;border-radius:50%;width:1.7em;height:1.7em;left:3px;top:0;bottom:0;margin-top:auto;margin-bottom:auto;box-shadow:0 0 0 3px #fff}
#hero.content-grid-mod .upload-button::before{display:none}
#hero.content-grid-mod .upload-button{padding:10px 32px;font-family:"Inter",sans-serif}
.cd-upload-hint{font-size:13px !important;opacity:0.7;margin-top:8px !important}
.cd-video-status{background:#e8f5e8;border:1px solid #4caf50;border-radius:8px;padding:12px 16px;margin:10px 0;display:none}
.cd-video-status.success{background:#e8f5e8;border-color:#4caf50;color:#2e7d32}
.cd-video-status.warning{background:#fff3e0;border-color:#ff9800;color:#e65100}
.cd-video-status.error{background:#ffebee;border-color:#f44336;color:#c62828}
.cd-video-status.info{background:#e3f2fd;border-color:#2196f3;color:#1565c0}
.cd-video-status.processing{background:#e8f4fd;border-color:#2196f3;color:#1565c0}
.cd-video-status .status-text{font-weight:600;margin-bottom:4px}
.cd-video-status .status-details{font-size:13px;opacity:0.85}
.cd-video-progress{margin-top:10px;height:4px;background:rgba(0,0,0,0.1);border-radius:2px;overflow:hidden;display:none}
.cd-video-status.processing .cd-video-progress{display:block}
.cd-video-progress-bar{height:100%;background:linear-gradient(90deg,#4FAFFC,#48C4D8);width:0%;transition:width 0.3s ease;animation:pulse 1.5s ease-in-out infinite}
#hero.content-grid-mod .cd-video-status{background:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.3);color:#fff}
.cd-merge-editor-container{animation:fadeIn 0.3s ease;background:rgba(35,67,106,0.5);border-radius:16px;padding:25px;margin-top:20px}
.cd-section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.cd-section-header h3,.cd-section-header h4{color:#fff;font-size:18px;font-weight:600;margin:0}
.cd-section-hint{color:rgba(255,255,255,0.6);font-size:13px;margin:0 0 15px 0}
.cd-editor-top-row{display:flex;gap:20px;margin-bottom:20px}
.cd-editor-top-row .cd-preview-section{flex:1;min-width:0;margin-bottom:0}
.cd-editor-top-row .cd-timeline-section{flex:1;min-width:0;margin-bottom:0}
.cd-preview-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px;color:rgba(255,255,255,0.4);gap:12px}
.cd-preview-placeholder svg{width:48px;height:48px;opacity:0.4}
.cd-preview-placeholder p{margin:0;font-size:14px}
.cd-timeline-section{background:#1a3a5c;border-radius:12px;padding:20px;margin-bottom:20px}
.cd-timeline-actions{display:flex;gap:10px}
.cd-add-btn{display:flex;align-items:center;gap:6px;padding:8px 16px;background:rgba(79,175,252,0.2);border:1px solid #4FAFFC;border-radius:6px;color:#4FAFFC;font-size:13px;font-weight:500;cursor:pointer;transition:all 0.2s ease}
.cd-add-btn:hover{background:#4FAFFC;color:#fff}
.cd-add-btn svg{fill:currentColor}
.cd-gallery-wrapper{position:relative;display:flex;align-items:center;gap:6px}
.cd-gallery-arrow{background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);color:#fff;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:12px;flex-shrink:0;transition:background 0.2s;padding:0;line-height:1}
.cd-gallery-arrow:hover{background:rgba(79,175,252,0.3)}
.cd-gallery-arrow:active{background:rgba(79,175,252,0.5)}
.cd-scroll-indicator{position:relative;height:8px;background:rgba(255,255,255,0.15);border-radius:4px;margin-top:6px;display:none;touch-action:none;padding:10px 0;background-clip:content-box}
.cd-scroll-indicator .cd-scroll-thumb{position:absolute;top:10px;left:0;height:8px;width:30%;background:rgba(79,175,252,0.7);border-radius:4px;transition:left 0.15s ease-out}
.cd-video-timeline{display:flex;gap:12px;padding:15px 0;overflow-x:auto;overflow-y:hidden;min-height:140px;align-items:center;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}
.cd-video-timeline::-webkit-scrollbar{height:0;display:none}
.cd-video-timeline:empty::after{content:"Upload videos to add to the timeline";color:rgba(255,255,255,0.4);font-size:14px;display:flex;align-items:center;justify-content:center;width:100%}
.cd-video-timeline::-webkit-scrollbar{height:6px}
.cd-video-timeline::-webkit-scrollbar-track{background:rgba(255,255,255,0.05);border-radius:3px}
.cd-video-timeline::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.2);border-radius:3px}
.cd-video-clip{flex-shrink:0;width:160px;background:#0f2840;border-radius:10px;overflow:hidden;cursor:grab;transition:all 0.2s ease;border:2px solid transparent;position:relative}
.cd-video-clip:hover{border-color:rgba(79,175,252,0.5);transform:translateY(-2px)}
.cd-video-clip.active{border-color:#4FAFFC;box-shadow:0 0 0 3px rgba(79,175,252,0.3)}
.cd-video-clip.sortable-ghost{opacity:0.5;border-color:#4FAFFC}
.cd-video-clip.sortable-drag{cursor:grabbing}
.cd-clip-thumbnail{width:100%;height:90px;background:#000;position:relative;overflow:hidden}
.cd-clip-thumbnail video{width:100%;height:100%;object-fit:cover}
.cd-clip-number{position:absolute;top:6px;left:6px;background:rgba(0,0,0,0.7);color:#fff;font-size:11px;font-weight:600;padding:2px 8px;border-radius:10px}
.cd-clip-duration{position:absolute;bottom:6px;right:6px;background:rgba(0,0,0,0.7);color:#fff;font-size:11px;padding:2px 6px;border-radius:4px}
.cd-clip-info{padding:8px 10px}
.cd-clip-name{color:#fff;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:4px}
.cd-clip-meta{color:rgba(255,255,255,0.5);font-size:10px}
.cd-clip-remove{position:absolute;top:6px;right:6px;width:22px;height:22px;background:rgba(244,67,54,0.9);border:none;border-radius:50%;color:#fff;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity 0.2s ease}
.cd-video-clip:hover .cd-clip-remove{opacity:1}
.cd-clip-remove:hover{background:#f44336}
.cd-transition-indicator{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0 5px}
.cd-transition-icon{width:24px;height:24px;background:rgba(79,175,252,0.2);border:1px dashed rgba(79,175,252,0.5);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#4FAFFC;font-size:12px}
.cd-transition-label{color:rgba(255,255,255,0.5);font-size:9px;text-transform:uppercase}
.cd-clip-info{display:flex;justify-content:space-between;padding:10px 0 0;color:rgba(255,255,255,0.7);font-size:13px;border-top:1px solid rgba(255,255,255,0.1);margin-top:10px}
.cd-clip-editor{background:#1a3a5c;border-radius:12px;padding:20px;margin-bottom:20px}
.cd-close-btn{width:28px;height:28px;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);border-radius:4px;color:rgba(255,255,255,0.7);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all 0.2s ease}
.cd-close-btn:hover{background:rgba(255,255,255,0.2);color:#fff}
.cd-clip-preview{max-width:400px;margin:0 auto 15px}
.cd-clip-preview video{width:100%;border-radius:8px;background:#000}
.cd-clip-controls{max-width:400px;margin:0 auto}
.cd-clip-actions{display:flex;gap:10px;margin-top:15px}
.cd-apply-clip-btn{flex:1;padding:10px 20px;background:#4FAFFC;border:none;border-radius:6px;color:#fff;font-size:14px;font-weight:500;cursor:pointer;transition:all 0.2s ease}
.cd-apply-clip-btn:hover{background:#3a9ae8}
.cd-remove-clip-btn{padding:10px 20px;background:transparent;border:1px solid rgba(244,67,54,0.5);border-radius:6px;color:#f44336;font-size:14px;cursor:pointer;transition:all 0.2s ease}
.cd-remove-clip-btn:hover{background:rgba(244,67,54,0.1);border-color:#f44336}
.cd-merge-settings{margin-bottom:20px}
.cd-settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.cd-settings-card{background:#1a3a5c;border-radius:12px;padding:18px}
.cd-settings-card h4{color:#fff;font-size:15px;font-weight:600;margin:0 0 15px 0}
.cd-control-row{display:flex;gap:12px;margin-bottom:12px}
.cd-control-row:last-child{margin-bottom:0}
.cd-control-group{flex:1;min-width:0}
.cd-control-group label{display:block;color:rgba(255,255,255,0.9);font-size:12px;font-weight:500;margin-bottom:6px}
.cd-control-input,.cd-control-select{width:100%;padding:10px 12px;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);border-radius:6px;color:#fff;font-size:14px}
.cd-control-select{cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px}
.cd-control-input:focus,.cd-control-select:focus{outline:none;border-color:#4FAFFC;background-color:rgba(79,175,252,0.1)}
.cd-control-select option{background:#1a3a5c;color:#fff}
.cd-preview-section{background:#1a3a5c;border-radius:12px;padding:20px;margin-bottom:20px}
.cd-preview-container{max-width:720px;margin:0 auto;background:#000;border-radius:8px;overflow:hidden}
.cd-preview-container video{width:100%;display:block}
.cd-preview-info{display:flex;justify-content:center;gap:30px;margin-top:15px;color:rgba(255,255,255,0.7);font-size:13px}
.cd-action-buttons{display:flex;justify-content:center;gap:15px;margin:25px 0}
.cd-merge-btn,.cd-download-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 32px;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:all 0.3s ease}
.cd-merge-btn{background:linear-gradient(135deg,#48C4D8,#4FAFFC);color:#fff;box-shadow:0 2px 8px rgba(72,196,216,0.3)}
.cd-merge-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(72,196,216,0.4)}
.cd-merge-btn:disabled{opacity:0.5;cursor:not-allowed;transform:none}
.cd-download-btn{background:linear-gradient(135deg,#48C4D8,#4FAFFC);color:#fff;box-shadow:0 2px 8px rgba(76,175,80,0.3)}
.cd-download-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(76,175,80,0.4)}
.cd-merge-btn svg,.cd-download-btn svg{fill:currentColor}
.cd-start-over-section{display:flex;justify-content:center;gap:15px;margin-top:20px}
.cd-reset-all-btn,.cd-start-over-btn{padding:12px 25px;background:transparent;border:1px solid rgba(255,255,255,0.3);border-radius:8px;color:rgba(255,255,255,0.7);font-size:14px;cursor:pointer;transition:all 0.3s ease}
.cd-reset-all-btn:hover,.cd-start-over-btn:hover{border-color:rgba(255,255,255,0.6);color:#fff}
.cd-tool-file-preview-wrapper{display:none}
.cd-tool-file-preview-wrapper.active{display:flex;align-items:center;justify-content:center}
.cd-tool-preview-loader{display:flex;flex-direction:column;align-items:center;gap:15px;padding:30px}
.cd-tool-preview-loader[data-loader-view="full"]{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(17,17,17,0.9);z-index:9999;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(5px)}
.cd-tool-preview-loader img{width:50px;height:50px;animation:spin 1s infinite linear}
.cd-tool-preview-loader span{color:#fff;font-size:16px;font-weight:500}
#hero.content-grid-mod::before{background:radial-gradient(circle,rgba(0,101,173,1) 0%,rgba(3,31,51,1) 82%);background-size:300vw;background-repeat:no-repeat;background-position:right bottom;height:70%}
#hero.content-grid-mod::after{content:"";position:absolute;left:0;right:0;bottom:0;top:auto;margin:auto;height:30%;background-color:#0D1E32}
#hero.content-grid-mod{border-bottom:0;z-index:99}
#hero.content-grid-mod .converter-wrapper{background-color:#23436A;padding:50px;border-radius:24px;margin-top:76px;transition:height 0.3s ease-out}
#hero.content-grid-mod .converter-wrapper .drop-area{background-color:#355A90;border-radius:16px;padding:50px 60px;height:auto;margin:0 auto 40px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid transparent;transition:all 0.3s ease}
#hero.content-grid-mod .converter-wrapper .drop-area.highlight{box-shadow:0 10px 20px rgba(0,0,0,0.2);border:2px solid #4FAFFC}
#hero.content-grid-mod .converter-wrapper .drop-area h2{font-weight:300;font-size:42px;color:#fff;margin-bottom:30px;line-height:1.2;text-align:center}
#hero.content-grid-mod .converter-wrapper .drop-area p{font-size:16px;color:#fff;line-height:1.5;font-family:"Inter",sans-serif;margin:16px auto}
#hero.content-grid-mod .converter-wrapper .drop-area::before{content:"";display:flex;height:80px;width:80px;background-image:url("../../../../assets/img/upload.svg");background-size:contain;background-repeat:no-repeat;background-position:center;margin-bottom:20px}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets{display:flex;align-items:center;justify-content:center;gap:20px;width:100%}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .info h4{font-size:20px;font-weight:500;color:#fff;line-height:1.3;margin-bottom:0}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-items{display:flex;gap:15px}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-item video{max-width:140px;max-height:100px;border-radius:8px;border:3px solid #fff;cursor:pointer;transition:transform 0.2s ease;object-fit:cover}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-item video:hover{transform:scale(1.05)}
#hero .cd_header_top_bar{display:none}
.cd_header_top_bar{width:100%;background:#3f5fff;color:#fff;display:flex;align-items:center;justify-content:center;padding:10px 30px;height:auto;z-index:99;position:relative;font-size:14px}
.cd_header_top_bar .cd_header_top_bar_content a{color:#fff;text-transform:uppercase;text-decoration:underline;margin-left:8px}
@media (max-width:1199px){.cd-settings-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:991px){#hero.content-grid-mod .converter-wrapper{padding:30px}.cd-merge-editor-container{padding:20px}.cd-editor-top-row{flex-direction:column}.cd-settings-grid{grid-template-columns:1fr}.cd-video-clip{width:140px}.cd-clip-thumbnail{height:80px}}
@media (max-width:767px){#hero.content-grid-mod .converter-wrapper{padding:20px;margin-top:40px;border-radius:12px}#hero.content-grid-mod .converter-wrapper .drop-area{padding:25px 20px}#hero.content-grid-mod .converter-wrapper .drop-area h2{font-size:24px;margin-bottom:20px}.cd-merge-editor-container{padding:15px}.cd-video-clip{width:120px}.cd-clip-thumbnail{height:70px}.cd-clip-name{font-size:11px}.cd-action-buttons{flex-direction:column}.cd-merge-btn,.cd-download-btn{width:100%}.cd-start-over-section{flex-direction:column}.cd_header_top_bar{padding:10px 16px;font-size:13px;text-align:center}.cd-scroll-indicator{display:block}}
@media print{.cd-merge-editor-container,.cd-action-buttons,.cd-start-over-section,.cd_header_top_bar{display:none !important}}
