/* Animations */
@keyframes spin {from {transform:rotate(0deg)} to {transform:rotate(360deg)}}
@keyframes pulse {0% {transform:scale(1);box-shadow:0 5px 10px rgba(0,0,0,0.25)} 50% {transform:scale(1.025);box-shadow:0 10px 20px rgba(0,0,0,0.5)} 100% {transform:scale(1);box-shadow:0 5px 10px rgba(0,0,0,0.25)}}
/* Utilities */
.hidden {display:none !important}
.invisible {opacity:0 !important}
/* URL Input */
.cd-url-input-wrapper {margin:20px auto;max-width:600px}
.cd-url-input-group {display:flex;gap:10px}
.cd-url-input {flex:1;padding:12px 16px;border:2px solid #ffffff33;border-radius:8px;background:#ffffff1a;color:#fff;font-size:14px;outline:none;transition:border-color 0.2s}
.cd-url-input::placeholder {color:#ffffff80}
.cd-url-input:focus {border-color:#4FAFFC}
.cd-load-url-btn {padding:12px 24px;background:#4FAFFC;color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:background-color 0.2s}
.cd-load-url-btn:hover {background:#3a9ae8}
.supported-formats {font-size:12px !important;opacity:0.7;margin-top:8px !important}
/* Cut Video Container */
.cd-cut-video-container {max-width:900px;margin:0 auto;padding:20px}
/* Video Preview */
.cd-video-preview-wrapper {position:relative;background:#000;border-radius:12px;overflow:hidden}
.cd-video-preview {width:100%;max-height:500px;display:block;background:#000}
/* Video Controls */
.cd-video-controls {display:flex;align-items:center;gap:12px;padding:12px 16px;background:linear-gradient(transparent,rgba(0,0,0,0.8));position:absolute;bottom:0;left:0;right:0}
.cd-play-pause-btn,.cd-mute-btn {background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center}
.cd-play-pause-btn svg,.cd-mute-btn svg {width:24px;height:24px;fill:#fff}
.cd-current-time,.cd-total-duration {font-size:14px;color:#fff;font-family:'Inter',monospace}
.cd-time-separator {color:#ffffff80}
.cd-mute-btn {margin-left:auto}
/* Timeline Editor */
.cd-timeline-editor {margin-top:20px;padding:20px;background:rgba(255,255,255,0.1);border-radius:12px}
.cd-timeline-wrapper {position:relative;height:80px;background:#1a1a2e;border-radius:8px;overflow:hidden}
/* Thumbnails Track */
.cd-timeline-thumbnails {position:absolute;top:0;left:0;right:0;height:60px;display:flex;gap:2px;overflow:hidden}
.cd-timeline-thumbnails canvas {height:60px;flex-shrink:0}
/* Progress Track */
.cd-timeline-track {position:absolute;bottom:0;left:0;right:0;height:20px;background:#2a2a4a;cursor:pointer}
.cd-timeline-progress {position:absolute;top:0;left:0;height:100%;background:rgba(79,175,252,0.3);pointer-events:none}
.cd-timeline-playhead {position:absolute;top:-60px;width:2px;height:80px;background:#fff;pointer-events:none;z-index:10;box-shadow:0 0 4px rgba(0,0,0,0.5)}
.cd-timeline-playhead::before {content:'';position:absolute;top:0;left:-6px;width:14px;height:14px;background:#fff;border-radius:50%}
/* Selection Range */
.cd-timeline-selection {position:absolute;top:0;left:0;right:0;height:60px;pointer-events:none}
.cd-selection-range {position:absolute;top:0;height:100%;background:rgba(79,175,252,0.3);border-top:3px solid #4FAFFC;border-bottom:3px solid #4FAFFC;pointer-events:none}
.cd-selection-handle {position:absolute;top:0;width:16px;height:100%;background:#4FAFFC;cursor:ew-resize;pointer-events:auto;z-index:5;transition:background-color 0.2s}
.cd-selection-handle:hover {background:#3a9ae8}
.cd-handle-start {left:0;border-radius:4px 0 0 4px}
.cd-handle-end {left:auto;right:0;border-radius:0 4px 4px 0}
.cd-selection-handle::before {content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:4px;height:24px;background:#fff;border-radius:2px}
/* Time Markers */
.cd-time-markers {display:flex;justify-content:space-between;padding:8px 0;font-size:11px;color:#ffffff80;font-family:'Inter',monospace}
/* Time Controls */
.cd-time-controls {display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px;padding:20px;background:rgba(255,255,255,0.05);border-radius:12px}
.cd-time-input-group {display:flex;flex-direction:column;gap:8px}
.cd-time-input-group label {font-size:12px;color:#ffffff80;text-transform:uppercase;letter-spacing:0.5px}
.cd-time-input-wrapper {display:flex;gap:8px}
.cd-time-input {width:100px;padding:10px 12px;border:2px solid #ffffff33;border-radius:8px;background:#ffffff1a;color:#fff;font-size:16px;font-family:'Inter',monospace;text-align:center;outline:none;transition:border-color 0.2s}
.cd-time-input:focus {border-color:#4FAFFC}
.cd-set-current-btn {padding:10px;background:#4FAFFC;border:none;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color 0.2s}
.cd-set-current-btn:hover {background:#3a9ae8}
.cd-set-current-btn svg {width:20px;height:20px;fill:#fff}
.cd-time-duration-display {display:flex;flex-direction:column;align-items:center;gap:8px}
.cd-duration-label {font-size:12px;color:#ffffff80;text-transform:uppercase;letter-spacing:0.5px}
.cd-duration-value {font-size:24px;font-weight:600;color:#4FAFFC;font-family:'Inter',monospace}
/* Action Buttons */
.cd-cut-actions {display:flex;justify-content:center;gap:12px;margin-top:20px;flex-wrap:wrap}
.cd-action-btn {display:flex;align-items:center;gap:8px;padding:12px 24px;background:rgba(255,255,255,0.1);color:#fff;border:2px solid #ffffff33;border-radius:8px;font-weight:600;cursor:pointer;transition:all 0.2s}
.cd-action-btn:hover {background:#4FAFFC;border-color:#4FAFFC;color:#fff}
.cd-action-btn.cd-primary-btn {background:#4FAFFC;border-color:#4FAFFC}
.cd-action-btn.cd-primary-btn:hover {background:#3a9ae8;border-color:#3a9ae8}
.cd-action-btn svg {width:20px;height:20px;fill:currentColor}
/* Output Options */
.cd-output-options {display:flex;justify-content:center;gap:24px;margin-top:20px;padding:20px;background:rgba(255,255,255,0.05);border-radius:12px}
.cd-option-group {display:flex;flex-direction:column;gap:8px}
.cd-option-group label {font-size:12px;color:#ffffff80;text-transform:uppercase;letter-spacing:0.5px}
.cd-select {padding:10px 16px;padding-right:36px;border:2px solid #ffffff33;border-radius:8px;background:#ffffff1a 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") no-repeat right 12px center;color:#fff;font-size:14px;outline:none;cursor:pointer;appearance:none;transition:border-color 0.2s}
.cd-select:focus {border-color:#4FAFFC}
.cd-select option {background:#1a1a2e;color:#fff}
/* Hero section integration */
#hero.content-grid-mod .cut-video-wrapper {background-color:#23436A;padding:88px;border-radius:24px;margin-top:76px}
#hero.content-grid-mod .cut-video-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 .cut-video-wrapper .drop-area h2 {font-weight:300;font-size:47px;color:#fff;margin-bottom:42px;line-height:1.2;text-align:center}
#hero.content-grid-mod .cut-video-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 .cut-video-wrapper .drop-area.highlight {box-shadow:0 10px 20px rgba(0,0,0,0.2);border:2px solid #4FAFFC}
#hero.content-grid-mod .cut-video-wrapper .drop-area::before {content:"";display:flex;height:100px;width:100px;background-image:url("../../../../assets/img/upload.svg");background-size:contain;background-repeat:no-repeat;background-position:center;margin-bottom:20px}
#hero.content-grid-mod .cut-video-wrapper .cd-stock-assets {display:flex;align-items:center;justify-content:center;gap:20px;width:100%}
#hero.content-grid-mod .cut-video-wrapper .cd-stock-assets .info h4 {font-size:22px;font-weight:500;color:#fff;line-height:1.2}
#hero.content-grid-mod .cut-video-wrapper .cd-stock-assets-items {display:flex;gap:20px}
#hero.content-grid-mod .cut-video-wrapper .cd-stock-assets-item video {max-width:180px;max-height:100px;border-radius:12px;border:3px solid #fff;cursor:pointer;transition:transform 0.2s,border-color 0.2s}
#hero.content-grid-mod .cut-video-wrapper .cd-stock-assets-item video:hover {transform:scale(1.05);border-color:#4FAFFC}
#hero .upload-button::before {display:none}
#hero .upload-button {padding:10px 32px;font-family:"Inter",sans-serif}
/* Preview active state */
.preview-active#hero.content-grid-mod .cut-video-wrapper .drop-area {display:none}
.preview-active#hero.content-grid-mod .cut-video-wrapper .cd-url-input-wrapper {display:none}
.preview-active#hero.content-grid-mod .cut-video-wrapper .cd-stock-assets {display:none}
/* Upload button */
.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}
.upload-button:before {display:flex;align-items:center;justify-content:center;content:"\2191";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}
/* Loader */
.cd-tool-file-preview-wrapper {display:none}
.cd-tool-file-preview-wrapper.active {display:flex;justify-content:center;align-items:center;padding:30px}
.cd-tool-preview-loader {display:flex;flex-direction:column;align-items:center;gap:12px}
.cd-tool-preview-loader img {animation:spin 1s infinite linear;width:48px;height:48px}
.cd-tool-preview-loader span {font-weight:500;color:#fff}
.cd-tool-preview-loader[data-loader-view="full"] {position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(17,17,25,0.6);z-index:999;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(5px)}
/* Top bar */
#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}
.cd_header_top_bar .cd_header_top_bar_content a {color:#fff;text-transform:uppercase;text-decoration:underline;margin-left:8px}
/* Responsive */
@media (max-width:991px) {
.cd_header_top_bar {padding:10px 20px}
.cd_header_top_bar .cd_header_top_bar_content {font-size:13px}
.cd-time-controls {flex-wrap:wrap;gap:16px}
.cd-time-input-group {flex:1;min-width:120px}
}
@media (max-width:767px) {
#hero.content-grid-mod .cut-video-wrapper {padding:20px 20px 40px;margin-top:40px;border-radius:12px}
#hero.content-grid-mod .cut-video-wrapper .drop-area {padding:20px}
#hero.content-grid-mod .cut-video-wrapper .drop-area h2 {font-size:22px;margin-bottom:17px}
#hero.content-grid-mod .cut-video-wrapper .drop-area::before {height:60px;width:60px}
#hero.content-grid-mod .cut-video-wrapper .drop-area p {font-size:14px !important}
.cd-url-input-group {flex-direction:column}
.cd-load-url-btn {width:100%}
.cd-cut-video-container {padding:10px}
.cd-timeline-editor {padding:12px}
.cd-time-controls {flex-direction:column;gap:16px}
.cd-time-input-group {width:100%}
.cd-time-input-wrapper {justify-content:center}
.cd-time-input {flex:1}
.cd-cut-actions {flex-direction:column}
.cd-action-btn {width:100%;justify-content:center}
.cd-output-options {flex-direction:column;gap:16px}
.cd-option-group {width:100%}
.cd-select {width:100%}
.cd_header_top_bar {padding:10px 16px}
.cd_header_top_bar .cd_header_top_bar_content {font-size:13px;line-height:1.5}
#hero.content-grid-mod .cut-video-wrapper .cd-stock-assets {flex-direction:column;gap:15px}
#hero.content-grid-mod .cut-video-wrapper .cd-stock-assets-items {flex-wrap:wrap;justify-content:center}
#hero.content-grid-mod .cut-video-wrapper .cd-stock-assets-item video {max-width:140px;max-height:80px}
}
