* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    height: 100vh;
}

.app-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.floating-particles::before {
    top: -100px;
    left: -100px;
}

.floating-particles::after {
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-top: 40px;
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-bar {
    display: flex;
    gap: 6px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.status-indicator.active {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 300px;
}

.menu-button {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.menu-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.button-icon {
    width: 24px;
    height: 24px;
    color: #a855f7;
}

.button-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.button-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-button:hover .button-glow {
    opacity: 1;
}

.bottom-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.nav-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-indicator.active {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    width: 60px;
}

/* Split Screen Styles */
.split-screen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #0a0a0a, #230629 66.39%, #0f0f0f);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.split-screen-container.active {
    transform: translateX(0);
}

.split-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    margin-right: 15px;
}

.back-button svg {
    width: 24px;
    height: 24px;
}

.split-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.split-actions {
    margin-left: auto;
}

.action-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
}

.action-button svg {
    width: 20px;
    height: 20px;
}

.split-preview {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    gap:20px;
    min-height:400px;
}

.video-container {
    position: relative;
    width: 120px;
    height: 250px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    color: rgba(255, 255, 255, 0.9);
}

.upload-zone svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.upload-zone span {
    margin: 0;
    line-height: 1;
    text-align: center;
}


.split-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(168, 85, 247, 0.8);
    border-radius: 50%;
    cursor: grab;
    z-index: 10;
}

.handle-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.split-controls {
    padding: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    /* width:89%; */
}

.thumbnail-preview {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.thumbnail {
    flex: 1;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.result-wrapper {
  display: flex;
  justify-content: center;   /* по центру по горизонтали */
  align-items: center;       /* если хочешь ещё и по вертикали */
  width: 100%;
  /* если нужно центр по вертикали на всю страницу: */
  /* height: 100vh; */
}
.result-preview {
    width: 120px;
    height: 250px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 20px;
}

.result-preview-insert {
    max-width: 188px;
    min-height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 20px;
}

.result-split {
    position: relative;
    width: 100%;
    height: 100%;
}

.result-top,
.result-bottom {
    position: absolute;
    width: 100%;
    overflow: hidden;
}

.result-top {
    top: 0;
    height: 50%;
}

.result-bottom {
    bottom: 0;
    height: 50%;
}

.result-top video,
.result-bottom video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.result-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.control-group {
    margin-bottom: 20px;
}

.control-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.split-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.split-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-radius: 50%;
    cursor: pointer;
}

.position-btn,
.launch-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.position-btn:hover,
.launch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

/* Corner Screen Styles */
.corner-screen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #0a0a0a, #230629 66.39%, #0f0f0f);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.corner-screen-container.active {
    transform: translateX(0);
}




.corner-preview {
    position: relative;
    flex: 1;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 20px;
    min-height: 400px;
}

.corner-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.corner-btn {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    text-align: center;
}

.corner-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.corner-btn.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    color: white;
}

.corner-result {
    position: relative;
    width: 120px;
    height: 250px;
}

.main-video-result {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 9px;
    overflow: hidden;
}

.main-video-result video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.corner-overlay-result {
    position: absolute;
    width: 25%;
    height: 25%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.corner-overlay-result video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.corner-overlay-result.top-left {
    top: 10px;
    left: 10px;
}

.corner-overlay-result.top-right {
    top: 10px;
    right: 10px;
}

.corner-overlay-result.bottom-left {
    bottom: 10px;
    left: 10px;
}

.corner-overlay-result.bottom-right {
    bottom: 10px;
    right: 10px;
}

.corner-controls {
    padding: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    /* width:89%; */
}

/* Video Inserts Styles */
.video-inserts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #0a0a0a, #230629 66.39%, #0f0f0f);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.video-inserts-container.active {
    transform: translateX(0);
}

.video-inserts-preview {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    gap: 20px;
    min-height: 400px;
}

.video-inserts-preview .video-container {
    width: 200px;
    height: 430px;
    margin: 0;
    position: relative;
}

