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

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

.container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Panel - Video */
.left-panel {
    width: 60%;
    display: flex;
    flex-direction: column;
    background: #111;
    border-right: 2px solid #222;
    padding: 20px;
}

.video-container {
    position: relative;
    width: 100%;
    flex: 1;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 400px;
}

#creatorVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    color: #888;
    font-size: 18px;
    z-index: 10;
}

.video-overlay.hidden {
    display: none;
}

.creator-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
}

.creator-info h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 5px;
}

.creator-info p {
    color: #888;
    font-size: 14px;
}

.btn-primary {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Right Panel - Tags */
.right-panel {
    width: 40%;
    background: #0f0f0f;
    padding: 30px;
    overflow-y: auto;
}

.right-panel h1 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
}

#tagForm {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tag-section {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
}

.tag-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
}

.tag-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tag-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #252525;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.tag-option:hover {
    background: #2d2d2d;
    border-color: #667eea;
}

.tag-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.tag-option span {
    font-size: 15px;
    color: #e0e0e0;
    flex: 1;
}

.tag-option input[type="radio"]:checked + span {
    color: #fff;
    font-weight: 600;
}

.tag-option:has(input[type="radio"]:checked) {
    background: #2a1a3d;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn-submit {
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    background: #11998e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(17, 153, 142, 0.4);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Scrollbar styling */
.right-panel::-webkit-scrollbar {
    width: 8px;
}

.right-panel::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.right-panel::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.right-panel::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Mode Toggle Switch */
.mode-toggle {
    margin: 20px 0;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-label {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    width: 60px;
    height: 30px;
    background: #333;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin: 0 15px;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: #667eea;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(30px);
}

.toggle-text-left,
.toggle-text-right {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toggle-label input[type="checkbox"]:checked ~ .toggle-text-left {
    color: #888;
}

.toggle-label input[type="checkbox"]:not(:checked) ~ .toggle-text-right {
    color: #888;
}

.toggle-label:hover .toggle-slider {
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .left-panel {
        width: 100%;
        height: 50vh;
    }
    
    .right-panel {
        width: 100%;
        height: 50vh;
    }
}