.timeline-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    margin-top: auto;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    min-height: 200px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.timeline-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.timeline-duration {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.timeline {
    position: relative;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 0 10px;
    margin-bottom: 15px;
}

.timeline-track {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.timeline-progress {
    position: absolute;
    height: 4px;
    background: linear-gradient(90deg, #a855f7 0%, #3b82f6 100%);
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

.timeline-cursor {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #a855f7;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    z-index: 10;
}

.insert-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 5;
}

.marker-dot {
    width: 10px;
    height: 10px;
    background: #a855f7;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    margin-bottom: 5px;
}

.insert-marker:hover .marker-tooltip {
    opacity: 1;
}

.insert-marker:hover .marker-dot {
    transform: translate(-50%, -50%) scale(1.5);
}

.timeline-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.timeline-btn {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.timeline-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
}

.timeline-btn svg {
    width: 16px;
    height: 16px;
}

.video-inserts-controls {
    padding: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.transitions-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.transitions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.transition-btn {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.transition-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.5);
}

.transition-btn.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.6);
}

.transition-preview {
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.fade-preview {
    background: linear-gradient(to right, #a855f7, #3b82f6);
}

.slide-preview {
    background: linear-gradient(to right, #a855f7 50%, #3b82f6 50%);
}

.zoom-preview {
    background: radial-gradient(circle, #a855f7 30%, #3b82f6 100%);
}

.flip-preview {
    background: linear-gradient(45deg, #a855f7, #3b82f6);
}

.transition-btn span {
    font-size: 12px;
    font-weight: 500;
}

.final-result {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.final-result video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

#generateBtn {
    margin-top: 20px;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#generateBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

/* Ensure content can scroll on mobile */
@media (max-width: 768px) {
    .corner-screen-container,
    .video-inserts-container {
        -webkit-overflow-scrolling: touch;
    }
    
    .corner-preview,
    .video-inserts-preview {
        padding: 15px;
    }
}

.broll-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-right:35px;
}

.insert-wrapper {
    padding:20px;
}

.insert-marker {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  cursor: pointer;
}

.marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4444;
}

.marker-tooltip {
  font-size: 12px;
  color: #fff;
  margin-top: 4px;
  text-align: center;
}


.subtitles-settings {
  display: none;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}

.sub-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0;
}

.sub-control span {
  flex: 1;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.subtitle-toggle {
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subtitle-toggle.active {
  background: #4cafef;
  border-color: #4cafef;
  color: #fff;
  box-shadow: 0 0 10px rgba(76, 175, 239, 0.6);
}

.subtitles-settings {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
}


.subtitle-styles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.subtitle-style {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.subtitle-style img {
  width: 100%;
  display: block;
}

.subtitle-style span {
  display: block;
  padding: 6px;
  font-size: 14px;
  color: #fff;
}

.subtitle-style.active {
  border-color: #4cafef;
  box-shadow: 0 0 8px rgba(76,175,239,0.6);
}

.subtitle-size-buttons {
  display: flex;
  gap: 8px;
  margin-top: 5px;
}

.subtitle-position-buttons {
display: flex;
  gap: 8px;
  margin-top: 5px;
}
.position-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #fcf9f9;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.position-btn:hover {
  background: linear-gradient(135deg, #c078f9 0%, #5fa0f8 100%);
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.position-btn.active {
  border-color: #4cafef;
  box-shadow: 0 0 8px rgba(76,175,239,0.6);
}

.size-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #fcf9f9;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size:16px;
}

.size-btn:hover {
  background: linear-gradient(135deg, #c078f9 0%, #5fa0f8 100%);
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.size-btn.active {
  border-color: #4cafef;
  box-shadow: 0 0 8px rgba(76,175,239,0.6);
}




.visually-hidden-file-input {
  position: absolute;
  inset: 0;                 /* растянуть на всю площадь label */
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;               /* наверх, чтобы точно получать клики */
  border: none;
  padding: 0;
  margin: 0;
}

/* Если не хочется растягивать input на всю label, можно использовать этот вариант:
.visually-hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
*/

/* Убедись, что upload-zone видим и не перекрыт другими элементами */
.upload-zone {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  /* border: 2px dashed #ccc; */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  z-index: 1;
}


/* Круглая форма для overlay */
.corner-overlay-result.round {
    border-radius: 50%;
    overflow: hidden;
    width: 60px;  /* ширина = высота */
    height: 60px; /* ширина = высота */
}


.shape-btn{
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    text-align: center;
}

.shape-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.shape-btn.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    color: white;
}

.shape-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}


/* Минималистичный оверлей для прогресса */
  #video-upload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  #video-upload-card {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    width: 320px;
    max-width: 90%;
    text-align: center;
  }
  #video-upload-progress {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
  }
  #video-upload-progress > i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg,#4aa3ff,#2b9ef2);
    width: 0%;
    transition: width 200ms linear;
  }
  #video-upload-text { font-size: 14px; margin-top: 6px; color:#222;}

  /* Небольшая анимация для прогресса, можно настроить */
@keyframes progress-glow {
  0% { box-shadow: 0 0 6px rgba(30,136,229,0.05); }
  50% { box-shadow: 0 0 12px rgba(30,136,229,0.12); }
  100% { box-shadow: 0 0 6px rgba(30,136,229,0.05); }
}
#uploadProgressBar { animation: progress-glow 2s infinite; }